* Begin adding clock support for ESP32-P4 * WIP * WIP: more functionality added, minor example update * WIP state (testing) * Format * Finalizing + populating reset_reason enum * Update esp-pacs dependency --------- Co-authored-by: Jesse Braham <jesse@beta7.io>
21 lines
445 B
Rust
21 lines
445 B
Rust
#![no_std]
|
|
#![no_main]
|
|
|
|
use esp32p4_hal::{
|
|
clock::{ClockControl, CpuClock},
|
|
peripherals::Peripherals,
|
|
prelude::*,
|
|
system::SystemExt,
|
|
};
|
|
use esp_backtrace as _;
|
|
|
|
#[entry]
|
|
fn main() -> ! {
|
|
let peripherals = Peripherals::take();
|
|
let system = peripherals.SYSTEM.split();
|
|
let clocks = ClockControl::configure(system.clock_control, CpuClock::Clock90MHz).freeze();
|
|
|
|
esp_println::println!("Hello, world!");
|
|
loop {}
|
|
}
|