Zvone Novak
/
stm32f7-tecos
Test
Revision 46:9993fb18e36f, committed 2019-07-05
- Comitter:
- zvone141
- Date:
- Fri Jul 05 10:14:17 2019 +0000
- Parent:
- 45:092347ceac92
- Commit message:
- Fix RTS pin, added delay.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon May 27 09:18:47 2019 +0000 +++ b/main.cpp Fri Jul 05 10:14:17 2019 +0000 @@ -7,7 +7,7 @@ #define ST_TX D1 #define ST_RX D0 -#define RTS D15 +#define RTS D14 @@ -72,18 +72,20 @@ st_uart.putc(255); /* end of measurement 255 (0xff) */ /* SIZE OF SAMPLES 5000 == 10000 bytes */ - uint16_t size_of_samples = 5000; + uint16_t size_of_samples = 2500; uint8_t byte_little = ((uint8_t *)&size_of_samples)[0]; uint8_t byte_big = ((uint8_t *)&size_of_samples)[1]; st_uart.putc(byte_little); st_uart.putc(byte_big); - for (int i=0; i<5000; i++) + for (int i=0; i<5000; i+=2) { write_sample(i); } } + wait(3.5); + } }