![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
APP 1 S5.
Diff: UART.h
- Revision:
- 6:ccdbd5923e37
- Parent:
- 5:c6f70b61aea5
- Child:
- 10:f58cbb203c59
diff -r c6f70b61aea5 -r ccdbd5923e37 UART.h --- a/UART.h Sun Jan 10 18:21:11 2016 +0000 +++ b/UART.h Sun Jan 10 22:24:00 2016 +0000 @@ -1,21 +1,5 @@ -#ifndef UART_H -#define UART_H +#pragma once -class UART -{ - private: - - int baudRate; - - public: - - UART(int baudRate); - - protected: - - int getc(); - int putc(int c); - void initUart(); -}; - -#endif \ No newline at end of file +void UARTInit(uint32_t baudrate); +void UARTSend(uint8_t byte); +void UARTSend(uint8_t *buffer, uint32_t length);