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

MSB-430 peripheral configuration. More...

Detailed Description

MSB-430 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 "macros/units.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   msp430_dco_freq
 
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   msp430_dco_freq

Definition at line 32 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 75 of file periph_conf.h.

◆ UART0_RX_ISR

#define UART0_RX_ISR   (USART1RX_VECTOR)

RX IRQ vector of UART 0.

Definition at line 58 of file periph_conf.h.

◆ UART0_TX_ISR

#define UART0_TX_ISR   (USART1TX_VECTOR)

TX IRQ vector of UART 0.

Definition at line 59 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 61 of file periph_conf.h.

Variable Documentation

◆ clock_params

const msp430_clock_params_t clock_params
static
Initial value:
= {
.target_dco_frequency = MHZ(8),
.lfxt1_frequency = 32768,
.main_clock_source = MAIN_CLOCK_SOURCE_DCOCLK,
.submain_clock_source = SUBMAIN_CLOCK_SOURCE_DCOCLK,
.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,
}
@ MAIN_CLOCK_SOURCE_DCOCLK
Internal digitally controlled oscillator (DCO) with RC-type characteristics.
@ SUBMAIN_CLOCK_SOURCE_DCOCLK
Internal digitally controlled oscillator (DCO) with RC-type characteristics.
@ 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.
#define MHZ(x)
A macro to return the Hz in x MHz.
Definition units.h:49

Clock configuration.

Definition at line 37 of file periph_conf.h.

◆ spi_config

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

Definition at line 68 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 52 of file periph_conf.h.