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:
Ruben Ayrapetyan
2014-10-16 18:36:55 +04:00
parent 90789453ba
commit 9c3c835a7e
11 changed files with 156 additions and 213 deletions
+4 -4
View File
@@ -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
+1 -1
View File
@@ -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);