Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Jan Kasprzak
tinyboard
Commits
280768d8
Commit
280768d8
authored
Apr 25, 2013
by
Jan Kasprzak
Browse files
main.c modified for ATtiny45/step-up
parent
02b8c741
Changes
1
Hide whitespace changes
Inline
Side-by-side
projects/step-up/main.c
View file @
280768d8
...
...
@@ -11,21 +11,23 @@ static void hw_setup()
{
wdt_enable
(
WDTO_1S
);
init_battery
();
//
init_battery();
init_pwm
();
init_adc
();
init_tmr
();
init_buttons
();
init_pwmled
();
init_gpio
();
init_ambient
();
init_pattern
();
init_control
();
//init_tmr();
//init_buttons();
//init_pwmled();
//init_gpio();
//init_ambient();
//init_pattern();
//init_control();
set_sleep_mode
(
SLEEP_MODE_IDLE
);
}
#if 0
static void hw_suspend()
{
susp_pwm();
...
...
@@ -59,18 +61,19 @@ void power_down()
// ok, so I will wake up
hw_setup();
}
#endif
int
main
(
void
)
{
init_log
();
power_usi_disable
();
// Once for lifetime
ACSR
A
|=
_BV
(
ACD
);
// disable analog comparator
ACSR
|=
_BV
(
ACD
);
// disable analog comparator
log_set_state
(
3
);
hw_setup
();
power_down
();
//
power_down();
- not while still debugging
sei
();
#if 1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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