Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_sai_ex.h@1:f30bdcd2b33b, 2017-02-27 (annotated)
- Committer:
- jacobjohnson
- Date:
- Mon Feb 27 17:45:05 2017 +0000
- Revision:
- 1:f30bdcd2b33b
- Parent:
- 0:098463de4c5d
changed the inputscale from 1 to 7 in analogin_api.c. This will need to be changed later, and accessed from the main level, but for now this allows the adc to read a value from 0 to 3.7V, instead of just up to 1V.;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| group-onsemi | 0:098463de4c5d | 1 | /** |
| group-onsemi | 0:098463de4c5d | 2 | ****************************************************************************** |
| group-onsemi | 0:098463de4c5d | 3 | * @file stm32f4xx_hal_sai_ex.h |
| group-onsemi | 0:098463de4c5d | 4 | * @author MCD Application Team |
| group-onsemi | 0:098463de4c5d | 5 | * @version V1.5.0 |
| group-onsemi | 0:098463de4c5d | 6 | * @date 06-May-2016 |
| group-onsemi | 0:098463de4c5d | 7 | * @brief Header file of SAI Extension HAL module. |
| group-onsemi | 0:098463de4c5d | 8 | ****************************************************************************** |
| group-onsemi | 0:098463de4c5d | 9 | * @attention |
| group-onsemi | 0:098463de4c5d | 10 | * |
| group-onsemi | 0:098463de4c5d | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
| group-onsemi | 0:098463de4c5d | 12 | * |
| group-onsemi | 0:098463de4c5d | 13 | * Redistribution and use in source and binary forms, with or without modification, |
| group-onsemi | 0:098463de4c5d | 14 | * are permitted provided that the following conditions are met: |
| group-onsemi | 0:098463de4c5d | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
| group-onsemi | 0:098463de4c5d | 16 | * this list of conditions and the following disclaimer. |
| group-onsemi | 0:098463de4c5d | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| group-onsemi | 0:098463de4c5d | 18 | * this list of conditions and the following disclaimer in the documentation |
| group-onsemi | 0:098463de4c5d | 19 | * and/or other materials provided with the distribution. |
| group-onsemi | 0:098463de4c5d | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| group-onsemi | 0:098463de4c5d | 21 | * may be used to endorse or promote products derived from this software |
| group-onsemi | 0:098463de4c5d | 22 | * without specific prior written permission. |
| group-onsemi | 0:098463de4c5d | 23 | * |
| group-onsemi | 0:098463de4c5d | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| group-onsemi | 0:098463de4c5d | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| group-onsemi | 0:098463de4c5d | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| group-onsemi | 0:098463de4c5d | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| group-onsemi | 0:098463de4c5d | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| group-onsemi | 0:098463de4c5d | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| group-onsemi | 0:098463de4c5d | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| group-onsemi | 0:098463de4c5d | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| group-onsemi | 0:098463de4c5d | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| group-onsemi | 0:098463de4c5d | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| group-onsemi | 0:098463de4c5d | 34 | * |
| group-onsemi | 0:098463de4c5d | 35 | ****************************************************************************** |
| group-onsemi | 0:098463de4c5d | 36 | */ |
| group-onsemi | 0:098463de4c5d | 37 | |
| group-onsemi | 0:098463de4c5d | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
| group-onsemi | 0:098463de4c5d | 39 | #ifndef __STM32F4xx_HAL_SAI_EX_H |
| group-onsemi | 0:098463de4c5d | 40 | #define __STM32F4xx_HAL_SAI_EX_H |
| group-onsemi | 0:098463de4c5d | 41 | |
| group-onsemi | 0:098463de4c5d | 42 | #ifdef __cplusplus |
| group-onsemi | 0:098463de4c5d | 43 | extern "C" { |
| group-onsemi | 0:098463de4c5d | 44 | #endif |
| group-onsemi | 0:098463de4c5d | 45 | |
| group-onsemi | 0:098463de4c5d | 46 | /* Includes ------------------------------------------------------------------*/ |
| group-onsemi | 0:098463de4c5d | 47 | #include "stm32f4xx_hal_def.h" |
| group-onsemi | 0:098463de4c5d | 48 | |
| group-onsemi | 0:098463de4c5d | 49 | /** @addtogroup STM32F4xx_HAL_Driver |
| group-onsemi | 0:098463de4c5d | 50 | * @{ |
| group-onsemi | 0:098463de4c5d | 51 | */ |
| group-onsemi | 0:098463de4c5d | 52 | |
| group-onsemi | 0:098463de4c5d | 53 | /** @addtogroup SAIEx |
| group-onsemi | 0:098463de4c5d | 54 | * @{ |
| group-onsemi | 0:098463de4c5d | 55 | */ |
| group-onsemi | 0:098463de4c5d | 56 | |
| group-onsemi | 0:098463de4c5d | 57 | #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \ |
| group-onsemi | 0:098463de4c5d | 58 | defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) |
| group-onsemi | 0:098463de4c5d | 59 | |
| group-onsemi | 0:098463de4c5d | 60 | /* Exported types ------------------------------------------------------------*/ |
| group-onsemi | 0:098463de4c5d | 61 | /* Exported constants --------------------------------------------------------*/ |
| group-onsemi | 0:098463de4c5d | 62 | /* Exported functions --------------------------------------------------------*/ |
| group-onsemi | 0:098463de4c5d | 63 | /** @addtogroup SAIEx_Exported_Functions |
| group-onsemi | 0:098463de4c5d | 64 | * @{ |
| group-onsemi | 0:098463de4c5d | 65 | */ |
| group-onsemi | 0:098463de4c5d | 66 | |
| group-onsemi | 0:098463de4c5d | 67 | /** @addtogroup SAIEx_Exported_Functions_Group1 |
| group-onsemi | 0:098463de4c5d | 68 | * @{ |
| group-onsemi | 0:098463de4c5d | 69 | */ |
| group-onsemi | 0:098463de4c5d | 70 | |
| group-onsemi | 0:098463de4c5d | 71 | /* Extended features functions ************************************************/ |
| group-onsemi | 0:098463de4c5d | 72 | void SAI_BlockSynchroConfig(SAI_HandleTypeDef *hsai); |
| group-onsemi | 0:098463de4c5d | 73 | uint32_t SAI_GetInputClock(SAI_HandleTypeDef *hsai); |
| group-onsemi | 0:098463de4c5d | 74 | /** |
| group-onsemi | 0:098463de4c5d | 75 | * @} |
| group-onsemi | 0:098463de4c5d | 76 | */ |
| group-onsemi | 0:098463de4c5d | 77 | |
| group-onsemi | 0:098463de4c5d | 78 | /** |
| group-onsemi | 0:098463de4c5d | 79 | * @} |
| group-onsemi | 0:098463de4c5d | 80 | */ |
| group-onsemi | 0:098463de4c5d | 81 | /* Private types -------------------------------------------------------------*/ |
| group-onsemi | 0:098463de4c5d | 82 | /* Private variables ---------------------------------------------------------*/ |
| group-onsemi | 0:098463de4c5d | 83 | /* Private constants ---------------------------------------------------------*/ |
| group-onsemi | 0:098463de4c5d | 84 | /* Private macros ------------------------------------------------------------*/ |
| group-onsemi | 0:098463de4c5d | 85 | /* Private functions ---------------------------------------------------------*/ |
| group-onsemi | 0:098463de4c5d | 86 | |
| group-onsemi | 0:098463de4c5d | 87 | #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx */ |
| group-onsemi | 0:098463de4c5d | 88 | /** |
| group-onsemi | 0:098463de4c5d | 89 | * @} |
| group-onsemi | 0:098463de4c5d | 90 | */ |
| group-onsemi | 0:098463de4c5d | 91 | |
| group-onsemi | 0:098463de4c5d | 92 | /** |
| group-onsemi | 0:098463de4c5d | 93 | * @} |
| group-onsemi | 0:098463de4c5d | 94 | */ |
| group-onsemi | 0:098463de4c5d | 95 | |
| group-onsemi | 0:098463de4c5d | 96 | #ifdef __cplusplus |
| group-onsemi | 0:098463de4c5d | 97 | } |
| group-onsemi | 0:098463de4c5d | 98 | #endif |
| group-onsemi | 0:098463de4c5d | 99 | |
| group-onsemi | 0:098463de4c5d | 100 | #endif /* __STM32F4xx_HAL_SAI_EX_H */ |
| group-onsemi | 0:098463de4c5d | 101 | |
| group-onsemi | 0:098463de4c5d | 102 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |