Skip to content

Commit b048fd7

Browse files
committed
boards/rpi-pico-2: adjust to new rp2350_arm name
1 parent e475534 commit b048fd7

File tree

7 files changed

+52
-11
lines changed

7 files changed

+52
-11
lines changed

boards/rpi-pico-2/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ config BOARD
88
config BOARD_RPI_PICO_2
99
bool
1010
default y
11-
select CPU_MODEL_RP2350
11+
select CPU_MODEL_RP2350_RISCV
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CPU := rp2350
1+
CPU := rp2350_arm

boards/rpi-pico-2/Makefile.include

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CPU_MODEL := RP2350
1+
CPU_MODEL := RP2350_ARM
22
PORT_LINUX ?= /dev/ttyACM0
33

44
# JLink isnt tested yet on RP2350

boards/rpi-pico-2/include/board.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#pragma once
88

99
/**
10-
* @ingroup boards_rpi_pico_2
10+
* @ingroup boards_rpi_pico_2_arm
1111
* @{
1212
*
1313
* @file
@@ -16,11 +16,10 @@
1616
* @author Tom Hert <[email protected]>
1717
*/
1818

19-
#include "RP2350.h"
2019
#include "cpu.h"
21-
#include "cpu_conf.h"
2220
#include "periph_conf.h"
23-
#include "periph_cpu.h"
21+
22+
#include "periph/gpio.h"
2423

2524
/** GPIO Pin ID for the onboard LED */
2625
#define LED0_PIN_ID 25u

boards/rpi-pico-2/include/periph_conf.h

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66

77
#pragma once
88

9+
/**
10+
* @ingroup boards_rpi_pico_2_arm
11+
* @{
12+
*
13+
* @file
14+
* @brief Board periph definitions for the Raspberry Pi Pico 2
15+
*
16+
* @author Tom Hert <[email protected]>
17+
*/
18+
919
#include <stdint.h>
1020

1121
#include "RP2350.h"
@@ -15,6 +25,38 @@
1525
extern "C" {
1626
#endif
1727

28+
/**
29+
* @brief Configuration details for an UART interface
30+
*/
31+
typedef struct {
32+
UART0_Type *dev; /**< Base address of the I/O registers of the device */
33+
gpio_t rx_pin; /**< GPIO pin to use for RX */
34+
gpio_t tx_pin; /**< GPIO pin to use for TX */
35+
IRQn_Type irqn; /**< IRQ number of the UART interface */
36+
} uart_conf_t;
37+
38+
static const uart_conf_t uart_config[] = {
39+
{
40+
.dev = UART0,
41+
.rx_pin = GPIO_PIN(0, 1),
42+
.tx_pin = GPIO_PIN(0, 0),
43+
.irqn = UART0_IRQ_IRQn
44+
},
45+
{
46+
.dev = UART1,
47+
.rx_pin = GPIO_PIN(0, 9),
48+
.tx_pin = GPIO_PIN(0, 8),
49+
.irqn = UART1_IRQ_IRQn
50+
}
51+
};
52+
53+
#define UART_0_ISR (isr_uart0)
54+
#define UART_1_ISR (isr_uart1)
55+
56+
#define UART_NUMOF ARRAY_SIZE(uart_config)
57+
1858
#ifdef __cplusplus
1959
}
2060
#endif
61+
62+
/** @} */

features.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ groups:
283283
features:
284284
- name: cpu_rpx0xx
285285
help: The MCU is part of the Raspberry PI RPx0xx family.
286-
- name: cpu_rp2350
287-
help: The MCU is a Raspberry Pi RP2350
286+
- name: cpu_rp2350_arm
287+
help: The MCU is a Raspberry Pi RP2350 Cortex-M33 ARM,
288288
- name: cpu_rp2350_riscv
289-
help: The MCU is a Raspberry Pi RP2350 RISCV
289+
help: The MCU is a Raspberry Pi RP2350 Hazard3 RISC-V.
290290

291291
- title: Silicon Laboratories EFM32 Grouping
292292
features:

makefiles/features_existing.inc.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ FEATURES_EXISTING := \
8686
cpu_nrf53 \
8787
cpu_nrf9160 \
8888
cpu_qn908x \
89-
cpu_rp2350 \
89+
cpu_rp2350_arm \
9090
cpu_rp2350_riscv \
9191
cpu_rpx0xx \
9292
cpu_sam3 \

0 commit comments

Comments
 (0)