2 * Copyright © 2014 Bdale Garbee <bdale@gag.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 #define AO_STACK_SIZE 384
23 #define IS_FLASH_LOADER 0
25 /* Crystal on the board */
26 #define AO_LPC_CLKIN 12000000
28 /* Main clock frequency. 48MHz for USB so we don't use the USB PLL */
29 #define AO_LPC_CLKOUT 48000000
31 /* System clock frequency */
32 #define AO_LPC_SYSCLK 24000000
36 #define HAS_USB_CONNECT 0
37 #define HAS_USB_VBUS 0
38 #define HAS_USB_PULLUP 1
39 #define AO_USB_PULLUP_PORT 0
40 #define AO_USB_PULLUP_PIN 6
45 #define USE_SERIAL_0_STDIN 0
46 #define SERIAL_0_18_19 1
47 #define SERIAL_0_14_15 0
48 #define SERIAL_0_17_18 0
49 #define SERIAL_0_26_27 0
54 #define SPI_SCK0_P0_6 0
56 #define SPI_SCK1_P1_15 0
57 #define SPI_MISO1_P0_22 0
58 #define SPI_MOSI1_P0_21 0
63 #define LED_PIN_RED 23
64 #define LED_PIN_GREEN 7
65 #define AO_LED_RED (1 << LED_PIN_RED)
66 #define AO_LED_GREEN (1 << LED_PIN_GREEN)
68 #define LEDS_AVAILABLE (AO_LED_RED|AO_LED_GREEN)
74 #define RELAY_BIT (1 << RELAY_PIN)
76 /* Kludge the SPI driver to not configure any