Retractable steering wheel
Dependencies: DebounceIn EthernetInterface PinDetect mbed-rtos mbed
Revision 1:fa873fbcf141, committed 2016-07-01
- Comitter:
- awatt196
- Date:
- Fri Jul 01 14:04:57 2016 +0000
- Parent:
- 0:f0a73098a628
- Child:
- 2:8bdc7fceb914
- Commit message:
- Working over network (with reset switch)
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f0a73098a628 -r fa873fbcf141 main.cpp --- a/main.cpp Fri Jul 01 13:49:53 2016 +0000 +++ b/main.cpp Fri Jul 01 14:04:57 2016 +0000 @@ -38,7 +38,7 @@ //**********SEAT**********// //**********SYSTEM**********// -//PinDetect reset_switch(PTB18); +PinDetect reset_switch(PTB18); //void reset_system(); //resets system in case of fault //**********SYSTEM**********// @@ -187,9 +187,9 @@ //**********SCREW**********// int main() { - //reset_switch.mode(PullDown); - //reset_switch.attach_asserted(&NVIC_SystemReset); - //reset_switch.setSampleFrequency(); + reset_switch.mode(PullDown); + reset_switch.attach_asserted(&NVIC_SystemReset); + reset_switch.setSampleFrequency(); switch_top.mode(PullDown); switch_bottom.mode(PullDown);