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.

Dependencies:   mbed DHT Matrix

Committer:
ShaneKirkbride
Date:
Thu Jul 14 20:38:18 2016 +0000
Revision:
0:70a6082c1bf7
first commit. Rest example working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ShaneKirkbride 0:70a6082c1bf7 1 #include "mbed.h"
ShaneKirkbride 0:70a6082c1bf7 2 #include "millis.h"
ShaneKirkbride 0:70a6082c1bf7 3
ShaneKirkbride 0:70a6082c1bf7 4 volatile unsigned long _millis;
ShaneKirkbride 0:70a6082c1bf7 5
ShaneKirkbride 0:70a6082c1bf7 6 void millisStart(void) {
ShaneKirkbride 0:70a6082c1bf7 7 SysTick_Config(SystemCoreClock / 1000);
ShaneKirkbride 0:70a6082c1bf7 8 }
ShaneKirkbride 0:70a6082c1bf7 9
ShaneKirkbride 0:70a6082c1bf7 10 extern "C" void SysTick_Handler(void) {
ShaneKirkbride 0:70a6082c1bf7 11 _millis++;
ShaneKirkbride 0:70a6082c1bf7 12 }
ShaneKirkbride 0:70a6082c1bf7 13
ShaneKirkbride 0:70a6082c1bf7 14 unsigned long millis(void) {
ShaneKirkbride 0:70a6082c1bf7 15 return _millis;
ShaneKirkbride 0:70a6082c1bf7 16 }