diff options
author | barthess <barthess@yandex.ru> | 2015-03-01 21:09:12 +0300 |
---|---|---|
committer | barthess <barthess@yandex.ru> | 2015-03-01 21:09:12 +0300 |
commit | 4764c3ba15e737bdb781e445184c00e2a6f0bb00 (patch) | |
tree | 8a5fc85618a734679e183478d4afffbb2ef4063f /os/hal/src | |
parent | 8bb246b572b18cd5e5fcbf503bc15f8036df2f03 (diff) | |
download | ChibiOS-Contrib-4764c3ba15e737bdb781e445184c00e2a6f0bb00.tar.gz ChibiOS-Contrib-4764c3ba15e737bdb781e445184c00e2a6f0bb00.tar.bz2 ChibiOS-Contrib-4764c3ba15e737bdb781e445184c00e2a6f0bb00.zip |
EICU. Fixed handlign of 32-bit timers. General code cleanup. PWM mode still untested.
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/eicu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/src/eicu.c b/os/hal/src/eicu.c index a2d9994..6088b8f 100644 --- a/os/hal/src/eicu.c +++ b/os/hal/src/eicu.c @@ -138,8 +138,8 @@ void eicuDisable(EICUDriver *eicup) { osalDbgCheck(eicup != NULL); osalSysLock(); - osalDbgAssert((eicup->state == EICU_READY) || (eicup->state == EICU_WAITING) || - (eicup->state == EICU_ACTIVE) || (eicup->state == EICU_IDLE), + osalDbgAssert((eicup->state == EICU_READY) || (eicup->state == EICU_IDLE) || + (eicup->state == EICU_ACTIVE) || (eicup->state == EICU_WAITING), "invalid state"); eicu_lld_disable(eicup); eicup->state = EICU_READY; |