| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN3985 bảng dữ liệu(PDF) 99 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3985 bảng dữ liệu(HTML) 99 Page - STMicroelectronics |
|
99 / 105 page ![]() AN3985 Application example Doc ID 022255 Rev 2 99/105 8.5 Compilation management This firmware embeds all the commands of CR95HF devices, LRIxK and M24LRxx contactless tag. Furthermore, some advanced functionalities are available such as the tag detection state or the read/write multiple block process. All these features consume memory space and can be removed to minimize the code size. 8.5.1 Conditional compilation In order to save STM8L memory space, several actions have been performed. The main one is the conditional compilation. This allows to determine what is needed. There are three levels of conditional compilation. Level 1: STM8L15x_StPeriph_Driver All the functions that are not called within the library are not compiled. In order to use those functions, there are two solutions: Solution 1: Locate in the .h file of the peripheral concerned the following command (right after the includes) //#define USE_FULL_"peripheral concerned"_ Board (a) and uncomment the line. As a consequence, all the functions will become available. Solution 2: Locate the function to release and erase the #ifdef USE_FULL_"peripheralconcerned"_ Board and #endif commands. If the function is in a group of functions, insert a #endif before the function and a #ifdef USE_FULL_"peripheralconcerned"_ Board right after. This procedure should be done in both the .c and the .h files. Level 2: Board Specificities This level is completely transparent because it is related to boards. The specific I/O configurations linked to one board (STM8L 1528-Eval for example) are not compiled on the other board (STM8L Discovery for example). Level 3: Functionalities Several functionalities are available within the libraries. Table 149 lists the functionalities and the commands to uncomment to use them. a. Where "peripheral concerned" is the name of the peripheral as written in its file. Table 149. Functionalities description Name of the functionality (brief) Description Code line to uncomment Location STM8L-1528 Eval To use the STM8L- 1528 Eval board #define BOARD_SELECTED_EV ALBOARD Board_config.h STM8L-Discovery Board To use the STM8L- Discovery board #define BOARD_SELECTED_DI SCOVERYBOARD Board_config.h RTC clock function Used in Low Power Mode, allows to generate an interruption at programmed time #define USE_RTC_CLOCK_FUN CTION Board_config.h |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |