summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/easymini-v0.1/Makefile1
-rw-r--r--src/easymini-v0.1/ao_pins.h2
-rw-r--r--src/lpc/ao_timer_lpc.c11
3 files changed, 12 insertions, 2 deletions
diff --git a/src/easymini-v0.1/Makefile b/src/easymini-v0.1/Makefile
index 612cc472..dfa7624c 100644
--- a/src/easymini-v0.1/Makefile
+++ b/src/easymini-v0.1/Makefile
@@ -39,7 +39,6 @@ ALTOS_SRC = \
ao_config.c \
ao_timer_lpc.c \
ao_exti_lpc.c \
- ao_serial_lpc.c \
ao_usb_lpc.c \
ao_spi_lpc.c \
ao_adc_lpc.c \
diff --git a/src/easymini-v0.1/ao_pins.h b/src/easymini-v0.1/ao_pins.h
index d4fbe7a1..e14e1eb4 100644
--- a/src/easymini-v0.1/ao_pins.h
+++ b/src/easymini-v0.1/ao_pins.h
@@ -43,7 +43,7 @@
/* USART */
-#define HAS_SERIAL 1
+#define HAS_SERIAL 0
#define USE_SERIAL_0_STDIN 1
#define SERIAL_0_18_19 1
#define SERIAL_0_14_15 0
diff --git a/src/lpc/ao_timer_lpc.c b/src/lpc/ao_timer_lpc.c
index 51835baa..73a0e258 100644
--- a/src/lpc/ao_timer_lpc.c
+++ b/src/lpc/ao_timer_lpc.c
@@ -177,4 +177,15 @@ ao_clock_init(void)
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));
}