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
|
# The location of the C compiler
|
||||||
# ARMGCC_ROOT is used by some makefiles that need to know where the compiler
|
# ARMGCC_ROOT is used by some makefiles that need to know where the compiler
|
||||||
# is installed.
|
# 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 ..)
|
ROOT ?= $(abspath ..)
|
||||||
|
|
||||||
|
|
|
@ -228,11 +228,11 @@ int main(void) {
|
||||||
break;
|
break;
|
||||||
case SW1 | SW2:
|
case SW1 | SW2:
|
||||||
outP1(0);
|
outP1(0);
|
||||||
outP2(RED);
|
outP2(BLUE | GREEN);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
outP1(0);
|
outP1(0);
|
||||||
outP2(BLUE | GREEN);
|
outP2(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue