/* Brown-Out detection must be powered to operate the ADC.
* See Section 19.2 of UM10441 revision 2.1 or newer for more information */
- sys_config->powerdown_run_cfg &= ~LPC_POWER_DOWN_BOD;
+ system_brown_out_detection_config(1);
/* Power-up ADC */
sys_config->powerdown_run_cfg &= ~LPC_POWER_DOWN_ADC;
/* Configure the brown-out detection.
* Note: Brown-Out detection must be powered to operate the ADC (See Section 19.2
* of UM10441 revision 2.1 or newer for more information)
+ * This is done automatically inside of adc_on()
*/
void system_brown_out_detection_config(uint32_t level);