![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
raspberry pi to stm32f303k8 for serial communication
main.cpp@0:7bc24e8d1591, 2021-05-02 (annotated)
- Committer:
- mukuyo
- Date:
- Sun May 02 15:01:33 2021 +0000
- Revision:
- 0:7bc24e8d1591
update;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mukuyo | 0:7bc24e8d1591 | 1 | #include "mbed.h" |
mukuyo | 0:7bc24e8d1591 | 2 | #include "serial.h" |
mukuyo | 0:7bc24e8d1591 | 3 | #include "Drive.hpp" |
mukuyo | 0:7bc24e8d1591 | 4 | |
mukuyo | 0:7bc24e8d1591 | 5 | Rasp rasp(USBTX, USBRX); |
mukuyo | 0:7bc24e8d1591 | 6 | |
mukuyo | 0:7bc24e8d1591 | 7 | Drive drive(PA_11, PA_12); |
mukuyo | 0:7bc24e8d1591 | 8 | |
mukuyo | 0:7bc24e8d1591 | 9 | void DR_setup(){ |
mukuyo | 0:7bc24e8d1591 | 10 | } |
mukuyo | 0:7bc24e8d1591 | 11 | |
mukuyo | 0:7bc24e8d1591 | 12 | int main(void) { |
mukuyo | 0:7bc24e8d1591 | 13 | DR_setup(); |
mukuyo | 0:7bc24e8d1591 | 14 | while (1) { |
mukuyo | 0:7bc24e8d1591 | 15 | drive.setVelocity(); |
mukuyo | 0:7bc24e8d1591 | 16 | } |
mukuyo | 0:7bc24e8d1591 | 17 | } |