Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing init #57

Merged
merged 6 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Added missing init code in non-async template

### Removed

## [0.2.0] - 2024-11-21
Expand Down
8 changes: 6 additions & 2 deletions template/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ extern crate alloc;

#[entry]
fn main() -> ! {
let peripherals = esp_hal::init({
let mut config = esp_hal::Config::default();
config.cpu_clock = CpuClock::max();
config
});

//IF !option("probe-rs")
esp_println::logger::init_logger_from_env();
//ENDIF
Expand All @@ -33,8 +39,6 @@ fn main() -> ! {
//ENDIF

//IF option("wifi") || option("ble")
let peripherals = esp_hal::init(esp_hal::Config::default());

let timg0 = TimerGroup::new(peripherals.TIMG0);
let _init = esp_wifi::init(
timg0.timer0,
Expand Down
Loading