Added the pin outs

Dependencies:   mbed mbed-rtos ShiftReg TextLCD

Committer:
thomasmorris
Date:
Thu Apr 11 18:12:31 2019 +0000
Revision:
6:347c1f441b94
Parent:
5:20decc99e50c
Child:
7:d0159f675b30
Updated code 19:15

Who changed what in which revision?

UserRevisionLine numberNew 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 6:347c1f441b94 5 FEEDBACK FEEDBACK_1;
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 }