diff options
31 files changed, 37 insertions, 37 deletions
diff --git a/docs/pages/faq.adoc b/docs/pages/faq.adoc index 88e0c3330..3b5eafa99 100644 --- a/docs/pages/faq.adoc +++ b/docs/pages/faq.adoc | |||
| @@ -4,7 +4,7 @@ These are a list of unsorted, commonly asked questions and answers. | |||
| 4 | 4 | ||
| 5 | Please feel free to add items to link:https://github.com/embassy-rs/embassy/edit/main/docs/pages/faq.adoc[this page], especially if someone in the chat answered a question for you! | 5 | Please feel free to add items to link:https://github.com/embassy-rs/embassy/edit/main/docs/pages/faq.adoc[this page], especially if someone in the chat answered a question for you! |
| 6 | 6 | ||
| 7 | == How to deploy to RP2040 without a debugging probe. | 7 | == How to deploy to RP2040 or RP235x without a debugging probe. |
| 8 | 8 | ||
| 9 | Install link:https://github.com/JoNil/elf2uf2-rs[elf2uf2-rs] for converting the generated elf binary into a uf2 file. | 9 | Install link:https://github.com/JoNil/elf2uf2-rs[elf2uf2-rs] for converting the generated elf binary into a uf2 file. |
| 10 | 10 | ||
diff --git a/docs/pages/hal.adoc b/docs/pages/hal.adoc index 3c6839792..3bbe94e02 100644 --- a/docs/pages/hal.adoc +++ b/docs/pages/hal.adoc | |||
| @@ -4,7 +4,7 @@ Embassy provides HALs for several microcontroller families: | |||
| 4 | 4 | ||
| 5 | * `embassy-nrf` for the nRF microcontrollers from Nordic Semiconductor | 5 | * `embassy-nrf` for the nRF microcontrollers from Nordic Semiconductor |
| 6 | * `embassy-stm32` for STM32 microcontrollers from ST Microelectronics | 6 | * `embassy-stm32` for STM32 microcontrollers from ST Microelectronics |
| 7 | * `embassy-rp` for the Raspberry Pi RP2040 microcontrollers | 7 | * `embassy-rp` for the Raspberry Pi RP2040 and RP235x microcontrollers |
| 8 | 8 | ||
| 9 | These HALs implement async/await functionality for most peripherals while also implementing the | 9 | These HALs implement async/await functionality for most peripherals while also implementing the |
| 10 | async traits in `embedded-hal` and `embedded-hal-async`. You can also use these HALs with another executor. | 10 | async traits in `embedded-hal` and `embedded-hal-async`. You can also use these HALs with another executor. |
diff --git a/docs/pages/overview.adoc b/docs/pages/overview.adoc index b169c686e..acd757795 100644 --- a/docs/pages/overview.adoc +++ b/docs/pages/overview.adoc | |||
| @@ -28,7 +28,7 @@ The Embassy project maintains HALs for select hardware, but you can still use HA | |||
| 28 | 28 | ||
| 29 | * link:https://docs.embassy.dev/embassy-stm32/[embassy-stm32], for all STM32 microcontroller families. | 29 | * link:https://docs.embassy.dev/embassy-stm32/[embassy-stm32], for all STM32 microcontroller families. |
| 30 | * link:https://docs.embassy.dev/embassy-nrf/[embassy-nrf], for the Nordic Semiconductor nRF52, nRF53, nRF91 series. | 30 | * link:https://docs.embassy.dev/embassy-nrf/[embassy-nrf], for the Nordic Semiconductor nRF52, nRF53, nRF91 series. |
| 31 | * link:https://docs.embassy.dev/embassy-rp/[embassy-rp], for the Raspberry Pi RP2040 microcontroller. | 31 | * link:https://docs.embassy.dev/embassy-rp/[embassy-rp], for the Raspberry Pi RP2040 as well as RP235x microcontroller. |
| 32 | * link:https://docs.embassy.dev/embassy-mspm0/[embassy-mspm0], for the Texas Instruments MSPM0 microcontrollers. | 32 | * link:https://docs.embassy.dev/embassy-mspm0/[embassy-mspm0], for the Texas Instruments MSPM0 microcontrollers. |
| 33 | * link:https://github.com/esp-rs[esp-rs], for the Espressif Systems ESP32 series of chips. | 33 | * link:https://github.com/esp-rs[esp-rs], for the Espressif Systems ESP32 series of chips. |
| 34 | * link:https://github.com/ch32-rs/ch32-hal[ch32-hal], for the WCH 32-bit RISC-V(CH32V) series of chips. | 34 | * link:https://github.com/ch32-rs/ch32-hal[ch32-hal], for the WCH 32-bit RISC-V(CH32V) series of chips. |
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index 4e5ef2813..b440591cf 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml | |||
| @@ -3,8 +3,8 @@ name = "embassy-rp" | |||
| 3 | version = "0.4.0" | 3 | version = "0.4.0" |
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | license = "MIT OR Apache-2.0" | 5 | license = "MIT OR Apache-2.0" |
| 6 | description = "Embassy Hardware Abstraction Layer (HAL) for the Raspberry Pi RP2040 microcontroller" | 6 | description = "Embassy Hardware Abstraction Layer (HAL) for the Raspberry Pi RP2040 or RP235x microcontroller" |
| 7 | keywords = ["embedded", "async", "raspberry-pi", "rp2040", "embedded-hal"] | 7 | keywords = ["embedded", "async", "rp235x", "rp2040", "embedded-hal"] |
| 8 | categories = ["embedded", "hardware-support", "no-std", "asynchronous"] | 8 | categories = ["embedded", "hardware-support", "no-std", "asynchronous"] |
| 9 | repository = "https://github.com/embassy-rs/embassy" | 9 | repository = "https://github.com/embassy-rs/embassy" |
| 10 | documentation = "https://docs.embassy.dev/embassy-rp" | 10 | documentation = "https://docs.embassy.dev/embassy-rp" |
diff --git a/embassy-rp/README.md b/embassy-rp/README.md index 16b189344..8e16184b8 100644 --- a/embassy-rp/README.md +++ b/embassy-rp/README.md | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | HALs implement safe, idiomatic Rust APIs to use the hardware capabilities, so raw register manipulation is not needed. | 3 | HALs implement safe, idiomatic Rust APIs to use the hardware capabilities, so raw register manipulation is not needed. |
| 4 | 4 | ||
| 5 | The embassy-rp HAL targets the Raspberry Pi RP2040 microcontroller. The HAL implements both blocking and async APIs | 5 | The embassy-rp HAL targets the Raspberry Pi RP2040 as well as RP235x microcontroller. The HAL implements both blocking and async APIs |
| 6 | for many peripherals. The benefit of using the async APIs is that the HAL takes care of waiting for peripherals to | 6 | for many peripherals. The benefit of using the async APIs is that the HAL takes care of waiting for peripherals to |
| 7 | complete operations in low power mode and handling interrupts, so that applications can focus on more important matters. | 7 | complete operations in low power mode and handling interrupts, so that applications can focus on more important matters. |
| 8 | 8 | ||
diff --git a/examples/rp235x/src/bin/adc.rs b/examples/rp235x/src/bin/adc.rs index b7324f755..b2a83e376 100644 --- a/examples/rp235x/src/bin/adc.rs +++ b/examples/rp235x/src/bin/adc.rs | |||
| @@ -40,8 +40,8 @@ async fn main(_spawner: Spawner) { | |||
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | fn convert_to_celsius(raw_temp: u16) -> f32 { | 42 | fn convert_to_celsius(raw_temp: u16) -> f32 { |
| 43 | // According to chapter 4.9.5. Temperature Sensor in RP2040 datasheet | 43 | // According to chapter 12.4.6 Temperature Sensor in RP235x datasheet |
| 44 | let temp = 27.0 - (raw_temp as f32 * 3.3 / 4096.0 - 0.706) / 0.001721; | 44 | let temp = 27.0 - (raw_temp as f32 * 3.3 / 4096.0 - ..0.706) / 0.0..01721; |
| 45 | let sign = if temp < 0.0 { -1.0 } else { 1.0 }; | 45 | let sign = if temp < 0.0 { -1.0 } else { 1.0 }; |
| 46 | let rounded_temp_x10: i16 = ((temp * 10.0) + 0.5 * sign) as i16; | 46 | let rounded_temp_x10: i16 = ((temp * 10.0) + 0.5 * sign) as i16; |
| 47 | (rounded_temp_x10 as f32) / 10.0 | 47 | (rounded_temp_x10 as f32) / 10.0 |
diff --git a/examples/rp235x/src/bin/adc_dma.rs b/examples/rp235x/src/bin/adc_dma.rs index b42c13fde..4003cc078 100644 --- a/examples/rp235x/src/bin/adc_dma.rs +++ b/examples/rp235x/src/bin/adc_dma.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use the RP2040 ADC with DMA, both single- and multichannel reads. | 1 | //! This example shows how to use the RP235x ADC with DMA, both single- and multichannel reads. |
| 2 | //! For multichannel, the samples are interleaved in the buffer: | 2 | //! For multichannel, the samples are interleaved in the buffer: |
| 3 | //! `[ch1, ch2, ch3, ch4, ch1, ch2, ch3, ch4, ...]` | 3 | //! `[ch1, ch2, ch3, ch4, ch1, ch2, ch3, ch4, ...]` |
| 4 | #![no_std] | 4 | #![no_std] |
diff --git a/examples/rp235x/src/bin/blinky_wifi.rs b/examples/rp235x/src/bin/blinky_wifi.rs index 7aeb38f1e..ef029867a 100644 --- a/examples/rp235x/src/bin/blinky_wifi.rs +++ b/examples/rp235x/src/bin/blinky_wifi.rs | |||
| @@ -47,8 +47,8 @@ async fn main(spawner: Spawner) { | |||
| 47 | 47 | ||
| 48 | // To make flashing faster for development, you may want to flash the firmwares independently | 48 | // To make flashing faster for development, you may want to flash the firmwares independently |
| 49 | // at hardcoded addresses, instead of baking them into the program with `include_bytes!`: | 49 | // at hardcoded addresses, instead of baking them into the program with `include_bytes!`: |
| 50 | // probe-rs download ../../cyw43-firmware/43439A0.bin --binary-format bin --chip RP2040 --base-address 0x10100000 | 50 | // probe-rs download ../../cyw43-firmware/43439A0.bin --binary-format bin --chip RP235x --base-address 0x10100000 |
| 51 | // probe-rs download ../../cyw43-firmware/43439A0_clm.bin --binary-format bin --chip RP2040 --base-address 0x10140000 | 51 | // probe-rs download ../../cyw43-firmware/43439A0_clm.bin --binary-format bin --chip RP235x --base-address 0x10140000 |
| 52 | //let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 230321) }; | 52 | //let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 230321) }; |
| 53 | //let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) }; | 53 | //let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) }; |
| 54 | 54 | ||
diff --git a/examples/rp235x/src/bin/blinky_wifi_pico_plus_2.rs b/examples/rp235x/src/bin/blinky_wifi_pico_plus_2.rs index d49d2e34f..2a919a1ea 100644 --- a/examples/rp235x/src/bin/blinky_wifi_pico_plus_2.rs +++ b/examples/rp235x/src/bin/blinky_wifi_pico_plus_2.rs | |||
| @@ -46,8 +46,8 @@ async fn main(spawner: Spawner) { | |||
| 46 | 46 | ||
| 47 | // To make flashing faster for development, you may want to flash the firmwares independently | 47 | // To make flashing faster for development, you may want to flash the firmwares independently |
| 48 | // at hardcoded addresses, instead of baking them into the program with `include_bytes!`: | 48 | // at hardcoded addresses, instead of baking them into the program with `include_bytes!`: |
| 49 | // probe-rs download ../../cyw43-firmware/43439A0.bin --binary-format bin --chip RP2040 --base-address 0x10100000 | 49 | // probe-rs download ../../cyw43-firmware/43439A0.bin --binary-format bin --chip RP235x --base-address 0x10100000 |
| 50 | // probe-rs download ../../cyw43-firmware/43439A0_clm.bin --binary-format bin --chip RP2040 --base-address 0x10140000 | 50 | // probe-rs download ../../cyw43-firmware/43439A0_clm.bin --binary-format bin --chip RP235x --base-address 0x10140000 |
| 51 | //let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 230321) }; | 51 | //let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 230321) }; |
| 52 | //let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) }; | 52 | //let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) }; |
| 53 | 53 | ||
diff --git a/examples/rp235x/src/bin/gpio_async.rs b/examples/rp235x/src/bin/gpio_async.rs index b79fb2a15..3be8569bc 100644 --- a/examples/rp235x/src/bin/gpio_async.rs +++ b/examples/rp235x/src/bin/gpio_async.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how async gpio can be used with a RP2040. | 1 | //! This example shows how async gpio can be used with a RP235x. |
| 2 | //! | 2 | //! |
| 3 | //! The LED on the RP Pico W board is connected differently. See wifi_blinky.rs. | 3 | //! The LED on the RP Pico W board is connected differently. See wifi_blinky.rs. |
| 4 | 4 | ||
diff --git a/examples/rp235x/src/bin/multicore.rs b/examples/rp235x/src/bin/multicore.rs index 7cb546c91..f02dc3876 100644 --- a/examples/rp235x/src/bin/multicore.rs +++ b/examples/rp235x/src/bin/multicore.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to send messages between the two cores in the RP2040 chip. | 1 | //! This example shows how to send messages between the two cores in the RP235x chip. |
| 2 | //! | 2 | //! |
| 3 | //! The LED on the RP Pico W board is connected differently. See wifi_blinky.rs. | 3 | //! The LED on the RP Pico W board is connected differently. See wifi_blinky.rs. |
| 4 | 4 | ||
diff --git a/examples/rp235x/src/bin/pio_async.rs b/examples/rp235x/src/bin/pio_async.rs index baf567b58..a519b8a50 100644 --- a/examples/rp235x/src/bin/pio_async.rs +++ b/examples/rp235x/src/bin/pio_async.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows powerful PIO module in the RP2040 chip. | 1 | //! This example shows powerful PIO module in the RP235x chip. |
| 2 | 2 | ||
| 3 | #![no_std] | 3 | #![no_std] |
| 4 | #![no_main] | 4 | #![no_main] |
diff --git a/examples/rp235x/src/bin/pio_dma.rs b/examples/rp235x/src/bin/pio_dma.rs index 64d603ba4..17332a238 100644 --- a/examples/rp235x/src/bin/pio_dma.rs +++ b/examples/rp235x/src/bin/pio_dma.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows powerful PIO module in the RP2040 chip. | 1 | //! This example shows powerful PIO module in the RP235x chip. |
| 2 | 2 | ||
| 3 | #![no_std] | 3 | #![no_std] |
| 4 | #![no_main] | 4 | #![no_main] |
diff --git a/examples/rp235x/src/bin/pio_hd44780.rs b/examples/rp235x/src/bin/pio_hd44780.rs index 164e6f8d3..06d989505 100644 --- a/examples/rp235x/src/bin/pio_hd44780.rs +++ b/examples/rp235x/src/bin/pio_hd44780.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows powerful PIO module in the RP2040 chip to communicate with a HD44780 display. | 1 | //! This example shows powerful PIO module in the RP235x chip to communicate with a HD44780 display. |
| 2 | //! See (https://www.sparkfun.com/datasheets/LCD/HD44780.pdf) | 2 | //! See (https://www.sparkfun.com/datasheets/LCD/HD44780.pdf) |
| 3 | 3 | ||
| 4 | #![no_std] | 4 | #![no_std] |
| @@ -30,7 +30,7 @@ async fn main(_spawner: Spawner) { | |||
| 30 | // db6 = PIN5 | 30 | // db6 = PIN5 |
| 31 | // db7 = PIN6 | 31 | // db7 = PIN6 |
| 32 | // additionally a pwm signal for a bias voltage charge pump is provided on pin 15, | 32 | // additionally a pwm signal for a bias voltage charge pump is provided on pin 15, |
| 33 | // allowing direct connection of the display to the RP2040 without level shifters. | 33 | // allowing direct connection of the display to the RP235x without level shifters. |
| 34 | let p = embassy_rp::init(Default::default()); | 34 | let p = embassy_rp::init(Default::default()); |
| 35 | 35 | ||
| 36 | let _pwm = Pwm::new_output_b(p.PWM_SLICE7, p.PIN_15, { | 36 | let _pwm = Pwm::new_output_b(p.PWM_SLICE7, p.PIN_15, { |
diff --git a/examples/rp235x/src/bin/pio_i2s.rs b/examples/rp235x/src/bin/pio_i2s.rs index ae937a4ed..5a4bcfcac 100644 --- a/examples/rp235x/src/bin/pio_i2s.rs +++ b/examples/rp235x/src/bin/pio_i2s.rs | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | //! This example shows generating audio and sending it to a connected i2s DAC using the PIO | 1 | //! This example shows generating audio and sending it to a connected i2s DAC using the PIO |
| 2 | //! module of the RP2040. | 2 | //! module of the RP235x. |
| 3 | //! | 3 | //! |
| 4 | //! Connect the i2s DAC as follows: | 4 | //! Connect the i2s DAC as follows: |
| 5 | //! bclk : GPIO 18 | 5 | //! bclk : GPIO 18 |
diff --git a/examples/rp235x/src/bin/pio_pwm.rs b/examples/rp235x/src/bin/pio_pwm.rs index 7eabb2289..5712b5b91 100644 --- a/examples/rp235x/src/bin/pio_pwm.rs +++ b/examples/rp235x/src/bin/pio_pwm.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to create a pwm using the PIO module in the RP2040 chip. | 1 | //! This example shows how to create a pwm using the PIO module in the RP235x chip. |
| 2 | 2 | ||
| 3 | #![no_std] | 3 | #![no_std] |
| 4 | #![no_main] | 4 | #![no_main] |
diff --git a/examples/rp235x/src/bin/pio_rotary_encoder.rs b/examples/rp235x/src/bin/pio_rotary_encoder.rs index 2750f61ae..e820d316d 100644 --- a/examples/rp235x/src/bin/pio_rotary_encoder.rs +++ b/examples/rp235x/src/bin/pio_rotary_encoder.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use the PIO module in the RP2040 to read a quadrature rotary encoder. | 1 | //! This example shows how to use the PIO module in the RP235x to read a quadrature rotary encoder. |
| 2 | 2 | ||
| 3 | #![no_std] | 3 | #![no_std] |
| 4 | #![no_main] | 4 | #![no_main] |
diff --git a/examples/rp235x/src/bin/pio_servo.rs b/examples/rp235x/src/bin/pio_servo.rs index c52ee7492..086b02f03 100644 --- a/examples/rp235x/src/bin/pio_servo.rs +++ b/examples/rp235x/src/bin/pio_servo.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to create a pwm using the PIO module in the RP2040 chip. | 1 | //! This example shows how to create a pwm using the PIO module in the RP235x chip. |
| 2 | 2 | ||
| 3 | #![no_std] | 3 | #![no_std] |
| 4 | #![no_main] | 4 | #![no_main] |
diff --git a/examples/rp235x/src/bin/pio_stepper.rs b/examples/rp235x/src/bin/pio_stepper.rs index 3862c248b..931adbeda 100644 --- a/examples/rp235x/src/bin/pio_stepper.rs +++ b/examples/rp235x/src/bin/pio_stepper.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use the PIO module in the RP2040 to implement a stepper motor driver | 1 | //! This example shows how to use the PIO module in the RP235x to implement a stepper motor driver |
| 2 | //! for a 5-wire stepper such as the 28BYJ-48. You can halt an ongoing rotation by dropping the future. | 2 | //! for a 5-wire stepper such as the 28BYJ-48. You can halt an ongoing rotation by dropping the future. |
| 3 | 3 | ||
| 4 | #![no_std] | 4 | #![no_std] |
diff --git a/examples/rp235x/src/bin/pio_uart.rs b/examples/rp235x/src/bin/pio_uart.rs index 9712984f9..d92e33feb 100644 --- a/examples/rp235x/src/bin/pio_uart.rs +++ b/examples/rp235x/src/bin/pio_uart.rs | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | //! This example shows how to use the PIO module in the RP2040 chip to implement a duplex UART. | 1 | //! This example shows how to use the PIO module in the RP235x chip to implement a duplex UART. |
| 2 | //! The PIO module is a very powerful peripheral that can be used to implement many different | 2 | //! The PIO module is a very powerful peripheral that can be used to implement many different |
| 3 | //! protocols. It is a very flexible state machine that can be programmed to do almost anything. | 3 | //! protocols. It is a very flexible state machine that can be programmed to do almost anything. |
| 4 | //! | 4 | //! |
| 5 | //! This example opens up a USB device that implements a CDC ACM serial port. It then uses the | 5 | //! This example opens up a USB device that implements a CDC ACM serial port. It then uses the |
| 6 | //! PIO module to implement a UART that is connected to the USB serial port. This allows you to | 6 | //! PIO module to implement a UART that is connected to the USB serial port. This allows you to |
| 7 | //! communicate with a device connected to the RP2040 over USB serial. | 7 | //! communicate with a device connected to the RP235x over USB serial. |
| 8 | 8 | ||
| 9 | #![no_std] | 9 | #![no_std] |
| 10 | #![no_main] | 10 | #![no_main] |
diff --git a/examples/rp235x/src/bin/pio_ws2812.rs b/examples/rp235x/src/bin/pio_ws2812.rs index d1fcfc471..42694c527 100644 --- a/examples/rp235x/src/bin/pio_ws2812.rs +++ b/examples/rp235x/src/bin/pio_ws2812.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows powerful PIO module in the RP2040 chip to communicate with WS2812 LED modules. | 1 | //! This example shows powerful PIO module in the RP235x chip to communicate with WS2812 LED modules. |
| 2 | //! See (https://www.sparkfun.com/categories/tags/ws2812) | 2 | //! See (https://www.sparkfun.com/categories/tags/ws2812) |
| 3 | 3 | ||
| 4 | #![no_std] | 4 | #![no_std] |
diff --git a/examples/rp235x/src/bin/spi.rs b/examples/rp235x/src/bin/spi.rs index 4cc4f5210..308f05c01 100644 --- a/examples/rp235x/src/bin/spi.rs +++ b/examples/rp235x/src/bin/spi.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use SPI (Serial Peripheral Interface) in the RP2040 chip. | 1 | //! This example shows how to use SPI (Serial Peripheral Interface) in the RP235x chip. |
| 2 | //! | 2 | //! |
| 3 | //! Example for resistive touch sensor in Waveshare Pico-ResTouch | 3 | //! Example for resistive touch sensor in Waveshare Pico-ResTouch |
| 4 | 4 | ||
diff --git a/examples/rp235x/src/bin/spi_async.rs b/examples/rp235x/src/bin/spi_async.rs index 266584efc..62bedc68a 100644 --- a/examples/rp235x/src/bin/spi_async.rs +++ b/examples/rp235x/src/bin/spi_async.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use SPI (Serial Peripheral Interface) in the RP2040 chip. | 1 | //! This example shows how to use SPI (Serial Peripheral Interface) in the RP235x chip. |
| 2 | //! No specific hardware is specified in this example. If you connect pin 11 and 12 you should get the same data back. | 2 | //! No specific hardware is specified in this example. If you connect pin 11 and 12 you should get the same data back. |
| 3 | 3 | ||
| 4 | #![no_std] | 4 | #![no_std] |
diff --git a/examples/rp235x/src/bin/spi_display.rs b/examples/rp235x/src/bin/spi_display.rs index 9c524ab25..9967abefd 100644 --- a/examples/rp235x/src/bin/spi_display.rs +++ b/examples/rp235x/src/bin/spi_display.rs | |||
| @@ -95,7 +95,7 @@ async fn main(_spawner: Spawner) { | |||
| 95 | 95 | ||
| 96 | let style = MonoTextStyle::new(&FONT_10X20, Rgb565::GREEN); | 96 | let style = MonoTextStyle::new(&FONT_10X20, Rgb565::GREEN); |
| 97 | Text::new( | 97 | Text::new( |
| 98 | "Hello embedded_graphics \n + embassy + RP2040!", | 98 | "Hello embedded_graphics \n + embassy + RP235x!", |
| 99 | Point::new(20, 200), | 99 | Point::new(20, 200), |
| 100 | style, | 100 | style, |
| 101 | ) | 101 | ) |
diff --git a/examples/rp235x/src/bin/spi_sdmmc.rs b/examples/rp235x/src/bin/spi_sdmmc.rs index 9808b6a5d..e14a62c31 100644 --- a/examples/rp235x/src/bin/spi_sdmmc.rs +++ b/examples/rp235x/src/bin/spi_sdmmc.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use `embedded-sdmmc` with the RP2040 chip, over SPI. | 1 | //! This example shows how to use `embedded-sdmmc` with the RP235x chip, over SPI. |
| 2 | //! | 2 | //! |
| 3 | //! The example will attempt to read a file `MY_FILE.TXT` from the root directory | 3 | //! The example will attempt to read a file `MY_FILE.TXT` from the root directory |
| 4 | //! of the SD card and print its contents. | 4 | //! of the SD card and print its contents. |
diff --git a/examples/rp235x/src/bin/uart.rs b/examples/rp235x/src/bin/uart.rs index a59f537bf..ed912b959 100644 --- a/examples/rp235x/src/bin/uart.rs +++ b/examples/rp235x/src/bin/uart.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use UART (Universal asynchronous receiver-transmitter) in the RP2040 chip. | 1 | //! This example shows how to use UART (Universal asynchronous receiver-transmitter) in the RP235x chip. |
| 2 | //! | 2 | //! |
| 3 | //! No specific hardware is specified in this example. Only output on pin 0 is tested. | 3 | //! No specific hardware is specified in this example. Only output on pin 0 is tested. |
| 4 | //! The Raspberry Pi Debug Probe (https://www.raspberrypi.com/products/debug-probe/) could be used | 4 | //! The Raspberry Pi Debug Probe (https://www.raspberrypi.com/products/debug-probe/) could be used |
diff --git a/examples/rp235x/src/bin/uart_buffered_split.rs b/examples/rp235x/src/bin/uart_buffered_split.rs index da7e94139..f707c4b5e 100644 --- a/examples/rp235x/src/bin/uart_buffered_split.rs +++ b/examples/rp235x/src/bin/uart_buffered_split.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use UART (Universal asynchronous receiver-transmitter) in the RP2040 chip. | 1 | //! This example shows how to use UART (Universal asynchronous receiver-transmitter) in the RP235x chip. |
| 2 | //! | 2 | //! |
| 3 | //! No specific hardware is specified in this example. If you connect pin 0 and 1 you should get the same data back. | 3 | //! No specific hardware is specified in this example. If you connect pin 0 and 1 you should get the same data back. |
| 4 | //! The Raspberry Pi Debug Probe (https://www.raspberrypi.com/products/debug-probe/) could be used | 4 | //! The Raspberry Pi Debug Probe (https://www.raspberrypi.com/products/debug-probe/) could be used |
diff --git a/examples/rp235x/src/bin/uart_unidir.rs b/examples/rp235x/src/bin/uart_unidir.rs index a45f40756..4e98f9e1e 100644 --- a/examples/rp235x/src/bin/uart_unidir.rs +++ b/examples/rp235x/src/bin/uart_unidir.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use UART (Universal asynchronous receiver-transmitter) in the RP2040 chip. | 1 | //! This example shows how to use UART (Universal asynchronous receiver-transmitter) in the RP235x chip. |
| 2 | //! | 2 | //! |
| 3 | //! Test TX-only and RX-only on two different UARTs. You need to connect GPIO0 to GPIO5 for | 3 | //! Test TX-only and RX-only on two different UARTs. You need to connect GPIO0 to GPIO5 for |
| 4 | //! this to work | 4 | //! this to work |
diff --git a/examples/rp235x/src/bin/usb_webusb.rs b/examples/rp235x/src/bin/usb_webusb.rs index a5dc94d5b..75d28c853 100644 --- a/examples/rp235x/src/bin/usb_webusb.rs +++ b/examples/rp235x/src/bin/usb_webusb.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use USB (Universal Serial Bus) in the RP2040 chip. | 1 | //! This example shows how to use USB (Universal Serial Bus) in the RP235x chip. |
| 2 | //! | 2 | //! |
| 3 | //! This creates a WebUSB capable device that echoes data back to the host. | 3 | //! This creates a WebUSB capable device that echoes data back to the host. |
| 4 | //! | 4 | //! |
diff --git a/examples/rp235x/src/bin/watchdog.rs b/examples/rp235x/src/bin/watchdog.rs index b9d4ef22f..a54ec493a 100644 --- a/examples/rp235x/src/bin/watchdog.rs +++ b/examples/rp235x/src/bin/watchdog.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | //! This example shows how to use Watchdog in the RP2040 chip. | 1 | //! This example shows how to use Watchdog in the RP235x chip. |
| 2 | //! | 2 | //! |
| 3 | //! It does not work with the RP Pico W board. See wifi_blinky.rs or connect external LED and resistor. | 3 | //! It does not work with the RP Pico W board. See wifi_blinky.rs or connect external LED and resistor. |
| 4 | 4 | ||
diff --git a/examples/rp235x/src/bin/zerocopy.rs b/examples/rp235x/src/bin/zerocopy.rs index d1fb0eb00..086c86cac 100644 --- a/examples/rp235x/src/bin/zerocopy.rs +++ b/examples/rp235x/src/bin/zerocopy.rs | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | //! This example shows how to use `zerocopy_channel` from `embassy_sync` for | 1 | //! This example shows how to use `zerocopy_channel` from `embassy_sync` for |
| 2 | //! sending large values between two tasks without copying. | 2 | //! sending large values between two tasks without copying. |
| 3 | //! The example also shows how to use the RP2040 ADC with DMA. | 3 | //! The example also shows how to use the RP235x ADC with DMA. |
| 4 | #![no_std] | 4 | #![no_std] |
| 5 | #![no_main] | 5 | #![no_main] |
| 6 | 6 | ||
