Implementing syscall invocation sequence for ARMv7 architecture.
Removing dependencies to third-party libc routine implementations. Introducing __TARGET_HOST define for host (non-MCU) builds.
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
void
|
||||
led_toggle (uint32_t led_id)
|
||||
{
|
||||
#ifdef __TARGET_HOST_x64
|
||||
#ifdef __TARGET_HOST
|
||||
__printf ("led_toggle: %d\n", led_id);
|
||||
#endif
|
||||
|
||||
@@ -42,7 +42,7 @@ led_toggle (uint32_t led_id)
|
||||
void
|
||||
led_on (uint32_t led_id)
|
||||
{
|
||||
#ifdef __TARGET_HOST_x64
|
||||
#ifdef __TARGET_HOST
|
||||
__printf ("led_on: %d\n", led_id);
|
||||
#endif
|
||||
|
||||
@@ -55,7 +55,7 @@ led_on (uint32_t led_id)
|
||||
void
|
||||
led_off (uint32_t led_id)
|
||||
{
|
||||
#ifdef __TARGET_HOST_x64
|
||||
#ifdef __TARGET_HOST
|
||||
__printf ("led_off: %d\n", led_id);
|
||||
#endif
|
||||
|
||||
@@ -67,7 +67,7 @@ led_off (uint32_t led_id)
|
||||
void
|
||||
led_blink_once (uint32_t led_id)
|
||||
{
|
||||
#ifdef __TARGET_HOST_x64
|
||||
#ifdef __TARGET_HOST
|
||||
__printf ("led_blink_once: %d\n", led_id);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ analog_write (uint32_t arg1 __unused, uint32_t arg2 __unused)
|
||||
void
|
||||
wait_ms (uint32_t time_ms)
|
||||
{
|
||||
#ifdef __TARGET_HOST_x64
|
||||
#ifdef __TARGET_HOST
|
||||
// 1 millisecond = 1,000,000 Nanoseconds
|
||||
#define NANO_SECOND_MULTIPLIER 1000000
|
||||
__printf ("wait_ms: %d\n", time_ms);
|
||||
|
||||
Reference in New Issue
Block a user