stm32f10x.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. /*******************************************************************************
  2. *
  3. * File Name : stm32f10x.h
  4. * Author : MCD Application Team, Paul Robson
  5. * Version : V2.0
  6. * Date : 20/09/2010
  7. * Description : Includes as needed for STM32VLDISCOVERY coding.
  8. * Built from _type.h and _map.h and simplified.
  9. * Original Copyright : (c) 2007 ST Microelectronics
  10. *
  11. ********************************************************************************
  12. * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  13. * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
  14. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
  15. * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
  16. * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
  17. * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  18. *******************************************************************************/
  19. #ifndef __STM32F10x_H
  20. #define __STM32F10x_H
  21. /******************************************************************************/
  22. /* Data Types Needed */
  23. /******************************************************************************/
  24. typedef signed long s32;
  25. typedef signed short s16;
  26. typedef signed char s8;
  27. typedef signed long const sc32; /* Read Only */
  28. typedef signed short const sc16; /* Read Only */
  29. typedef signed char const sc8; /* Read Only */
  30. typedef volatile signed long vs32;
  31. typedef volatile signed short vs16;
  32. typedef volatile signed char vs8;
  33. typedef volatile signed long const vsc32; /* Read Only */
  34. typedef volatile signed short const vsc16; /* Read Only */
  35. typedef volatile signed char const vsc8; /* Read Only */
  36. typedef unsigned long u32;
  37. typedef unsigned short u16;
  38. typedef unsigned char u8;
  39. typedef unsigned long const uc32; /* Read Only */
  40. typedef unsigned short const uc16; /* Read Only */
  41. typedef unsigned char const uc8; /* Read Only */
  42. typedef volatile unsigned long vu32;
  43. typedef volatile unsigned short vu16;
  44. typedef volatile unsigned char vu8;
  45. typedef volatile unsigned long const vuc32; /* Read Only */
  46. typedef volatile unsigned short const vuc16; /* Read Only */
  47. typedef volatile unsigned char const vuc8; /* Read Only */
  48. /******************************************************************************/
  49. /* Peripheral registers structures */
  50. /******************************************************************************/
  51. /*------------------------ Analog to Digital Converter -----------------------*/
  52. typedef struct
  53. {
  54. vu32 SR;
  55. vu32 CR1;
  56. vu32 CR2;
  57. vu32 SMPR1;
  58. vu32 SMPR2;
  59. vu32 JOFR1;
  60. vu32 JOFR2;
  61. vu32 JOFR3;
  62. vu32 JOFR4;
  63. vu32 HTR;
  64. vu32 LTR;
  65. vu32 SQR1;
  66. vu32 SQR2;
  67. vu32 SQR3;
  68. vu32 JSQR;
  69. vu32 JDR1;
  70. vu32 JDR2;
  71. vu32 JDR3;
  72. vu32 JDR4;
  73. vu32 DR;
  74. } ADC_TypeDef;
  75. /*------------------------ Backup Registers ----------------------------------*/
  76. typedef struct
  77. {
  78. u32 RESERVED0;
  79. vu16 DR1;
  80. u16 RESERVED1;
  81. vu16 DR2;
  82. u16 RESERVED2;
  83. vu16 DR3;
  84. u16 RESERVED3;
  85. vu16 DR4;
  86. u16 RESERVED4;
  87. vu16 DR5;
  88. u16 RESERVED5;
  89. vu16 DR6;
  90. u16 RESERVED6;
  91. vu16 DR7;
  92. u16 RESERVED7;
  93. vu16 DR8;
  94. u16 RESERVED8;
  95. vu16 DR9;
  96. u16 RESERVED9;
  97. vu16 DR10;
  98. u16 RESERVED10;
  99. vu16 RTCCR;
  100. u16 RESERVED11;
  101. vu16 CR;
  102. u16 RESERVED12;
  103. vu16 CSR;
  104. u16 RESERVED13;
  105. } BKP_TypeDef;
  106. /*------------------------ Controller Area Network ---------------------------*/
  107. typedef struct
  108. {
  109. vu32 TIR;
  110. vu32 TDTR;
  111. vu32 TDLR;
  112. vu32 TDHR;
  113. } CAN_TxMailBox_TypeDef;
  114. typedef struct
  115. {
  116. vu32 RIR;
  117. vu32 RDTR;
  118. vu32 RDLR;
  119. vu32 RDHR;
  120. } CAN_FIFOMailBox_TypeDef;
  121. typedef struct
  122. {
  123. vu32 FR0;
  124. vu32 FR1;
  125. } CAN_FilterRegister_TypeDef;
  126. typedef struct
  127. {
  128. vu32 MCR;
  129. vu32 MSR;
  130. vu32 TSR;
  131. vu32 RF0R;
  132. vu32 RF1R;
  133. vu32 IER;
  134. vu32 ESR;
  135. vu32 BTR;
  136. u32 RESERVED0[88];
  137. CAN_TxMailBox_TypeDef sTxMailBox[3];
  138. CAN_FIFOMailBox_TypeDef sFIFOMailBox[2];
  139. u32 RESERVED1[12];
  140. vu32 FMR;
  141. vu32 FM0R;
  142. u32 RESERVED2[1];
  143. vu32 FS0R;
  144. u32 RESERVED3[1];
  145. vu32 FFA0R;
  146. u32 RESERVED4[1];
  147. vu32 FA0R;
  148. u32 RESERVED5[8];
  149. CAN_FilterRegister_TypeDef sFilterRegister[14];
  150. } CAN_TypeDef;
  151. /*------------------------ DMA Controller ------------------------------------*/
  152. typedef struct
  153. {
  154. vu32 CCR;
  155. vu32 CNDTR;
  156. vu32 CPAR;
  157. vu32 CMAR;
  158. } DMA_Channel_TypeDef;
  159. typedef struct
  160. {
  161. vu32 ISR;
  162. vu32 IFCR;
  163. } DMA_TypeDef;
  164. /*------------------------ External Interrupt/Event Controller ---------------*/
  165. typedef struct
  166. {
  167. vu32 IMR;
  168. vu32 EMR;
  169. vu32 RTSR;
  170. vu32 FTSR;
  171. vu32 SWIER;
  172. vu32 PR;
  173. } EXTI_TypeDef;
  174. /*------------------------ FLASH and Option Bytes Registers ------------------*/
  175. typedef struct
  176. {
  177. vu32 ACR;
  178. vu32 KEYR;
  179. vu32 OPTKEYR;
  180. vu32 SR;
  181. vu32 CR;
  182. vu32 AR;
  183. vu32 RESERVED;
  184. vu32 OBR;
  185. vu32 WRPR;
  186. } FLASH_TypeDef;
  187. typedef struct
  188. {
  189. vu16 RDP;
  190. vu16 USER;
  191. vu16 Data0;
  192. vu16 Data1;
  193. vu16 WRP0;
  194. vu16 WRP1;
  195. vu16 WRP2;
  196. vu16 WRP3;
  197. } OB_TypeDef;
  198. /*------------------------ General Purpose and Alternate Function IO ---------*/
  199. typedef struct
  200. {
  201. vu32 CRL;
  202. vu32 CRH;
  203. vu32 IDR;
  204. vu32 ODR;
  205. vu32 BSRR;
  206. vu32 BRR;
  207. vu32 LCKR;
  208. } GPIO_TypeDef;
  209. typedef struct
  210. {
  211. vu32 EVCR;
  212. vu32 MAPR;
  213. vu32 EXTICR[4];
  214. } AFIO_TypeDef;
  215. /*------------------------ Inter-integrated Circuit Interface ----------------*/
  216. typedef struct
  217. {
  218. vu16 CR1;
  219. u16 RESERVED0;
  220. vu16 CR2;
  221. u16 RESERVED1;
  222. vu16 OAR1;
  223. u16 RESERVED2;
  224. vu16 OAR2;
  225. u16 RESERVED3;
  226. vu16 DR;
  227. u16 RESERVED4;
  228. vu16 SR1;
  229. u16 RESERVED5;
  230. vu16 SR2;
  231. u16 RESERVED6;
  232. vu16 CCR;
  233. u16 RESERVED7;
  234. vu16 TRISE;
  235. u16 RESERVED8;
  236. } I2C_TypeDef;
  237. /*------------------------ Independent WATCHDOG ------------------------------*/
  238. typedef struct
  239. {
  240. vu32 KR;
  241. vu32 PR;
  242. vu32 RLR;
  243. vu32 SR;
  244. } IWDG_TypeDef;
  245. /*------------------------ Nested Vectored Interrupt Controller --------------*/
  246. typedef struct
  247. {
  248. vu32 ISER[2];
  249. u32 RESERVED0[30];
  250. vu32 ICER[2];
  251. u32 RSERVED1[30];
  252. vu32 ISPR[2];
  253. u32 RESERVED2[30];
  254. vu32 ICPR[2];
  255. u32 RESERVED3[30];
  256. vu32 IABR[2];
  257. u32 RESERVED4[62];
  258. vu32 IPR[11];
  259. } NVIC_TypeDef;
  260. typedef struct
  261. {
  262. vuc32 CPUID;
  263. vu32 ICSR;
  264. vu32 VTOR;
  265. vu32 AIRCR;
  266. vu32 SCR;
  267. vu32 CCR;
  268. vu32 SHPR[3];
  269. vu32 SHCSR;
  270. vu32 CFSR;
  271. vu32 HFSR;
  272. vu32 DFSR;
  273. vu32 MMFAR;
  274. vu32 BFAR;
  275. vu32 AFSR;
  276. } SCB_TypeDef;
  277. /*------------------------ Power Control -------------------------------------*/
  278. typedef struct
  279. {
  280. vu32 CR;
  281. vu32 CSR;
  282. } PWR_TypeDef;
  283. /*------------------------ Reset and Clock Control ---------------------------*/
  284. typedef struct
  285. {
  286. vu32 CR;
  287. vu32 CFGR;
  288. vu32 CIR;
  289. vu32 APB2RSTR;
  290. vu32 APB1RSTR;
  291. vu32 AHBENR;
  292. vu32 APB2ENR;
  293. vu32 APB1ENR;
  294. vu32 BDCR;
  295. vu32 CSR;
  296. } RCC_TypeDef;
  297. /*------------------------ Real-Time Clock -----------------------------------*/
  298. typedef struct
  299. {
  300. vu16 CRH;
  301. u16 RESERVED0;
  302. vu16 CRL;
  303. u16 RESERVED1;
  304. vu16 PRLH;
  305. u16 RESERVED2;
  306. vu16 PRLL;
  307. u16 RESERVED3;
  308. vu16 DIVH;
  309. u16 RESERVED4;
  310. vu16 DIVL;
  311. u16 RESERVED5;
  312. vu16 CNTH;
  313. u16 RESERVED6;
  314. vu16 CNTL;
  315. u16 RESERVED7;
  316. vu16 ALRH;
  317. u16 RESERVED8;
  318. vu16 ALRL;
  319. u16 RESERVED9;
  320. } RTC_TypeDef;
  321. /*------------------------ Serial Peripheral Interface -----------------------*/
  322. typedef struct
  323. {
  324. vu16 CR1;
  325. u16 RESERVED0;
  326. vu16 CR2;
  327. u16 RESERVED1;
  328. vu16 SR;
  329. u16 RESERVED2;
  330. vu16 DR;
  331. u16 RESERVED3;
  332. vu16 CRCPR;
  333. u16 RESERVED4;
  334. vu16 RXCRCR;
  335. u16 RESERVED5;
  336. vu16 TXCRCR;
  337. u16 RESERVED6;
  338. } SPI_TypeDef;
  339. /*------------------------ SystemTick ----------------------------------------*/
  340. typedef struct
  341. {
  342. vu32 CTRL;
  343. vu32 LOAD;
  344. vu32 VAL;
  345. vuc32 CALIB;
  346. } SysTick_TypeDef;
  347. /*------------------------ Advanced Control Timer ----------------------------*/
  348. typedef struct
  349. {
  350. vu16 CR1;
  351. u16 RESERVED0;
  352. vu16 CR2;
  353. u16 RESERVED1;
  354. vu16 SMCR;
  355. u16 RESERVED2;
  356. vu16 DIER;
  357. u16 RESERVED3;
  358. vu16 SR;
  359. u16 RESERVED4;
  360. vu16 EGR;
  361. u16 RESERVED5;
  362. vu16 CCMR1;
  363. u16 RESERVED6;
  364. vu16 CCMR2;
  365. u16 RESERVED7;
  366. vu16 CCER;
  367. u16 RESERVED8;
  368. vu16 CNT;
  369. u16 RESERVED9;
  370. vu16 PSC;
  371. u16 RESERVED10;
  372. vu16 ARR;
  373. u16 RESERVED11;
  374. vu16 RCR;
  375. u16 RESERVED12;
  376. vu16 CCR1;
  377. u16 RESERVED13;
  378. vu16 CCR2;
  379. u16 RESERVED14;
  380. vu16 CCR3;
  381. u16 RESERVED15;
  382. vu16 CCR4;
  383. u16 RESERVED16;
  384. vu16 BDTR;
  385. u16 RESERVED17;
  386. vu16 DCR;
  387. u16 RESERVED18;
  388. vu16 DMAR;
  389. u16 RESERVED19;
  390. } TIM1_TypeDef;
  391. /*------------------------ General Purpose Timer -----------------------------*/
  392. typedef struct
  393. {
  394. vu16 CR1;
  395. u16 RESERVED0;
  396. vu16 CR2;
  397. u16 RESERVED1;
  398. vu16 SMCR;
  399. u16 RESERVED2;
  400. vu16 DIER;
  401. u16 RESERVED3;
  402. vu16 SR;
  403. u16 RESERVED4;
  404. vu16 EGR;
  405. u16 RESERVED5;
  406. vu16 CCMR1;
  407. u16 RESERVED6;
  408. vu16 CCMR2;
  409. u16 RESERVED7;
  410. vu16 CCER;
  411. u16 RESERVED8;
  412. vu16 CNT;
  413. u16 RESERVED9;
  414. vu16 PSC;
  415. u16 RESERVED10;
  416. vu16 ARR;
  417. u16 RESERVED11[3];
  418. vu16 CCR1;
  419. u16 RESERVED12;
  420. vu16 CCR2;
  421. u16 RESERVED13;
  422. vu16 CCR3;
  423. u16 RESERVED14;
  424. vu16 CCR4;
  425. u16 RESERVED15[3];
  426. vu16 DCR;
  427. u16 RESERVED16;
  428. vu16 DMAR;
  429. u16 RESERVED17;
  430. } TIM_TypeDef;
  431. /*----------------- Universal Synchronous Asynchronous Receiver Transmitter --*/
  432. typedef struct
  433. {
  434. vu16 SR;
  435. u16 RESERVED0;
  436. vu16 DR;
  437. u16 RESERVED1;
  438. vu16 BRR;
  439. u16 RESERVED2;
  440. vu16 CR1;
  441. u16 RESERVED3;
  442. vu16 CR2;
  443. u16 RESERVED4;
  444. vu16 CR3;
  445. u16 RESERVED5;
  446. vu16 GTPR;
  447. u16 RESERVED6;
  448. } USART_TypeDef;
  449. /*------------------------ Window WATCHDOG -----------------------------------*/
  450. typedef struct
  451. {
  452. vu32 CR;
  453. vu32 CFR;
  454. vu32 SR;
  455. } WWDG_TypeDef;
  456. /******************************************************************************/
  457. /* Peripheral memory map */
  458. /******************************************************************************/
  459. /* Peripheral and SRAM base address in the alias region */
  460. #define PERIPH_BB_BASE ((u32)0x42000000)
  461. #define SRAM_BB_BASE ((u32)0x22000000)
  462. /* Peripheral and SRAM base address in the bit-band region */
  463. #define SRAM_BASE ((u32)0x20000000)
  464. #define PERIPH_BASE ((u32)0x40000000)
  465. /* Flash refisters base address */
  466. #define FLASH_BASE ((u32)0x40022000)
  467. /* Flash Option Bytes base address */
  468. #define OB_BASE ((u32)0x1FFFF800)
  469. /* Peripheral memory map */
  470. #define APB1PERIPH_BASE PERIPH_BASE
  471. #define APB2PERIPH_BASE (PERIPH_BASE + 0x10000)
  472. #define AHBPERIPH_BASE (PERIPH_BASE + 0x20000)
  473. #define TIM2_BASE (APB1PERIPH_BASE + 0x0000)
  474. #define TIM3_BASE (APB1PERIPH_BASE + 0x0400)
  475. #define TIM4_BASE (APB1PERIPH_BASE + 0x0800)
  476. #define RTC_BASE (APB1PERIPH_BASE + 0x2800)
  477. #define WWDG_BASE (APB1PERIPH_BASE + 0x2C00)
  478. #define IWDG_BASE (APB1PERIPH_BASE + 0x3000)
  479. #define SPI2_BASE (APB1PERIPH_BASE + 0x3800)
  480. #define USART2_BASE (APB1PERIPH_BASE + 0x4400)
  481. #define USART3_BASE (APB1PERIPH_BASE + 0x4800)
  482. #define I2C1_BASE (APB1PERIPH_BASE + 0x5400)
  483. #define I2C2_BASE (APB1PERIPH_BASE + 0x5800)
  484. #define CAN_BASE (APB1PERIPH_BASE + 0x6400)
  485. #define BKP_BASE (APB1PERIPH_BASE + 0x6C00)
  486. #define PWR_BASE (APB1PERIPH_BASE + 0x7000)
  487. #define AFIO_BASE (APB2PERIPH_BASE + 0x0000)
  488. #define EXTI_BASE (APB2PERIPH_BASE + 0x0400)
  489. #define GPIOA_BASE (APB2PERIPH_BASE + 0x0800)
  490. #define GPIOB_BASE (APB2PERIPH_BASE + 0x0C00)
  491. #define GPIOC_BASE (APB2PERIPH_BASE + 0x1000)
  492. #define GPIOD_BASE (APB2PERIPH_BASE + 0x1400)
  493. #define GPIOE_BASE (APB2PERIPH_BASE + 0x1800)
  494. #define ADC1_BASE (APB2PERIPH_BASE + 0x2400)
  495. #define ADC2_BASE (APB2PERIPH_BASE + 0x2800)
  496. #define TIM1_BASE (APB2PERIPH_BASE + 0x2C00)
  497. #define SPI1_BASE (APB2PERIPH_BASE + 0x3000)
  498. #define USART1_BASE (APB2PERIPH_BASE + 0x3800)
  499. #define TIM15_BASE (APB2PERIPH_BASE + 0x4000)
  500. #define TIM16_BASE (APB2PERIPH_BASE + 0x4400)
  501. #define TIM17_BASE (APB2PERIPH_BASE + 0x4800)
  502. #define DMA_BASE (AHBPERIPH_BASE + 0x0000)
  503. #define DMA_Channel1_BASE (AHBPERIPH_BASE + 0x0008)
  504. #define DMA_Channel2_BASE (AHBPERIPH_BASE + 0x001C)
  505. #define DMA_Channel3_BASE (AHBPERIPH_BASE + 0x0030)
  506. #define DMA_Channel4_BASE (AHBPERIPH_BASE + 0x0044)
  507. #define DMA_Channel5_BASE (AHBPERIPH_BASE + 0x0058)
  508. #define DMA_Channel6_BASE (AHBPERIPH_BASE + 0x006C)
  509. #define DMA_Channel7_BASE (AHBPERIPH_BASE + 0x0080)
  510. #define RCC_BASE (AHBPERIPH_BASE + 0x1000)
  511. /* System Control Space memory map */
  512. #define SCS_BASE ((u32)0xE000E000)
  513. #define SysTick_BASE (SCS_BASE + 0x0010)
  514. #define NVIC_BASE (SCS_BASE + 0x0100)
  515. #define SCB_BASE (SCS_BASE + 0x0D00)
  516. /******************************************************************************/
  517. /* Peripheral declaration */
  518. /******************************************************************************/
  519. #define TIM1 ((TIM1_TypeDef *) TIM1_BASE)
  520. #define TIM2 ((TIM_TypeDef *) TIM2_BASE)
  521. #define TIM3 ((TIM_TypeDef *) TIM3_BASE)
  522. #define TIM4 ((TIM_TypeDef *) TIM4_BASE)
  523. #define TIM15 ((TIM_TypeDef *) TIM15_BASE)
  524. #define TIM16 ((TIM_TypeDef *) TIM16_BASE)
  525. #define TIM17 ((TIM_TypeDef *) TIM17_BASE)
  526. #define RTC ((RTC_TypeDef *) RTC_BASE)
  527. #define WWDG ((WWDG_TypeDef *) WWDG_BASE)
  528. #define IWDG ((IWDG_TypeDef *) IWDG_BASE)
  529. #define USART2 ((USART_TypeDef *) USART2_BASE)
  530. #define USART3 ((USART_TypeDef *) USART3_BASE)
  531. #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
  532. #define I2C2 ((I2C_TypeDef *) I2C2_BASE)
  533. #define CAN ((CAN_TypeDef *) CAN_BASE)
  534. #define BKP ((BKP_TypeDef *) BKP_BASE)
  535. #define PWR ((PWR_TypeDef *) PWR_BASE)
  536. #define AFIO ((AFIO_TypeDef *) AFIO_BASE)
  537. #define EXTI ((EXTI_TypeDef *) EXTI_BASE)
  538. #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
  539. #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
  540. #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
  541. #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
  542. #define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
  543. #define ADC1 ((ADC_TypeDef *) ADC1_BASE)
  544. #define ADC2 ((ADC_TypeDef *) ADC2_BASE)
  545. #define SPI1 ((SPI_TypeDef *) SPI1_BASE)
  546. #define SPI2 ((SPI_TypeDef *) SPI2_BASE)
  547. #define USART1 ((USART_TypeDef *) USART1_BASE)
  548. #define DMA ((DMA_TypeDef *) DMA_BASE)
  549. #define DMA_Channel1 ((DMA_Channel_TypeDef *) DMA_Channel1_BASE)
  550. #define DMA_Channel2 ((DMA_Channel_TypeDef *) DMA_Channel2_BASE)
  551. #define DMA_Channel3 ((DMA_Channel_TypeDef *) DMA_Channel3_BASE)
  552. #define DMA_Channel4 ((DMA_Channel_TypeDef *) DMA_Channel4_BASE)
  553. #define DMA_Channel5 ((DMA_Channel_TypeDef *) DMA_Channel5_BASE)
  554. #define DMA_Channel6 ((DMA_Channel_TypeDef *) DMA_Channel6_BASE)
  555. #define DMA_Channel7 ((DMA_Channel_TypeDef *) DMA_Channel7_BASE)
  556. #define FLASH ((FLASH_TypeDef *) FLASH_BASE)
  557. #define OB ((OB_TypeDef *) OB_BASE)
  558. #define RCC ((RCC_TypeDef *) RCC_BASE)
  559. #define SysTick ((SysTick_TypeDef *) SysTick_BASE)
  560. #define NVIC ((NVIC_TypeDef *) NVIC_BASE)
  561. #define SCB ((SCB_TypeDef *) SCB_BASE)
  562. #endif