This is an automated email from Gerrit. Stefan Arnold ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4258
-- gerrit commit d59e8641414737cc040820c304566e576d650252 Author: Stefan Arnold <[email protected]> Date: Tue Oct 17 10:01:01 2017 +0200 Add option "aux0" to "at91samd" for changing and reading AUX0 register which represents various fuses. Change-Id: I982031c68ae2e11a9e69da60ba88aa278bda3599 Signed-off-by: Stefan Arnold <[email protected]> diff --git a/src/flash/nor/at91samd.c b/src/flash/nor/at91samd.c index 4f772ad..056ef5c 100644 --- a/src/flash/nor/at91samd.c +++ b/src/flash/nor/at91samd.c @@ -944,7 +944,6 @@ COMMAND_HANDLER(samd_handle_eeprom_command) return res; } - static uint8_t hexchar_to_value(char c) { if(isalpha(c)) @@ -954,7 +953,6 @@ static uint8_t hexchar_to_value(char c) return c -'0'; } - static int get_u32_from_hex(const char *str, uint32_t *value) { unsigned int i; @@ -975,7 +973,6 @@ static int get_u32_from_hex(const char *str, uint32_t *value) return 1; } - static int get_u32_from_str(const char *str, uint32_t *value) { unsigned int i; @@ -1001,7 +998,6 @@ static int get_u32_from_str(const char *str, uint32_t *value) return 1; } - COMMAND_HANDLER(samd_handle_aux0_command) { int res = ERROR_OK; @@ -1211,6 +1207,13 @@ static const struct command_registration at91samd_exec_command_handlers[] = { .mode = COMMAND_EXEC, .help = "Show or set the AUX0 register, stored in the User Row.", }, + { + .name = "aux0", + .usage = "[value]", + .handler = samd_handle_aux0_command, + .mode = COMMAND_EXEC, + .help = "Show or set the AUX0 register, stored in the User Row.", + }, COMMAND_REGISTRATION_DONE }; -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
