esp-idf/components
Ivan Grokhotkov f60e54497c ledc: fix reported error when div_param == 256
Whenever bit_num and freq_hz are such that div_param == 256, the code would flag that as an error.
In fact, value 256 of div_param was a valid one (HW requires that div_param >= 1.0, when interpreted as a Q10.8 fixed point value).
Changed the if statements a bit to make the logic clearer, and added more descriptive error messages.
Also added missing error for the unimplemented case of low speed mode.
2016-11-24 12:27:32 +08:00
..
2016-11-22 14:45:50 +08:00
2016-11-16 15:57:34 +11:00
2016-11-22 14:45:50 +08:00
2016-11-22 14:45:50 +08:00
2016-11-23 11:29:36 +08:00
2016-11-22 14:45:50 +08:00
2016-11-22 14:45:50 +08:00