AGH UST MBED part 2
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
uart.h@7:34a9bd9d3093, 2020-05-22 (annotated)
- Committer:
- matis755
- Date:
- Fri May 22 08:45:37 2020 +0000
- Revision:
- 7:34a9bd9d3093
- Parent:
- 4:e48aee3e8d09
Change to built-it replace function
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
matis755 | 4:e48aee3e8d09 | 1 | #ifndef UART |
matis755 | 4:e48aee3e8d09 | 2 | #define UART |
matis755 | 4:e48aee3e8d09 | 3 | |
matis755 | 4:e48aee3e8d09 | 4 | #include "mbed.h" |
matis755 | 4:e48aee3e8d09 | 5 | |
matis755 | 4:e48aee3e8d09 | 6 | #define BUFFER_SIZE 100 |
matis755 | 4:e48aee3e8d09 | 7 | |
matis755 | 4:e48aee3e8d09 | 8 | class Uart { |
matis755 | 4:e48aee3e8d09 | 9 | private: |
matis755 | 4:e48aee3e8d09 | 10 | Serial MySerial; |
matis755 | 4:e48aee3e8d09 | 11 | public: |
matis755 | 4:e48aee3e8d09 | 12 | Uart(); |
matis755 | 4:e48aee3e8d09 | 13 | char gets(char *pStr, unsigned char ucSize); |
matis755 | 4:e48aee3e8d09 | 14 | char puts(char *pStr, unsigned char ucSize); |
matis755 | 4:e48aee3e8d09 | 15 | }; |
matis755 | 4:e48aee3e8d09 | 16 | |
matis755 | 4:e48aee3e8d09 | 17 | #endif |