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

MSB-430h peripheral configuration. More...

Detailed Description

MSB-430h 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.

#include "periph_cpu.h"
#include "cfg_timer_a_smclk_b_aclk.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

#define CLOCK_CORECLOCK   (7372800U)
 
static const msp430_clock_params_t clock_params
 Clock configuration.
 

UART configuration

#define UART0_RX_ISR   (USART1RX_VECTOR)
 RX IRQ vector of UART 0.
 
#define UART0_TX_ISR   (USART1TX_VECTOR)
 TX IRQ vector of UART 0.
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
static const uart_conf_t uart_config []
 

SPI configuration

#define SPI_NUMOF   ARRAY_SIZE(spi_config)
 
static const spi_conf_t spi_config []
 

Macro Definition Documentation

◆ CLOCK_CORECLOCK

#define CLOCK_CORECLOCK   (7372800U)

Definition at line 31 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 73 of file periph_conf.h.

◆ UART0_RX_ISR

#define UART0_RX_ISR   (USART1RX_VECTOR)

RX IRQ vector of UART 0.

Definition at line 57 of file periph_conf.h.

◆ UART0_TX_ISR

#define UART0_TX_ISR   (USART1TX_VECTOR)

TX IRQ vector of UART 0.

Definition at line 58 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 60 of file periph_conf.h.

Variable Documentation

◆ clock_params

const msp430_clock_params_t clock_params
static
Initial value:
= {
.xt2_frequency = CLOCK_CORECLOCK,
.lfxt1_frequency = 32768,
.main_clock_source = MAIN_CLOCK_SOURCE_XT2CLK,
.submain_clock_source = SUBMAIN_CLOCK_SOURCE_XT2CLK,
.main_clock_divier = MAIN_CLOCK_DIVIDE_BY_1,
.submain_clock_divier = SUBMAIN_CLOCK_DIVIDE_BY_1,
.auxiliary_clock_divier = AUXILIARY_CLOCK_DIVIDE_BY_1,
.has_r_osc = true,
}
#define CLOCK_CORECLOCK
Clock configuration.
Definition periph_cpu.h:31
@ MAIN_CLOCK_SOURCE_XT2CLK
High frequency crystal between 450 kHz and 8 MHz.
@ SUBMAIN_CLOCK_SOURCE_XT2CLK
High frequency crystal between 450 kHz and 8 MHz.
@ SUBMAIN_CLOCK_DIVIDE_BY_1
Divide the main clock by 1.
@ AUXILIARY_CLOCK_DIVIDE_BY_1
Divide the main clock by 1.
@ MAIN_CLOCK_DIVIDE_BY_1
Divide the main clock by 1.

Clock configuration.

Definition at line 36 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.spi = &usart0_as_spi,
},
}
const msp430_usart_spi_params_t usart0_as_spi
MSP430 x1xx USART0 in SPI configuration.

Definition at line 67 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.uart = &usart1_as_uart,
},
}
const msp430_usart_uart_params_t usart1_as_uart
MSP430 x1xx USART1 in UART configuration.

Definition at line 51 of file periph_conf.h.