| BlueNRG-1 Peripherals drivers Examples

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

SysTick_TimeBase_main.c
Go to the documentation of this file.
1
2 /******************** (C) COPYRIGHT 2016 STMicroelectronics ********************
3 * File Name : SysTick_TimeBase_main.c
4 * Author : VMA DIVISION
5 * Version : 1.0.0
6 * Date : 21-September-2015
7 * Description : Code demostrating the systick functionality
8 ********************************************************************************
9 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
10 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
11 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
12 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
13 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
14 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
15 *******************************************************************************/
16
152 /* Includes ------------------------------------------------------------------*/
153 #include "BlueNRG1.h"
154 #include "BlueNRG1_conf.h"
155 #include "SDK_EVAL_Config.h"
156
169 /* Private typedef -----------------------------------------------------------*/
170 /* Private define ------------------------------------------------------------*/
171 #define SYST_CLOCK 16000000 /*< System clock frequency */
172
173 /* Private macro -------------------------------------------------------------*/
174 /* Private variables ---------------------------------------------------------*/
175 /* Private function prototypes -----------------------------------------------*/
176 /* Private functions ---------------------------------------------------------*/
177
178
184 int main(void)
185 {
186 /* System initialization function */
187 SystemInit();
188
189 /* Identify BlueNRG1 platform */
190 SdkEvalIdentification();
191
192 /* LEDs initialization function */
193 SdkEvalLedInit(LED1);
194 SdkEvalLedInit(LED2);
195 SdkEvalLedInit(LED3);
196
197 /* Configure SysTick to generate interrupt with 1 second period */
198 SysTick_Config(SYST_CLOCK);
199
200 /* Infinite while loop */
201 while (1);
202 }
203
204
205 #ifdef USE_FULL_ASSERT
206
213 void assert_failed(uint8_t* file, uint32_t line)
214 {
215 /* User can add his own implementation to report the file name and line number,
216 ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
217
218 /* Infinite loop */
219 while (1)
220 {
221 }
222 }
223
224 #endif
225
239 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/
SYST_CLOCK
#define SYST_CLOCK
Definition: SysTick_TimeBase_main.c:171
main
int main(void)
Main program code.
Definition: SysTick_TimeBase_main.c:184