Merge pull request #93 from wryun/make-starter-proj-work-in-simulator
Make starter project work in simulator
This commit is contained in:
commit
4d860f482e
@ -30,6 +30,10 @@
|
||||
#include "driver_init.h"
|
||||
#include "pins.h"
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#include "watch_main_loop.h"
|
||||
#endif // __EMSCRIPTEN__
|
||||
|
||||
/** @mainpage Sensor Watch Documentation
|
||||
* @brief This documentation covers most of the functions you will use to interact with the Sensor Watch
|
||||
hardware. It is divided into the following sections:
|
||||
|
@ -101,6 +101,10 @@ static void main_loop_set_sleeping(bool sleeping) {
|
||||
}, sleeping);
|
||||
}
|
||||
|
||||
void delay_ms(const uint16_t ms) {
|
||||
main_loop_sleep(ms);
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
app_init();
|
||||
_watch_init();
|
||||
|
@ -31,3 +31,5 @@ void resume_main_loop(void);
|
||||
void main_loop_sleep(uint32_t ms);
|
||||
|
||||
bool main_loop_is_sleeping(void);
|
||||
|
||||
void delay_ms(const uint16_t ms);
|
||||
|
Loading…
x
Reference in New Issue
Block a user