G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
g32r4xx_ddl_nvic.h
Go to the documentation of this file.
1
41
42#ifndef G32R4xx_DDL_NVIC_H
43#define G32R4xx_DDL_NVIC_H
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49/* Includes ------------------------------------------------------------------*/
50#include "g32r4xx.h"
51
55
59/* Private types -------------------------------------------------------------*/
60/* Private variables ---------------------------------------------------------*/
61/* Private constants ---------------------------------------------------------*/
62/* Private macros ------------------------------------------------------------*/
63/* Exported types ------------------------------------------------------------*/
64/* Exported constants --------------------------------------------------------*/
68
72
73#define DDL_NVIC_VECT_TAB_RAM 0x20000000UL
74#define DDL_NVIC_VECT_TAB_FLASH 0x08000000UL
78
82
83#define DDL_NVIC_PRIORITY_GROUP_0 0x700UL
84#define DDL_NVIC_PRIORITY_GROUP_1 0x600UL
85#define DDL_NVIC_PRIORITY_GROUP_2 0x500UL
86#define DDL_NVIC_PRIORITY_GROUP_3 0x400UL
87#define DDL_NVIC_PRIORITY_GROUP_4 0x300UL
91
95#define DDL_SYSTICK_CLK_SOURCE_HCLK_DIV8 0x0UL
96#define DDL_SYSTICK_CLK_SOURCE_HCLK 0x1UL
100
104
105/* Exported macro ------------------------------------------------------------*/
106
107/* Exported functions --------------------------------------------------------*/
108
109#if defined(USE_FULL_DDL_DRIVER)
113typedef void (*Interrupt_Handler)(void);
114
115void DDL_NVIC_ConfigPriorityGroup(uint32_t priorityGroup);
116void DDL_NVIC_EnableIRQRequest(IRQn_Type irq, uint8_t preemptionPriority, uint8_t subPriority);
117void DDL_NVIC_DisableIRQRequest(IRQn_Type irq);
118
119/* Vector Table */
120void DDL_NVIC_ConfigVectorTable(uint32_t vectTab, uint32_t offset);
121
122/* Systick */
123void DDL_SysTick_ConfigCLKSource(uint32_t clkSource);
124
125#ifdef VECT_TAB_SRAM
126ErrorStatus DDL_Interrupt_Register(IRQn_Type irqn, Interrupt_Handler new_handler);
127#endif
128
132#endif /* USE_FULL_DDL_DRIVER */
133
137
141
142#ifdef __cplusplus
143}
144#endif
145
146#endif
147
void DDL_NVIC_ConfigVectorTable(uint32_t vectTab, uint32_t offset)
Configs the vector table location and Offset.
void DDL_NVIC_DisableIRQRequest(IRQn_Type irq)
Disable NVIC request.
void DDL_SysTick_ConfigCLKSource(uint32_t clkSource)
Configures the SysTick clock source.
void DDL_NVIC_ConfigPriorityGroup(uint32_t priorityGroup)
Configures the priority grouping: pre-emption priority and subpriority.
void(* Interrupt_Handler)(void)
void DDL_NVIC_EnableIRQRequest(IRQn_Type irq, uint8_t preemptionPriority, uint8_t subPriority)
Enable NVIC request.
ErrorStatus DDL_Interrupt_Register(IRQn_Type irqn, Interrupt_Handler new_handler)
User-defined interrupt service function.