Wakeup Light with touch user interface, anti-aliased Font, SD card access and RTC usage on STM32F746NG-DISCO board
Dependencies: BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG TS_DISCO_F746NG FATFileSystem TinyJpgDec_interwork mbed-src
STMLIBRARIES/tm_stm32_rng.h@14:2044ad5cd3fe, 2016-02-21 (annotated)
- Committer:
- the_sz
- Date:
- Sun Feb 21 04:26:17 2016 +0000
- Revision:
- 14:2044ad5cd3fe
- Parent:
- 12:a89096944f20
all fonts are working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
the_sz | 12:a89096944f20 | 1 | /** |
the_sz | 12:a89096944f20 | 2 | * @author Tilen Majerle |
the_sz | 12:a89096944f20 | 3 | * @email tilen@majerle.eu |
the_sz | 12:a89096944f20 | 4 | * @website http://stm32f4-discovery.com |
the_sz | 12:a89096944f20 | 5 | * @link http://stm32f4-discovery.com/2015/07/hal-library-18-rng-for-stm32fxxx/ |
the_sz | 12:a89096944f20 | 6 | * @version v1.0 |
the_sz | 12:a89096944f20 | 7 | * @ide Keil uVision |
the_sz | 12:a89096944f20 | 8 | * @license GNU GPL v3 |
the_sz | 12:a89096944f20 | 9 | * @brief Library template |
the_sz | 12:a89096944f20 | 10 | * |
the_sz | 12:a89096944f20 | 11 | \verbatim |
the_sz | 12:a89096944f20 | 12 | ---------------------------------------------------------------------- |
the_sz | 12:a89096944f20 | 13 | Copyright (C) Tilen Majerle, 2015 |
the_sz | 12:a89096944f20 | 14 | |
the_sz | 12:a89096944f20 | 15 | This program is free software: you can redistribute it and/or modify |
the_sz | 12:a89096944f20 | 16 | it under the terms of the GNU General Public License as published by |
the_sz | 12:a89096944f20 | 17 | the Free Software Foundation, either version 3 of the License, or |
the_sz | 12:a89096944f20 | 18 | any later version. |
the_sz | 12:a89096944f20 | 19 | |
the_sz | 12:a89096944f20 | 20 | This program is distributed in the hope that it will be useful, |
the_sz | 12:a89096944f20 | 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
the_sz | 12:a89096944f20 | 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
the_sz | 12:a89096944f20 | 23 | GNU General Public License for more details. |
the_sz | 12:a89096944f20 | 24 | |
the_sz | 12:a89096944f20 | 25 | You should have received a copy of the GNU General Public License |
the_sz | 12:a89096944f20 | 26 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
the_sz | 12:a89096944f20 | 27 | ---------------------------------------------------------------------- |
the_sz | 12:a89096944f20 | 28 | \endverbatim |
the_sz | 12:a89096944f20 | 29 | */ |
the_sz | 12:a89096944f20 | 30 | #ifndef TM_RNG_H |
the_sz | 12:a89096944f20 | 31 | #define TM_RNG_H 100 |
the_sz | 12:a89096944f20 | 32 | |
the_sz | 12:a89096944f20 | 33 | /* C++ detection */ |
the_sz | 12:a89096944f20 | 34 | #ifdef __cplusplus |
the_sz | 12:a89096944f20 | 35 | extern "C" { |
the_sz | 12:a89096944f20 | 36 | #endif |
the_sz | 12:a89096944f20 | 37 | |
the_sz | 12:a89096944f20 | 38 | /** |
the_sz | 12:a89096944f20 | 39 | * @addtogroup TM_STM32Fxxx_HAL_Libraries |
the_sz | 12:a89096944f20 | 40 | * @{ |
the_sz | 12:a89096944f20 | 41 | */ |
the_sz | 12:a89096944f20 | 42 | |
the_sz | 12:a89096944f20 | 43 | /** |
the_sz | 12:a89096944f20 | 44 | * @defgroup TM_RNG |
the_sz | 12:a89096944f20 | 45 | * @brief Random number generator library for STM32Fxxx devices - http://stm32f4-discovery.com/2015/07/hal-library-18-rng-for-stm32fxxx/ |
the_sz | 12:a89096944f20 | 46 | * @{ |
the_sz | 12:a89096944f20 | 47 | * |
the_sz | 12:a89096944f20 | 48 | * \par Changelog |
the_sz | 12:a89096944f20 | 49 | * |
the_sz | 12:a89096944f20 | 50 | \verbatim |
the_sz | 12:a89096944f20 | 51 | Version 1.0 |
the_sz | 12:a89096944f20 | 52 | - First release |
the_sz | 12:a89096944f20 | 53 | \endverbatim |
the_sz | 12:a89096944f20 | 54 | * |
the_sz | 12:a89096944f20 | 55 | * \par Dependencies |
the_sz | 12:a89096944f20 | 56 | * |
the_sz | 12:a89096944f20 | 57 | \verbatim |
the_sz | 12:a89096944f20 | 58 | - STM32Fxxx HAL |
the_sz | 12:a89096944f20 | 59 | - defines.h |
the_sz | 12:a89096944f20 | 60 | \endverbatim |
the_sz | 12:a89096944f20 | 61 | */ |
the_sz | 12:a89096944f20 | 62 | #include "stm32fxxx_hal.h" |
the_sz | 12:a89096944f20 | 63 | #include "defines.h" |
the_sz | 12:a89096944f20 | 64 | |
the_sz | 12:a89096944f20 | 65 | /** |
the_sz | 12:a89096944f20 | 66 | * @defgroup TM_RNG_Functions |
the_sz | 12:a89096944f20 | 67 | * @brief Library Functions |
the_sz | 12:a89096944f20 | 68 | * @{ |
the_sz | 12:a89096944f20 | 69 | */ |
the_sz | 12:a89096944f20 | 70 | |
the_sz | 12:a89096944f20 | 71 | /** |
the_sz | 12:a89096944f20 | 72 | * @brief Initializes RNG peripheral and enables clock |
the_sz | 12:a89096944f20 | 73 | * @param None |
the_sz | 12:a89096944f20 | 74 | * @retval None |
the_sz | 12:a89096944f20 | 75 | */ |
the_sz | 12:a89096944f20 | 76 | void TM_RNG_Init(void); |
the_sz | 12:a89096944f20 | 77 | |
the_sz | 12:a89096944f20 | 78 | /** |
the_sz | 12:a89096944f20 | 79 | * @brief De initializes RNG peripheral and disables clock |
the_sz | 12:a89096944f20 | 80 | * @param None |
the_sz | 12:a89096944f20 | 81 | * @retval None |
the_sz | 12:a89096944f20 | 82 | */ |
the_sz | 12:a89096944f20 | 83 | void TM_RNG_DeInit(void); |
the_sz | 12:a89096944f20 | 84 | |
the_sz | 12:a89096944f20 | 85 | /** |
the_sz | 12:a89096944f20 | 86 | * @brief Gets 32-bit random number |
the_sz | 12:a89096944f20 | 87 | * @param None |
the_sz | 12:a89096944f20 | 88 | * @retval 32-bit random number |
the_sz | 12:a89096944f20 | 89 | */ |
the_sz | 12:a89096944f20 | 90 | uint32_t TM_RNG_Get(void); |
the_sz | 12:a89096944f20 | 91 | |
the_sz | 12:a89096944f20 | 92 | /** |
the_sz | 12:a89096944f20 | 93 | * @} |
the_sz | 12:a89096944f20 | 94 | */ |
the_sz | 12:a89096944f20 | 95 | |
the_sz | 12:a89096944f20 | 96 | /** |
the_sz | 12:a89096944f20 | 97 | * @} |
the_sz | 12:a89096944f20 | 98 | */ |
the_sz | 12:a89096944f20 | 99 | |
the_sz | 12:a89096944f20 | 100 | /** |
the_sz | 12:a89096944f20 | 101 | * @} |
the_sz | 12:a89096944f20 | 102 | */ |
the_sz | 12:a89096944f20 | 103 | |
the_sz | 12:a89096944f20 | 104 | /* C++ detection */ |
the_sz | 12:a89096944f20 | 105 | #ifdef __cplusplus |
the_sz | 12:a89096944f20 | 106 | } |
the_sz | 12:a89096944f20 | 107 | #endif |
the_sz | 12:a89096944f20 | 108 | |
the_sz | 12:a89096944f20 | 109 | #endif |