Skip to content

Commit bce0bc0

Browse files
committed
esp32-s3-box-lite - decrease CPU freq
1 parent 0274955 commit bce0bc0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

esp32-s3-box-lite/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ fn main() -> ! {
5959
psram::init_psram(peripherals.PSRAM);
6060
init_psram_heap();
6161

62-
let mut system = peripherals.SYSTEM.split();
63-
let clocks = ClockControl::configure(system.clock_control, CpuClock::Clock240MHz).freeze();
62+
let system = peripherals.SYSTEM.split();
63+
64+
// With DMA we have sufficient throughput, so we can clock down the CPU to 160MHz
65+
let clocks = ClockControl::configure(system.clock_control, CpuClock::Clock160MHz).freeze();
6466

6567
let mut delay = Delay::new(&clocks);
6668

0 commit comments

Comments
 (0)