Added the pin outs
Dependencies: mbed mbed-rtos ShiftReg TextLCD
Post/Post.cpp@5:20decc99e50c, 2019-04-11 (annotated)
- Committer:
- thomasmorris
- Date:
- Thu Apr 11 11:51:16 2019 +0000
- Revision:
- 5:20decc99e50c
- Parent:
- 4:1ef122d47bf3
- Child:
- 6:347c1f441b94
Updated Post function
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 | 3:3700f0c29710 | 3 | INTERFACE INTERFACE_1; |
thomasmorris | 5:20decc99e50c | 4 | SCHEDULES SCHEDULES_1; |
thomasmorris | 3:3700f0c29710 | 5 | void POST() |
thomasmorris | 3:3700f0c29710 | 6 | { |
thomasmorris | 3:3700f0c29710 | 7 | if(POWER_1.Post() == 1)//Success |
thomasmorris | 3:3700f0c29710 | 8 | { |
thomasmorris | 3:3700f0c29710 | 9 | PC.printf("POWER Post pass\n"); |
thomasmorris | 3:3700f0c29710 | 10 | } |
thomasmorris | 5:20decc99e50c | 11 | else if(POWER_1.Post() != 1)//Fail |
thomasmorris | 5:20decc99e50c | 12 | { |
thomasmorris | 5:20decc99e50c | 13 | PC.printf("Power Post fail\n"); |
thomasmorris | 5:20decc99e50c | 14 | } |
thomasmorris | 3:3700f0c29710 | 15 | if(INTERFACE_1.Post() == 1)//Success |
thomasmorris | 3:3700f0c29710 | 16 | { |
thomasmorris | 4:1ef122d47bf3 | 17 | PC.printf("Interface Post pass\n"); |
thomasmorris | 3:3700f0c29710 | 18 | } |
thomasmorris | 5:20decc99e50c | 19 | else if(INTERFACE_1.Post() != 1)//Fail |
thomasmorris | 5:20decc99e50c | 20 | { |
thomasmorris | 5:20decc99e50c | 21 | PC.printf("Interface Post fail\n"); |
thomasmorris | 5:20decc99e50c | 22 | } |
thomasmorris | 5:20decc99e50c | 23 | if(SCHEDULES_1.Post() == 1)//Success |
thomasmorris | 5:20decc99e50c | 24 | { |
thomasmorris | 5:20decc99e50c | 25 | PC.printf("Schedules Post Pass\n"); |
thomasmorris | 5:20decc99e50c | 26 | } |
thomasmorris | 5:20decc99e50c | 27 | else if (SCHEDULES_1.Post() != 1)//Fail |
thomasmorris | 5:20decc99e50c | 28 | { |
thomasmorris | 5:20decc99e50c | 29 | PC.printf("Schedules Post fail\n"); |
thomasmorris | 5:20decc99e50c | 30 | } |
thomasmorris | 3:3700f0c29710 | 31 | } |