| Electronic Components Datasheet Search |
|
UM0097 Datasheet(PDF) 48 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0097 Datasheet(HTML) 48 Page - STMicroelectronics |
|
48 / 229 page ![]() Peripheral firmware overview UM0097 48/229 The APB bridges are declared in the same file: ... #define APB1_BASE 0xC0000000 #define APB2_BASE 0xE0000000 .... #ifndef DEBUG ... #ifdef _APB1 #define APB1 ((APB_TypeDef *)(APB1_BASE+0x10)) #endif /*APB1*/ #ifdef _APB2 #define APB2 ((APB_TypeDef *)(APB2_BASE+0x10)) #endif /*APB2*/ ... #else /* DEBUG */ ... #ifdef _APB1 EXT APB_TypeDef *APB1; #endif /*APB1*/ #ifdef _APB2 EXT APB_TypeDef *APB2; #endif /*APB2*/ ... #endif When debug mode is used, APB pointer is initialized in 71x_lib.c file: #ifdef _APB1 #ifdef _APB1 APB1 = (APB_TypeDef *) (APB1_BASE + 0x10); #endif #endif /* _APB1 */ #ifdef _APB2 APB2 = (APB_TypeDef *) (APB2_BASE + 0x10); #endif /* _APB2 */ In debug mode the following macros are defined in 71x_conf.h file: ● _APB is defined to include the APB library ● _APB1 and _APB2 are defined to access the corresponding peripheral registers. #define _APB #define _APB1 #define _APB2 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |