WIP: keep local changes before merging remote
This commit is contained in:
28
cvicenie_5/Uart.h
Normal file
28
cvicenie_5/Uart.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef __UART_H
|
||||
#define __UART_H
|
||||
|
||||
#include "mbed.h"
|
||||
|
||||
// class Led
|
||||
class Uart
|
||||
{
|
||||
private:
|
||||
void rxInterrupt();
|
||||
public:
|
||||
//! Constructor
|
||||
Uart(PinName rx, PinName tx, int baud);
|
||||
|
||||
//! Destructor
|
||||
~Uart();
|
||||
|
||||
bool isCharReceived();
|
||||
char getReceivedChar();
|
||||
void writeChar(char c);
|
||||
UnbufferedSerial* getSerial();
|
||||
private:
|
||||
UnbufferedSerial serial;
|
||||
volatile char received_character;
|
||||
volatile bool received;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user