Skip to content

Commit

Permalink
Add basic support to semihosting (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveError authored Feb 21, 2025
1 parent 59d71c5 commit 1891601
Show file tree
Hide file tree
Showing 4 changed files with 533 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/core/experimental.zig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ pub const i2c = @import("experimental/i2c.zig");
pub const Pin = @import("experimental/pin.zig").Pin;
pub const spi = @import("experimental/spi.zig");
pub const uart = @import("experimental/uart.zig");

///semihosting requires a valid host session, either via a simulator or via a debug probe, otherwise the code will always result in a halt.
///This implementation only supports Arm-M.
///More info: https://github.com/ARM-software/abi-aa/blob/main/semihosting/semihosting.rst
pub const ARM_semihosting = @import("experimental/semihosting.zig");
Loading

0 comments on commit 1891601

Please sign in to comment.