#include <aversive.h>#include <scheduler_config.h>#include <scheduler_private.h>Go to the source code of this file.
Functions | |
| int8_t | scheduler_add_event (uint8_t unicity, void(*f)(void *), void *data, uint16_t period, uint8_t priority) |
| int8_t scheduler_add_event | ( | uint8_t | unicity, | |
| void(*)(void *) | f, | |||
| void * | data, | |||
| uint16_t | period, | |||
| uint8_t | priority | |||
| ) |
Alloc an event, and fill its field, then mark it as active. return its index in the table, or -1 if no evt is available
Definition at line 50 of file scheduler_add.c.
References event_t::current_time, event_t::data, parse_symbols::f, event_t::f, g_tab_event, IRQ_LOCK, IRQ_UNLOCK, event_t::period, event_t::priority, SCHEDULER_EVENT_ACTIVE, and event_t::state.
1.5.6