Initial Commit

TODOS:
1. Ensure memory.x has correct memory regions.
2. Add HAL loop delay.
This commit is contained in:
Lorenzo Good 2026-06-01 13:40:49 -04:00
commit f41f2c6806
Signed by: lorenzo
GPG key ID: 7FCD64BD81180ED0
10 changed files with 645 additions and 0 deletions

48
nix/flake.nix Normal file
View file

@ -0,0 +1,48 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{ ... }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = inputs.nixpkgs.lib.genAttrs supportedSystems;
buildNixpkgs =
system:
import inputs.nixpkgs {
inherit system;
overlays = [ (import inputs.rust-overlay) ];
};
in
{
devShells = forAllSystems (
system:
let
pkgs = buildNixpkgs system;
rust-toolchain = pkgs.rust-bin.fromRustupToolchainFile ../rust-toolchain.toml;
in
{
default = pkgs.mkShell {
buildInputs = with pkgs; [
gcc-arm-embedded-13
treefmt
nixpkgs-fmt
rust-toolchain
];
};
}
);
};
}