Skip to content

Commit

Permalink
boards: esp32-c3: fix test
Browse files Browse the repository at this point in the history
The priority scheduler needs the static macro.
  • Loading branch information
bradjc committed Apr 4, 2024
1 parent 38220da commit 0fc7b6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions boards/esp32-c3-devkitM-1/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,10 @@ fn test_runner(tests: &[&dyn Fn()]) {
BOARD = Some(board_kernel);
PLATFORM = Some(&esp32_c3_board);
PERIPHERALS = Some(peripherals);
SCHEDULER =
Some(components::sched::priority::PriorityComponent::new(board_kernel).finalize(()));
SCHEDULER = Some(
components::sched::priority::PriorityComponent::new(board_kernel)
.finalize(components::priority_component_static!()),
);
MAIN_CAP = Some(&create_capability!(capabilities::MainLoopCapability));

PLATFORM.map(|p| {
Expand Down
1 change: 0 additions & 1 deletion boards/esp32-c3-devkitM-1/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use crate::BOARD;
use crate::CHIP;
use crate::MAIN_CAP;
use crate::NUM_PROCS;
use crate::PLATFORM;
use kernel::debug;

Expand Down

0 comments on commit 0fc7b6f

Please sign in to comment.