Revision ded1ded7 periphery-lld/aos_periphAL.c
| periphery-lld/aos_periphAL.c | ||
|---|---|---|
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 | 19 |
#include <periphAL.h> |
| 20 |
#include <amiroos.h> |
|
| 20 | 21 |
|
| 21 | 22 |
/*============================================================================*/ |
| 22 | 23 |
/* DEBUG */ |
| 23 | 24 |
/*============================================================================*/ |
| 24 | 25 |
|
| 25 |
#if (AMIROOS_CFG_DBG == true) |
|
| 26 |
#if (AMIROLLD_CFG_DBG == true) && (AMIROOS_CFG_DBG == true)
|
|
| 26 | 27 |
|
| 27 |
#include <amiroos.h> |
|
| 28 | 28 |
#include <chprintf.h> |
| 29 | 29 |
|
| 30 | 30 |
void apalDbgAssertMsg(const bool c, const char* fmt, ...) |
| ... | ... | |
| 52 | 52 |
return chars; |
| 53 | 53 |
} |
| 54 | 54 |
|
| 55 |
#endif /* (AMIROOS_CFG_DBG == true) */ |
|
| 55 |
#endif /* (AMIROLLD_CFG_DBG == true) && (AMIROOS_CFG_DBG == true) */
|
|
| 56 | 56 |
|
| 57 | 57 |
/*============================================================================*/ |
| 58 | 58 |
/* TIMING */ |
| ... | ... | |
| 76 | 76 |
|
| 77 | 77 |
#endif /* (AMIROOS_CFG_DBG == true) */ |
| 78 | 78 |
|
| 79 |
apalTime_t apalGetTime(void) |
|
| 80 |
{
|
|
| 81 |
aos_timestamp_t uptime; |
|
| 82 |
aosSysGetUptime(&uptime); |
|
| 83 |
|
|
| 84 |
return uptime & ~((apalTime_t)0); |
|
| 85 |
} |
|
| 86 |
|
|
| 79 | 87 |
/*============================================================================*/ |
| 80 | 88 |
/* GPIO */ |
| 81 | 89 |
/*============================================================================*/ |
Also available in: Unified diff