diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-30 15:36:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-30 15:36:46 +0000 |
commit | 73e37856afedca2090dd25820b9e484381aff6eb (patch) | |
tree | 23c40db9c1c2047b74bd10c336a243270af01ffa /nuttx/ChangeLog | |
parent | ad70e05275b54d9d89a6709b3ec65dbdd3c02196 (diff) | |
download | nuttx-73e37856afedca2090dd25820b9e484381aff6eb.tar.gz nuttx-73e37856afedca2090dd25820b9e484381aff6eb.tar.bz2 nuttx-73e37856afedca2090dd25820b9e484381aff6eb.zip |
Fix return values from sleep(), usleep(), and sigtimedwait(). Fix STM32 F2 I2C bug-for-bug compatibility
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4786 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/ChangeLog')
-rw-r--r-- | nuttx/ChangeLog | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index a39dfad89..c19ec511a 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -2833,5 +2833,20 @@ * stmpe11*: Fix a massive naming problem. All references to STMPE11 should be STMPE812. * arch/arm/src/stm32/stm32_otgfsdev.c: Need to enabled USB reset interrupt - (contricuted by Erik Van Der Zalm). + (contributed by Erik Van Der Zalm). + * sched/sleep.c: Fix the return value from sleep(). The correct behavior is + to return the number of unwaited seconds; the implementation was always + returning zero. + * sched/usleep.c and include/unistd.h: Was a void function, but should return + 0 on success. usleep() needs to check the return value from sigtimedwait(). + sigtimewait() returns the signal number that awakened it and an error (EAGAIN) + if the timeout expired (normal case). + * sched/sig_timedwait.c: Fix sigtimedwait() return value. On a timeout, it was + setting the 8-bit si_signo field to -1 and eded up reported successfully awakened + by signal 255! Now detects the timeout and errors -1 with errno == EGAIN. If + sigtimedwait() is awakened by an unblocked signal, but it is not one of the + signals in the waited-for set, it will return -1 with errno == EINTR. + * arch/arm/src/stm32_i2c.c: Fix STM32 F2 I2C. It is apparently bug-for-bug + compatible with the F4 and needs the same work-around for the missing BTF + signal that was needed for the F4. |