Evan Brown
/
APpart3_E_start
11/18
millis.cpp
- Committer:
- evenbrownie
- Date:
- 2018-11-08
- Revision:
- 0:f43994f44684
File content as of revision 0:f43994f44684:
/* * @author: Natasha Sarkar, 2018 */ #include "mbed.h" #include "millis.h" volatile unsigned long _millis; void millis_begin(void) { SysTick_Config(SystemCoreClock / 1000); } extern "C" void SysTick_Handler(void) { _millis++; } unsigned long millis(void) { return _millis; }