Loading...
Searching...
No Matches
periph_conf.h File Reference

Peripheral MCU configuration for the mbed LPC1768 board. More...

Detailed Description

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"
+ Include dependency graph for periph_conf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Timer configuration

#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 configuration

#define UART_IRQ_PRIO   1
 
#define UART_0_ISR   isr_uart0
 
#define UART_1_ISR   isr_uart2
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
static const uart_conf_t uart_config []
 

Macro Definition Documentation

◆ TIMER_0_CHANNELS

#define TIMER_0_CHANNELS   4

Definition at line 38 of file periph_conf.h.

◆ TIMER_0_CLKDIS

#define TIMER_0_CLKDIS ( )    (LPC_SC->PCONP &= ~(1 << 1))

Definition at line 42 of file periph_conf.h.

◆ TIMER_0_CLKEN

#define TIMER_0_CLKEN ( )    (LPC_SC->PCONP |= (1 << 1))

Definition at line 41 of file periph_conf.h.

◆ TIMER_0_DEV

#define TIMER_0_DEV   LPC_TIM0

Definition at line 37 of file periph_conf.h.

◆ TIMER_0_FREQ

#define TIMER_0_FREQ   (96000000ul)

Definition at line 39 of file periph_conf.h.

◆ TIMER_0_IRQ

#define TIMER_0_IRQ   TIMER0_IRQn

Definition at line 45 of file periph_conf.h.

◆ TIMER_0_ISR

#define TIMER_0_ISR   isr_timer0

Definition at line 44 of file periph_conf.h.

◆ TIMER_0_MAX_VALUE

#define TIMER_0_MAX_VALUE   (0xffffffff)

Definition at line 40 of file periph_conf.h.

◆ TIMER_0_PLKSEL

#define TIMER_0_PLKSEL ( )    (LPC_SC->PCLKSEL0 |= (1 << 2))

Definition at line 43 of file periph_conf.h.

◆ TIMER_IRQ_PRIO

#define TIMER_IRQ_PRIO   1

Definition at line 34 of file periph_conf.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   (1U)

Definition at line 33 of file periph_conf.h.

◆ UART_0_ISR

#define UART_0_ISR   isr_uart0

Definition at line 73 of file periph_conf.h.

◆ UART_1_ISR

#define UART_1_ISR   isr_uart2

Definition at line 74 of file periph_conf.h.

◆ UART_IRQ_PRIO

#define UART_IRQ_PRIO   1

Definition at line 71 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 76 of file periph_conf.h.

Variable Documentation

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = (LPC_UART_TypeDef*)LPC_UART0,
.irq_rx = UART0_IRQn,
.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,
}
}
@ UART0_IRQn
UART0
Definition cc2538.h:53

Definition at line 52 of file periph_conf.h.