| поискавой системы для электроныых деталей |
|
AN4141 датащи(PDF) 19 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4141 датащи(HTML) 19 Page - STMicroelectronics |
|
19 / 42 page ![]() DocID023425 Rev 2 19/42 AN4141 HAL to StdPeriph_Lib list of changes /* #define USE_STDPERIPH_DRIVER */ #endif /* USE_STDPERIPH_DRIVER */ • File core_cm3.h (CMSIS Cortex-M3 Core Peripheral Access Layer) contains: – Cortex-M3 Core memory mapping and physical register address definition – Cortex-M3 instructions – Cortex-M3 C and assembly functions that ease access to the Cortex-M3 Core File stm32w108xx_type.h is replaced with file <stdint.h>. Library-specific types have been added into file stm32w108xx.h (FlagStatus, ITStatus, FunctionalState, ErrorStatus). Old types have been removed. File spmr.s79 is replaced with file core_cmFunc.h (CMSIS Cortex-M Core Function Access). (refer to Table 2: HAL macros vs. CMSIS macros) 3.1.2 Library drivers To migrate to the standard library, we need to decide whether the run time board configuration concept should be removed in order to reduce the code size for the user application. Such decision impacts: • HAL boards resources configuration files. – Files led.c/.h and button.c/.h are removed and updated by board driver files MBxxx.c/.h. Function halInitLed() is updated by STM_EVAL_LEDInit(). Function halToogleLed() is updated by STM_EVAL_LEDToggle(). Function halSetLed() is updated by STM_EVAL_LEDOn(). Function halClearLed() is updated by STM_EVAL_LEDOff(). –Driver board.c/.h is updated by removing all the board resources definitions. Only these two useful APIs have been kept: halBoardPowerUp(): performs board-specific action to power up the system halBoardPowerDown(): performs board-specific action to power down the system The following two functions have been edited to use the board resource drivers provided within driver StdPeriph (MBxxx.c/.h) and in the common board drivers: Function halGetButtonStatus() is updated by STM_EVAL_PBGetState(). Function halInitButton() is updated by STM_EVAL_PBInit(). – The MEMS drivers (mems.c/.h and mems_regs.h) are removed from the HAL and updated by the common MEMS driver (mbxxx_i2c_lis302dl.c/.h) within the StdPeriph driver. – The temperature sensor driver (temperature_sensor.c/.h) is removed from the HAL and updated by the common temperature sensor driver (mbxxx_adc_tsensor.c/.h) within the StdPeriph driver. – A new common driver is developed to manage the basic I2C eeprom functionality (mbxxx_i2c_ee.c/.h). • User Application Project – The user should build a specific project by board and by product. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |