-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.c
59 lines (51 loc) · 1.28 KB
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* @file main.c
* @brief Entry point
* @author Copyright (C) Peter Ivanov, 2016-2017
*
* Created: 2016-12-29 11:58:45
* Last modify: 2016-12-30 19:44:50 ivanovp {Time-stamp}
* Licence: GPLv2
*/
#include "stm32f10x.h"
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include "common.h"
#include "usart.h"
/**
* @brief Main program
* @param None
* @retval None
*/
int main(void)
{
USART_init();
USART_puts("\r\nFirmware for DS138 Digital Oscilloscope version " TOSTR(VER_MAJOR) "." TOSTR(VER_MINOR) "\r\n");
USART_puts("Copyright (C) Peter Ivanov, 2016\r\n");
USART_puts("License: GPLv2\r\n");
USART_puts("Compiled on " __DATE__ " " __TIME__ "\r\n");
#ifdef _DEBUG
USART_puts("*** DEBUG version ***\r\n");
#endif
while (1)
{
}
}
#ifdef USE_FULL_ASSERT
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @retval None
*/
void assert_failed(uint8_t* file, uint32_t line)
{
USART_printf("Wrong parameters value: file %s on line %d\r\n", file, line);
/* Infinite loop */
while (1)
{
}
}
#endif