diff --git a/src/core/core.cpp b/src/core/core.cpp index 8c9fd21..d2eb671 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -90,7 +90,7 @@ ArduboyCore::ArduboyCore() {} void ArduboyCore::boot() { #if F_CPU == 8000000L - slowCPU(); + bootCPUSpeed(); #endif SPI.begin(); @@ -102,13 +102,13 @@ void ArduboyCore::boot() safeMode(); #endif - saveMuchPower(); + bootPowerSaving(); } #if F_CPU == 8000000L // if we're compiling for 8Mhz we need to slow the CPU down because the // hardware clock on the Arduboy is 16MHz -void ArduboyCore::slowCPU() +void ArduboyCore::bootCPUSpeed() { uint8_t oldSREG = SREG; cli(); // suspend interrupts @@ -188,7 +188,7 @@ void ArduboyCore::idle() sleep_mode(); } -void ArduboyCore::saveMuchPower() +void ArduboyCore::bootPowerSaving() { power_adc_disable(); power_usart0_disable(); diff --git a/src/core/core.h b/src/core/core.h index e83c33f..a433920 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -286,8 +286,8 @@ protected: // internals void static inline bootOLED() __attribute__((always_inline)); void static inline bootPins() __attribute__((always_inline)); - void static inline slowCPU() __attribute__((always_inline)); - void static inline saveMuchPower() __attribute__((always_inline)); + void static inline bootCPUSpeed() __attribute__((always_inline)); + void static inline bootPowerSaving() __attribute__((always_inline)); private: