diff options
Diffstat (limited to 'os/various/lwip_bindings')
-rw-r--r-- | os/various/lwip_bindings/arch/cc.h | 2 | ||||
-rw-r--r-- | os/various/lwip_bindings/arch/perf.h | 2 | ||||
-rw-r--r-- | os/various/lwip_bindings/arch/sys_arch.c | 28 | ||||
-rw-r--r-- | os/various/lwip_bindings/arch/sys_arch.h | 2 | ||||
-rw-r--r-- | os/various/lwip_bindings/lwipthread.c | 2 | ||||
-rw-r--r-- | os/various/lwip_bindings/lwipthread.h | 2 |
6 files changed, 19 insertions, 19 deletions
diff --git a/os/various/lwip_bindings/arch/cc.h b/os/various/lwip_bindings/arch/cc.h index f17744455..eb47666dd 100644 --- a/os/various/lwip_bindings/arch/cc.h +++ b/os/various/lwip_bindings/arch/cc.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/os/various/lwip_bindings/arch/perf.h b/os/various/lwip_bindings/arch/perf.h index 24dba0c54..d8f280dd3 100644 --- a/os/various/lwip_bindings/arch/perf.h +++ b/os/various/lwip_bindings/arch/perf.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/os/various/lwip_bindings/arch/sys_arch.c b/os/various/lwip_bindings/arch/sys_arch.c index 40577f2bc..091c9ab96 100644 --- a/os/various/lwip_bindings/arch/sys_arch.c +++ b/os/various/lwip_bindings/arch/sys_arch.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -96,13 +96,13 @@ void sys_sem_signal_S(sys_sem_t *sem) { chSemSignalI(*sem);
chSchRescheduleS();
-} - -u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) { - systime_t tmo, start, remaining; - - osalSysLock(); - tmo = timeout > 0 ? MS2ST((systime_t)timeout) : TIME_INFINITE; +}
+
+u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) {
+ systime_t tmo, start, remaining;
+
+ osalSysLock();
+ tmo = timeout > 0 ? MS2ST((systime_t)timeout) : TIME_INFINITE;
start = osalOsGetSystemTimeX();
if (chSemWaitTimeoutS(*sem, tmo) != MSG_OK) {
osalSysUnlock();
@@ -168,13 +168,13 @@ err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg) { return ERR_MEM;
}
return ERR_OK;
-} - -u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout) { +}
+
+u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout) {
systime_t tmo, start, remaining;
- - osalSysLock(); - tmo = timeout > 0 ? MS2ST((systime_t)timeout) : TIME_INFINITE; +
+ osalSysLock();
+ tmo = timeout > 0 ? MS2ST((systime_t)timeout) : TIME_INFINITE;
start = osalOsGetSystemTimeX();
if (chMBFetchS(*mbox, (msg_t *)msg, tmo) != MSG_OK) {
osalSysUnlock();
diff --git a/os/various/lwip_bindings/arch/sys_arch.h b/os/various/lwip_bindings/arch/sys_arch.h index dd1a80ee4..a86f40b97 100644 --- a/os/various/lwip_bindings/arch/sys_arch.h +++ b/os/various/lwip_bindings/arch/sys_arch.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/os/various/lwip_bindings/lwipthread.c b/os/various/lwip_bindings/lwipthread.c index a94ca33ce..56442bab3 100644 --- a/os/various/lwip_bindings/lwipthread.c +++ b/os/various/lwip_bindings/lwipthread.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/os/various/lwip_bindings/lwipthread.h b/os/various/lwip_bindings/lwipthread.h index 8b76eb67e..b921f0280 100644 --- a/os/various/lwip_bindings/lwipthread.h +++ b/os/various/lwip_bindings/lwipthread.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
|