Add registers in rust

This commit is contained in:
2025-11-12 23:51:16 +01:00
parent 8326c1f169
commit 3044a54a09
12 changed files with 98 additions and 32 deletions

View File

@@ -0,0 +1,7 @@
[package]
name = "fpga-lib"
version = "0.1.0"
edition = "2024"
[dependencies]
fpga-lib-macros = { path = "../fpga-lib-macros" }

View File

@@ -0,0 +1,13 @@
#![no_std]
pub mod register;
#[macro_export]
macro_rules! panic_handler {
() => {
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}
};
}

View File

@@ -0,0 +1,3 @@
pub struct Reg<const N: usize> {}
fpga_lib_macros::define_regs! {}