Dmitry Kovalev
/
LGfiltr
forkd
Fork of LGstaandart by
Diff: uart_m.h
- Revision:
- 55:f5115c2193d5
- Parent:
- 0:8ad47e2b6f00
- Child:
- 57:6c968a11dce3
diff -r 7d25cd871094 -r f5115c2193d5 uart_m.h --- a/uart_m.h Fri Feb 12 04:20:22 2016 +0000 +++ b/uart_m.h Sun Feb 14 06:46:40 2016 +0000 @@ -18,12 +18,13 @@ #define PortDirEUART3 LPC_GPIO0->FIODIR #define PinEUART3 1UL << 24 - - - - - - +//Use typedef instead of separate data +#define IOBufferSize 1024 +typedef struct _IOCyclicBuffer { + char buffer[IOBufferSize]; + int start; //first byte position + int end; //last byte position +} IOCyclicBuffer; void UART0_Init (void);