56 #define PERIPH_BASE ((uint32_t) 0x40000000) 57 #define AHBPERIPH_BASE (PERIPH_BASE + 0x00020000) 58 #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000) 60 #define RCC_BASE (AHBPERIPH_BASE + 0x00001000) 61 #define GPIOC_BASE (AHB2PERIPH_BASE + 0x00000800) 63 #define RCC_AHBENR_GPIOCEN ((uint32_t)0x00080000) 66 #define LEDPORT_BASE GPIOC_BASE 67 #define LEDCLK_GPIOEN RCC_AHBENR_GPIOCEN 69 #define DELAY_TIME 0x40000 70 #define DELAY_SYST 4000000 114 #define __MPU_PRESENT 0 115 #define __NVIC_PRIO_BITS 2 116 #define __Vendor_SysTickConfig 0 118 #include "core_cm0.h" 127 __IO uint32_t PLLCFGR;
130 __IO uint32_t AHB1RSTR;
131 __IO uint32_t AHB2RSTR;
132 __IO uint32_t AHB3RSTR;
136 uint32_t RESERVED1[2];
138 __IO uint32_t AHB2ENR;
139 __IO uint32_t AHB3ENR;
143 uint32_t RESERVED3[2];
144 __IO uint32_t AHB1LPENR;
145 __IO uint32_t AHB2LPENR;
146 __IO uint32_t AHB3LPENR;
148 __IO uint32_t APB1LPENR;
149 __IO uint32_t APB2LPENR;
150 uint32_t RESERVED5[2];
153 uint32_t RESERVED6[2];
155 __IO uint32_t PLLI2SCFGR;
160 __IO uint32_t OTYPER;
161 __IO uint32_t OSPEEDR;
168 __IO uint32_t AFR[2];
171 #define PERIPH_BASE ((uint32_t)0x40000000) 172 #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000) 173 #define RCC_BASE (AHB1PERIPH_BASE + 0x3800) 174 #define GPIOD_BASE (AHB1PERIPH_BASE + 0x0C00) 176 #define LEDPORT_BASE GPIOD_BASE 178 #define LEDCLK_GPIOEN ((uint32_t)0x00000008) 179 #define DELAY_TIME 0x200000 180 #define DELAY_SYST 8000000 186 MemoryManagement_IRQn = -12,
188 UsageFault_IRQn = -10,
190 DebugMonitor_IRQn = -4,
205 DMA1_Stream0_IRQn = 11,
206 DMA1_Stream1_IRQn = 12,
207 DMA1_Stream2_IRQn = 13,
208 DMA1_Stream3_IRQn = 14,
209 DMA1_Stream4_IRQn = 15,
210 DMA1_Stream5_IRQn = 16,
211 DMA1_Stream6_IRQn = 17,
218 TIM1_BRK_TIM9_IRQn = 24,
219 TIM1_UP_TIM10_IRQn = 25,
220 TIM1_TRG_COM_TIM11_IRQn = 26,
236 OTG_FS_WKUP_IRQn = 42,
237 TIM8_BRK_TIM12_IRQn = 43,
238 TIM8_UP_TIM13_IRQn = 44,
239 TIM8_TRG_COM_TIM14_IRQn = 45,
241 DMA1_Stream7_IRQn = 47,
250 DMA2_Stream0_IRQn = 56,
251 DMA2_Stream1_IRQn = 57,
252 DMA2_Stream2_IRQn = 58,
253 DMA2_Stream3_IRQn = 59,
254 DMA2_Stream4_IRQn = 60,
262 DMA2_Stream5_IRQn = 68,
263 DMA2_Stream6_IRQn = 69,
264 DMA2_Stream7_IRQn = 70,
268 OTG_HS_EP1_OUT_IRQn = 74,
269 OTG_HS_EP1_IN_IRQn = 75,
270 OTG_HS_WKUP_IRQn = 76,
278 #define __CM4_REV 0x0001 279 #define __MPU_PRESENT 1 280 #define __NVIC_PRIO_BITS 4 281 #define __Vendor_SysTickConfig 0 283 #include "core_cm4.h" 286 typedef struct RCC_Type RCC_TypeDef;
293 #define NAKED __attribute__((naked)) 297 static inline void fillram (
void) {
299 "ldr r0, =0x20000800\n\t" 300 "ldr r1, =0x20001800\n\t" 301 "ldr r2, =0xDEADBEEF\n" 303 "str r2, [r0, #0]\n\t"
__IO uint32_t BSRR
Takto to bylo původně, jeden 32. bit registr Address offset: 0x18.
Definition: io.h:44
__IO uint16_t OTYPER
Definition: io.h:35
uint16_t RESERVED2
Definition: io.h:42
__IO uint16_t IDR
Definition: io.h:39
__IO uint32_t APB1RSTR
Definition: io.h:20
__IO uint32_t APB2RSTR
Definition: io.h:19
uint16_t RESERVED1
Definition: io.h:40
IRQn_Type
Interrupt Numbers.
Definition: io.h:74
__IO uint32_t LCKR
Definition: io.h:50
__IO uint16_t ODR
Definition: io.h:41
__IO uint16_t BSRRL
spodní je nastavovací
Definition: io.h:46
__IO uint32_t CFGR2
Definition: io.h:27
__IO uint32_t CR
Definition: io.h:16
__IO uint32_t AHBRSTR
Definition: io.h:26
__IO uint32_t CFGR
Definition: io.h:17
__IO uint32_t AHBENR
Definition: io.h:21
__IO uint32_t MODER
Definition: io.h:34
__IO uint32_t OSPEEDR
Definition: io.h:37
__IO uint16_t BRR
Definition: io.h:52
__IO uint32_t PUPDR
Definition: io.h:38
__IO uint16_t BSRRH
horní je nulovací
Definition: io.h:47
__IO uint32_t CR2
Definition: io.h:29
static void fillram(void)
Debug stack only.
Definition: io.h:298
__IO uint32_t BDCR
Definition: io.h:24
__IO uint32_t CFGR3
Definition: io.h:28
uint16_t RESERVED0
Definition: io.h:36
__IO uint32_t CIR
Definition: io.h:18
__IO uint32_t CSR
Definition: io.h:25
__IO uint32_t APB1ENR
Definition: io.h:23
uint16_t RESERVED3
Definition: io.h:53
__IO uint32_t APB2ENR
Definition: io.h:22
#define __IO
Takhle je to použito v ST library.
Definition: io.h:9