Hauke Petersen 764207e02e board/mbed_lpc1768: heavy clean-up
- removed legacy code
- added default defines
- created periph_conf.h
2014-11-20 17:40:57 +01:00

73 lines
1.5 KiB
C

/*
* Copyright (C) 2014 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup board_mbed_lpc1768
* @{
*
* @file
* @brief Peripheral MCU configuration for the mbed LPC1768 board
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Timer configuration
* @{
*/
#define TIMER_NUMOF (1U)
#define TIMER_0_EN 1
#define TIMER_1_EN 0
#define TIMER_IRQ_PRIO 1
/* Timer 0 configuration */
#define TIMER_0_DEV LPC_TIMER0
#define TIMER_0_CHANNELS 4
#define TIMER_0_PRESCALER (67U)
#define TIMER_0_MAX_VALUE (0xffffffff)
#define TIMER_0_CLKEN()
#define TIMER_0_ISR isr_timer0
#define TIMER_0_IRQ_CHAN TIMER0_IRQn
/** @} */
/**
* @brief UART configuration
* @{
*/
#define UART_NUMOF (1U)
#define UART_0_EN 1
#define UART_1_EN 0
#define UART_IRQ_PRIO 1
/* UART 0 device configuration */
#define UART_0_DEV LPC_UART2
#define UART_0_CLKEN()
#define UART_0_IRQ UART0_IRQn
#define UART_0_ISR isr_uart0
/* UART 0 pin configuration */
#define UART_0_PORT
#define UART_0_PORT_CLKEN()
#define UART_0_RX_PIN
#define UART_0_TX_PIN
#define UART_0_AF
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */
/** @} */