diff --git a/firmware/application/max2837.cpp b/firmware/application/max2837.cpp index ca446a0e..98a1850c 100644 --- a/firmware/application/max2837.cpp +++ b/firmware/application/max2837.cpp @@ -149,22 +149,22 @@ void MAX2837::flush_one(const Register reg) { _dirty.clear(reg_num); } -inline void MAX2837::write(const address_t reg_num, const reg_t value) { +void MAX2837::write(const address_t reg_num, const reg_t value) { uint16_t t = (0U << 15) | (reg_num << 10) | (value & 0x3ffU); _target.transfer(&t, 1); } -inline reg_t MAX2837::read(const address_t reg_num) { +reg_t MAX2837::read(const address_t reg_num) { uint16_t t = (1U << 15) | (reg_num << 10); _target.transfer(&t, 1U); return t & 0x3ffU; } -inline void MAX2837::write(const Register reg, const reg_t value) { +void MAX2837::write(const Register reg, const reg_t value) { write(toUType(reg), value); } -inline reg_t MAX2837::read(const Register reg) { +reg_t MAX2837::read(const Register reg) { return read(toUType(reg)); } diff --git a/firmware/application/rffc507x.cpp b/firmware/application/rffc507x.cpp index 1ac3fec3..30921cc5 100644 --- a/firmware/application/rffc507x.cpp +++ b/firmware/application/rffc507x.cpp @@ -183,23 +183,23 @@ void RFFC507x::flush() { } } -inline void RFFC507x::write(const address_t reg_num, const spi::reg_t value) { +void RFFC507x::write(const address_t reg_num, const spi::reg_t value) { _bus.write(reg_num, value); } -inline spi::reg_t RFFC507x::read(const address_t reg_num) { +spi::reg_t RFFC507x::read(const address_t reg_num) { return _bus.read(reg_num); } -inline void RFFC507x::write(const Register reg, const spi::reg_t value) { +void RFFC507x::write(const Register reg, const spi::reg_t value) { write(toUType(reg), value); } -inline spi::reg_t RFFC507x::read(const Register reg) { +spi::reg_t RFFC507x::read(const Register reg) { return read(toUType(reg)); } -inline void RFFC507x::flush_one(const Register reg) { +void RFFC507x::flush_one(const Register reg) { const auto reg_num = toUType(reg); write(reg_num, _map.w[reg_num]); _dirty.clear(reg_num);