alpha
Login
or
Join now
arthomnix.dev
/
eepy
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
firmware for my Touchscreen E-Paper Input Module for Framework Laptop 16
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
eepy-launcher: migrate to rust 2024
author
arthomnix
date
1 year ago
(Mar 23, 2025, 8:12 PM UTC)
commit
5814e24e
5814e24e215952738258065dec87fe4020d7961c
parent
7b071dc8
7b071dc8d428f5cc6ed152d85937964dd5897fe5
+3
-3
2 changed files
Expand all
Collapse all
Unified
Split
eepy-launcher
Cargo.toml
src
serial.rs
+1
-1
eepy-launcher/Cargo.toml
Reviewed
···
1
1
[package]
2
2
name = "eepy-launcher"
3
3
version = "0.1.0"
4
4
-
edition = "2021"
4
4
+
edition = "2024"
5
5
6
6
[dependencies]
7
7
eepy-sys = { path = "../eepy-sys", features = ["critical-section-impl"] }
+2
-2
eepy-launcher/src/serial.rs
Reviewed
···
49
49
.map(|(s, _e)| s)
50
50
}
51
51
52
52
-
unsafe fn write_flash(buf: &[u8], slot: u8, page: usize) {
52
52
+
unsafe fn write_flash(buf: &[u8], slot: u8, page: usize) { unsafe {
53
53
erase_and_program((slot as u32) * 512 * 1024 + (page as u32) * 4096, buf);
54
54
-
}
54
54
+
}}
55
55
56
56
fn write_all(serial: &mut SerialPort<UsbBus>, mut buf: &[u8]) {
57
57
while !buf.is_empty() {