|
|
@ -17,6 +17,7 @@ var ( |
|
|
|
|
|
|
|
|
|
|
|
commands = map[string]CommandFunc{ |
|
|
|
commands = map[string]CommandFunc{ |
|
|
|
"echo": cmd_echo, |
|
|
|
"echo": cmd_echo, |
|
|
|
|
|
|
|
"jtag": cmd_jtag, |
|
|
|
"buzzer": cmd_buzzer, |
|
|
|
"buzzer": cmd_buzzer, |
|
|
|
"led": cmd_led, |
|
|
|
"led": cmd_led, |
|
|
|
"reset": cmd_reset, |
|
|
|
"reset": cmd_reset, |
|
|
@ -64,6 +65,10 @@ func cmd_echo(tbm *TBM, args []string) error { |
|
|
|
return cmd_generic(tbm, "echo", args, nil); |
|
|
|
return cmd_generic(tbm, "echo", args, nil); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func cmd_jtag(tbm *TBM, args []string) error { |
|
|
|
|
|
|
|
return cmd_generic(tbm, "jtag", args, nil) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func cmd_buzzer(tbm *TBM, args []string) error { |
|
|
|
func cmd_buzzer(tbm *TBM, args []string) error { |
|
|
|
return cmd_generic(tbm, "buzzer", args, nil) |
|
|
|
return cmd_generic(tbm, "buzzer", args, nil) |
|
|
|
} |
|
|
|
} |
|
|
|