FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
itc.h File Reference

Functions

static uint32_t hal_itc_mask_get (void)
 Get mask of active IRQ. More...
 
static void hal_itc_mask_set (uint32_t IRQn)
 Enable an IRQ. More...
 
static void hal_itc_mask_clear (uint32_t IRQn)
 Disable an IRQ. More...
 
static void hal_itc_mask_all_clear (void)
 Disable all IRQ. More...
 
static uint32_t hal_itc_irq_get (void)
 Get received/triggered IRQ. More...
 
static void hal_itc_irq_status_set (uint32_t val)
 Set IRQ Status. More...
 
static void hal_itc_irq_set (uint32_t IRQn)
 Set/Trigger an IRQ. Setting an IRQ in this register will trigger the core and will know an IRQ has been triggered. More...
 
static void hal_itc_irq_clear (uint32_t IRQn)
 Clear an IRQ. More...
 
static void hal_itc_irq_all_clear (void)
 Clear all IRQ. More...
 
static uint32_t hal_itc_ack_get (void)
 
static void hal_itc_ack_set (uint32_t IRQn)
 
static void hal_itc_ack_clear (uint32_t IRQn)
 
static void hal_itc_reset (void)
 Reset IRQ and mask. More...
 
static uint32_t hal_itc_event_fifo_pop (void)
 Pop an event form the ITC FIFO. More...
 
static void hal_itc_wait_for_interrupt (void)
 Wait for an event/IRQ. More...
 
static void hal_itc_wait_for_event_no_irq (uint32_t IRQn)
 Wait for an event for a given IRQ. More...
 

Function Documentation

static void hal_itc_ack_clear ( uint32_t  IRQn)
inlinestatic

References fc_itc, and hal_write32().

static uint32_t hal_itc_ack_get ( void  )
inlinestatic

References fc_itc, and hal_read32().

static void hal_itc_ack_set ( uint32_t  IRQn)
inlinestatic

References fc_itc, and hal_write32().

static uint32_t hal_itc_event_fifo_pop ( void  )
inlinestatic
Returns
First event in fifo.

References fc_itc, and hal_read32().

static void hal_itc_irq_all_clear ( void  )
inlinestatic

References fc_itc, and hal_write32().

static void hal_itc_irq_clear ( uint32_t  IRQn)
inlinestatic
Parameters
IRQnIRQ to clear.

References fc_itc, and hal_write32().

Referenced by hal_itc_wait_for_event_no_irq().

static uint32_t hal_itc_irq_get ( void  )
inlinestatic
Returns
Mask of triggered IRQ.

References fc_itc, and hal_read32().

Referenced by hal_itc_wait_for_event_no_irq().

static void hal_itc_irq_set ( uint32_t  IRQn)
inlinestatic
Parameters
IRQnIRQ to set.

References fc_itc, and hal_write32().

Referenced by __pi_cl_decompressor_handler(), pi_cl_send_task_to_fc(), and vSetPendSV().

static void hal_itc_irq_status_set ( uint32_t  val)
inlinestatic

References fc_itc, and hal_write32().

static void hal_itc_mask_all_clear ( void  )
inlinestatic

References fc_itc, and hal_write32().

static void hal_itc_mask_clear ( uint32_t  IRQn)
inlinestatic
Parameters
IRQnIRQ to disable.

References fc_itc, and hal_write32().

Referenced by hal_itc_wait_for_event_no_irq().

static uint32_t hal_itc_mask_get ( void  )
inlinestatic
Returns
Mask of active IRQ.

References fc_itc, and hal_read32().

static void hal_itc_mask_set ( uint32_t  IRQn)
inlinestatic
Parameters
IRQnIRQ to enable.

References fc_itc, and hal_write32().

Referenced by hal_itc_wait_for_event_no_irq(), and pi_pmu_init().

static void hal_itc_reset ( void  )
inlinestatic

References fc_itc, and hal_write32().

Referenced by system_init().

static void hal_itc_wait_for_event_no_irq ( uint32_t  IRQn)
inlinestatic
static void hal_itc_wait_for_interrupt ( void  )
inlinestatic