Commit d3f9559 1 parent 6b01929 commit d3f9559 Copy full SHA for d3f9559
File tree 3 files changed +3
-13
lines changed
3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ set(FW_SOURCES
268
268
tmc2130.cpp
269
269
tone04.c
270
270
twi.cpp
271
- uart2.c
271
+ uart2.cpp
272
272
ultralcd.cpp
273
273
util.cpp
274
274
xflash.c
Original file line number Diff line number Diff line change 10
10
#define uart2_txready (UCSR2A & (1 << UDRE2))
11
11
12
12
uint8_t uart2_ibuf[20 ] = {0 , 0 };
13
- FILE _uart2io = { 0 } ;
13
+ FILE _uart2io;
14
14
15
15
static int uart2_putchar (char c, _UNUSED FILE *stream)
16
16
{
Original file line number Diff line number Diff line change 5
5
#include <inttypes.h>
6
6
#include <stdio.h>
7
7
8
-
9
- #if defined(__cplusplus )
10
- extern "C" {
11
- #endif //defined(__cplusplus)
12
-
13
-
14
8
extern FILE _uart2io ;
15
9
#define uart2io (&_uart2io)
16
10
11
+ void uart2_init (uint32_t baudRate );
17
12
18
- extern void uart2_init (uint32_t baudRate );
19
-
20
- #if defined(__cplusplus )
21
- }
22
- #endif //defined(__cplusplus)
23
13
#endif //_UART2_H
You can’t perform that action at this time.
0 commit comments