Skip to content

Commit ddf1fe2

Browse files
bors[bot]maribufabian18dyladhugueslarrive
authored
19733: cpu/msp430: reorganize code r=maribu a=maribu ### Contribution description RIOT supports two distinct families of the MSP430: The [MSP430 x1xx] MCU family and the [MSP430 F2xx/G2xx] MCU family. For both incompatible MCU families the code was located in the msp430fxyz folder, resulting in case of the UART driver in particularly bizarre code looking roughly like this: ```C #ifndef UART_USE_USCI /* implementation of x1xx peripheral ... */ #else /* implementation of F2xx/G2xx peripheral ... */ #endif /* zero shared code between both variants */ ``` This moves peripheral drivers shared between the two families to msp430_common and splits the SPI and UART driver into two MCU families. In addition, it cleans up the `msp430_regs.h` by dropping most of it and using the macros and symbols provided by the vendor header files. There is little reason for us to maintain constants when TI is already doing that. [MSP430 x1xx]: https://www.ti.com/lit/ug/slau049f/slau049f.pdf [MSP430 F2xx/G2xx]: https://www.ti.com/lit/ug/slau144k/slau144k.pdf 19747: gnrc/ipv6/nib: reset rs_sent counter also for not-6LN interfaces r=maribu a=fabian18 19769: cpu/nrf53: add initial support with nRF5340DK-APP board r=maribu a=dylad ### Contribution description This PR adds support for nRF5340 MCU and its associated Nordic development board, nRF5340DK. This MCU provides a dual Cortex-M33, one application core running at up to 128MHz, and one network core running at up to 64MHz. Peripherals are inherited from others Nordic MCUs families so it shouldn't be hard to add more of them in followup PRs. For now, only the minimal set of peripherals is supported: - GPIO / GPIO_IRQ - UART - TIMER ### Testing procedure Build the usual test application for the supported peripherals and flash the board. nRF5340DK provides two serial ports on its embedded debugger. RIOT's shell should be available on the first one (/dev/ttyACM0) ### Issues/PRs references #18576 #19267 19782: cpu/msp430: fix for ti's msp430-gcc-opensource package ld version r=maribu a=hugueslarrive ### Contribution description My msp430 toolchain (https://www.ti.com/tool/MSP430-GCC-OPENSOURCE) was broken by #19484: ``` hugues@p700:~/github/cpu_msp430_common/RIOT$ BOARD=msb-430 make -j64 -C examples/hello-world make : on entre dans le répertoire « /home/hugues/github/cpu_msp430_common/RIOT/examples/hello-world » Building application "hello-world" for "msb-430" with MCU "msp430fxyz". "make" -C /home/hugues/github/cpu_msp430_common/RIOT/boards/common/init "make" -C /home/hugues/github/cpu_msp430_common/RIOT/boards/msb-430 "make" -C /home/hugues/github/cpu_msp430_common/RIOT/core "make" -C /home/hugues/github/cpu_msp430_common/RIOT/core/lib "make" -C /home/hugues/github/cpu_msp430_common/RIOT/cpu/msp430fxyz "make" -C /home/hugues/github/cpu_msp430_common/RIOT/drivers "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys "make" -C /home/hugues/github/cpu_msp430_common/RIOT/boards/common/msb-430 "make" -C /home/hugues/github/cpu_msp430_common/RIOT/drivers/periph_common "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/auto_init "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/div "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/libc "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/malloc_thread_safe "make" -C /home/hugues/github/cpu_msp430_common/RIOT/cpu/msp430_common "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/newlib_syscalls_default "make" -C /home/hugues/github/cpu_msp430_common/RIOT/cpu/msp430fxyz/periph "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/preprocessor "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/stdio_uart "make" -C /home/hugues/github/cpu_msp430_common/RIOT/cpu/msp430_common/periph /opt/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: .rodata not found for insert collect2: error: ld returned 1 exit status make: *** [/home/hugues/github/cpu_msp430_common/RIOT/examples/hello-world/../../Makefile.include:761 : /home/hugues/github/cpu_msp430_common/RIOT/examples/hello-world/bin/msb-430/hello-world.elf] Erreur 1 make : on quitte le répertoire « /home/hugues/github/cpu_msp430_common/RIOT/examples/hello-world » hugues@p700:~/github/cpu_msp430_common/RIOT$ /opt/ti/msp430-gcc/msp430-elf/bin/ld --version GNU ld (Mitto Systems Limited - msp430-gcc 9.3.1.11) 2.34 Copyright (C) 2020 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. hugues@p700:~/github/cpu_msp430_common/RIOT$ /opt/ti/msp430-gcc/msp430-elf/bin/ld --version | grep -Eo '[0-9]\.[0-9]+' 9.3 1.11 2.34 hugues@p700:~/github/cpu_msp430_common/RIOT$ /opt/ti/msp430-gcc/msp430-elf/bin/ld --version | grep -Eo '[0-9]\.[0-9]+$' 2.34 ``` ### Testing procedure ``` hugues@p700:~/github/cpu_msp430_common/RIOT$ BOARD=msb-430 make -j64 -C examples/hello-world make : on entre dans le répertoire « /home/hugues/github/cpu_msp430_common/RIOT/examples/hello-world » Building application "hello-world" for "msb-430" with MCU "msp430fxyz". "make" -C /home/hugues/github/cpu_msp430_common/RIOT/boards/common/init "make" -C /home/hugues/github/cpu_msp430_common/RIOT/boards/msb-430 "make" -C /home/hugues/github/cpu_msp430_common/RIOT/core "make" -C /home/hugues/github/cpu_msp430_common/RIOT/core/lib "make" -C /home/hugues/github/cpu_msp430_common/RIOT/cpu/msp430fxyz "make" -C /home/hugues/github/cpu_msp430_common/RIOT/drivers "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys "make" -C /home/hugues/github/cpu_msp430_common/RIOT/boards/common/msb-430 "make" -C /home/hugues/github/cpu_msp430_common/RIOT/drivers/periph_common "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/auto_init "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/div "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/libc "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/malloc_thread_safe "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/newlib_syscalls_default "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/preprocessor "make" -C /home/hugues/github/cpu_msp430_common/RIOT/cpu/msp430_common "make" -C /home/hugues/github/cpu_msp430_common/RIOT/sys/stdio_uart "make" -C /home/hugues/github/cpu_msp430_common/RIOT/cpu/msp430fxyz/periph "make" -C /home/hugues/github/cpu_msp430_common/RIOT/cpu/msp430_common/periph text data bss dec hex filename 8612 722 866 10200 27d8 /home/hugues/github/cpu_msp430_common/RIOT/examples/hello-world/bin/msb-430/hello-world.elf make : on quitte le répertoire « /home/hugues/github/cpu_msp430_common/RIOT/examples/hello-world » ``` ### Issues/PRs references Introduced by #19484, highlighted in #16727. Co-authored-by: Marian Buschsieweke <[email protected]> Co-authored-by: Fabian Hüßler <[email protected]> Co-authored-by: Dylan Laduranty <[email protected]> Co-authored-by: Hugues Larrive <[email protected]>
5 parents 852e9c5 + 45b353c + 7ea264e + 9fd48a0 + 453b08f commit ddf1fe2

File tree

131 files changed

+40132
-1241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+40132
-1241
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
CPU = msp430fxyz
1+
CPU = msp430
22
CPU_MODEL = msp430f1612

boards/msb-430/include/periph_conf.h

+8-12
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
extern "C" {
2929
#endif
3030

31-
#define CLOCK_CORECLOCK msp430_fxyz_dco_freq
31+
#define CLOCK_CORECLOCK msp430_dco_freq
3232

3333
/**
3434
* @brief Clock configuration
3535
*/
36-
static const msp430_fxyz_clock_params_t clock_params = {
36+
static const msp430_clock_params_t clock_params = {
3737
.target_dco_frequency = 7372800U,
3838
.lfxt1_frequency = 32768,
3939
.main_clock_source = MAIN_CLOCK_SOURCE_DCOCLK,
@@ -49,7 +49,7 @@ static const msp430_fxyz_clock_params_t clock_params = {
4949
* @{
5050
*/
5151
#define TIMER_NUMOF (1U)
52-
#define TIMER_BASE (TIMER_A)
52+
#define TIMER_BASE (&TIMER_A)
5353
#define TIMER_CHAN (3)
5454
#define TIMER_ISR_CC0 (TIMERA0_VECTOR)
5555
#define TIMER_ISR_CCX (TIMERA1_VECTOR)
@@ -61,14 +61,12 @@ static const msp430_fxyz_clock_params_t clock_params = {
6161
*/
6262
#define UART_NUMOF (1U)
6363

64-
#define UART_BASE (USART_1)
65-
#define UART_IE (SFR->IE2)
66-
#define UART_IF (SFR->IFG2)
64+
#define UART_BASE (&USART_1)
65+
#define UART_SFR (&USART_1_SFR)
6766
#define UART_IE_RX_BIT (1 << 4)
6867
#define UART_IE_TX_BIT (1 << 5)
69-
#define UART_ME (SFR->ME2)
7068
#define UART_ME_BITS (0x30)
71-
#define UART_PORT (PORT_3)
69+
#define UART_PORT (&PORT_3)
7270
#define UART_RX_PIN (1 << 6)
7371
#define UART_TX_PIN (1 << 7)
7472
#define UART_RX_ISR (USART1RX_VECTOR)
@@ -82,12 +80,10 @@ static const msp430_fxyz_clock_params_t clock_params = {
8280
#define SPI_NUMOF (1U)
8381

8482
/* SPI configuration */
85-
#define SPI_BASE (USART_0)
86-
#define SPI_IE (SFR->IE1)
87-
#define SPI_IF (SFR->IFG1)
83+
#define SPI_BASE (&USART_0)
84+
#define SPI_SFR (&USART_0_SFR)
8885
#define SPI_IE_RX_BIT (1 << 6)
8986
#define SPI_IE_TX_BIT (1 << 7)
90-
#define SPI_ME (SFR->ME1)
9187
#define SPI_ME_BIT (1 << 6)
9288
#define SPI_PIN_MISO GPIO_PIN(P5, 2)
9389
#define SPI_PIN_MOSI GPIO_PIN(P5, 1)

boards/msb-430h/include/periph_conf.h

+7-11
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
/**
3333
* @brief Clock configuration
3434
*/
35-
static const msp430_fxyz_clock_params_t clock_params = {
35+
static const msp430_clock_params_t clock_params = {
3636
.xt2_frequency = CLOCK_CORECLOCK,
3737
.lfxt1_frequency = 32768,
3838
.main_clock_source = MAIN_CLOCK_SOURCE_XT2CLK,
@@ -48,7 +48,7 @@ static const msp430_fxyz_clock_params_t clock_params = {
4848
* @{
4949
*/
5050
#define TIMER_NUMOF (1U)
51-
#define TIMER_BASE (TIMER_A)
51+
#define TIMER_BASE (&TIMER_A)
5252
#define TIMER_CHAN (3)
5353
#define TIMER_ISR_CC0 (TIMERA0_VECTOR)
5454
#define TIMER_ISR_CCX (TIMERA1_VECTOR)
@@ -60,14 +60,12 @@ static const msp430_fxyz_clock_params_t clock_params = {
6060
*/
6161
#define UART_NUMOF (1U)
6262

63-
#define UART_BASE (USART_1)
64-
#define UART_IE (SFR->IE2)
65-
#define UART_IF (SFR->IFG2)
63+
#define UART_BASE (&USART_1)
64+
#define UART_SFR (&USART_1_SFR)
6665
#define UART_IE_RX_BIT (1 << 4)
6766
#define UART_IE_TX_BIT (1 << 5)
68-
#define UART_ME (SFR->ME2)
6967
#define UART_ME_BITS (0x30)
70-
#define UART_PORT (PORT_3)
68+
#define UART_PORT (&PORT_3)
7169
#define UART_RX_PIN (1 << 6)
7270
#define UART_TX_PIN (1 << 7)
7371
#define UART_RX_ISR (USART1RX_VECTOR)
@@ -81,12 +79,10 @@ static const msp430_fxyz_clock_params_t clock_params = {
8179
#define SPI_NUMOF (1U)
8280

8381
/* SPI configuration */
84-
#define SPI_BASE (USART_0)
85-
#define SPI_IE (SFR->IE1)
86-
#define SPI_IF (SFR->IFG1)
82+
#define SPI_BASE (&USART_0)
83+
#define SPI_SFR (&USART_0_SFR)
8784
#define SPI_IE_RX_BIT (1 << 6)
8885
#define SPI_IE_TX_BIT (1 << 7)
89-
#define SPI_ME (SFR->ME1)
9086
#define SPI_ME_BIT (1 << 6)
9187
#define SPI_PIN_MISO GPIO_PIN(P3, 2)
9288
#define SPI_PIN_MOSI GPIO_PIN(P3, 1)

boards/nrf5340dk-app/Kconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2023 Mesotic SAS
2+
#
3+
# This file is subject to the terms and conditions of the GNU Lesser
4+
# General Public License v2.1. See the file LICENSE in the top level
5+
# directory for more details.
6+
7+
config BOARD
8+
default "nrf5340dk-app" if BOARD_NRF5340DK_APP
9+
10+
config BOARD_NRF5340DK_APP
11+
bool
12+
default y
13+
select CPU_MODEL_NRF5340_APP
14+
select HAS_PERIPH_TIMER
15+
select HAS_PERIPH_UART
16+
select HAS_PERIPH_UART_HW_FC
17+
18+
# Put other features for this board (in alphabetical order)

boards/nrf5340dk-app/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MODULE = board
2+
3+
include $(RIOTBASE)/Makefile.base
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CPU_MODEL = nrf5340_app
2+
CPU = nrf53
3+
4+
# Put defined MCU peripherals here (in alphabetical order)
5+
FEATURES_PROVIDED += periph_timer
6+
FEATURES_PROVIDED += periph_uart
7+
FEATURES_PROVIDED += periph_uart_hw_fc

boards/nrf5340dk-app/Makefile.include

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# include this module into the build
2+
INCLUDES += -I$(RIOTBOARD)/nrf5340dk-app/include

boards/nrf5340dk-app/doc.txt

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
@defgroup boards_nrf5340dk-app nRF5340DK
3+
@ingroup boards
4+
@brief Support for the nRF5340DK-app board
5+
6+
### General information
7+
8+
The nRF5340DK is a devboard based on nRF5340 MCU which offers a dual core
9+
Cortex-M33 with one application core and one network core.
10+
The network core is able to handle Bluetooth 5.3, BLE, mesh, NFC, Thread and
11+
Zigbee connectivity.
12+
Currently only the application core can be used with RIOT-OS.
13+
14+
The board features four LEDs, four user buttons/switches and a reset button.
15+
16+
### Links
17+
18+
- [nRF5340DK web page](https://infocenter.nordicsemi.com/topic/ug_nrf5340_dk/UG/dk/intro.html)
19+
- [documentation and hardware description](https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf53%2Fstruct%2Fnrf5340.html)
20+
21+
### Flash the board
22+
23+
The board is flashed using JLink or nrfjprog software. Programs needs to
24+
be installed.
25+
26+
The process is automated in the usual `make flash` target.
27+
28+
### Accessing STDIO via UART
29+
30+
The STDIO is directly accessible via the USB port. On a Linux host, it's
31+
generally mapped to `/dev/ttyACM0`.
32+
33+
Use the `term` target to connect to the board serial port<br/>
34+
```
35+
make BOARD=nrf5340dk-app -C examples/hello-world term
36+
```
37+
38+
*/

boards/nrf5340dk-app/include/board.h

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/*
2+
* Copyright (C) 2023 Mesotic SAS
3+
*
4+
* This file is subject to the terms and conditions of the GNU Lesser
5+
* General Public License v2.1. See the file LICENSE in the top level
6+
* directory for more details.
7+
*/
8+
9+
/**
10+
* @ingroup boards_nrf5340dk-app
11+
* @{
12+
*
13+
* @file
14+
* @brief Board configuration for the nRF5340DK-app board
15+
*
16+
* @author Dylan Laduranty <[email protected]>
17+
*/
18+
19+
#ifndef BOARD_H
20+
#define BOARD_H
21+
22+
#include "cpu.h"
23+
24+
#ifdef __cplusplus
25+
extern "C" {
26+
#endif
27+
28+
/**
29+
* @brief System core clock speed, for all NRF53 Application core.
30+
*/
31+
#define CLOCK_CORECLOCK MHZ(128)
32+
33+
/**
34+
* @name HF Clock configuration
35+
*
36+
*
37+
* @{
38+
*/
39+
40+
/* CLOCK_HFCLKSRC_SRC_HFXO to use external 32MHz crystal
41+
* CLOCK_HFCLKSRC_SRC_HFINT to use internal crystal */
42+
#define CLOCK_HFCLK (CLOCK_HFCLKSRC_SRC_HFXO) /**< HFCLK Source selection */
43+
#define CLOCK_LFCLK (3) /**< LFCLK Source selection */
44+
/** @} */
45+
46+
/**
47+
* @name LED pin configuration
48+
* @{
49+
*/
50+
#define LED0_PIN GPIO_PIN(0, 28) /**< LED0 pin definition */
51+
#define LED1_PIN GPIO_PIN(0, 29) /**< LED1 pin definition */
52+
#define LED2_PIN GPIO_PIN(0, 30) /**< LED2 pin definition */
53+
#define LED3_PIN GPIO_PIN(0, 31) /**< LED3 pin definition */
54+
55+
#define LED0_MASK (1 << 28) /**< LED0 PORT bitmask */
56+
#define LED1_MASK (1 << 29) /**< LED1 PORT bitmask */
57+
#define LED2_MASK (1 << 30) /**< LED2 PORT bitmask */
58+
#define LED3_MASK (1 << 31) /**< LED3 PORT bitmask */
59+
60+
#define LED_PORT (NRF_P0_S) /**< Default LED PORT */
61+
62+
#define LED0_ON (LED_PORT->OUTCLR = LED0_MASK) /**< LED0 ON macro */
63+
#define LED0_OFF (LED_PORT->OUTSET = LED0_MASK) /**< LED0 OFF macro */
64+
#define LED0_TOGGLE (LED_PORT->OUT ^= LED0_MASK) /**< LED0 toggle macro */
65+
66+
#define LED1_ON (LED_PORT->OUTCLR = LED1_MASK) /**< LED1 ON macro */
67+
#define LED1_OFF (LED_PORT->OUTSET = LED1_MASK) /**< LED1 OFF macro */
68+
#define LED1_TOGGLE (LED_PORT->OUT ^= LED1_MASK) /**< LED1 toggle macro */
69+
70+
#define LED2_ON (LED_PORT->OUTCLR = LED2_MASK) /**< LED2 ON macro */
71+
#define LED2_OFF (LED_PORT->OUTSET = LED2_MASK) /**< LED2 OFF macro */
72+
#define LED2_TOGGLE (LED_PORT->OUT ^= LED2_MASK) /**< LED2 toggle macro */
73+
74+
#define LED3_ON (LED_PORT->OUTCLR = LED3_MASK) /**< LED3 ON macro */
75+
#define LED3_OFF (LED_PORT->OUTSET = LED3_MASK) /**< LED3 OFF macro */
76+
#define LED3_TOGGLE (LED_PORT->OUT ^= LED3_MASK) /**< LED3 toggle macro */
77+
/** @} */
78+
79+
/**
80+
* @name Button pin configuration
81+
* @{
82+
*/
83+
#define BTN0_PIN GPIO_PIN(0, 23) /**< BTN0 pin definition */
84+
#define BTN0_MODE GPIO_IN_PU /**< BTN0 default mode */
85+
#define BTN1_PIN GPIO_PIN(0, 24) /**< BTN1 pin definition */
86+
#define BTN1_MODE GPIO_IN_PU /**< BTN1 default mode */
87+
#define BTN2_PIN GPIO_PIN(0, 8) /**< BTN2 pin definition */
88+
#define BTN2_MODE GPIO_IN_PU /**< BTN2 default mode */
89+
#define BTN3_PIN GPIO_PIN(0, 9) /**< BTN3 pin definition */
90+
#define BTN3_MODE GPIO_IN_PU /**< BTN3 default mode */
91+
/** @} */
92+
93+
#ifdef __cplusplus
94+
}
95+
#endif
96+
97+
#endif /* BOARD_H */
98+
/** @} */
+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Copyright (C) 2023 Mesotic SAS
3+
*
4+
* This file is subject to the terms and conditions of the GNU Lesser
5+
* General Public License v2.1. See the file LICENSE in the top level
6+
* directory for more details.
7+
*/
8+
9+
/**
10+
* @ingroup boards_nrf5340dk-app
11+
* @{
12+
*
13+
* @file
14+
* @brief Peripheral configuration for the nRF5340DK-app
15+
*
16+
* @author Dylan Laduranty <[email protected]>
17+
*
18+
*/
19+
20+
#ifndef PERIPH_CONF_H
21+
#define PERIPH_CONF_H
22+
23+
#include "periph_cpu.h"
24+
25+
#include "board.h"
26+
27+
#ifdef __cplusplus
28+
extern "C" {
29+
#endif
30+
31+
/**
32+
* @name Timer configuration
33+
* @{
34+
*/
35+
static const timer_conf_t timer_config[] = {
36+
{
37+
.dev = NRF_TIMER0_S,
38+
.channels = 5,
39+
.bitmode = TIMER_BITMODE_BITMODE_32Bit,
40+
.irqn = TIMER0_IRQn
41+
},
42+
{
43+
.dev = NRF_TIMER1_S,
44+
.channels = 5,
45+
.bitmode = TIMER_BITMODE_BITMODE_32Bit,
46+
.irqn = TIMER1_IRQn
47+
},
48+
};
49+
50+
#define TIMER_0_ISR isr_timer0 /**< Timer0 IRQ*/
51+
#define TIMER_1_ISR isr_timer1 /**< Timer1 IRQ */
52+
53+
#define TIMER_NUMOF ARRAY_SIZE(timer_config) /**< Timer configuration NUMOF */
54+
/** @} */
55+
56+
/**
57+
* @name UART configuration
58+
* @{
59+
*/
60+
static const uart_conf_t uart_config[] = {
61+
{
62+
.dev = NRF_UARTE0_S,
63+
.rx_pin = GPIO_PIN(1, 0),
64+
.tx_pin = GPIO_PIN(1, 1),
65+
#ifdef MODULE_PERIPH_UART_HW_FC
66+
.rts_pin = GPIO_UNDEF,
67+
.cts_pin = GPIO_UNDEF,
68+
#endif
69+
.irqn = SERIAL0_IRQn,
70+
},
71+
};
72+
73+
#define UART_0_ISR (isr_serial0) /**< SERIAL0_IRQn */
74+
75+
#define UART_NUMOF ARRAY_SIZE(uart_config) /**< UART configuration NUMOF */
76+
/** @} */
77+
78+
#ifdef __cplusplus
79+
}
80+
#endif
81+
82+
#endif /* PERIPH_CONF_H */
83+
/** @} */

boards/olimex-msp430-h1611/Makefile.features

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CPU = msp430fxyz
1+
CPU = msp430
22
CPU_MODEL = msp430f1611
33

44
# Put defined MCU peripherals here (in alphabetical order)

0 commit comments

Comments
 (0)