G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference

Functions

void DDL_NVIC_ConfigPriorityGroup (uint32_t priorityGroup)
 Configures the priority grouping: pre-emption priority and subpriority.
void DDL_NVIC_EnableIRQRequest (IRQn_Type irq, uint8_t preemptionPriority, uint8_t subPriority)
 Enable NVIC request.
void DDL_NVIC_DisableIRQRequest (IRQn_Type irq)
 Disable NVIC request.
void DDL_NVIC_ConfigVectorTable (uint32_t vectTab, uint32_t offset)
 Configs the vector table location and Offset.
void DDL_SysTick_ConfigCLKSource (uint32_t clkSource)
 Configures the SysTick clock source.
ErrorStatus DDL_Interrupt_Register (IRQn_Type irqn, Interrupt_Handler new_handler)
 User-defined interrupt service function.

Detailed Description

Function Documentation

◆ DDL_Interrupt_Register()

ErrorStatus DDL_Interrupt_Register ( IRQn_Type irqn,
Interrupt_Handler new_handler )

User-defined interrupt service function.

Parameters
irqnInterrupt vector number
new_handlerThe new entry address of interrupt service function.
Return values
AnErrorStatus enumeration value:
  • SUCCESS: The handler registration finished successfully
  • ERROR: The specified IRQn or vector table address is invalid
Note
This function can only be used when VECT_TAB_SRAM is enabled.

Definition at line 232 of file g32r4xx_ddl_nvic.c.

◆ DDL_NVIC_ConfigPriorityGroup()

void DDL_NVIC_ConfigPriorityGroup ( uint32_t priorityGroup)

Configures the priority grouping: pre-emption priority and subpriority.

Parameters
priorityGroup: specifies the priority grouping bits length. This parameter can be one of the following values:
  • DDL_NVIC_PRIORITY_GROUP_0 : 0 bits for pre-emption priority,4 bits for subpriority
  • DDL_NVIC_PRIORITY_GROUP_1 : 1 bits for pre-emption priority,3 bits for subpriority
  • DDL_NVIC_PRIORITY_GROUP_2 : 2 bits for pre-emption priority,2 bits for subpriority
  • DDL_NVIC_PRIORITY_GROUP_3 : 3 bits for pre-emption priority,1 bits for subpriority
  • DDL_NVIC_PRIORITY_GROUP_4 : 4 bits for pre-emption priority,0 bits for subpriority
Return values
None

Definition at line 95 of file g32r4xx_ddl_nvic.c.

◆ DDL_NVIC_ConfigVectorTable()

void DDL_NVIC_ConfigVectorTable ( uint32_t vectTab,
uint32_t offset )

Configs the vector table location and Offset.

Parameters
vectTabspecifies if the vector table is in RAM or FLASH memory This parameter can be one of the following values:
  • NVIC_VECT_TAB_RAM : NVIC vector table base address launch from RAM
  • NVIC_VECT_TAB_FLASH : NVIC vector table base address launch from flash
OffsetVector Table base offset field. This value must be a multiple of 0x200
Return values
None

Definition at line 191 of file g32r4xx_ddl_nvic.c.

◆ DDL_NVIC_DisableIRQRequest()

void DDL_NVIC_DisableIRQRequest ( IRQn_Type irq)

Disable NVIC request.

Parameters
irqthe NVIC interrupt request, detailed in IRQn_Type
Return values
None

Definition at line 173 of file g32r4xx_ddl_nvic.c.

◆ DDL_NVIC_EnableIRQRequest()

void DDL_NVIC_EnableIRQRequest ( IRQn_Type irq,
uint8_t preemptionPriority,
uint8_t subPriority )

Enable NVIC request.

Parameters
irqthe NVIC interrupt request, detailed in IRQn_Type For the complete G32 Devices IRQ Channels list,please refer to g32r4xx.h file
preemptionPrioritythe pre-emption priority needed to set
subPrioritythe subpriority needed to set
Return values
None

Definition at line 112 of file g32r4xx_ddl_nvic.c.

◆ DDL_SysTick_ConfigCLKSource()

void DDL_SysTick_ConfigCLKSource ( uint32_t clkSource)

Configures the SysTick clock source.

Parameters
clkSourcespecifies the SysTick clock source This parameter can be one of the following values:
  • SYSTICK_CLK_SOURCE_HCLK_DIV8 : AHB clock divided by 8 selected as SysTick clock source.
  • SYSTICK_CLK_SOURCE_HCLK : AHB clock selected as SysTick clock source.
Return values
None

Definition at line 206 of file g32r4xx_ddl_nvic.c.