Skip to content

Commit

Permalink
rp2xxx: hal: spi: Inline & pub-ify get_regs (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grazfather authored Feb 13, 2025
1 parent 86df0aa commit 7ee9ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion port/raspberrypi/rp2xxx/src/hal/spi.zig
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub const ConfigError = error{
pub const SPI = enum(u1) {
_,

fn get_regs(spi: SPI) *volatile SpiRegs {
pub inline fn get_regs(spi: SPI) *volatile SpiRegs {
return switch (@intFromEnum(spi)) {
0 => SPI0_reg,
1 => SPI1_reg,
Expand Down

0 comments on commit 7ee9ac4

Please sign in to comment.