Skip to content

Instantly share code, notes, and snippets.

View aristotaloss's full-sized avatar
🏹
Appa yipyip

Bart Pelle aristotaloss

🏹
Appa yipyip
View GitHub Profile
@aristotaloss
aristotaloss / crc32_stm32.rs
Created September 14, 2021 12:10
STM32 CRC32 calculation example for Rust
// CARGO:
// [dependencies]
// cortex-m = "0.6.0"
// cortex-m-rt = "0.6.10"
// cortex-m-semihosting = "0.3.3"
// panic-halt = "0.2.0"
#![no_std]
#![no_main]
@aristotaloss
aristotaloss / executable_parser.rs
Created March 6, 2023 03:40
executable_parser.rs
//! A parser for executable files.
//!
//! Does not use the standard library (entirely no_std) and also does not require
//! the `alloc` crate (but can optionally be enabled to turn on some convenience methods.)
// This library works fine without standard library support, but can provide some auto traits if
// desired.
#![cfg_attr(not(feature = "std"), no_std)]
// The `alloc` crate is optional, and not required for basic functionality.