From 119de3244588b19b4afb06f33f66f22bb80a89b5 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sat, 16 May 2020 17:42:52 +0200 Subject: [PATCH] Adapt to moved type submodule --- hardware.hpp | 4 ++-- software.hpp | 4 ++-- uart.hpp | 42 +++++++++++++++++++++--------------------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/hardware.hpp b/hardware.hpp index 4f8b7b8..ff3f960 100644 --- a/hardware.hpp +++ b/hardware.hpp @@ -2,7 +2,7 @@ #include "../clock.hpp" -#include "../type/type.hpp" +#include "../util/type.hpp" #include #include @@ -294,7 +294,7 @@ class BlockingHardware { static bool peek(data_t &) FORCE_INLINE { - static_assert(type::always_false_v, "Peek with data is not supported in blocking mode"); + static_assert(util::always_false_v, "Peek with data is not supported in blocking mode"); return false; } diff --git a/software.hpp b/software.hpp index fb82cbf..4948c89 100644 --- a/software.hpp +++ b/software.hpp @@ -3,13 +3,13 @@ #include "config.hpp" #include "../io/io.hpp" -#include "../type/type.hpp" +#include "../util/type.hpp" namespace uart { template > class Software { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); public: using data_t = typename cfg::data_t; diff --git a/uart.hpp b/uart.hpp index a35dcb6..c564323 100644 --- a/uart.hpp +++ b/uart.hpp @@ -33,8 +33,8 @@ static constexpr size_t cntDigits() template static constexpr size_t maxNumDigits() { - constexpr T MinVal = type::numeric_limits::min(); - constexpr T MaxVal = type::numeric_limits::max(); + constexpr T MinVal = util::numeric_limits::min(); + constexpr T MaxVal = util::numeric_limits::max(); constexpr T MinDigits = cntDigits(); constexpr T MaxDigits = cntDigits(); @@ -112,7 +112,7 @@ class Uart { template static void txNumber(const T &val) { - static_assert(type::is_integral_v, "Only supported on integral types"); + static_assert(util::is_integral_v, "Only supported on integral types"); static_assert(Base >= 2, "Numbers with base less than 2 make no sense"); static_assert(Base <= 16, "Numbers with base higher than 16 are not supported"); static_assert(Padding <= detail::maxNumDigits(), "Cannot pad more than maximum length of number"); @@ -234,19 +234,19 @@ class Uart { template Uart &operator<<(float) const { - static_assert(type::always_false_v, "Not supported by hardware"); + static_assert(util::always_false_v, "Not supported by hardware"); } template Uart &operator<<(double) const { - static_assert(type::always_false_v, "Not supported by hardware"); + static_assert(util::always_false_v, "Not supported by hardware"); } template Uart &operator<<(long double) const { - static_assert(type::always_false_v, "Not supported by hardware"); + static_assert(util::always_false_v, "Not supported by hardware"); } Uart &operator<<(const bool &val) @@ -268,91 +268,91 @@ class Uart { template Uart &operator>>(char &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(unsigned char &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(short &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(unsigned short &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(int &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(unsigned int &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(long &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(unsigned long &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(long long &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(unsigned long long &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(float &) const { - static_assert(type::always_false_v, "Not supported by hardware"); + static_assert(util::always_false_v, "Not supported by hardware"); } template Uart &operator>>(double &) const { - static_assert(type::always_false_v, "Not supported by hardware"); + static_assert(util::always_false_v, "Not supported by hardware"); } template Uart &operator>>(long double &) const { - static_assert(type::always_false_v, "Not supported by hardware"); + static_assert(util::always_false_v, "Not supported by hardware"); } template Uart &operator>>(bool &) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } template Uart &operator>>(const void *&) const { - static_assert(type::always_false_v, "Not implemented"); + static_assert(util::always_false_v, "Not implemented"); } private: