@@ -91,7 +91,7 @@ namespace klib::core::mb9bf560l::io::detail::pins {
9191 if constexpr (alternate::periph::id == spsr_id) {
9292 // clear the alternate function if it is set
9393 peripheral_helper_clear_alternate (
94- &Pin::port::port->SPRS , alternate::periph::offset, alternate::periph::bits, alternate::value
94+ &Pin::port::port->SPSR , alternate::periph::offset, alternate::periph::bits, alternate::value
9595 );
9696 }
9797 else {
@@ -158,7 +158,7 @@ namespace klib::core::mb9bf560l::io::detail::pins {
158158 if constexpr (Periph::periph::id == spsr_id) {
159159 // set the value from the peripheral into the register
160160 peripheral_helper_set_alternate (
161- &Pin::port::port->SPRS , Periph::periph::offset, Periph::periph::bits, Periph::value
161+ &Pin::port::port->SPSR , Periph::periph::offset, Periph::periph::bits, Periph::value
162162 );
163163 }
164164 else {
@@ -196,7 +196,7 @@ namespace klib::core::mb9bf560l::io::detail::alternate {
196196 // blocks. This is extremly anoying as we need to
197197 // clear all the other functions this pin can have.
198198 namespace special {
199- // register SPRS (note we use ID 255 for this register)
199+ // register SPSR (note we use ID 255 for this register)
200200 // alternate function for usb1c
201201 template <uint8_t Value>
202202 struct usb1c : public detail ::pins::peripheral_helper<detail::pins::peripheral_helper_impl<detail::pins::spsr_id, 5 , 1 >, Value> {};
0 commit comments