This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! # Pico USB Serial - with format, panics. | |
| //! Should move into it's own crate. | |
| //! | |
| //! heavily inspired by https://github.com/eterevsky/rp2040-blink/blob/main/src/main.rs and https://github.com/mvirkkunen/rtt-target | |
| #![no_std] | |
| #![no_main] | |
| use core::cell::RefCell; | |
| use core::fmt::Write; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| swd-1: LINERESET | |
| swd-1: JTAG->SWD | |
| swd-1: LINERESET | |
| swd-1: IDCODE | |
| swd-1: OK | |
| swd-1: 0x2ba01477 | |
| swd-1: W ABORT | |
| swd-1: OK | |
| swd-1: 0x0000001e | |
| swd-1: W SELECT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo qemu-debootstrap --arch=mipsel --keyring /usr/share/keyrings/debian-archive-keyring.gpg \ | |
| --variant=buildd --exclude=debfoster unstable debian-mipsel http://ftp.debian.org/debian | |
| sudo apt install qemu binfmt-support qemu-user-static | |
| sudo cp /usr/bin/qemu-mipsel-static debian-mipsel/usr/bin/ | |
| cd debian-mipsel | |
| for f in dev dev/pts sys proc run ; do sudo mount --bind /$f ./$f ; done | |
| sudo chroot . | |
| apt update | |
| apt install dialog locales |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! # Pimoroni Display Pack Example | |
| #![no_std] | |
| #![no_main] | |
| use embedded_hal::digital::v2::InputPin; | |
| // The macro for our start-up function | |
| use rp_pico::entry; | |
| // Time handling traits |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| export GIT_AUTHOR_NAME="""bouffalolab""" | |
| export GIT_AUTHOR_EMAIL="""[email protected]""" | |
| export GIT_AUTHOR_DATE="$2" | |
| export GIT_COMMITTER_NAME="""bouffalolab""" | |
| export GIT_COMMITTER_EMAIL="""[email protected]""" | |
| export GIT_COMMITTER_DATE="$2" | |
| rm "*" -rf | |
| tar -xvf ../bflb-mcu-tool-$1.tar.gz --strip-components=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! Blinks the LED on a Pico board | |
| //! | |
| //! This will blink an LED attached to GP25, which is the pin the Pico uses for the on-board LED. | |
| #![no_std] | |
| #![no_main] | |
| use bsp::{entry, hal}; | |
| use cortex_m::delay::Delay; | |
| use defmt::*; | |
| use defmt_rtt as _; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! Blinks the LED on a Pico board | |
| //! | |
| //! This will blink an LED attached to GP25, which is the pin the Pico uses for the on-board LED. | |
| #![no_std] | |
| #![no_main] | |
| use cortex_m::prelude::_embedded_hal_watchdog_Watchdog; | |
| use cortex_m_rt::entry; | |
| use defmt::*; | |
| use defmt_rtt as _; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "bl702-hal" | |
| version = "0.0.3" | |
| edition = "2021" | |
| license = "MIT OR MulanPSL-2.0" | |
| keywords = ["hal", "bl702", "riscv"] | |
| categories = ["embedded", "no-std", "hardware-support"] | |
| repository = "https://github.com/9names/bl702-hal" | |
| description = "HAL for the Bouffalo Lab BL702 microcontroller family" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "stm32f4-test" | |
| version = "0.1.0" | |
| edition = "2021" | |
| publish = false | |
| [dependencies] | |
| cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] } | |
| stm32f4 = { path = "../stm32f4", features = ["rt", "critical-section"] } | |
| embedded-hal = { version="0.2.7", features = ["unproven"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| riscv64-unknown-elf-size target/riscv32ec-unknown-none-elf/release/hello-wch --radix=10 | |
| text data bss dec hex filename | |
| 496 0 2048 2544 9f0 target/riscv32ec-unknown-none-elf/release/hello-wch | |
| riscv64-unknown-elf-nm target/riscv32ec-unknown-none-elf/release/hello-wch --print-size --size-sort --radix=d | |
| 00000396 00000002 T DefaultExceptionHandler | |
| 00000398 00000002 T DefaultInterruptHandler | |
| 00000400 00000004 T default_pre_init | |
| 00000404 00000020 T default_mp_hook | |
| 00000424 00000022 T default_setup_interrupts | |
| 00000352 00000044 T main |