OVMS3-idf/components/driver
Angus Gratton 7a93422089 Merge branch 'bugfix/ledc_divider' into 'master'
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.

Reported in https://github.com/igrr/esp32-cam-demo/issues/2

See merge request !247
2016-11-25 10:11:33 +08:00
..
include/driver Merge branch 'driver_merge_tmp/merge_pcnt' into 'master' 2016-11-25 00:41:16 +08:00
component.mk build system: Refactor component.mk to not need component_common.mk 2016-11-10 15:52:22 +11:00
gpio.c Pullup is not configured by gpio_config #110 2016-11-21 11:11:13 +08:00
ledc.c Merge branch 'bugfix/ledc_divider' into 'master' 2016-11-25 10:11:33 +08:00
pcnt.c driver: PCNT 2016-11-23 18:10:45 +08:00
periph_ctrl.c add pcnt.rst 2016-11-23 19:07:30 +08:00
rmt.c Fixes for stdlib.h inclusion 2016-11-24 08:20:21 +11:00
uart.c UART driver: Fix crash in ISR due to "UART" static array moved to flash 2016-11-23 10:58:03 +11:00