update sys.c in examples
This commit is contained in:
@@ -25,17 +25,17 @@
|
|||||||
#define STM32_USB_IRQ_PRIORITY 11
|
#define STM32_USB_IRQ_PRIORITY 11
|
||||||
|
|
||||||
struct NVIC {
|
struct NVIC {
|
||||||
uint32_t ISER[8];
|
volatile uint32_t ISER[8];
|
||||||
uint32_t unused1[24];
|
volatile uint32_t unused1[24];
|
||||||
uint32_t ICER[8];
|
volatile uint32_t ICER[8];
|
||||||
uint32_t unused2[24];
|
volatile uint32_t unused2[24];
|
||||||
uint32_t ISPR[8];
|
volatile uint32_t ISPR[8];
|
||||||
uint32_t unused3[24];
|
volatile uint32_t unused3[24];
|
||||||
uint32_t ICPR[8];
|
volatile uint32_t ICPR[8];
|
||||||
uint32_t unused4[24];
|
volatile uint32_t unused4[24];
|
||||||
uint32_t IABR[8];
|
volatile uint32_t IABR[8];
|
||||||
uint32_t unused5[56];
|
volatile uint32_t unused5[56];
|
||||||
uint32_t IPR[60];
|
volatile uint32_t IPR[60];
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct NVIC *const NVICBase = ((struct NVIC *const)0xE000E100);
|
static struct NVIC *const NVICBase = ((struct NVIC *const)0xE000E100);
|
||||||
|
|||||||
@@ -25,17 +25,17 @@
|
|||||||
#define STM32_USB_IRQ_PRIORITY 11
|
#define STM32_USB_IRQ_PRIORITY 11
|
||||||
|
|
||||||
struct NVIC {
|
struct NVIC {
|
||||||
uint32_t ISER[8];
|
volatile uint32_t ISER[8];
|
||||||
uint32_t unused1[24];
|
volatile uint32_t unused1[24];
|
||||||
uint32_t ICER[8];
|
volatile uint32_t ICER[8];
|
||||||
uint32_t unused2[24];
|
volatile uint32_t unused2[24];
|
||||||
uint32_t ISPR[8];
|
volatile uint32_t ISPR[8];
|
||||||
uint32_t unused3[24];
|
volatile uint32_t unused3[24];
|
||||||
uint32_t ICPR[8];
|
volatile uint32_t ICPR[8];
|
||||||
uint32_t unused4[24];
|
volatile uint32_t unused4[24];
|
||||||
uint32_t IABR[8];
|
volatile uint32_t IABR[8];
|
||||||
uint32_t unused5[56];
|
volatile uint32_t unused5[56];
|
||||||
uint32_t IPR[60];
|
volatile uint32_t IPR[60];
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct NVIC *const NVICBase = ((struct NVIC *const)0xE000E100);
|
static struct NVIC *const NVICBase = ((struct NVIC *const)0xE000E100);
|
||||||
|
|||||||
@@ -71,17 +71,17 @@ gpio_init_primer2 (void)
|
|||||||
#define STM32_USB_IRQ_PRIORITY 11
|
#define STM32_USB_IRQ_PRIORITY 11
|
||||||
|
|
||||||
struct NVIC {
|
struct NVIC {
|
||||||
uint32_t ISER[8];
|
volatile uint32_t ISER[8];
|
||||||
uint32_t unused1[24];
|
volatile uint32_t unused1[24];
|
||||||
uint32_t ICER[8];
|
volatile uint32_t ICER[8];
|
||||||
uint32_t unused2[24];
|
volatile uint32_t unused2[24];
|
||||||
uint32_t ISPR[8];
|
volatile uint32_t ISPR[8];
|
||||||
uint32_t unused3[24];
|
volatile uint32_t unused3[24];
|
||||||
uint32_t ICPR[8];
|
volatile uint32_t ICPR[8];
|
||||||
uint32_t unused4[24];
|
volatile uint32_t unused4[24];
|
||||||
uint32_t IABR[8];
|
volatile uint32_t IABR[8];
|
||||||
uint32_t unused5[56];
|
volatile uint32_t unused5[56];
|
||||||
uint32_t IPR[60];
|
volatile uint32_t IPR[60];
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct NVIC *const NVICBase = ((struct NVIC *const)0xE000E100);
|
static struct NVIC *const NVICBase = ((struct NVIC *const)0xE000E100);
|
||||||
|
|||||||
Reference in New Issue
Block a user