FreeRTOS port on GAP8/RISC-V
|
Macros | |
#define | NB_SOC_EVENTS |
Typedefs | |
typedef void(* | pi_fc_event_handler_t )(void *arg) |
Functions | |
void | pi_fc_event_handler_init (uint32_t fc_event_irq) |
Initialize FC event handler. More... | |
void | fc_soc_event_handler (void) |
FC event handler. More... | |
void | pi_fc_event_handler_set (uint32_t event_id, pi_fc_event_handler_t event_handler, void *arg) |
Set event handler for a SoC event. More... | |
void | pi_fc_event_handler_clear (uint32_t event_id) |
int32_t | pi_fc_event_handler_is_free (uint32_t event_id) |
Check handler is set. More... | |
#define NB_SOC_EVENTS |
< Number of SoC events. Callback type.
typedef void(* pi_fc_event_handler_t)(void *arg) |
void fc_soc_event_handler | ( | void | ) |
This function is the handler called when a FC SoC Event IRQ is triggered. This function pops an event and executes the handler corresponding to the event if it set.
|
inline |
This function checks if an event handler is set for the given SoC event.
event_id | SoC event ID. |
References fc_event_handlers.
Referenced by pi_udma_core_2d_alloc(), pi_udma_core_fifo_alloc(), and pi_udma_core_lin_alloc().
void pi_fc_event_handler_set | ( | uint32_t | event_id, |
pi_fc_event_handler_t | event_handler, | ||
void * | arg | ||
) |
This function sets an event handler for a given SoC event.
event_id | SoC event ID. |
event_handler | SoC event handler function. |
arg | Soc event handler argument. |
References fc_event_handler_args, and fc_event_handlers.