Conversion from Chibios2.6.6 to Chibios16.1

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Conversion from Chibios2.6.6 to Chibios16.1

Post by Giovanni »

Hi,

The driver checks for invalid values or the developer would not have any way to be notified about SW errors. You may do the rounding before calling the GPT function, this way the check would not be triggered.

Giovanni
Rick Burnett
Posts: 150
Joined: Tue Jan 08, 2013 2:20 pm

Re: Conversion from Chibios2.6.6 to Chibios16.1

Post by Rick Burnett »

I definitely agree that what you have makes sense, because if not, a developer wouldn't know they were getting an inaccurate value because of rounding. In this case, I didn't want to pay the penalty of multiple computation calls so I just let it round it and disabled that particular check.
Post Reply