zephyr/drivers
Johann Fischer 0187d60937 drivers: adc_mcux: improve initialization of the ADC
Improve initialization of the ADC.

After initialization with the default values, the clock source
of the ADC is asynchronous clock (ADACK) and clock divide ratio
is 8. The minimum conversion clock frequency is 1MHz.
Add clock divider selection and set default divide ratio to 1.
That sets the conversion clock frequency to approximately 5MHz.

Default configuration for the voltage reference is set to
external pins V_REFH and V_REFL. Depending on the MCU configuration
V_REFL may be connected to ground and V_REFH to VREF_OUT.
Since Voltage Reference block is not supported, the ADC does not work
properly on FRDM-KW41Z. Add voltage reference selection to fix it.

Enable self-calibration function as recommeded in Reference Manual.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
2018-12-13 08:32:18 -06:00
..
adc drivers: adc_mcux: improve initialization of the ADC 2018-12-13 08:32:18 -06:00
aio drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
audio drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
bluetooth drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
can drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
clock_control drivers/clock_control: stm32: add errors on unsupported bus value 2018-12-07 11:31:48 -05:00
console drivers: console: fix USB_UART_CONSOLE 2018-12-05 08:53:15 -05:00
counter drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
crypto drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
display driver: SDL based display emulation driver 2018-12-10 20:37:29 -05:00
dma dma: stm32: Configure bus width and burst size for memcpy mode 2018-12-13 07:33:30 -06:00
entropy drivers: stm32: check clock_control_on return value 2018-12-07 11:31:48 -05:00
ethernet drivers: eth: native_posix: Fix gPTP header parsing 2018-12-11 13:50:54 +02:00
flash drivers: flash_mcux: remove inclusion of sys+log.h 2018-12-10 20:38:09 -05:00
gpio drivers: gpio_nrfx: Remove undesired NRF_P0 definition 2018-12-13 07:35:28 -06:00
i2c kernel: check retval of driver init 2018-12-07 19:33:23 -05:00
i2s drivers: stm32: check clock_control_on return value 2018-12-07 11:31:48 -05:00
ieee802154 drivers: ieee802154_mcr20a: fix style 2018-12-10 10:41:22 -06:00
interrupt_controller drivers/gpio: stm32: return error when pin line already in use 2018-12-07 11:31:22 -05:00
ipm drivers: ipm: ipm_quark_se: Remove object declaration from header 2018-12-07 10:32:41 -05:00
led drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
led_strip drivers: led_strip: Fix typo in APA102 driver 2018-12-10 12:16:13 -08:00
modem drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
net drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
neural_net drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
pci pci: General code cleanup 2018-12-07 11:32:45 -05:00
pinmux pinmux: stm32: Add missing pinmux for I2C2 and SPI2 2018-12-13 08:07:28 -06:00
ptp_clock drivers: ptp_clock: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
pwm drivers: pwm: nrf: Removed Kconfig prescaler option. Rewrite HW driver 2018-12-11 15:18:14 +01:00
rtc drivers: stm32: check clock_control_on return value 2018-12-07 11:31:48 -05:00
sensor sensors: convert lis2mdl to use information coming from dts 2018-12-11 08:11:11 -06:00
serial drivers: stm32: check clock_control_on return value 2018-12-07 11:31:48 -05:00
spi stm32: drivers: spi: Added missing devices 2018-12-13 07:31:06 -06:00
timer drivers: timer: fix disable systick function 2018-12-12 15:40:36 -06:00
usb drivers: stm32: check clock_control_on return value 2018-12-07 11:31:48 -05:00
watchdog drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
wifi drivers: wifi: eswifi: Remove unused code 2018-12-11 09:57:13 -06:00
CMakeLists.txt drivers: neural_net: Use correct Kconfig variable 2018-11-09 16:52:32 -05:00
Kconfig kconfig: intel_s1000: Add neural_net Kconfig 2018-11-08 17:08:19 -05:00