![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
a
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
uart.h@4:e48aee3e8d09, 2020-05-21 (annotated)
- Committer:
- matis755
- Date:
- Thu May 21 11:03:32 2020 +0000
- Revision:
- 4:e48aee3e8d09
Ready without GUI;
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 |