periph_conf.h File Reference

TelosB peripheral configuration. More...

Detailed Description

TelosB peripheral configuration.

Author
Oliver Hahm olive.nosp@m.r.ha.nosp@m.hm@in.nosp@m.ria..nosp@m.fr
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.

Go to the source code of this file.

Clock configuration

#define CLOCK_CORECLOCK   (2457600U)
 
#define CLOCK_CMCLK   CLOCK_CORECLOCK /* no divider programmed */
 

Timer configuration

#define TIMER_NUMOF   (1U)
 
#define TIMER_BASE   (TIMER_A)
 
#define TIMER_CHAN   (3)
 
#define TIMER_ISR_CC0   (TIMERA0_VECTOR)
 
#define TIMER_ISR_CCX   (TIMERA1_VECTOR)
 

UART configuration

#define UART_NUMOF   (1U)
 
#define UART_BASE   (USART_1)
 
#define UART_IE   (SFR->IE2)
 
#define UART_IF   (SFR->IFG2)
 
#define UART_IE_RX_BIT   (1 << 4)
 
#define UART_IE_TX_BIT   (1 << 5)
 
#define UART_ME   (SFR->ME2)
 
#define UART_ME_BITS   (0x30)
 
#define UART_PORT   (PORT_3)
 
#define UART_RX_PIN   (1 << 6)
 
#define UART_TX_PIN   (1 << 7)
 
#define UART_RX_ISR   (USART1RX_VECTOR)
 
#define UART_TX_ISR   (USART1TX_VECTOR)
 

SPI configuration

#define SPI_NUMOF   (1U)
 
#define SPI_BASE   (USART_0)
 
#define SPI_IE   (SFR->IE1)
 
#define SPI_IF   (SFR->IFG1)
 
#define SPI_IE_RX_BIT   (1 << 6)
 
#define SPI_IE_TX_BIT   (1 << 7)
 
#define SPI_ME   (SFR->ME1)
 
#define SPI_ME_BIT   (1 << 6)
 
#define SPI_PIN_MISO   GPIO_PIN(P3, 2)
 
#define SPI_PIN_MOSI   GPIO_PIN(P3, 1)
 
#define SPI_PIN_CLK   GPIO_PIN(P3, 3)
 

Macro Definition Documentation

◆ CLOCK_CORECLOCK

#define CLOCK_CORECLOCK   (2457600U)
Todo:
Move all clock configuration code here from the board.h

Definition at line 33 of file periph_conf.h.