Commit c3f761a8 authored by Sven Greiner's avatar Sven Greiner
Browse files

Move options to register

This saves some bytes because it is not necessary anymore to address
options in RAM.
parent f0a2f047
......@@ -75,17 +75,18 @@ typedef union {
const uint8_t __flash ramp_values[] = { RAMP_VALUES };
const uint8_t __flash fixed_values[] = { FIXED_VALUES };
register uint8_t microticks asm("r7");
uint8_t ticks = 0;
uint8_t cold_boot_detect[CBD_BYTES] __attribute__((section(".noinit")));
Options options __attribute__((section(".noinit")));
enum State state __attribute__((section(".noinit")));
uint8_t output __attribute__((section(".noinit")));
uint8_t fast_presses __attribute__((section(".noinit")));
uint8_t ramping_up __attribute__((section(".noinit")));
register Options options asm("r7");
register uint8_t output_eeprom asm("r6");
register uint8_t output_eeprom_pos asm("r5");
register uint8_t microticks asm("r4");
uint8_t ticks = 0;
* Busy wait delay with ms resolution. This function allows to choose the
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment