Conversion from Chibios2.6.6 to Chibios16.1

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

Moderators: RoccoMarco, barthess

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Conversion from Chibios2.6.6 to Chibios16.1

Postby Giovanni » Sun Jul 09, 2017 8:41 pm

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

Postby Rick Burnett » Fri Jul 14, 2017 9:07 pm

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.


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 50 guests