Use uint8_t for GPIO enums

pull/9/head
Alex Voinea 2021-05-14 14:57:03 +03:00
parent 0aac32a4bf
commit 9e9c0d9ca3
1 changed files with 3 additions and 3 deletions

View File

@ -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,
}; };