first cut at turnon scripts for EasyTimer v2
[fw/altos] / src / lpcxpresso / ao_pins.h
1 /*
2  * Copyright © 2013 Keith Packard <keithp@keithp.com>
3  *
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.
8  *
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.
13  *
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.
17  */
18
19 #define HAS_BEEP        0
20
21 #define IS_FLASH_LOADER 0
22
23 /* Crystal on the board */
24 #define AO_LPC_CLKIN    12000000
25
26 /* Main clock frequency. 48MHz for USB so we don't use the USB PLL */
27 #define AO_LPC_CLKOUT   48000000
28
29 /* System clock frequency */
30 #define AO_LPC_SYSCLK   24000000
31
32 #define LED_PORT        0
33 #define LED_PIN_RED     7
34
35 #define AO_LED_RED      (1 << LED_PIN_RED)
36
37 #define LEDS_AVAILABLE  AO_LED_RED
38
39 #define HAS_USB         1
40 #define HAS_USB_PULLUP          1
41 #define AO_USB_PULLUP_PORT      1
42 #define AO_USB_PULLUP_PIN       23
43
44 #define PACKET_HAS_SLAVE        0
45
46 /* USART */
47
48 #define HAS_SERIAL_0            1
49 #define USE_SERIAL_0_STDIN      1
50 #define SERIAL_0_18_19          0
51 #define SERIAL_1_13_14          1
52 #define SERIAL_0_14_15          0
53 #define SERIAL_0_17_18          0
54 #define SERIAL_0_26_27          0