![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
PROJ515-MASTER-No-PWM
Dependencies: mbed mbed-rtos ShiftReg2 TextLCD
Serial/Serial_Board.hpp@5:dbb984e01ded, 2019-05-08 (annotated)
- Committer:
- thomasmorris
- Date:
- Wed May 08 09:39:42 2019 +0000
- Revision:
- 5:dbb984e01ded
- Parent:
- 4:020f93d35f6e
Working code not PWM;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 4:020f93d35f6e | 1 | #ifndef _SERIAL_Board_HPP_ |
thomasmorris | 4:020f93d35f6e | 2 | #define _SERIAL_Board_HPP_ |
thomasmorris | 4:020f93d35f6e | 3 | |
thomasmorris | 4:020f93d35f6e | 4 | #include "mbed.h" |
thomasmorris | 4:020f93d35f6e | 5 | #include "rtos.h" |
thomasmorris | 4:020f93d35f6e | 6 | |
thomasmorris | 4:020f93d35f6e | 7 | #include "Serial_PC.hpp" |
thomasmorris | 4:020f93d35f6e | 8 | |
thomasmorris | 4:020f93d35f6e | 9 | class SERIAL_BOARD |
thomasmorris | 4:020f93d35f6e | 10 | { |
thomasmorris | 4:020f93d35f6e | 11 | public://Public member functions and variables |
thomasmorris | 4:020f93d35f6e | 12 | |
thomasmorris | 4:020f93d35f6e | 13 | SERIAL_BOARD(); |
thomasmorris | 4:020f93d35f6e | 14 | ~SERIAL_BOARD(); |
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 | int _POST_Value; |
thomasmorris | 4:020f93d35f6e | 23 | int _Received_Data; |
thomasmorris | 4:020f93d35f6e | 24 | int _Output_Data; |
thomasmorris | 4:020f93d35f6e | 25 | |
thomasmorris | 4:020f93d35f6e | 26 | //Mutex Locks |
thomasmorris | 4:020f93d35f6e | 27 | Mutex _POST_Value_Mutex; |
thomasmorris | 4:020f93d35f6e | 28 | Mutex _Received_Data_Mutex; |
thomasmorris | 4:020f93d35f6e | 29 | Mutex _Output_Data_Mutex; |
thomasmorris | 4:020f93d35f6e | 30 | }; |
thomasmorris | 4:020f93d35f6e | 31 | |
thomasmorris | 4:020f93d35f6e | 32 | |
thomasmorris | 4:020f93d35f6e | 33 | #endif //_SERIAL_BOARD_HPP_ |