Mbed support removed
Rationale: The support for both Zephyr and Mbed made the code confusing, especially because of many ifdefs. Zephyr RTOS is the future!
This commit is contained in:
+2
-4
@@ -8,15 +8,13 @@
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#ifdef __MBED__
|
||||
#include "mbed.h"
|
||||
#elif defined(__ZEPHYR__)
|
||||
#ifndef UNIT_TEST
|
||||
#include <zephyr.h>
|
||||
#endif
|
||||
|
||||
uint32_t uptime()
|
||||
{
|
||||
#ifdef __ZEPHYR__
|
||||
#ifndef UNIT_TEST
|
||||
return k_uptime_get() / 1000;
|
||||
#else
|
||||
return time(NULL);
|
||||
|
||||
Reference in New Issue
Block a user