Latest
Dependencies: serial_terminal sample_hardware PLL_Config SDCard BMP280 Networkbits TextLCD SDBlockDevice
Diff: main.cpp
- Revision:
- 6:a5394c9e5927
- Parent:
- 5:956984cbe447
- Child:
- 7:e2bf2d703867
--- a/main.cpp Tue Nov 06 19:19:45 2018 +0000 +++ b/main.cpp Wed Nov 07 17:21:53 2018 +0000 @@ -1,21 +1,24 @@ #include "sample_hardware.hpp" #include "Networkbits.hpp" #include "serial_terminal.hpp" +#include "SDCard.hpp" #include "rtos.h" + // You will need a network connection set up (covered elsewhere). The host PC should have the address 10.0.0.1 //Threads //Thread nwrkThread; Thread serial_terminal; - +Thread SD_thread; int main() { //Move threads into a thread init function serial_terminal.start(serialterm); + SD_thread.start(SDcard); //Greeting printf("Testing\n\n"); @@ -23,6 +26,7 @@ //Power on self test post(); + printf("Send commands\n\r"); /* //Initialise the SD card (this needs to move) if ( sd.init() != 0) {