[ion] Avoid explicit namespaces when they're not needed

Change-Id: Ibe523d0aadaf4d408f915d705475fcd779caa2a7
This commit is contained in:
Romain Goyet
2016-09-21 13:57:00 +02:00
parent c55c4aba37
commit d6c52ac3d0
2 changed files with 4 additions and 4 deletions

View File

@@ -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++) {

View File

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