25 #ifdef DRV_CORTEX_MODULE_ENABLED 54 uint32_t prioritygroup = 0x00U;
98 return SysTick_Config(TicksNumb);
172 #ifdef NVIC_SOFT_VECTOR 173 g_avpfVTOR[IRQn + 16] = pfIRQHandler;
183 return ((
void**)
SCB->VTOR)[IRQn + 16];
void * DRV_NVIC_GetIRQ(IRQn_Type IRQn)
This function may be used to get the pointer of an interrupt.
uint32_t DRV_NVIC_GetActive(IRQn_Type IRQn)
This function returns the active state of a given interrupt.
uint32_t DRV_SYSTICK_Config(uint32_t TicksNumb)
void DRV_NVIC_GetPriority(IRQn_Type IRQn, uint32_t PriorityGroup, uint32_t *pPreemptPriority, uint32_t *pSubPriority)
This method stores the priority of a given interrupt and group into the given locations.
void DRV_NVIC_DisableIRQ(IRQn_Type IRQn)
This method disables a given interrupt.
uint32_t DRV_NVIC_GetEnableIRQ(IRQn_Type IRQn)
This function returns the enable state of a given interrupt.
void DRV_NVIC_EnableIRQ(IRQn_Type IRQn)
This method enables a given interrupt.
void DRV_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
This method sets the priority of a given interrupt.
#define NVIC_SetPendingIRQ
uint32_t DRV_NVIC_GetPendingIRQ(IRQn_Type IRQn)
This funciton returns the pending state of a given interrupt.
__STATIC_INLINE int32_t ITM_ReceiveChar(void)
ITM Receive Character.
uint32_t DRV_NVIC_GetPriorityGrouping(void)
This function returns the priority grouping.
#define NVIC_GetPendingIRQ
#define NVIC_GetPriorityGrouping
__STATIC_INLINE int32_t ITM_CheckChar(void)
ITM Check Character.
int32_t DRV_ITM_CheckChar(void)
Driver wrapper for ITM Check Character.
__STATIC_INLINE void NVIC_DecodePriority(uint32_t Priority, uint32_t PriorityGroup, uint32_t *const pPreemptPriority, uint32_t *const pSubPriority)
Decode Priority.
#define NVIC_ClearPendingIRQ
void DRV_NVIC_SetPendingIRQ(IRQn_Type IRQn)
This method sets a given interrupt pending.
This file contains all the functions prototypes for the peripheral module driver. ...
int32_t DRV_ITM_ReceiveChar(void)
Driver wrapper for ITM Receive Character.
void DRV_NVIC_AttachIRQ(IRQn_Type IRQn, void *pfIRQHandler)
This function may be used to attach or detach an interrupt to the software vector if it is used...
int ulIrqSemaphore
Semaphore value for nested enabling/disabling of all interrupts.
#define NVIC_GetEnableIRQ
void DRV_NVIC_ClearPendingIRQ(IRQn_Type IRQn)
This method clears the pending state of a given interrupt.
uint32_t DRV_ITM_SendChar(uint32_t ch)
Driver wrapper for ITM Send Character.
#define NVIC_SetPriorityGrouping
__STATIC_INLINE uint32_t NVIC_EncodePriority(uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
Encode Priority.
void DRV_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
This method sets the priority grouping.
void DRV_NVIC_SystemReset(void)
This method resets the NVIC and the Cortex M4 internal registers and restarts the PC at 0...