Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Jake Read
atkrouter
Commits
5c92cc38
Commit
5c92cc38
authored
May 18, 2018
by
Jake Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add flourish
parent
62a8ce29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
embedded/mkrouter-v06/mkrouter-v06/main.c
embedded/mkrouter-v06/mkrouter-v06/main.c
+25
-3
No files found.
embedded/mkrouter-v06/mkrouter-v06/main.c
View file @
5c92cc38
...
...
@@ -69,6 +69,25 @@ void lights_init(void){
pin_set
(
&
up5stlr
);
}
void
lights_flash
(
void
){
// yikes!
pin_toggle
(
&
stlTicker
);
pin_toggle
(
&
stlPacket
);
pin_toggle
(
&
stlErr
);
pin_toggle
(
&
up0stlb
);
pin_toggle
(
&
up0stlr
);
pin_toggle
(
&
up1stlb
);
pin_toggle
(
&
up1stlr
);
pin_toggle
(
&
up2stlb
);
pin_toggle
(
&
up2stlr
);
pin_toggle
(
&
up3stlb
);
pin_toggle
(
&
up3stlr
);
pin_toggle
(
&
up4stlb
);
pin_toggle
(
&
up4stlr
);
pin_toggle
(
&
up5stlb
);
pin_toggle
(
&
up5stlr
);
}
void
uarts_init
(
void
){
// don't forget to also add the handler
NVIC_EnableIRQ
(
SERCOM0_0_IRQn
);
...
...
@@ -198,8 +217,12 @@ int main(void)
// a ticker to look for hangouts
SysTick_Config
(
8000000
);
uint8_t
testUart
[
3
]
=
{
12
,
24
,
48
};
for
(
int
i
=
0
;
i
<
600000
;
i
++
){
if
(
!
(
i
%
190000
)){
lights_flash
();
}
}
while
(
1
)
{
...
...
@@ -222,7 +245,6 @@ int main(void)
apaport_scan
(
&
apap4
,
2
);
apaport_scan
(
&
apap5
,
2
);
/*
while(!rb_empty(up0.rbrx)){
uart_sendchar_buffered(&up0, rb_get(up0.rbrx));
...
...
Write
Preview
Markdown
is supported
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