This is a SLIP interface for the STM32F446RE Nucleo Board. It is designed to work specifically with the esp-link software for the ESP8266. The program is an example of a rest command.
Diff: millis.cpp
- Revision:
- 0:70a6082c1bf7
diff -r 000000000000 -r 70a6082c1bf7 millis.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/millis.cpp Thu Jul 14 20:38:18 2016 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "millis.h" + +volatile unsigned long _millis; + +void millisStart(void) { + SysTick_Config(SystemCoreClock / 1000); +} + +extern "C" void SysTick_Handler(void) { + _millis++; +} + +unsigned long millis(void) { + return _millis; +} \ No newline at end of file