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.
main.cpp@1:8faddee0e52f, 2019-09-28 (annotated)
- Committer:
- GaspardD
- Date:
- Sat Sep 28 22:29:57 2019 +0000
- Revision:
- 1:8faddee0e52f
- Parent:
- 0:38b6065539a0
- Child:
- 2:e9d928fd327a
motor control
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GaspardD | 1:8faddee0e52f | 1 | #include "sm_esc.h" |
GaspardD | 0:38b6065539a0 | 2 | |
GaspardD | 1:8faddee0e52f | 3 | int main() { |
GaspardD | 0:38b6065539a0 | 4 | |
GaspardD | 1:8faddee0e52f | 5 | initGPIOs(); |
GaspardD | 1:8faddee0e52f | 6 | init_interruptions(); |
GaspardD | 1:8faddee0e52f | 7 | |
GaspardD | 1:8faddee0e52f | 8 | //init state machines |
GaspardD | 1:8faddee0e52f | 9 | pc.printf("init state machines"); |
GaspardD | 1:8faddee0e52f | 10 | |
GaspardD | 1:8faddee0e52f | 11 | init_sm_esc(); |
GaspardD | 1:8faddee0e52f | 12 | |
GaspardD | 1:8faddee0e52f | 13 | while(1) { |
GaspardD | 0:38b6065539a0 | 14 | |
GaspardD | 1:8faddee0e52f | 15 | update_sm_esc(); |
GaspardD | 1:8faddee0e52f | 16 | |
GaspardD | 1:8faddee0e52f | 17 | output_sm_esc(); |
GaspardD | 0:38b6065539a0 | 18 | } |
GaspardD | 0:38b6065539a0 | 19 | } |