aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32
diff options
context:
space:
mode:
authorbarthess <barthess@yandex.ru>2015-03-13 22:48:25 +0300
committerbarthess <barthess@yandex.ru>2015-03-13 22:48:25 +0300
commitbff52a2141cfd17e6572daa3602d888d6fd9ae88 (patch)
tree821957d3db24895d48a43807a0110cefba06936f /os/hal/ports/STM32
parent070bcc130cfe4904f3d57b276337b7839ed34787 (diff)
downloadChibiOS-Contrib-bff52a2141cfd17e6572daa3602d888d6fd9ae88.tar.gz
ChibiOS-Contrib-bff52a2141cfd17e6572daa3602d888d6fd9ae88.tar.bz2
ChibiOS-Contrib-bff52a2141cfd17e6572daa3602d888d6fd9ae88.zip
EICU. Minor improvements
Diffstat (limited to 'os/hal/ports/STM32')
-rw-r--r--os/hal/ports/STM32/LLD/eicu_lld.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/os/hal/ports/STM32/LLD/eicu_lld.c b/os/hal/ports/STM32/LLD/eicu_lld.c
index 7895cba..d082f35 100644
--- a/os/hal/ports/STM32/LLD/eicu_lld.c
+++ b/os/hal/ports/STM32/LLD/eicu_lld.c
@@ -162,11 +162,10 @@ static eicuresult_t get_time_both(const EICUDriver *eicup,
else if (EICU_WIDTH_32 == eicup->width) {
ret.width = chp->last_idle - chp->last_active;
ret.period = compare - chp->last_active;
- return ret;
}
/* error trap */
else {
- osalSysHalt("ARR register must be loaded with maximum possible value");
+ osalSysHalt("Unhandled width value");
}
return ret;
@@ -205,7 +204,7 @@ static eicucnt_t get_time_width(const EICUDriver *eicup,
}
/* error trap */
else {
- osalSysHalt("ARR register must be loaded with maximum possible value");
+ osalSysHalt("Unhandled width value");
return 0;
}
}
@@ -243,7 +242,7 @@ static eicucnt_t get_time_period(const EICUDriver *eicup,
}
/* error trap */
else {
- osalSysHalt("ARR register must be loaded with maximum possible value");
+ osalSysHalt("Unhandled width value");
return 0;
}
}