Removed unnecessary const qualifiers in template
This commit is contained in:
parent
5cd2b963fa
commit
d8aee7498d
2
uart/io
2
uart/io
@ -1 +1 @@
|
|||||||
Subproject commit d64793770cd82513bedcb839b7878c9102aba258
|
Subproject commit 387bc5f1107fb27684c0ed96f558a8c65c470cfe
|
@ -17,7 +17,7 @@ enum class Parity { DISABLED = 0, ODD = 1, EVEN = 2 };
|
|||||||
|
|
||||||
enum class StopBit { ONE = 1, TWO = 2 };
|
enum class StopBit { ONE = 1, TWO = 2 };
|
||||||
|
|
||||||
template <const uint32_t baudRate, const uint8_t dataBits, const Parity parity, const StopBit stopBit, const Mode mode>
|
template <uint32_t baudRate, uint8_t dataBits, Parity parity, StopBit stopBit, Mode mode>
|
||||||
class hardware0 {
|
class hardware0 {
|
||||||
static constexpr auto calcBaud()
|
static constexpr auto calcBaud()
|
||||||
{
|
{
|
||||||
@ -246,7 +246,7 @@ enum class DataOrder {
|
|||||||
LSB,
|
LSB,
|
||||||
};
|
};
|
||||||
|
|
||||||
template <const Cpol cpol, const Cpha cpha, const DataOrder dataOrder>
|
template <Cpol cpol, Cpha cpha, DataOrder dataOrder>
|
||||||
struct config {
|
struct config {
|
||||||
static constexpr auto CPOL_MODE = cpol;
|
static constexpr auto CPOL_MODE = cpol;
|
||||||
static constexpr auto CPHA_MODE = cpha;
|
static constexpr auto CPHA_MODE = cpha;
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 29b4d85ce3e2a5467dc378f029b94fa35cb6c793
|
Subproject commit 2bbba0fcbd6879fa6ca941cfec19dd2dcc9afd9e
|
Loading…
Reference in New Issue
Block a user