diff options
| author | Bernard.Xiong <[email protected]> | 2015-03-26 19:58:05 +0800 |
|---|---|---|
| committer | Bernard.Xiong <[email protected]> | 2015-03-26 19:58:05 +0800 |
| commit | 0da8d515acb23f702deaa6d6ee332a225d2bdb48 (patch) | |
| tree | 2a5f530bf2fdc599fdd65650217bb5b8c046f9e6 /components/libc/newlib/libc.h | |
| parent | 62a0172d11e559272128bf52b56ef806ba28ae24 (diff) | |
[Libc] Change libc_system_init as INIT_COMPONENT
Diffstat (limited to 'components/libc/newlib/libc.h')
| -rw-r--r-- | components/libc/newlib/libc.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/components/libc/newlib/libc.h b/components/libc/newlib/libc.h index 52fddd9492..a4f342df33 100644 --- a/components/libc/newlib/libc.h +++ b/components/libc/newlib/libc.h @@ -3,15 +3,15 @@ #include <sys/time.h> -#define MILLISECOND_PER_SECOND 1000UL -#define MICROSECOND_PER_SECOND 1000000UL -#define NANOSECOND_PER_SECOND 1000000000UL +#define MILLISECOND_PER_SECOND 1000UL +#define MICROSECOND_PER_SECOND 1000000UL +#define NANOSECOND_PER_SECOND 1000000000UL -#define MILLISECOND_PER_TICK (MILLISECOND_PER_SECOND / RT_TICK_PER_SECOND) -#define MICROSECOND_PER_TICK (MICROSECOND_PER_SECOND / RT_TICK_PER_SECOND) -#define NANOSECOND_PER_TICK (NANOSECOND_PER_SECOND / RT_TICK_PER_SECOND) +#define MILLISECOND_PER_TICK (MILLISECOND_PER_SECOND / RT_TICK_PER_SECOND) +#define MICROSECOND_PER_TICK (MICROSECOND_PER_SECOND / RT_TICK_PER_SECOND) +#define NANOSECOND_PER_TICK (NANOSECOND_PER_SECOND / RT_TICK_PER_SECOND) -void libc_system_init(const char* tty_name); +int libc_system_init(void); /* some time related function */ int libc_set_time(const struct timespec *time); |
