Try to reduce noise on the power supply.
Signed-off-by: Keith Packard <keithp@keithp.com>
ao_config.c \
ao_timer_lpc.c \
ao_exti_lpc.c \
ao_config.c \
ao_timer_lpc.c \
ao_exti_lpc.c \
ao_usb_lpc.c \
ao_spi_lpc.c \
ao_adc_lpc.c \
ao_usb_lpc.c \
ao_spi_lpc.c \
ao_adc_lpc.c \
#define USE_SERIAL_0_STDIN 1
#define SERIAL_0_18_19 1
#define SERIAL_0_14_15 0
#define USE_SERIAL_0_STDIN 1
#define SERIAL_0_18_19 1
#define SERIAL_0_14_15 0
lpc_scb.ssp1clkdiv = 0;
lpc_scb.usbclkdiv = 0;
lpc_scb.clkoutdiv = 0;
lpc_scb.ssp1clkdiv = 0;
lpc_scb.usbclkdiv = 0;
lpc_scb.clkoutdiv = 0;
+
+ /* Power down everything we don't need */
+ lpc_scb.pdruncfg = ((1 << LPC_SCB_PDRUNCFG_IRCOUT_PD) |
+ (1 << LPC_SCB_PDRUNCFG_IRC_PD) |
+ (1 << LPC_SCB_PDRUNCFG_BOD_PD) |
+ (1 << LPC_SCB_PDRUNCFG_ADC_PD) |
+ (1 << LPC_SCB_PDRUNCFG_WDTOSC_PD) |
+ (1 << LPC_SCB_PDRUNCFG_USBPLL_PD) |
+ (1 << LPC_SCB_PDRUNCFG_USBPAD_PD) |
+ (1 << 11) |
+ (7 << 13));