mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC11U6X/analogin_api.c
- Revision:
- 222:96162ccfbf43
- Parent:
- 193:cff126de7aaf
- Child:
- 227:7bd0639b8911
diff -r 8276e3a4886f -r 96162ccfbf43 targets/hal/TARGET_NXP/TARGET_LPC11U6X/analogin_api.c --- a/targets/hal/TARGET_NXP/TARGET_LPC11U6X/analogin_api.c Tue Jun 03 11:30:07 2014 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC11U6X/analogin_api.c Fri Jun 06 11:00:08 2014 +0100 @@ -73,7 +73,7 @@ tmp = LPC_ADC->CTRL; } while ((tmp & (1UL << 30)) != 0); - LPC_ADC->CTRL = 100; // 500kHz sampling + LPC_ADC->CTRL = 1; // Sampling clock: SystemClock divided by 1 } static inline uint32_t adc_read(analogin_t *obj) {