Removed force inlining functions that would be called often
This commit is contained in:
parent
5d6bc4761c
commit
496bb3d4d1
10
uart.hpp
10
uart.hpp
@ -35,7 +35,7 @@ class Uart {
|
|||||||
Uart &operator=(const Uart &) = delete;
|
Uart &operator=(const Uart &) = delete;
|
||||||
Uart &operator=(Uart &&) = delete;
|
Uart &operator=(Uart &&) = delete;
|
||||||
|
|
||||||
static void txByte(typename Driver::data_t byte) FORCE_INLINE
|
static void txByte(const typename Driver::data_t &byte)
|
||||||
{
|
{
|
||||||
Driver::txByte(byte);
|
Driver::txByte(byte);
|
||||||
}
|
}
|
||||||
@ -50,7 +50,7 @@ class Uart {
|
|||||||
return Driver::peek();
|
return Driver::peek();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void txString(const char *str) FORCE_INLINE
|
static void txString(const char *str)
|
||||||
{
|
{
|
||||||
static_assert(Driver::DATA_BITS == DataBits::EIGHT, "Strings are only supported with 8 data bits");
|
static_assert(Driver::DATA_BITS == DataBits::EIGHT, "Strings are only supported with 8 data bits");
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ class Uart {
|
|||||||
txByte(ch);
|
txByte(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void txString(const ::detail::FlashString *str) FORCE_INLINE
|
static void txString(const ::detail::FlashString *str)
|
||||||
{
|
{
|
||||||
static_assert(Driver::DATA_BITS == DataBits::EIGHT, "Strings are only supported with 8 data bits");
|
static_assert(Driver::DATA_BITS == DataBits::EIGHT, "Strings are only supported with 8 data bits");
|
||||||
|
|
||||||
@ -71,13 +71,13 @@ class Uart {
|
|||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// Output stream overloads
|
// Output stream overloads
|
||||||
|
|
||||||
Uart &operator<<(const char *str) FORCE_INLINE
|
Uart &operator<<(const char *str)
|
||||||
{
|
{
|
||||||
txString(str);
|
txString(str);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Uart &operator<<(const ::detail::FlashString *str) FORCE_INLINE
|
Uart &operator<<(const ::detail::FlashString *str)
|
||||||
{
|
{
|
||||||
txString(str);
|
txString(str);
|
||||||
return *this;
|
return *this;
|
||||||
|
Loading…
Reference in New Issue
Block a user