Fix the octal_psram example for ESP32-S3, check example in CI

This commit is contained in:
Jesse Braham 2023-06-22 11:00:15 +02:00 committed by Scott Mabin
parent 14f46371eb
commit c38ed67fb0
2 changed files with 3 additions and 1 deletions

View File

@ -313,6 +313,8 @@ jobs:
run: cd esp32s3-hal/ && cargo check --example=embassy_serial --features=embassy,embassy-time-timg0,async
- name: check esp32s3-hal (async, i2c)
run: cd esp32s3-hal/ && cargo check --example=embassy_i2c --features=embassy,embassy-time-timg0,async
- name: check esp32s3-hal (octal psram)
run: cd esp32s3-hal/ && cargo check --example=octal_psram --features=opsram_2m --release # This example requires release!
esp-riscv-rt:
runs-on: ubuntu-latest

View File

@ -24,7 +24,7 @@ static ALLOCATOR: esp_alloc::EspHeap = esp_alloc::EspHeap::empty();
fn init_psram_heap() {
unsafe {
ALLOCATOR.init(
soc::psram::PSRAM_VADDR_START as *mut u8,
soc::psram::psram_vaddr_start() as *mut u8,
soc::psram::PSRAM_BYTES,
);
}