Added the pin outs
Dependencies: mbed mbed-rtos ShiftReg TextLCD
Post/Post.cpp@7:d0159f675b30, 2019-05-06 (annotated)
- Committer:
- thomasmorris
- Date:
- Mon May 06 22:13:28 2019 +0000
- Revision:
- 7:d0159f675b30
- Parent:
- 6:347c1f441b94
Added the pinouts
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 3:3700f0c29710 | 1 | #include "Post.hpp" |
thomasmorris | 3:3700f0c29710 | 2 | POWER POWER_1(PA_10,PA_11,PB_0,PB_1); |
thomasmorris | 7:d0159f675b30 | 3 | INTERFACE INTERFACE_1(PC_13,PC_14,PC_15,PB_9,PB_8,PB_5,PB_4,PA_15,PA_12,PA_11,PA_10);//Rotary encoderA, Rotary Encoder B, Rotary encoder button, button 1, button 2, button 3, MOSFET safety, shift sclk, shift latch, shift enable, shift in |
thomasmorris | 5:20decc99e50c | 4 | SCHEDULES SCHEDULES_1; |
thomasmorris | 7:d0159f675b30 | 5 | FEEDBACK FEEDBACK_1(PA_0,PA_3,PA_2,PA_3,PB_0,PB_1,PA_7,PA_6,PA_5,PA_4); |
thomasmorris | 3:3700f0c29710 | 6 | void POST() |
thomasmorris | 3:3700f0c29710 | 7 | { |
thomasmorris | 3:3700f0c29710 | 8 | if(POWER_1.Post() == 1)//Success |
thomasmorris | 3:3700f0c29710 | 9 | { |
thomasmorris | 3:3700f0c29710 | 10 | PC.printf("POWER Post pass\n"); |
thomasmorris | 3:3700f0c29710 | 11 | } |
thomasmorris | 5:20decc99e50c | 12 | else if(POWER_1.Post() != 1)//Fail |
thomasmorris | 5:20decc99e50c | 13 | { |
thomasmorris | 5:20decc99e50c | 14 | PC.printf("Power Post fail\n"); |
thomasmorris | 5:20decc99e50c | 15 | } |
thomasmorris | 3:3700f0c29710 | 16 | if(INTERFACE_1.Post() == 1)//Success |
thomasmorris | 3:3700f0c29710 | 17 | { |
thomasmorris | 4:1ef122d47bf3 | 18 | PC.printf("Interface Post pass\n"); |
thomasmorris | 3:3700f0c29710 | 19 | } |
thomasmorris | 5:20decc99e50c | 20 | else if(INTERFACE_1.Post() != 1)//Fail |
thomasmorris | 5:20decc99e50c | 21 | { |
thomasmorris | 5:20decc99e50c | 22 | PC.printf("Interface Post fail\n"); |
thomasmorris | 5:20decc99e50c | 23 | } |
thomasmorris | 5:20decc99e50c | 24 | if(SCHEDULES_1.Post() == 1)//Success |
thomasmorris | 5:20decc99e50c | 25 | { |
thomasmorris | 5:20decc99e50c | 26 | PC.printf("Schedules Post Pass\n"); |
thomasmorris | 5:20decc99e50c | 27 | } |
thomasmorris | 5:20decc99e50c | 28 | else if (SCHEDULES_1.Post() != 1)//Fail |
thomasmorris | 5:20decc99e50c | 29 | { |
thomasmorris | 5:20decc99e50c | 30 | PC.printf("Schedules Post fail\n"); |
thomasmorris | 5:20decc99e50c | 31 | } |
thomasmorris | 6:347c1f441b94 | 32 | if(FEEDBACK_1.Post() == 1)//Success |
thomasmorris | 6:347c1f441b94 | 33 | { |
thomasmorris | 6:347c1f441b94 | 34 | PC.printf("Feedback Post Pass\n"); |
thomasmorris | 6:347c1f441b94 | 35 | } |
thomasmorris | 6:347c1f441b94 | 36 | else if(FEEDBACK_1.Post() != 1)//Fail |
thomasmorris | 6:347c1f441b94 | 37 | { |
thomasmorris | 6:347c1f441b94 | 38 | PC.printf("Feedback Post Fail\n"); |
thomasmorris | 6:347c1f441b94 | 39 | } |
thomasmorris | 3:3700f0c29710 | 40 | } |