mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[ion] Avoid explicit namespaces when they're not needed
Change-Id: Ibe523d0aadaf4d408f915d705475fcd779caa2a7
This commit is contained in:
@@ -97,7 +97,7 @@ void init() {
|
||||
}
|
||||
}
|
||||
|
||||
void generateWakeUpEventForKey(Ion::Keyboard::Key k) {
|
||||
void generateWakeUpEventForKey(Key k) {
|
||||
// We're driving the rows and reading the columns.
|
||||
int row = rowForKey(k);
|
||||
for (uint8_t i=0; i<numberOfRows; i++) {
|
||||
|
||||
@@ -37,14 +37,14 @@ constexpr GPIO ColumnGPIO = GPIOC;
|
||||
constexpr uint8_t numberOfColumns = 5;
|
||||
constexpr uint8_t ColumnPins[numberOfColumns] = {0, 1, 13, 14, 15};
|
||||
|
||||
inline uint8_t rowForKey(Ion::Keyboard::Key key) {
|
||||
inline uint8_t rowForKey(Key key) {
|
||||
return (int)key/numberOfColumns;
|
||||
}
|
||||
inline uint8_t columnForKey(Ion::Keyboard::Key key) {
|
||||
inline uint8_t columnForKey(Key key) {
|
||||
return (int)key%numberOfColumns;
|
||||
}
|
||||
|
||||
void generateWakeUpEventForKey(Ion::Keyboard::Key k);
|
||||
void generateWakeUpEventForKey(Key k);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user