guard uart functions with extern "C"

This commit is contained in:
Jacques Germishuys
2017-08-04 22:06:11 +02:00
parent f9d5f0a10c
commit 3f68de64b6

View File

@@ -13,6 +13,9 @@
#include "atom.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Perform UART startup initialization.
@@ -23,3 +26,7 @@ int uart_init(uint32_t baudrate);
* Send one character to the UART.
*/
int uart_putchar(char c, FILE *stream);
#ifdef __cplusplus
}
#endif