aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
authorbarthess <barthess@yandex.ru>2015-03-01 21:09:12 +0300
committerbarthess <barthess@yandex.ru>2015-03-01 21:09:12 +0300
commit4764c3ba15e737bdb781e445184c00e2a6f0bb00 (patch)
tree8a5fc85618a734679e183478d4afffbb2ef4063f /os/hal/src
parent8bb246b572b18cd5e5fcbf503bc15f8036df2f03 (diff)
downloadChibiOS-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.c4
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;