Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3985 Datasheet(PDF) 99 Page - STMicroelectronics

Part # AN3985
Description  Using the CR95HF library with STM8L microcontrollers
PDF  105 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3985 Datasheet(HTML) 99 Page - STMicroelectronics

Back Button AN3985 Datasheet HTML 95Page - STMicroelectronics AN3985 Datasheet HTML 96Page - STMicroelectronics AN3985 Datasheet HTML 97Page - STMicroelectronics AN3985 Datasheet HTML 98Page - STMicroelectronics AN3985 Datasheet HTML 99Page - STMicroelectronics AN3985 Datasheet HTML 100Page - STMicroelectronics AN3985 Datasheet HTML 101Page - STMicroelectronics AN3985 Datasheet HTML 102Page - STMicroelectronics AN3985 Datasheet HTML 103Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 99 / 105 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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