periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 INRIA
3  * 2015 Freie Universität Berlin
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser General
6  * Public License v2.1. See the file LICENSE in the top level directory for more
7  * details.
8  */
9 
21 #ifndef PERIPH_CONF_H
22 #define PERIPH_CONF_H
23 
24 #include "periph_cpu.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #define CLOCK_CORECLOCK (7372800U)
32 
38  .lfxt1_frequency = 32768,
39  .main_clock_source = MAIN_CLOCK_SOURCE_XT2CLK,
40  .submain_clock_source = SUBMAIN_CLOCK_SOURCE_XT2CLK,
41  .main_clock_divier = MAIN_CLOCK_DIVIDE_BY_1,
42  .submain_clock_divier = SUBMAIN_CLOCK_DIVIDE_BY_1,
43  .auxiliary_clock_divier = AUXILIARY_CLOCK_DIVIDE_BY_1,
44  .has_r_osc = true,
45 };
46 
51 static const uart_conf_t uart_config[] = {
52  {
53  .uart = &usart1_as_uart,
54  },
55 };
56 
57 #define UART0_RX_ISR (USART1RX_VECTOR)
58 #define UART0_TX_ISR (USART1TX_VECTOR)
60 #define UART_NUMOF ARRAY_SIZE(uart_config)
67 static const spi_conf_t spi_config[] = {
68  {
69  .spi = &usart0_as_spi,
70  },
71 };
72 
73 #define SPI_NUMOF ARRAY_SIZE(spi_config)
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* PERIPH_CONF_H */
static const uart_conf_t uart_config[]
UART configuration.
Definition: periph_conf.h:39
static const spi_conf_t spi_config[]
SPI configuration.
Definition: periph_conf.h:97
static const msp430_clock_params_t clock_params
Clock configuration.
Definition: periph_conf.h:36
Common timer configuration for TIMER_A clocked by SMCLK and TIMER_B clocked by ACLK.
#define CLOCK_CORECLOCK
System core clock in Hz.
Definition: periph_conf.h:34
@ 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.
const msp430_usart_uart_params_t usart1_as_uart
MSP430 x1xx USART1 in UART configuration.
const msp430_usart_spi_params_t usart0_as_spi
MSP430 x1xx USART0 in SPI configuration.
MSP430Fxzy Basic Clock System Parameters.
uint32_t xt2_frequency
The frequency of the XT2 crystal in Hz.
SPI device configuration.
Definition: periph_cpu.h:337
const msp430_usci_spi_params_t * spi
The SPI configuration to use.
Definition: periph_cpu.h:183
UART device configuration.
Definition: periph_cpu.h:218
const msp430_usci_uart_params_t * uart
The UART configuration to use.
Definition: periph_cpu.h:159