Peripheral MCU configuration for the mbed LPC1768 board.
More...
Peripheral MCU configuration for the mbed LPC1768 board.
- Author
- Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Definition in file periph_conf.h.
#include "periph_cpu.h"
#include "vendor_conf.h"
Go to the source code of this file.
|
#define | TIMER_NUMOF (1U) |
|
#define | TIMER_IRQ_PRIO 1 |
|
#define | TIMER_0_DEV LPC_TIM0 |
|
#define | TIMER_0_CHANNELS 4 |
|
#define | TIMER_0_FREQ (96000000ul) |
|
#define | TIMER_0_MAX_VALUE (0xffffffff) |
|
#define | TIMER_0_CLKEN() (LPC_SC->PCONP |= (1 << 1)) |
|
#define | TIMER_0_CLKDIS() (LPC_SC->PCONP &= ~(1 << 1)) |
|
#define | TIMER_0_PLKSEL() (LPC_SC->PCLKSEL0 |= (1 << 2)) |
|
#define | TIMER_0_ISR isr_timer0 |
|
#define | TIMER_0_IRQ TIMER0_IRQn |
|
◆ uart_config
Initial value:= {
{
.dev = (LPC_UART_TypeDef*)LPC_UART0,
.clk_offset = 3,
.pinsel = 0,
.pinsel_shift = 2,
.pinsel_af = 1,
},
{
.dev = (LPC_UART_TypeDef*)LPC_UART2,
.irq_rx = UART2_IRQn,
.clk_offset = 24,
.pinsel = 0,
.pinsel_shift = 10,
.pinsel_af = 1,
}
}
Definition at line 52 of file periph_conf.h.