Mbed for VNG board

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Wed Nov 05 14:30:08 2014 +0000
Revision:
387:643a59b3dbac
Synchronized with git revision cfeccf154f8f92c3ea9c0c881c577c154537aecc

Full URL: https://github.com/mbedmicro/mbed/commit/cfeccf154f8f92c3ea9c0c881c577c154537aecc/

Exporters: STM32L053R8 - IAR exporter

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 387:643a59b3dbac 1 Release Notes for STM32L0xx HAL Drivers
mbed_official 387:643a59b3dbac 2 Copyright 2014 STMicroelectronics
mbed_official 387:643a59b3dbac 3
mbed_official 387:643a59b3dbac 4
mbed_official 387:643a59b3dbac 5 Changes for MBED
mbed_official 387:643a59b3dbac 6 * Replace NULL by HAL_NULL to allow IAR compilation
mbed_official 387:643a59b3dbac 7
mbed_official 387:643a59b3dbac 8
mbed_official 387:643a59b3dbac 9 V1.1.0 / 18-June-2014
mbed_official 387:643a59b3dbac 10
mbed_official 387:643a59b3dbac 11 Main Changes
mbed_official 387:643a59b3dbac 12
mbed_official 387:643a59b3dbac 13 * HAL generic update
mbed_official 387:643a59b3dbac 14 * Fix flag clear procedure: use atomic write operation "=" instead of ready-modify-write operation "|=" or "&="
mbed_official 387:643a59b3dbac 15 * Fix on Timeout management, Timeout value set to 0 passed to API automatically exits the function after checking the flag without any wait
mbed_official 387:643a59b3dbac 16 * Common update for the following communication peripherals: SPI, UART, USART and IRDA
mbed_official 387:643a59b3dbac 17 * Add DMA circular mode support
mbed_official 387:643a59b3dbac 18 * Remove lock from recursive process
mbed_official 387:643a59b3dbac 19 * Add new macro __HAL_RESET_HANDLE_STATE to reset a given handle state
mbed_official 387:643a59b3dbac 20 * When USE_RTOS == 1 (in stm32l0xx_hal_conf.h), the __HAL_LOCK() is not defined instead of being defined empty
mbed_official 387:643a59b3dbac 21 * Use “__IO const” instead of “__I”, to avoid any compilation issue when __cplusplus switch is defined
mbed_official 387:643a59b3dbac 22 * Add new functions for the DBGMCU module
mbed_official 387:643a59b3dbac 23 * HAL_EnableDBGSleepMode()
mbed_official 387:643a59b3dbac 24 * HAL_DisableDBGSleepMode()
mbed_official 387:643a59b3dbac 25 * HAL_EnableDBGStopMode()
mbed_official 387:643a59b3dbac 26 * HAL_DisableDBGStopMode()
mbed_official 387:643a59b3dbac 27 * HAL_EnableDBGStandbyMode()
mbed_official 387:643a59b3dbac 28 * HAL_DisableDBGStandbyMode()
mbed_official 387:643a59b3dbac 29 * Miscellaneous comments update
mbed_official 387:643a59b3dbac 30
mbed_official 387:643a59b3dbac 31 * HAL FLASH update
mbed_official 387:643a59b3dbac 32 * Add new functions: HAL_FLASHEx_OB_SelectPCROP() and HAL_FLASHEx_OB_DeSelectPCROP()
mbed_official 387:643a59b3dbac 33 * Some functions was renamed and moved to the extension files (stm32l0xx_hal_flash_ex.h/.c)
mbed_official 387:643a59b3dbac 34 * Rename FLASH_HalfPageProgram() into HAL_FLASHEx_HalfPageProgram()
mbed_official 387:643a59b3dbac 35 * Rename FLASH_EnableRunPowerDown() into HAL_FLASHEx_EnableRunPowerDown()
mbed_official 387:643a59b3dbac 36 * Rename FLASH_DisableRunPowerDown() into HAL_FLASHEx_DisableRunPowerDown()
mbed_official 387:643a59b3dbac 37 * Rename all HAL_DATA_EEPROMEx_xxx() functions into HAL_FLASHEx_DATAEEPROM_xxx()
mbed_official 387:643a59b3dbac 38 * Note: aliases has been added to keep compatibility with previous version
mbed_official 387:643a59b3dbac 39
mbed_official 387:643a59b3dbac 40 * HAL GPIO update
mbed_official 387:643a59b3dbac 41 * Remove IS_GET_GPIO_PIN macro
mbed_official 387:643a59b3dbac 42 * Add a new function HAL_GPIO_LockPin()
mbed_official 387:643a59b3dbac 43 * Private Macro __HAL_GET_GPIO_SOURCE renamed into GET_GPIO_SOURCE
mbed_official 387:643a59b3dbac 44
mbed_official 387:643a59b3dbac 45 * HAL DMA update
mbed_official 387:643a59b3dbac 46 * Fix in HAL_DMA_PollForTransfer() to set error code HAL_DMA_ERROR_TE in case of HAL_ERROR status
mbed_official 387:643a59b3dbac 47 * HAL PWR update
mbed_official 387:643a59b3dbac 48 * HAL_PWR_PVDConfig(): add clear of the EXTI trigger before new configuration
mbed_official 387:643a59b3dbac 49 * Fix in HAL_PWR_EnterSTANDBYMode() to not clear Wakeup flag (WUF), which need to be cleared at application level before to call this function
mbed_official 387:643a59b3dbac 50
mbed_official 387:643a59b3dbac 51 * HAL RCC update
mbed_official 387:643a59b3dbac 52 * Allow to calibrate the HSI when it is used as system clock source
mbed_official 387:643a59b3dbac 53 * Fix implementation of IS_RCC_OSCILLATORTYPE() macro
mbed_official 387:643a59b3dbac 54
mbed_official 387:643a59b3dbac 55 * HAL ADC update
mbed_official 387:643a59b3dbac 56 * Update ADC internal channels mapping: TEMPSENSOR connected to ADC_CHANNEL_18 and VLCD mapped to ADC_CHANNEL_16
mbed_official 387:643a59b3dbac 57 * Skip polling for ADRDY flag when Low Power Auto Off mode is enabled
mbed_official 387:643a59b3dbac 58
mbed_official 387:643a59b3dbac 59 * HAL COMP update
mbed_official 387:643a59b3dbac 60 * Add LPTIMConnection field in the COMP_InitTypeDef structure.
mbed_official 387:643a59b3dbac 61 * Add new defines: COMP_LPTIMCONNECTION_DISABLED, COMP_LPTIMCONNECTION_ENABLED
mbed_official 387:643a59b3dbac 62 * Add new macro IS_COMP_LPTIMCONNECTION
mbed_official 387:643a59b3dbac 63
mbed_official 387:643a59b3dbac 64 * HAL LPTIM update
mbed_official 387:643a59b3dbac 65 * Add CKPOL configuration for encoder mode
mbed_official 387:643a59b3dbac 66
mbed_official 387:643a59b3dbac 67 * HAL WWDG update
mbed_official 387:643a59b3dbac 68 * Miscellaneous minor update on the source code
mbed_official 387:643a59b3dbac 69
mbed_official 387:643a59b3dbac 70 * HAL IWDG update
mbed_official 387:643a59b3dbac 71 * Miscellaneous minor update on the source code
mbed_official 387:643a59b3dbac 72
mbed_official 387:643a59b3dbac 73 * HAL CRC update
mbed_official 387:643a59b3dbac 74 * Some functions was renamed and moved to the extension files (stm32l0xx_hal_crc_ex.h/.c)
mbed_official 387:643a59b3dbac 75 * HAL_CRC_Input_Data_Reverse() renamed into HAL_CRCEx_Input_Data_Reverse()
mbed_official 387:643a59b3dbac 76 * HAL_CRC_Output_Data_Reverse() renamed into HAL_CRCEx_Output_Data_Reverse()
mbed_official 387:643a59b3dbac 77 * Note: aliases has been added to keep compatibility with previous version
mbed_official 387:643a59b3dbac 78
mbed_official 387:643a59b3dbac 79 * HAL CRYP update
mbed_official 387:643a59b3dbac 80 * HAL_CRYP_ComputationCpltCallback() renamed into HAL_CRYPEx_ComputationCpltCallback() and moved to the extension files (stm32l0xx_hal_cryp_ex.h/.c)
mbed_official 387:643a59b3dbac 81 * Note: alias has been added to keep compatibility with previous version
mbed_official 387:643a59b3dbac 82
mbed_official 387:643a59b3dbac 83 * HAL I2C update
mbed_official 387:643a59b3dbac 84 * Add management of NACK event in Master transmitter mode and Slave transmitter/receiver modes (only in polling mode), in that case the current transfer is stopped.
mbed_official 387:643a59b3dbac 85
mbed_official 387:643a59b3dbac 86 * HAL SMBUS update
mbed_official 387:643a59b3dbac 87 * Add a new function: HAL_SMBUS_DisableListen_IT()
mbed_official 387:643a59b3dbac 88 * Add aliases for the following functions
mbed_official 387:643a59b3dbac 89 * #define HAL_SMBUS_Slave_Listen_IT             HAL_SMBUS_EnableListen_IT
mbed_official 387:643a59b3dbac 90 * #define HAL_SMBUS_SlaveAddrCallback         HAL_SMBUS_AddrCallback
mbed_official 387:643a59b3dbac 91 * #define HAL_SMBUS_SlaveListenCpltCallback HAL_SMBUS_ListenCpltCallback
mbed_official 387:643a59b3dbac 92 * Add alias HAL_SMBUS_STATE_SLAVE_LISTEN for the constant HAL_SMBUS_STATE_LISTEN
mbed_official 387:643a59b3dbac 93
mbed_official 387:643a59b3dbac 94 * HAL UART update
mbed_official 387:643a59b3dbac 95 * HAL_UART_WakeupCallback() renamed into HAL_UART_WakeupCallback() and moved to the extension files (stm32l0xx_hal_cryp_ex.h/.c)
mbed_official 387:643a59b3dbac 96 * Add new macros to control CTS and RTS
mbed_official 387:643a59b3dbac 97 * Add specific macros to manage the flags cleared only by a software sequence
mbed_official 387:643a59b3dbac 98 * __HAL_UART_CLEAR_PEFLAG()
mbed_official 387:643a59b3dbac 99 * __HAL_UART_CLEAR_FEFLAG()
mbed_official 387:643a59b3dbac 100 * __HAL_UART_CLEAR_NEFLAG()
mbed_official 387:643a59b3dbac 101 * __HAL_UART_CLEAR_OREFLAG()
mbed_official 387:643a59b3dbac 102 * __HAL_UART_CLEAR_IDLEFLAG()
mbed_official 387:643a59b3dbac 103 * Add several enhancements without affecting the driver functionalities
mbed_official 387:643a59b3dbac 104 * Remove the check on RXNE set after reading the Data in the DR register
mbed_official 387:643a59b3dbac 105 * Update the transmit processes to use TXE instead of TC
mbed_official 387:643a59b3dbac 106 * Update HAL_UART_Transmit_IT() to enable UART_IT_TXE instead of UART_IT_TC
mbed_official 387:643a59b3dbac 107
mbed_official 387:643a59b3dbac 108 * HAL USART update
mbed_official 387:643a59b3dbac 109 * Add specific macros to manage the flags cleared only by a software sequence
mbed_official 387:643a59b3dbac 110 * __HAL_USART_CLEAR_PEFLAG()
mbed_official 387:643a59b3dbac 111 * __HAL_USART_CLEAR_FEFLAG()
mbed_official 387:643a59b3dbac 112 * __HAL_USART_CLEAR_NEFLAG()
mbed_official 387:643a59b3dbac 113 * __HAL_USART_CLEAR_OREFLAG()
mbed_official 387:643a59b3dbac 114 * __HAL_USART_CLEAR_IDLEFLAG()
mbed_official 387:643a59b3dbac 115 * Update HAL_USART_Transmit_IT() to enable USART_IT_TXE instead of USART_IT_TC
mbed_official 387:643a59b3dbac 116
mbed_official 387:643a59b3dbac 117 * HAL IRDA update
mbed_official 387:643a59b3dbac 118 * Add specific macros to manage the flags cleared only by a software sequence
mbed_official 387:643a59b3dbac 119 * __HAL_IRDA_CLEAR_PEFLAG()
mbed_official 387:643a59b3dbac 120 * __HAL_ IRDA _CLEAR_FEFLAG()
mbed_official 387:643a59b3dbac 121 * __HAL_ IRDA _CLEAR_NEFLAG()
mbed_official 387:643a59b3dbac 122 * __HAL_ IRDA _CLEAR_OREFLAG()
mbed_official 387:643a59b3dbac 123 * __HAL_ IRDA _CLEAR_IDLEFLAG()
mbed_official 387:643a59b3dbac 124 * Add several enhancements without affecting the driver functionalities
mbed_official 387:643a59b3dbac 125 o Remove the check on RXNE set after reading the Data in the DR register
mbed_official 387:643a59b3dbac 126 o Update HAL_IRDA_Transmit_IT() to enable IRDA_IT_TXE instead of IRDA_IT_TC
mbed_official 387:643a59b3dbac 127 * Add the following APIs used within DMA process
mbed_official 387:643a59b3dbac 128 o HAL_StatusTypeDef HAL_IRDA_DMAPause(IRDA_HandleTypeDef *hirda);
mbed_official 387:643a59b3dbac 129 o HAL_StatusTypeDef HAL_IRDA_DMAResume(IRDA_HandleTypeDef *hirda);
mbed_official 387:643a59b3dbac 130 o HAL_StatusTypeDef HAL_IRDA_DMAStop(IRDA_HandleTypeDef *hirda);
mbed_official 387:643a59b3dbac 131 o void HAL_IRDA_TxHalfCpltCallback(IRDA_HandleTypeDef *hirda);
mbed_official 387:643a59b3dbac 132 o void HAL_IRDA_RxHalfCpltCallback(IRDA_HandleTypeDef *hirda);
mbed_official 387:643a59b3dbac 133
mbed_official 387:643a59b3dbac 134 * HAL SMARTCARD update
mbed_official 387:643a59b3dbac 135 * Add specific macros to manage the flags cleared only by a software sequence
mbed_official 387:643a59b3dbac 136 o __HAL_SMARTCARD_CLEAR_PEFLAG()
mbed_official 387:643a59b3dbac 137 o __HAL_SMARTCARD_CLEAR_FEFLAG()
mbed_official 387:643a59b3dbac 138 o __HAL_SMARTCARD_CLEAR_NEFLAG()
mbed_official 387:643a59b3dbac 139 o __HAL_SMARTCARD_CLEAR_OREFLAG()
mbed_official 387:643a59b3dbac 140 o __HAL_SMARTCARD_CLEAR_IDLEFLAG()
mbed_official 387:643a59b3dbac 141 * Add several enhancements without affecting the driver functionalities
mbed_official 387:643a59b3dbac 142 o Add a new state HAL_SMARTCARD_STATE_BUSY_TX_RX and all processes has been updated accordingly
mbed_official 387:643a59b3dbac 143 o Update HAL_SMARTCARD_Transmit_IT() to enable SMARTCARD_IT_TXE instead of SMARTCARD_IT_TC
mbed_official 387:643a59b3dbac 144
mbed_official 387:643a59b3dbac 145 * HAL SPI update
mbed_official 387:643a59b3dbac 146 * Bugs fix
mbed_official 387:643a59b3dbac 147 * SPI interface is used in synchronous polling mode: at high clock rates like SPI prescaler 2 and 4, calling
mbed_official 387:643a59b3dbac 148 HAL_SPI_TransmitReceive() returns with error HAL_TIMEOUT
mbed_official 387:643a59b3dbac 149 * HAL_SPI_TransmitReceive_DMA() does not clean up the TX DMA, so any subsequent SPI calls return the DMA error
mbed_official 387:643a59b3dbac 150 * HAL_SPI_Transmit_DMA() is failing when data size is equal to 1 byte
mbed_official 387:643a59b3dbac 151 * Add the following APIs used within the DMA process
mbed_official 387:643a59b3dbac 152 * HAL_StatusTypeDef HAL_SPI_DMAPause(SPI_HandleTypeDef *hspi);
mbed_official 387:643a59b3dbac 153 * HAL_StatusTypeDef HAL_SPI_DMAResume(SPI_HandleTypeDef *hspi);
mbed_official 387:643a59b3dbac 154 * HAL_StatusTypeDef HAL_SPI_DMAStop(SPI_HandleTypeDef *hspi);
mbed_official 387:643a59b3dbac 155 * void HAL_SPI_TxHalfCpltCallback(SPI_HandleTypeDef *hspi);
mbed_official 387:643a59b3dbac 156 * void HAL_SPI_RxHalfCpltCallback(SPI_HandleTypeDef *hspi);
mbed_official 387:643a59b3dbac 157 * void HAL_SPI_TxRxHalfCpltCallback(SPI_HandleTypeDef *hspi);
mbed_official 387:643a59b3dbac 158
mbed_official 387:643a59b3dbac 159 * HAL TSC update
mbed_official 387:643a59b3dbac 160 o Fix value of the constant TSC_ACQ_MODE_SYNCHRO
mbed_official 387:643a59b3dbac 161
mbed_official 387:643a59b3dbac 162 * HAL PCD update
mbed_official 387:643a59b3dbac 163 o Add new macro __HAL_USB_EXTI_GENERATE_SWIT()
mbed_official 387:643a59b3dbac 164
mbed_official 387:643a59b3dbac 165
mbed_official 387:643a59b3dbac 166 V1.0.0 / 22-April-2014
mbed_official 387:643a59b3dbac 167
mbed_official 387:643a59b3dbac 168 Main Changes
mbed_official 387:643a59b3dbac 169 First official release.
mbed_official 387:643a59b3dbac 170
mbed_official 387:643a59b3dbac 171 License
mbed_official 387:643a59b3dbac 172 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
mbed_official 387:643a59b3dbac 173 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
mbed_official 387:643a59b3dbac 174 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
mbed_official 387:643a59b3dbac 175 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived
mbed_official 387:643a59b3dbac 176        from this software without specific prior written permission.
mbed_official 387:643a59b3dbac 177
mbed_official 387:643a59b3dbac 178 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 387:643a59b3dbac 179
mbed_official 387:643a59b3dbac 180 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32