rust
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rust [2024/07/13 07:57] – created river | rust [2025/04/02 10:51] (current) – river | ||
---|---|---|---|
Line 21: | Line 21: | ||
'' | '' | ||
e.g. '' | e.g. '' | ||
- | |||
https:// | https:// | ||
+ | |||
+ | ===== Debug print, I/O Interfaces ===== | ||
+ | |||
+ | * Semihosting | ||
+ | * RTT | ||
+ | * SWO | ||
+ | * UART | ||
+ | |||
+ | RTT - works well with probe-rs, recommended. rprintln! | ||
+ | |||
+ | Semihosting not recommended. An ARM thing, uses special instructions. Slow. hprintln! | ||
+ | https:// | ||
+ | |||
+ | ===== RTOSen ===== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | ===== Learning material ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ===== Abstractions ===== | ||
+ | |||
+ | * Can work with registers directly. | ||
+ | * PAC - peripheral access crates. | ||
+ | * HAL - hardware abstraction layer. | ||
+ | * BSP - Board support package. | ||
+ | |||
+ | RCC.constrain() - takes PAC level RCC and returns a more limited HAL compatible interface to it. You may not be able to use the PAC again after doing this, but it might be possible to get PAC interface back with some implementations. | ||
+ | |||
+ | GPIO.split - Returns separate GPIO ports. | ||
rust.1720857423.txt.gz · Last modified: by river