Added force inline to reduce code size

This commit is contained in:
2019-07-30 21:48:00 +02:00
parent aac73447b3
commit 6861b8f5d1
2 changed files with 8 additions and 9 deletions

View File

@@ -81,7 +81,7 @@ class Hardware1 {
using data_t = typename cfg::data_t;
static constexpr auto DATA_BITS = cfg::DATA_BITS;
static void init()
static void init() FORCE_INLINE
{
HardwareImpl::init();
}
@@ -91,9 +91,9 @@ class Hardware1 {
HardwareImpl::txByte(byte);
}
static data_t rxByte() {}
static data_t rxByte() FORCE_INLINE {}
static data_t peek() {}
static data_t peek() FORCE_INLINE {}
private:
using HardwareImpl = detail::Hardware<detail::Registers1, detail::ControlFlagsA1, detail::ControlFlagsB1,