| BlueNRG-1 Peripherals drivers Examples

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

UART_Interrupt_main.c
Go to the documentation of this file.
1
2 /******************** (C) COPYRIGHT 2016 STMicroelectronics ********************
3 * File Name : UART_Interrupt_main.c
4 * Author : VMA DIVISION
5 * Version : 1.0.0
6 * Date : 21-September-2015
7 * Description : Code demostrating the UART 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
167 /* Includes ------------------------------------------------------------------*/
168 #include "BlueNRG1.h"
169 #include "BlueNRG1_conf.h"
170 #include "SDK_EVAL_Config.h"
171
172
187 /* Private typedef -----------------------------------------------------------*/
188 /* Private define ------------------------------------------------------------*/
189 /* Private macro -------------------------------------------------------------*/
190 /* Private variables ---------------------------------------------------------*/
191 /* Private function prototypes -----------------------------------------------*/
192 /* Private functions ---------------------------------------------------------*/
193
199 int main(void)
200 {
201 /* System initialization function */
202 SystemInit();
203
204 /* Identify BlueNRG1 platform */
205 SdkEvalIdentification();
206
207 /* UART initialization function */
208 SdkEvalComUartInit(UART_BAUDRATE);
209 SdkEvalComUartIrqConfig(ENABLE);
210
211 /* Infinite while loop */
212 while(1);
213 }
214
215 #ifdef USE_FULL_ASSERT
216
223 void assert_failed(uint8_t* file, uint32_t line)
224 {
225 /* User can add his own implementation to report the file name and line number,
226 ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
227
228 /* Infinite loop */
229 while (1)
230 {
231 }
232 }
233
234 #endif
235
247 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/
UART_BAUDRATE
#define UART_BAUDRATE
Definition: ADC_PDM_main.c:225
main
int main(void)
Main program code.
Definition: UART_Interrupt_main.c:199