Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC11U6X/analogin_api.c
- Revision:
- 222:96162ccfbf43
- Parent:
- 193:cff126de7aaf
- Child:
- 227:7bd0639b8911
--- 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) {