|
void | AONEventMcuWakeUpSet (uint32_t ui32MCUWUEvent, uint32_t ui32EventSrc) |
| Select event source for the specified MCU wake-up programmable event. More...
|
|
uint32_t | AONEventMcuWakeUpGet (uint32_t ui32MCUWUEvent) |
| Get event source for the specified MCU wake-up programmable event. More...
|
|
void | AONEventMcuSet (uint32_t ui32MCUEvent, uint32_t ui32EventSrc) |
| Select event source for the specified programmable event forwarded to the MCU event fabric. More...
|
|
uint32_t | AONEventMcuGet (uint32_t ui32MCUEvent) |
| Get source for the specified programmable event forwarded to the MCU event fabric. More...
|
|
static void | AONEventRtcSet (uint32_t ui32EventSrc) |
| Select event source forwarded to AON Real Time Clock (RTC). More...
|
|
static uint32_t | AONEventRtcGet (void) |
| Get event source forwarded to AON Real Time Clock (RTC). More...
|
|
Introduction
The event fabric consists of two event modules. One in the MCU power domain (MCU event fabric) and the other in the AON power domain (AON event fabric). The MCU event fabric is one of the subscribers to the AON event fabric. For more information on MCU event fabric, see MCU event API.
The AON event fabric is a configurable combinatorial router between AON event sources and event subscribers in both AON and MCU domains. The API to control the AON event fabric configuration can be grouped based on the event subscriber to configure:
- Wake-up events.
- AON RTC receives a single programmable event line from the AON event fabric. For more information, see AON RTC API.
- MCU event fabric receives a number of programmable event lines from the AON event fabric. For more information, see MCU event API.
§ AONEventMcuGet()
uint32_t AONEventMcuGet |
( |
uint32_t |
ui32MCUEvent | ) |
|
Get source for the specified programmable event forwarded to the MCU event fabric.
The AON event fabric has a total of three programmable events that can be forwarded to the MCU event fabric.
- Parameters
-
ui32MCUEvent | is one of three programmable events forwarded to the MCU event fabric.
|
- Returns
- Returns the event source for the event AON fabric.
- See also
- AONEventMcuSet()
150 uint32_t ui32EventSrc;
157 ui32EventSrc = HWREG(AON_EVENT_BASE + AON_EVENT_O_EVTOMCUSEL);
161 return((ui32EventSrc & AON_EVENT_EVTOMCUSEL_AON_PROG0_EV_M) >>
162 AON_EVENT_EVTOMCUSEL_AON_PROG0_EV_S);
166 return((ui32EventSrc & AON_EVENT_EVTOMCUSEL_AON_PROG1_EV_M) >>
167 AON_EVENT_EVTOMCUSEL_AON_PROG1_EV_S);
171 return((ui32EventSrc & AON_EVENT_EVTOMCUSEL_AON_PROG2_EV_M) >>
172 AON_EVENT_EVTOMCUSEL_AON_PROG2_EV_S);
#define AON_EVENT_MCU_EVENT2
Definition: aon_event.h:156
#define AON_EVENT_MCU_EVENT0
Definition: aon_event.h:154
#define ASSERT(expr)
Definition: debug.h:71
#define AON_EVENT_MCU_EVENT1
Definition: aon_event.h:155
§ AONEventMcuSet()
void AONEventMcuSet |
( |
uint32_t |
ui32MCUEvent, |
|
|
uint32_t |
ui32EventSrc |
|
) |
| |
Select event source for the specified programmable event forwarded to the MCU event fabric.
The AON event fabric has a total of three programmable events that can be forwarded to the MCU event fabric.
- Note
- The three programmable event sources are forwarded to the MCU Event Fabric as:
- AON_PROG0
- AON_PROG1
- AON_PROG2
- Parameters
-
ui32MCUEvent | is one of three programmable events forwarded to the MCU event fabric.
|
ui32EventSrc | is an event source for the event AON fabric.
|
- Returns
- None
- See also
- AONEventMcuGet()
120 ui32Ctrl = HWREG(AON_EVENT_BASE + AON_EVENT_O_EVTOMCUSEL);
124 ui32Ctrl &= ~(AON_EVENT_EVTOMCUSEL_AON_PROG0_EV_M);
125 ui32Ctrl |= (ui32EventSrc & 0x3f) << AON_EVENT_EVTOMCUSEL_AON_PROG0_EV_S;
129 ui32Ctrl &= ~(AON_EVENT_EVTOMCUSEL_AON_PROG1_EV_M);
130 ui32Ctrl |= (ui32EventSrc & 0x3f) << AON_EVENT_EVTOMCUSEL_AON_PROG1_EV_S;
134 ui32Ctrl &= ~(AON_EVENT_EVTOMCUSEL_AON_PROG2_EV_M);
135 ui32Ctrl |= (ui32EventSrc & 0x3f) << AON_EVENT_EVTOMCUSEL_AON_PROG2_EV_S;
138 HWREG(AON_EVENT_BASE + AON_EVENT_O_EVTOMCUSEL) = ui32Ctrl;
#define AON_EVENT_NONE
Definition: aon_event.h:129
#define AON_EVENT_MCU_EVENT2
Definition: aon_event.h:156
#define AON_EVENT_MCU_EVENT0
Definition: aon_event.h:154
#define ASSERT(expr)
Definition: debug.h:71
#define AON_EVENT_MCU_EVENT1
Definition: aon_event.h:155
§ AONEventMcuWakeUpGet()
uint32_t AONEventMcuWakeUpGet |
( |
uint32_t |
ui32MCUWUEvent | ) |
|
Get event source for the specified MCU wake-up programmable event.
- Parameters
-
ui32MCUWUEvent | is one of the programmable MCU wake-up event sources.
|
- Returns
- Returns the event source for the event AON fabric.
- See also
- AONEventMcuWakeUpSet()
95 ui32Shift = (( ui32MCUWUEvent & 3 ) << 3 );
96 ui32RegAdr = ( AON_EVENT_BASE + AON_EVENT_O_MCUWUSEL );
97 if ( ui32MCUWUEvent > 3 ) {
100 return (( HWREG( ui32RegAdr ) >> ui32Shift ) & 0x3F );
#define AON_EVENT_MCU_WU7
Definition: aon_event.h:147
#define AON_EVENT_MCU_WU0
Definition: aon_event.h:140
#define ASSERT(expr)
Definition: debug.h:71
§ AONEventMcuWakeUpSet()
void AONEventMcuWakeUpSet |
( |
uint32_t |
ui32MCUWUEvent, |
|
|
uint32_t |
ui32EventSrc |
|
) |
| |
Select event source for the specified MCU wake-up programmable event.
The AON event fabric has several programmable events that can wake up the MCU.
- Note
- The programmable event sources are effectively OR'ed together to form a single wake-up event.
- Parameters
-
ui32MCUWUEvent | is one of the programmable MCU wake-up event sources.
|
ui32EventSrc | is an event source for the event AON fabric.
|
- Returns
- None
- See also
- AONEventMcuWakeUpGet()
72 ui32Shift = (( ui32MCUWUEvent & 3 ) << 3 );
73 ui32Mask = ( 0x3F << ui32Shift );
74 ui32RegAdr = ( AON_EVENT_BASE + AON_EVENT_O_MCUWUSEL );
75 if ( ui32MCUWUEvent > 3 ) {
78 HWREG( ui32RegAdr ) = ( HWREG( ui32RegAdr ) & ( ~ui32Mask )) | ( ui32EventSrc << ui32Shift );
#define AON_EVENT_MCU_WU7
Definition: aon_event.h:147
#define AON_EVENT_MCU_WU0
Definition: aon_event.h:140
#define AON_EVENT_NONE
Definition: aon_event.h:129
#define ASSERT(expr)
Definition: debug.h:71
§ AONEventRtcGet()
static uint32_t AONEventRtcGet |
( |
void |
| ) |
|
|
inlinestatic |
Get event source forwarded to AON Real Time Clock (RTC).
A programmable event can be forwarded to the AON real time clock for triggering a capture event on RTC channel 1.
- Returns
- Returns the event source to the event AON fabric.
- See also
- AONEventRtcSet()
510 uint32_t ui32EventSrc;
513 ui32EventSrc = HWREG(AON_EVENT_BASE + AON_EVENT_O_RTCSEL);
515 return ((ui32EventSrc & AON_EVENT_RTCSEL_RTC_CH1_CAPT_EV_M) >>
516 AON_EVENT_RTCSEL_RTC_CH1_CAPT_EV_S);
§ AONEventRtcSet()
static void AONEventRtcSet |
( |
uint32_t |
ui32EventSrc | ) |
|
|
inlinestatic |
Select event source forwarded to AON Real Time Clock (RTC).
A programmable event can be forwarded to the AON real time clock for triggering a capture event on RTC channel 1.
- Parameters
-
ui32EventSrc | is an event source for the event AON fabric.
|
- Returns
- None
- See also
- AONEventRtcGet()
454 ui32Ctrl = HWREG(AON_EVENT_BASE + AON_EVENT_O_RTCSEL);
455 ui32Ctrl &= ~(AON_EVENT_RTCSEL_RTC_CH1_CAPT_EV_M);
456 ui32Ctrl |= (ui32EventSrc & 0x3f) << AON_EVENT_RTCSEL_RTC_CH1_CAPT_EV_S;
458 HWREG(AON_EVENT_BASE + AON_EVENT_O_RTCSEL) = ui32Ctrl;
#define AON_EVENT_NONE
Definition: aon_event.h:129
#define ASSERT(expr)
Definition: debug.h:71
§ AON_EVENT_AUX_ADC_DONE
#define AON_EVENT_AUX_ADC_DONE 49 |
§ AON_EVENT_AUX_COMPA
#define AON_EVENT_AUX_COMPA 47 |
§ AON_EVENT_AUX_COMPB
#define AON_EVENT_AUX_COMPB 48 |
§ AON_EVENT_AUX_COMPB_ASYNC
#define AON_EVENT_AUX_COMPB_ASYNC 55 |
§ AON_EVENT_AUX_COMPB_ASYNC_N
#define AON_EVENT_AUX_COMPB_ASYNC_N 56 |
§ AON_EVENT_AUX_SWEV0
#define AON_EVENT_AUX_SWEV0 44 |
§ AON_EVENT_AUX_SWEV1
#define AON_EVENT_AUX_SWEV1 45 |
§ AON_EVENT_AUX_SWEV2
#define AON_EVENT_AUX_SWEV2 46 |
§ AON_EVENT_AUX_TDC_DONE
#define AON_EVENT_AUX_TDC_DONE 50 |
§ AON_EVENT_AUX_TIMER0_EV
#define AON_EVENT_AUX_TIMER0_EV 51 |
§ AON_EVENT_AUX_TIMER1_EV
#define AON_EVENT_AUX_TIMER1_EV 52 |
§ AON_EVENT_AUX_TIMER2_EV0
#define AON_EVENT_AUX_TIMER2_EV0 1 |
§ AON_EVENT_AUX_TIMER2_EV1
#define AON_EVENT_AUX_TIMER2_EV1 2 |
§ AON_EVENT_AUX_TIMER2_EV2
#define AON_EVENT_AUX_TIMER2_EV2 3 |
§ AON_EVENT_AUX_TIMER2_EV3
#define AON_EVENT_AUX_TIMER2_EV3 4 |
§ AON_EVENT_BATMON_BATT_LL
#define AON_EVENT_BATMON_BATT_LL 6 |
§ AON_EVENT_BATMON_BATT_UL
#define AON_EVENT_BATMON_BATT_UL 5 |
§ AON_EVENT_BATMON_COMBINED
#define AON_EVENT_BATMON_COMBINED 9 |
§ AON_EVENT_BATMON_TEMP
#define AON_EVENT_BATMON_TEMP 53 |
§ AON_EVENT_BATMON_TEMP_LL
#define AON_EVENT_BATMON_TEMP_LL 8 |
§ AON_EVENT_BATMON_TEMP_UL
#define AON_EVENT_BATMON_TEMP_UL 7 |
§ AON_EVENT_BATMON_VOLT
#define AON_EVENT_BATMON_VOLT 54 |
§ AON_EVENT_IO
§ AON_EVENT_IOEV_MCU_WU
#define AON_EVENT_IOEV_MCU_WU 0 |
§ AON_EVENT_JTAG
#define AON_EVENT_JTAG 43 |
§ AON_EVENT_MCU_EVENT0
#define AON_EVENT_MCU_EVENT0 0 |
§ AON_EVENT_MCU_EVENT1
#define AON_EVENT_MCU_EVENT1 1 |
§ AON_EVENT_MCU_EVENT2
#define AON_EVENT_MCU_EVENT2 2 |
§ AON_EVENT_MCU_WU0
#define AON_EVENT_MCU_WU0 0 |
§ AON_EVENT_MCU_WU1
#define AON_EVENT_MCU_WU1 1 |
§ AON_EVENT_MCU_WU2
#define AON_EVENT_MCU_WU2 2 |
§ AON_EVENT_MCU_WU3
#define AON_EVENT_MCU_WU3 3 |
§ AON_EVENT_MCU_WU4
#define AON_EVENT_MCU_WU4 4 |
§ AON_EVENT_MCU_WU5
#define AON_EVENT_MCU_WU5 5 |
§ AON_EVENT_MCU_WU6
#define AON_EVENT_MCU_WU6 6 |
§ AON_EVENT_MCU_WU7
#define AON_EVENT_MCU_WU7 7 |
§ AON_EVENT_NONE
#define AON_EVENT_NONE 63 |
§ AON_EVENT_RTC0
§ AON_EVENT_RTC_CH0
#define AON_EVENT_RTC_CH0 35 |
§ AON_EVENT_RTC_CH0_DLY
#define AON_EVENT_RTC_CH0_DLY 38 |
§ AON_EVENT_RTC_CH1
#define AON_EVENT_RTC_CH1 36 |
§ AON_EVENT_RTC_CH1_DLY
#define AON_EVENT_RTC_CH1_DLY 39 |
§ AON_EVENT_RTC_CH2
#define AON_EVENT_RTC_CH2 37 |
§ AON_EVENT_RTC_CH2_DLY
#define AON_EVENT_RTC_CH2_DLY 40 |
§ AON_EVENT_RTC_COMB_DLY
#define AON_EVENT_RTC_COMB_DLY 41 |
§ AON_EVENT_RTC_UPD
#define AON_EVENT_RTC_UPD 42 |