rt-thread/bsp/raspberry-pico
Yuqiang Wang 4d57b60cc8 [driver][soft-spi] spi device driver framework adds pin init function function
为什么提交这份PR (why to submit this PR)
ps:在设备初始化阶段不应该存在对硬件的操作

你的解决方案是什么 (what is your solution)
ps:添加一个pin_init函数,在spi设备使用时调用该函数来完成硬件引脚的状态初始化,而不是在设备初始化阶段对硬件进行操作,已经在瑞萨HMI上通过验证
2024-04-16 22:46:36 -04:00
..
.ci/attachconfig [pico][ci] add RTduino libraries check 2024-04-16 22:39:24 -04:00
applications [bsp][rtduino] pico rtduino support spi 2024-04-16 22:39:24 -04:00
board [bsp][rtduino] pico rtduino support spi 2024-04-16 22:39:24 -04:00
drivers [driver][soft-spi] spi device driver framework adds pin init function function 2024-04-16 22:46:36 -04:00
figures [add] raspberry-pico elf2uf2.exe 2021-02-02 17:38:19 +08:00
libcpu rt_hw_cpu_reset: remove all other rt_weak 2023-08-08 22:34:25 -04:00
tools [bsp][pico] Remove cmake dependency 2023-10-11 13:41:12 +08:00
.config [bsp] update projects 2024-03-21 11:23:29 +08:00
Kconfig [bsp][pico] add board/Kconfig 2024-02-01 21:29:15 +08:00
README.md [bsp][pico] Remove cmake dependency 2023-10-11 13:41:12 +08:00
SConscript add raspberry-pico bsp 2021-01-28 19:59:59 +08:00
SConstruct update .ld and SConstruct files 2023-12-23 15:00:23 +08:00
link.ld Bug fixed while using UTEST framework (#8577) 2024-03-05 10:25:28 +08:00
rtconfig.h [bsp] update projects 2024-03-21 11:23:29 +08:00
rtconfig.py [bsp][pico] Update SDK to 1.5.1 2023-10-10 09:45:36 +08:00

README.md

Raspberry PICO

Introduction

Raspberry Pi Pico is a low-cost, high-performance microcontroller board with flexible digital interfaces.

Key features include:

  • RP2040 microcontroller chip designed by Raspberry Pi in the United Kingdom

  • Dual-core Arm Cortex M0+ processor, flexible clock running up to 133 MHz

  • 264KB of SRAM, and 2MB of on-board Flash memory

  • Castellated module allows soldering direct to carrier boards

  • USB 1.1 with device and host support

  • Low-power sleep and dormant modes

  • Drag-and-drop programming using mass storage over USB

  • 26 × multi-function GPIO pins

  • 2 × SPI, 2 × I2C, 2 × UART, 3 × 12-bit ADC, 16 × controllable PWM channels

  • Accurate clock and timer on-chip

  • Temperature sensor

  • Accelerated floating-point libraries on-chip

  • 8 × Programmable I/O (PIO) state machines for custom peripheral support

Pico-R3-Pinout

Supported compiler

Support GCC 6 and above compilers.

Program firmware

Step 1: download pico sdk

pkgs --update

Step 2: build

scons -c
scons

gcc version >= 6.x.x

Step 3: flash

scons generates a UF2 file:

elf2uf2

  • Copy the rtthread-pico.uf2 file to the "RPI-RP2" disk
  • Then led blink.

Or you can use the picotool by:

picotool load rtthread-pico.uf2
picotool reboot

Running Result

The output information on serial port should be like this:

 \ | /
- RT -     Thread Operating System
 / | \     4.0.3 build Jan 28 2021
 2006 - 2021 Copyright by rt-thread team
Hello, RT-Thread!
msh >

Peripheral Condition

Drive Support Remark
UART Support UART0/1
GPIO Support 0-29
I2C - -
RTC - -
SDIO - -
SPI - -
TIMER - -
WDT - -