Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sven Greiner
rampinglight
Commits
c3f761a8
Commit
c3f761a8
authored
Dec 22, 2018
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
rampinglight.c
View file @
c3f761a8
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment