Fix openocd reset and RGB color sequence

use_hal
Levi Pearson 2019-03-27 04:55:15 -06:00
parent b8a90750ba
commit 956bcc1085
2 changed files with 4 additions and 3 deletions

View File

@ -4,3 +4,4 @@ source [find interface/xds110.cfg]
adapter_khz 2500
transport select swd
source [find target/ti_msp432.cfg]
reset_config none separate

View File

@ -65,19 +65,19 @@ fn main() -> ! {
// toggle RGB LEDs
if led2 & 0b001 == 1 {
if led2 & 0b001 == 0 {
rgb_red.set_high()
} else {
rgb_red.set_low()
}
if led2 & 0b010 == 1 {
if led2 & 0b010 == 0 {
rgb_blue.set_high()
} else {
rgb_blue.set_low()
}
if led2 & 0b100 == 1 {
if led2 & 0b100 == 0 {
rgb_green.set_high()
} else {
rgb_green.set_low()