From bff52a2141cfd17e6572daa3602d888d6fd9ae88 Mon Sep 17 00:00:00 2001 From: barthess Date: Fri, 13 Mar 2015 22:48:25 +0300 Subject: EICU. Minor improvements --- os/hal/ports/STM32/LLD/eicu_lld.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'os/hal/ports') 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; } } -- cgit v1.2.3