repo.or.cz
/
cerebrum.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Single lamps can be controlled. r0ketbeam is working. Input support is
[cerebrum.git]
/
config.c
blob
ede5c513ae0d0a0819cbc377ba833e70e511c34a
1
2
#include
"config.h"
3
#include <avr/io.h>
4
#include
"input.h"
5
6
void
config_setup
(){
7
PORTH
|=
0x20
;
8
}
9
10
void
input_scan_inputs
(){
11
switch_states
[
0
] |= !!(
PINH
&
0x20
);
12
}
13
14
void
led_output_stuff1
(
uint8_t
data
,
uint8_t
dir
){
15
PORTK
=
data
;
16
DDRK
=
dir
;
17
}
18