diff options
Diffstat (limited to 'boards/EA_LPCXPRESSO_LPC1769/board.h')
| -rw-r--r-- | boards/EA_LPCXPRESSO_LPC1769/board.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/boards/EA_LPCXPRESSO_LPC1769/board.h b/boards/EA_LPCXPRESSO_LPC1769/board.h new file mode 100644 index 000000000..7d26cbc7c --- /dev/null +++ b/boards/EA_LPCXPRESSO_LPC1769/board.h @@ -0,0 +1,91 @@ +/* + ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +#ifndef _BOARD_H_ +#define _BOARD_H_ + +/* + * Setup for Embedded Artists LPCXpresso LPC1769. + */ + +/* + * Board identifiers. + */ +#define BOARD_EA_LPCXPRESSO_1769 +#define BOARD_NAME "Embedded Artists LPCXpresso LPC1769" + +/* + * Ethernet PHY type. + */ +#define MII_LAN8720_ID 0x0007C0F0 +#define BOARD_PHY_ID MII_LAN8720_ID +#define BOARD_PHY_RMII + +//#define BOARD_PHY_ADDRESS +/* + * Board frequencies. + */ +#define MAINOSCCLK 12000000UL +#define RTCOSCCLK 32768UL + +/* + * GPIO 0 initial setup. + */ +#define VAL_GPIO0DIR PAL_PORT_BIT(GPIO0_LED2_RED) +#define VAL_GPIO0DATA 0x00000000 + +/* + * GPIO 1 initial setup. + */ +#define VAL_GPIO1DIR 0x00000000 +#define VAL_GPIO1DATA 0x00000000 + +/* + * GPIO 2 initial setup. + */ +#define VAL_GPIO2DIR 0x00000000 +#define VAL_GPIO2DATA 0x00000000 + +/* + * GPIO 3 initial setup. + */ +#define VAL_GPIO3DIR 0x00000000 +#define VAL_GPIO3DATA 0x00000000 + +/* + * GPIO 4 initial setup. + */ +#define VAL_GPIO4DIR 0x00000000 +#define VAL_GPIO4DATA 0x00000000 + +/* + * Pin definitions. + */ +#define GPIO0_LED2_RED 22 + +#define GPIO2_SW_TO_GND 12 + +#if !defined(_FROM_ASM_) +#ifdef __cplusplus +extern "C" { +#endif + void boardInit(void); +#ifdef __cplusplus +} +#endif +#endif /* _FROM_ASM_ */ + +#endif /* _BOARD_H_ */ |
