Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 13:5601fedf0e12
- Parent:
- 12:75fb40f38c19
- Child:
- 14:d059d99e9b5e
--- a/main.cpp Tue Jul 02 21:57:47 2019 +0000 +++ b/main.cpp Wed Jul 03 08:32:41 2019 +0000 @@ -199,13 +199,17 @@ } //---------------------- testing ------------- 190703 BH InterruptIn nFault(PB_15); // Motor Driver DRV +bool nFaultFlag = true; void nFaultHigh(){ - pc.puts("nFault HIGH\r\n"); - bt.puts("nFault HIGH\r\n"); + nFaultFlag = true; +// pc.puts("nFault HIGH\r\n"); +// bt.puts("nFault HIGH\r\n"); } + void nFaultLow(){ - pc.puts("nFault LOW\r\n"); - bt.puts("nFault LOW\r\n"); + nFaultFlag = false; +// pc.puts("nFault LOW\r\n"); +// bt.puts("nFault LOW\r\n"); } //---------------------- end ------------- 190703 BH int main() @@ -246,6 +250,12 @@ while(1) { + //---------------------- testing ------------- 190703 BH + + // if (1 == flagRx) + + //---------------------- end ------------- 190703 BH + if (1 == flagRx) {