Use uint8_t for GPIO enums
parent
0aac32a4bf
commit
9e9c0d9ca3
|
|
@ -10,18 +10,18 @@ namespace gpio {
|
||||||
volatile uint8_t PORTx;
|
volatile uint8_t PORTx;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class Mode {
|
enum class Mode : uint8_t {
|
||||||
input = 0,
|
input = 0,
|
||||||
output,
|
output,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class Pull {
|
enum class Pull : uint8_t {
|
||||||
none = 0,
|
none = 0,
|
||||||
up,
|
up,
|
||||||
down, //not available on the AVR
|
down, //not available on the AVR
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class Level {
|
enum class Level : uint8_t {
|
||||||
low = 0,
|
low = 0,
|
||||||
high,
|
high,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue