Loading...
Searching...
No Matches
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"
25#include "macros/units.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#define CLOCK_CORECLOCK msp430_dco_freq
33
39 .lfxt1_frequency = 32768,
40 .main_clock_source = MAIN_CLOCK_SOURCE_DCOCLK,
41 .submain_clock_source = SUBMAIN_CLOCK_SOURCE_DCOCLK,
42 .main_clock_divier = MAIN_CLOCK_DIVIDE_BY_1,
43 .submain_clock_divier = SUBMAIN_CLOCK_DIVIDE_BY_1,
44 .auxiliary_clock_divier = AUXILIARY_CLOCK_DIVIDE_BY_1,
45 .has_r_osc = true,
46};
47
52static const uart_conf_t uart_config[] = {
53 {
55 },
56};
57
58#define UART0_RX_ISR (USART1RX_VECTOR)
59#define UART0_TX_ISR (USART1TX_VECTOR)
61#define UART_NUMOF ARRAY_SIZE(uart_config)
68static const spi_conf_t spi_config[] = {
69 {
70 /* beware of resource conflict with UART */
72 },
73};
74
75#define SPI_NUMOF ARRAY_SIZE(spi_config)
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* PERIPH_CONF_H */
static const msp430_clock_params_t clock_params
Clock configuration.
Definition periph_conf.h:37
Common timer configuration for TIMER_A clocked by SMCLK and TIMER_B clocked by ACLK.
@ 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.
const msp430_usart_spi_params_t usart1_as_spi
MSP430 x1xx USART1 in SPI configuration.
const msp430_usart_uart_params_t usart1_as_uart
MSP430 x1xx USART1 in UART configuration.
MSP430Fxzy Basic Clock System Parameters.
uint32_t target_dco_frequency
The target frequency to run the DCO at 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
Unit helper macros.
#define MHZ(x)
A macro to return the Hz in x MHz.
Definition units.h:49