Skip to content

Commit

Permalink
Use am_pal_on_idle in dpp and ringbuf examples and in libs/ao/tests/m…
Browse files Browse the repository at this point in the history
…inimal.c
  • Loading branch information
adel-mamin committed Jan 27, 2025
1 parent c3bce21 commit 4e73027
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/examples/dpp/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ AM_NORETURN static void ticker_task(void *param) {

int main(void) {
struct am_ao_state_cfg cfg_ao = {
.crit_enter = am_pal_crit_enter, .crit_exit = am_pal_crit_exit
.on_idle = am_pal_on_idle,
.crit_enter = am_pal_crit_enter,
.crit_exit = am_pal_crit_exit
};
am_ao_state_ctor(&cfg_ao);

Expand Down
4 changes: 3 additions & 1 deletion apps/examples/ringbuf/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ AM_NORETURN static void test_ringbuf_threading(void) {
am_ringbuf_ctor(&g_ringbuf, buf, AM_COUNTOF(buf));

struct am_ao_state_cfg cfg_ao = {
.crit_enter = am_pal_crit_enter, .crit_exit = am_pal_crit_exit
.on_idle = am_pal_on_idle,
.crit_enter = am_pal_crit_enter,
.crit_exit = am_pal_crit_exit
};
am_ao_state_ctor(&cfg_ao);

Expand Down
4 changes: 3 additions & 1 deletion libs/ao/tests/minimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ static int loopback_test_init(

int main(void) {
struct am_ao_state_cfg cfg_ao = {
.crit_enter = am_pal_crit_enter, .crit_exit = am_pal_crit_exit
.on_idle = am_pal_on_idle,
.crit_enter = am_pal_crit_enter,
.crit_exit = am_pal_crit_exit
};
am_ao_state_ctor(&cfg_ao);

Expand Down

0 comments on commit 4e73027

Please sign in to comment.