summaryrefslogtreecommitdiff
path: root/hid/lib/drivers-avr
diff options
context:
space:
mode:
Diffstat (limited to 'hid/lib/drivers-avr')
-rw-r--r--hid/lib/drivers-avr/eeprom.h16
-rw-r--r--hid/lib/drivers-avr/factory.cpp4
2 files changed, 10 insertions, 10 deletions
diff --git a/hid/lib/drivers-avr/eeprom.h b/hid/lib/drivers-avr/eeprom.h
index 7868f03d..f43b86f4 100644
--- a/hid/lib/drivers-avr/eeprom.h
+++ b/hid/lib/drivers-avr/eeprom.h
@@ -19,22 +19,22 @@
# #
*****************************************************************************/
-#include "storage.h"
-#ifdef HID_DYNAMIC
+
#include <avr/eeprom.h>
-#endif
-namespace DRIVERS {
+#include "storage.h"
+
+namespace DRIVERS {
struct Eeprom : public Storage {
using Storage::Storage;
- void read_block (void *_dst, const void *_src, size_t _n) override {
- eeprom_read_block(_dst, _src, _n);
+ void readBlock(void *dest, const void *src, size_t size) override {
+ eeprom_read_block(dest, src, size);
}
- void update_block (const void *_src, void *_dst, size_t _n) override {
- eeprom_update_block(_src, _dst, _n);
+ void updateBlock(const void *src, void *dest, size_t size) override {
+ eeprom_update_block(src, dest, size);
}
};
}
diff --git a/hid/lib/drivers-avr/factory.cpp b/hid/lib/drivers-avr/factory.cpp
index c6968777..989f4e2b 100644
--- a/hid/lib/drivers-avr/factory.cpp
+++ b/hid/lib/drivers-avr/factory.cpp
@@ -57,9 +57,9 @@ namespace DRIVERS {
return new Mouse(DRIVERS::DUMMY);
}
}
+
Storage* Factory::makeStorage(type _type) {
- switch (_type)
- {
+ switch (_type) {
# ifdef HID_DYNAMIC
case NON_VOLATILE_STORAGE:
return new Eeprom(DRIVERS::NON_VOLATILE_STORAGE);