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.
Fork of Nucleo_rtos_SPISlave_Test by
Diff: main.cpp
- Revision:
- 2:46e25b11a043
- Parent:
- 1:ba17cd3b6ecf
- Child:
- 3:e35c6a9ad906
- Child:
- 5:938e95903872
--- a/main.cpp Tue Sep 27 09:46:20 2016 +0000 +++ b/main.cpp Sat Oct 01 12:33:07 2016 +0000 @@ -5,9 +5,12 @@ #define SPI_SPEED (10000000) BusOut Leds(PA_10, PB_3, PB_5, PB_4, PB_10, PA_8); -DigitalOut StepChangePin(PC_7); +//DigitalOut StepChangePin(PC_7); +DigitalOut StepChangePin(PB_1); -SPISlave SpiS(PA_7, PA_6, PA_5, PA_4); // mosi, miso, sclk, ssel +//SPISlave SpiS(PA_7, PA_6, PA_5, PA_4); // mosi, miso, sclk, ssel +// SPI2 +SPISlave SpiS(PB_15, PB_14, PB_13, PB_12); // mosi, miso, sclk, ssel unsigned int step = 0;