Skeleton code. LCD, Serial, Feedback, MOSFETS
Dependencies: mbed mbed-rtos ShiftReg2 TextLCD
Serial/Serial_PC.hpp@4:020f93d35f6e, 2019-05-07 (annotated)
- Committer:
- thomasmorris
- Date:
- Tue May 07 21:55:57 2019 +0000
- Revision:
- 4:020f93d35f6e
Added mutex and safey coding needs more. Added board and serial functions that need testing. As well as a more thorough post function.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 4:020f93d35f6e | 1 | #ifndef _SERIAL_PC_HPP_ |
thomasmorris | 4:020f93d35f6e | 2 | #define _SERIAL_PC_HPP_ |
thomasmorris | 4:020f93d35f6e | 3 | |
thomasmorris | 4:020f93d35f6e | 4 | #include "mbed.h" |
thomasmorris | 4:020f93d35f6e | 5 | #include "rtos.h" |
thomasmorris | 4:020f93d35f6e | 6 | #include "Interface.hpp" |
thomasmorris | 4:020f93d35f6e | 7 | |
thomasmorris | 4:020f93d35f6e | 8 | extern int Logging; |
thomasmorris | 4:020f93d35f6e | 9 | class SERIAL_PC |
thomasmorris | 4:020f93d35f6e | 10 | { |
thomasmorris | 4:020f93d35f6e | 11 | public://Public member functions and variables |
thomasmorris | 4:020f93d35f6e | 12 | |
thomasmorris | 4:020f93d35f6e | 13 | SERIAL_PC(); |
thomasmorris | 4:020f93d35f6e | 14 | ~SERIAL_PC(); |
thomasmorris | 4:020f93d35f6e | 15 | void Init(); |
thomasmorris | 4:020f93d35f6e | 16 | int Post(); |
thomasmorris | 4:020f93d35f6e | 17 | void Main(); |
thomasmorris | 4:020f93d35f6e | 18 | //Public Functions |
thomasmorris | 4:020f93d35f6e | 19 | |
thomasmorris | 4:020f93d35f6e | 20 | |
thomasmorris | 4:020f93d35f6e | 21 | private://Private member functions and variables |
thomasmorris | 4:020f93d35f6e | 22 | char _buffer[32];//Character buffer for the serial data to be stored within |
thomasmorris | 4:020f93d35f6e | 23 | |
thomasmorris | 4:020f93d35f6e | 24 | |
thomasmorris | 4:020f93d35f6e | 25 | }; |
thomasmorris | 4:020f93d35f6e | 26 | |
thomasmorris | 4:020f93d35f6e | 27 | |
thomasmorris | 4:020f93d35f6e | 28 | #endif //_SERIAL_PC_HPP_ |