lab1
This commit is contained in:
parent
df05915624
commit
b1bade4f9e
|
@ -3,7 +3,8 @@ CC = arm-none-eabi-gcc
|
|||
# The location of the C compiler
|
||||
# ARMGCC_ROOT is used by some makefiles that need to know where the compiler
|
||||
# is installed.
|
||||
ARMGCC_ROOT := ${shell dirname ${shell readlink ${shell which ${CC}}}}/..
|
||||
ARMGCC_ROOT := /usr/arm-none-eabi
|
||||
# ${shell dirname ${shell readlink ${shell which ${CC}}}}/..
|
||||
|
||||
ROOT ?= $(abspath ..)
|
||||
|
||||
|
|
|
@ -228,11 +228,11 @@ int main(void) {
|
|||
break;
|
||||
case SW1 | SW2:
|
||||
outP1(0);
|
||||
outP2(RED);
|
||||
outP2(BLUE | GREEN);
|
||||
break;
|
||||
default:
|
||||
outP1(0);
|
||||
outP2(BLUE | GREEN);
|
||||
outP2(0);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue