From: OpenOCD-Gerrit <ope...@us...> - 2020-02-24 10:31:37
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 9d5767b6b005e426f77460c42bafce157de74a25 (commit) via e7306d361b5d503cf27dfb3dc69298ddad495f88 (commit) from 86d8c05eb68866297cbc1ec5f90d3d1634c69a1e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 9d5767b6b005e426f77460c42bafce157de74a25 Author: Antonio Borneo <bor...@gm...> Date: Sun May 12 12:26:46 2019 +0200 coding style: add newline at end of text files Some text file is missing newline at EOF. Add it. Change-Id: Ieebc790096f40961283c644642e56fde975e957f Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: http://openocd.zylin.com/5167 Tested-by: jenkins diff --git a/contrib/loaders/flash/at91sam7x/makefile b/contrib/loaders/flash/at91sam7x/makefile index c3eaf126b..39482976e 100644 --- a/contrib/loaders/flash/at91sam7x/makefile +++ b/contrib/loaders/flash/at91sam7x/makefile @@ -127,4 +127,4 @@ clean: # #-include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) -# *** EOF *** \ No newline at end of file +# *** EOF *** diff --git a/tcl/board/hilscher_nxhx10.cfg b/tcl/board/hilscher_nxhx10.cfg index 7ff99165a..add424d4e 100644 --- a/tcl/board/hilscher_nxhx10.cfg +++ b/tcl/board/hilscher_nxhx10.cfg @@ -79,4 +79,4 @@ $_TARGETNAME configure -event reset-init { #flash bank parflash cfi 0xC0000000 0x01000000 2 2 $_TARGETNAME init -reset init \ No newline at end of file +reset init diff --git a/tcl/board/iar_str912_sk.cfg b/tcl/board/iar_str912_sk.cfg index ba060a046..54f517b73 100644 --- a/tcl/board/iar_str912_sk.cfg +++ b/tcl/board/iar_str912_sk.cfg @@ -1,3 +1,3 @@ # The IAR str912-sk evaluation kick start board has an str912 -source [find target/str912.cfg] \ No newline at end of file +source [find target/str912.cfg] diff --git a/tcl/board/twr-vf65gs10_cmsisdap.cfg b/tcl/board/twr-vf65gs10_cmsisdap.cfg index e8db75491..ab4548f99 100644 --- a/tcl/board/twr-vf65gs10_cmsisdap.cfg +++ b/tcl/board/twr-vf65gs10_cmsisdap.cfg @@ -12,4 +12,4 @@ transport select swd source [find board/twr-vf65gs10.cfg] # override reset configuration -reset_config srst_only \ No newline at end of file +reset_config srst_only diff --git a/tcl/interface/imx-native.cfg b/tcl/interface/imx-native.cfg index d9bc7eb04..9e1f38d03 100644 --- a/tcl/interface/imx-native.cfg +++ b/tcl/interface/imx-native.cfg @@ -32,4 +32,4 @@ imx_gpio_swd_nums 1 6 # reset_config srst_only srst_push_pull # or if you have both connected, -# reset_config trst_and_srst srst_push_pull \ No newline at end of file +# reset_config trst_and_srst srst_push_pull diff --git a/tcl/interface/openjtag.cfg b/tcl/interface/openjtag.cfg index 7bd532545..9a5827b14 100644 --- a/tcl/interface/openjtag.cfg +++ b/tcl/interface/openjtag.cfg @@ -5,4 +5,4 @@ # adapter driver openjtag -openjtag_device_desc "Open JTAG Project" \ No newline at end of file +openjtag_device_desc "Open JTAG Project" diff --git a/tcl/target/c100config.tcl b/tcl/target/c100config.tcl index 52efa83c2..a72a2fa84 100644 --- a/tcl/target/c100config.tcl +++ b/tcl/target/c100config.tcl @@ -409,4 +409,4 @@ proc flashUBOOT {file} { putsUART0 "done.\n" putsUART0 "Rebooting, please wait!\n" reboot -} \ No newline at end of file +} diff --git a/testing/examples/AT91R40008Test/makefile b/testing/examples/AT91R40008Test/makefile index c57130a7b..24898a329 100644 --- a/testing/examples/AT91R40008Test/makefile +++ b/testing/examples/AT91R40008Test/makefile @@ -134,4 +134,4 @@ clean: # -include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) -# *** EOF *** \ No newline at end of file +# *** EOF *** diff --git a/testing/examples/LPC2148Test/makefile b/testing/examples/LPC2148Test/makefile index 3a098c33b..53f45f668 100644 --- a/testing/examples/LPC2148Test/makefile +++ b/testing/examples/LPC2148Test/makefile @@ -144,4 +144,4 @@ clean: # -include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) -# *** EOF *** \ No newline at end of file +# *** EOF *** diff --git a/testing/examples/LPC2148Test/prj/eclipse_ram.gdb b/testing/examples/LPC2148Test/prj/eclipse_ram.gdb index 4f423124d..ea0e21fc3 100644 --- a/testing/examples/LPC2148Test/prj/eclipse_ram.gdb +++ b/testing/examples/LPC2148Test/prj/eclipse_ram.gdb @@ -8,4 +8,4 @@ monitor mww 0xE01FC040 0x0002 monitor mdw 0xE01FC040 load break main -continue \ No newline at end of file +continue diff --git a/testing/examples/LPC2148Test/prj/eclipse_rom.gdb b/testing/examples/LPC2148Test/prj/eclipse_rom.gdb index 86780056d..3d372a059 100644 --- a/testing/examples/LPC2148Test/prj/eclipse_rom.gdb +++ b/testing/examples/LPC2148Test/prj/eclipse_rom.gdb @@ -8,4 +8,4 @@ monitor mww 0xE01FC040 0x0002 monitor mdw 0xE01FC040 load break main -continue \ No newline at end of file +continue diff --git a/testing/examples/LPC2294Test/makefile b/testing/examples/LPC2294Test/makefile index 6af02fbe1..9ac7fe867 100644 --- a/testing/examples/LPC2294Test/makefile +++ b/testing/examples/LPC2294Test/makefile @@ -144,4 +144,4 @@ clean: # -include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) -# *** EOF *** \ No newline at end of file +# *** EOF *** diff --git a/testing/examples/LPC2294Test/prj/eclipse_ram.gdb b/testing/examples/LPC2294Test/prj/eclipse_ram.gdb index 4f423124d..ea0e21fc3 100644 --- a/testing/examples/LPC2294Test/prj/eclipse_ram.gdb +++ b/testing/examples/LPC2294Test/prj/eclipse_ram.gdb @@ -8,4 +8,4 @@ monitor mww 0xE01FC040 0x0002 monitor mdw 0xE01FC040 load break main -continue \ No newline at end of file +continue diff --git a/testing/examples/LPC2294Test/prj/eclipse_rom.gdb b/testing/examples/LPC2294Test/prj/eclipse_rom.gdb index 86780056d..3d372a059 100644 --- a/testing/examples/LPC2294Test/prj/eclipse_rom.gdb +++ b/testing/examples/LPC2294Test/prj/eclipse_rom.gdb @@ -8,4 +8,4 @@ monitor mww 0xE01FC040 0x0002 monitor mdw 0xE01FC040 load break main -continue \ No newline at end of file +continue diff --git a/testing/examples/SAM7S256Test/makefile b/testing/examples/SAM7S256Test/makefile index 9e1e83f8e..dabe9a3d8 100644 --- a/testing/examples/SAM7S256Test/makefile +++ b/testing/examples/SAM7S256Test/makefile @@ -143,4 +143,4 @@ clean: # -include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) -# *** EOF *** \ No newline at end of file +# *** EOF *** diff --git a/testing/examples/SAM7S256Test/results/607.html b/testing/examples/SAM7S256Test/results/607.html index 852c0ad67..e097586ee 100644 --- a/testing/examples/SAM7S256Test/results/607.html +++ b/testing/examples/SAM7S256Test/results/607.html @@ -695,4 +695,4 @@ Note: these tests are not designed to test/debug the target, but to test functio </table> </body> -</html> \ No newline at end of file +</html> diff --git a/testing/examples/SAM7X256Test/makefile b/testing/examples/SAM7X256Test/makefile index 4ad44cf0b..4a5a730da 100644 --- a/testing/examples/SAM7X256Test/makefile +++ b/testing/examples/SAM7X256Test/makefile @@ -143,4 +143,4 @@ clean: # -include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) -# *** EOF *** \ No newline at end of file +# *** EOF *** diff --git a/testing/examples/STM32-103/readme.txt b/testing/examples/STM32-103/readme.txt index 39b080dd6..f41a03df0 100644 --- a/testing/examples/STM32-103/readme.txt +++ b/testing/examples/STM32-103/readme.txt @@ -3,4 +3,4 @@ Olimex STM32-p103 board. main.elf is a file that can be programmed to flash for testing purposes(e.g. test GDB load performance). -http://www.olimex.com/dev/stm32-p103.html \ No newline at end of file +http://www.olimex.com/dev/stm32-p103.html diff --git a/testing/examples/STR710JtagSpeed/makefile b/testing/examples/STR710JtagSpeed/makefile index 816ab233e..72be7159b 100644 --- a/testing/examples/STR710JtagSpeed/makefile +++ b/testing/examples/STR710JtagSpeed/makefile @@ -131,4 +131,4 @@ clean: # -include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) -# *** EOF *** \ No newline at end of file +# *** EOF *** diff --git a/testing/examples/STR710Test/makefile b/testing/examples/STR710Test/makefile index 1450b73d5..adac2433a 100644 --- a/testing/examples/STR710Test/makefile +++ b/testing/examples/STR710Test/makefile @@ -143,4 +143,4 @@ clean: # -include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) -# *** EOF *** \ No newline at end of file +# *** EOF *** diff --git a/testing/examples/STR710Test/prj/eclipse_ram.gdb b/testing/examples/STR710Test/prj/eclipse_ram.gdb index 511ed5914..80efec42d 100644 --- a/testing/examples/STR710Test/prj/eclipse_ram.gdb +++ b/testing/examples/STR710Test/prj/eclipse_ram.gdb @@ -8,4 +8,4 @@ monitor mww 0xA0000050 0x01c2 monitor mdw 0xA0000050 load break main -continue \ No newline at end of file +continue diff --git a/testing/examples/STR710Test/prj/eclipse_rom.gdb b/testing/examples/STR710Test/prj/eclipse_rom.gdb index 9e2c37005..d8eaf1e9f 100644 --- a/testing/examples/STR710Test/prj/eclipse_rom.gdb +++ b/testing/examples/STR710Test/prj/eclipse_rom.gdb @@ -8,4 +8,4 @@ monitor mww 0xA0000050 0x01c2 monitor mdw 0xA0000050 load break main -continue \ No newline at end of file +continue diff --git a/testing/examples/STR912Test/makefile b/testing/examples/STR912Test/makefile index ee7685795..6f8309eab 100644 --- a/testing/examples/STR912Test/makefile +++ b/testing/examples/STR912Test/makefile @@ -143,4 +143,4 @@ clean: # -include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*) -# *** EOF *** \ No newline at end of file +# *** EOF *** diff --git a/testing/results/template.html b/testing/results/template.html index 286bf2e3a..ffc9bbf1f 100644 --- a/testing/results/template.html +++ b/testing/results/template.html @@ -15,4 +15,4 @@ </table> </body> -</html> \ No newline at end of file +</html> diff --git a/testing/results/v0.4.0-rc1/AT91FR40162.html b/testing/results/v0.4.0-rc1/AT91FR40162.html index 0baa31e6b..8dcdf487c 100755 --- a/testing/results/v0.4.0-rc1/AT91FR40162.html +++ b/testing/results/v0.4.0-rc1/AT91FR40162.html @@ -853,4 +853,4 @@ Note: these tests are not designed to test/debug the target, but to test functio </table> </body> -</html> \ No newline at end of file +</html> diff --git a/testing/results/v0.4.0-rc1/LPC2148.html b/testing/results/v0.4.0-rc1/LPC2148.html index 425b52484..24d101129 100755 --- a/testing/results/v0.4.0-rc1/LPC2148.html +++ b/testing/results/v0.4.0-rc1/LPC2148.html @@ -930,4 +930,4 @@ Note: these tests are not designed to test/debug the target, but to test functio </table> </body> -</html> \ No newline at end of file +</html> diff --git a/testing/results/v0.4.0-rc1/SAM7.html b/testing/results/v0.4.0-rc1/SAM7.html index a400a476f..9dcabf88c 100755 --- a/testing/results/v0.4.0-rc1/SAM7.html +++ b/testing/results/v0.4.0-rc1/SAM7.html @@ -850,4 +850,4 @@ Note: these tests are not designed to test/debug the target, but to test functio </table> </body> -</html> \ No newline at end of file +</html> diff --git a/testing/results/v0.4.0-rc1/STR710.html b/testing/results/v0.4.0-rc1/STR710.html index 1a18ad0e6..075d549e3 100755 --- a/testing/results/v0.4.0-rc1/STR710.html +++ b/testing/results/v0.4.0-rc1/STR710.html @@ -904,4 +904,4 @@ The current source language is "auto; currently asm".<br> </table> </body> -</html> \ No newline at end of file +</html> diff --git a/testing/results/v0.4.0-rc1/STR912.html b/testing/results/v0.4.0-rc1/STR912.html index c8df03488..e9be17b98 100755 --- a/testing/results/v0.4.0-rc1/STR912.html +++ b/testing/results/v0.4.0-rc1/STR912.html @@ -1005,4 +1005,4 @@ verified 420 bytes in 0.350000s (1.172 kb/s)<br> </table> </body> -</html> \ No newline at end of file +</html> diff --git a/testing/testcases.html b/testing/testcases.html index a151e9f68..13b9e7256 100644 --- a/testing/testcases.html +++ b/testing/testcases.html @@ -563,4 +563,4 @@ Note: these tests are not designed to test/debug the target, but to test functio </table> </body> -</html> \ No newline at end of file +</html> commit e7306d361b5d503cf27dfb3dc69298ddad495f88 Author: Antonio Borneo <bor...@gm...> Date: Sun May 5 21:26:56 2019 +0200 coding style: fix space around pointer's asterisk The script checkpatch available in new Linux kernel offers an experimental feature for automatically fix the code in place. While still experimental, the feature works quite well for simple fixes, like spacing. This patch has been created automatically with the script under review for inclusion in OpenOCD, using the command find src/ -type f -exec ./tools/scripts/checkpatch.pl \ -q --types POINTER_LOCATION --fix-inplace -f {} \; then manually reviewed. OpenOCD coding style does not mention the space around pointer's asterisk, so no check is enforced. This patch only makes the style uniform across the files. The patch only changes amount and position of whitespace, thus the following commands show empty diff git diff -w git log -w -p git log -w --stat Change-Id: Iefb4998e69bebdfe0d1ae65cadfc8d2c4f166d13 Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: http://openocd.zylin.com/5197 Tested-by: jenkins diff --git a/src/flash/nor/dsp5680xx_flash.c b/src/flash/nor/dsp5680xx_flash.c index 37b60f001..da675856f 100644 --- a/src/flash/nor/dsp5680xx_flash.c +++ b/src/flash/nor/dsp5680xx_flash.c @@ -154,7 +154,7 @@ static int dsp5680xx_flash_protect(struct flash_bank *bank, int set, int first, * * @return */ -static int dsp5680xx_flash_write(struct flash_bank *bank, const uint8_t* buffer, +static int dsp5680xx_flash_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { int retval; diff --git a/src/flash/nor/numicro.c b/src/flash/nor/numicro.c index 9e18136fa..c6dbfb851 100644 --- a/src/flash/nor/numicro.c +++ b/src/flash/nor/numicro.c @@ -1216,7 +1216,7 @@ static int numicro_init_isp(struct target *target) return ERROR_OK; } -static uint32_t numicro_fmc_cmd(struct target *target, uint32_t cmd, uint32_t addr, uint32_t wdata, uint32_t* rdata) +static uint32_t numicro_fmc_cmd(struct target *target, uint32_t cmd, uint32_t addr, uint32_t wdata, uint32_t *rdata) { uint32_t timeout, status; int retval = ERROR_OK; @@ -1649,7 +1649,7 @@ static int numicro_write(struct flash_bank *bank, const uint8_t *buffer, return ERROR_OK; } -static int numicro_get_cpu_type(struct target *target, const struct numicro_cpu_type** cpu) +static int numicro_get_cpu_type(struct target *target, const struct numicro_cpu_type **cpu) { uint32_t part_id; int retval = ERROR_OK; diff --git a/src/flash/nor/sim3x.c b/src/flash/nor/sim3x.c index 7ccf56b6e..4e39705fd 100644 --- a/src/flash/nor/sim3x.c +++ b/src/flash/nor/sim3x.c @@ -471,7 +471,7 @@ static int sim3x_write_block(struct flash_bank *bank, const uint8_t *buf, return ret; } -static int sim3x_flash_write(struct flash_bank *bank, const uint8_t * buffer, uint32_t offset, uint32_t count) +static int sim3x_flash_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { int ret; struct target *target; diff --git a/src/helper/types.h b/src/helper/types.h index 5e35c13b7..b6747f8d4 100644 --- a/src/helper/types.h +++ b/src/helper/types.h @@ -126,17 +126,17 @@ static inline uint64_t le_to_h_u64(const uint8_t *buf) (uint64_t)buf[7] << 56); } -static inline uint32_t le_to_h_u32(const uint8_t* buf) +static inline uint32_t le_to_h_u32(const uint8_t *buf) { return (uint32_t)((uint32_t)buf[0] | (uint32_t)buf[1] << 8 | (uint32_t)buf[2] << 16 | (uint32_t)buf[3] << 24); } -static inline uint32_t le_to_h_u24(const uint8_t* buf) +static inline uint32_t le_to_h_u24(const uint8_t *buf) { return (uint32_t)((uint32_t)buf[0] | (uint32_t)buf[1] << 8 | (uint32_t)buf[2] << 16); } -static inline uint16_t le_to_h_u16(const uint8_t* buf) +static inline uint16_t le_to_h_u16(const uint8_t *buf) { return (uint16_t)((uint16_t)buf[0] | (uint16_t)buf[1] << 8); } @@ -153,17 +153,17 @@ static inline uint64_t be_to_h_u64(const uint8_t *buf) (uint64_t)buf[0] << 56); } -static inline uint32_t be_to_h_u32(const uint8_t* buf) +static inline uint32_t be_to_h_u32(const uint8_t *buf) { return (uint32_t)((uint32_t)buf[3] | (uint32_t)buf[2] << 8 | (uint32_t)buf[1] << 16 | (uint32_t)buf[0] << 24); } -static inline uint32_t be_to_h_u24(const uint8_t* buf) +static inline uint32_t be_to_h_u24(const uint8_t *buf) { return (uint32_t)((uint32_t)buf[2] | (uint32_t)buf[1] << 8 | (uint32_t)buf[0] << 16); } -static inline uint16_t be_to_h_u16(const uint8_t* buf) +static inline uint16_t be_to_h_u16(const uint8_t *buf) { return (uint16_t)((uint16_t)buf[1] | (uint16_t)buf[0] << 8); } @@ -192,7 +192,7 @@ static inline void h_u64_to_be(uint8_t *buf, int64_t val) buf[7] = (uint8_t) (val >> 0); } -static inline void h_u32_to_le(uint8_t* buf, int val) +static inline void h_u32_to_le(uint8_t *buf, int val) { buf[3] = (uint8_t) (val >> 24); buf[2] = (uint8_t) (val >> 16); @@ -200,7 +200,7 @@ static inline void h_u32_to_le(uint8_t* buf, int val) buf[0] = (uint8_t) (val >> 0); } -static inline void h_u32_to_be(uint8_t* buf, int val) +static inline void h_u32_to_be(uint8_t *buf, int val) { buf[0] = (uint8_t) (val >> 24); buf[1] = (uint8_t) (val >> 16); @@ -208,27 +208,27 @@ static inline void h_u32_to_be(uint8_t* buf, int val) buf[3] = (uint8_t) (val >> 0); } -static inline void h_u24_to_le(uint8_t* buf, int val) +static inline void h_u24_to_le(uint8_t *buf, int val) { buf[2] = (uint8_t) (val >> 16); buf[1] = (uint8_t) (val >> 8); buf[0] = (uint8_t) (val >> 0); } -static inline void h_u24_to_be(uint8_t* buf, int val) +static inline void h_u24_to_be(uint8_t *buf, int val) { buf[0] = (uint8_t) (val >> 16); buf[1] = (uint8_t) (val >> 8); buf[2] = (uint8_t) (val >> 0); } -static inline void h_u16_to_le(uint8_t* buf, int val) +static inline void h_u16_to_le(uint8_t *buf, int val) { buf[1] = (uint8_t) (val >> 8); buf[0] = (uint8_t) (val >> 0); } -static inline void h_u16_to_be(uint8_t* buf, int val) +static inline void h_u16_to_be(uint8_t *buf, int val) { buf[0] = (uint8_t) (val >> 8); buf[1] = (uint8_t) (val >> 0); diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c index 40d076ecf..a9cdbbe1e 100644 --- a/src/jtag/drivers/ftdi.c +++ b/src/jtag/drivers/ftdi.c @@ -213,7 +213,7 @@ static int ftdi_set_signal(const struct signal *s, char value) return ERROR_OK; } -static int ftdi_get_signal(const struct signal *s, uint16_t * value_out) +static int ftdi_get_signal(const struct signal *s, uint16_t *value_out) { uint8_t data_low = 0; uint8_t data_high = 0; diff --git a/src/jtag/drivers/osbdm.c b/src/jtag/drivers/osbdm.c index 9a570b098..3323557b7 100644 --- a/src/jtag/drivers/osbdm.c +++ b/src/jtag/drivers/osbdm.c @@ -297,7 +297,7 @@ static int osbdm_swap(struct osbdm *osbdm, void *tms, void *tdi, return ERROR_OK; } -static int osbdm_flush(struct osbdm *osbdm, struct queue* queue) +static int osbdm_flush(struct osbdm *osbdm, struct queue *queue) { uint8_t tms[DIV_ROUND_UP(OSBDM_SWAP_MAX, 8)]; uint8_t tdi[DIV_ROUND_UP(OSBDM_SWAP_MAX, 8)]; diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index ff1783158..7f033e0e7 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -162,8 +162,8 @@ void jtag_tap_free(struct jtag_tap *tap); struct jtag_tap *jtag_all_taps(void); const char *jtag_tap_name(const struct jtag_tap *tap); -struct jtag_tap *jtag_tap_by_string(const char* dotted_name); -struct jtag_tap *jtag_tap_by_jim_obj(Jim_Interp* interp, Jim_Obj *obj); +struct jtag_tap *jtag_tap_by_string(const char *dotted_name); +struct jtag_tap *jtag_tap_by_jim_obj(Jim_Interp *interp, Jim_Obj *obj); struct jtag_tap *jtag_tap_by_position(unsigned abs_position); struct jtag_tap *jtag_tap_next_enabled(struct jtag_tap *p); unsigned jtag_tap_count_enabled(void); diff --git a/src/rtos/embKernel.c b/src/rtos/embKernel.c index 8a307f198..42d2a8cd0 100644 --- a/src/rtos/embKernel.c +++ b/src/rtos/embKernel.c @@ -135,7 +135,7 @@ static int embKernel_create(struct target *target) } static int embKernel_get_tasks_details(struct rtos *rtos, int64_t iterable, const struct embKernel_params *param, - struct thread_detail *details, const char* state_str) + struct thread_detail *details, const char *state_str) { int64_t task = 0; int retval = target_read_buffer(rtos->target, iterable + param->iterable_task_owner_offset, param->pointer_width, diff --git a/src/rtos/mqx.c b/src/rtos/mqx.c index 6646ad4de..f45c15d23 100644 --- a/src/rtos/mqx.c +++ b/src/rtos/mqx.c @@ -106,7 +106,7 @@ static int mqx_valid_address_check( ) { enum mqx_arch arch_type = ((struct mqx_params *)rtos->rtos_specific_params)->target_arch; - const char * targetname = ((struct mqx_params *)rtos->rtos_specific_params)->target_name; + const char *targetname = ((struct mqx_params *)rtos->rtos_specific_params)->target_name; /* Cortex-M address range */ if (arch_type == mqx_arch_cortexm) { diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 9f1cb7b07..0ca4fa4ee 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -2031,7 +2031,7 @@ static int lookup_add_arch_defined_types(char const **arch_defined_types_list[], static int gdb_generate_reg_type_description(struct target *target, char **tdesc, int *pos, int *size, struct reg_data_type *type, - char const **arch_defined_types_list[], int * num_arch_defined_types) + char const **arch_defined_types_list[], int *num_arch_defined_types) { int retval = ERROR_OK; diff --git a/src/target/avrt.c b/src/target/avrt.c index 1e1898c7e..9cb6f2f34 100644 --- a/src/target/avrt.c +++ b/src/target/avrt.c @@ -145,7 +145,7 @@ static int avr_deassert_reset(struct target *target) return ERROR_OK; } -int avr_jtag_senddat(struct jtag_tap *tap, uint32_t* dr_in, uint32_t dr_out, +int avr_jtag_senddat(struct jtag_tap *tap, uint32_t *dr_in, uint32_t dr_out, int len) { return mcu_write_dr_u32(tap, dr_in, dr_out, len, 1); diff --git a/src/target/dsp563xx_once.c b/src/target/dsp563xx_once.c index fe4927ba3..65ef7070b 100644 --- a/src/target/dsp563xx_once.c +++ b/src/target/dsp563xx_once.c @@ -46,7 +46,7 @@ #define JTAG_INSTR_BYPASS 0x0F /** */ -static inline int dsp563xx_write_dr(struct jtag_tap *tap, uint8_t * dr_in, uint8_t * dr_out, int dr_len, int rti) +static inline int dsp563xx_write_dr(struct jtag_tap *tap, uint8_t *dr_in, uint8_t *dr_out, int dr_len, int rti) { jtag_add_plain_dr_scan(dr_len, dr_out, dr_in, TAP_IDLE); @@ -54,13 +54,13 @@ static inline int dsp563xx_write_dr(struct jtag_tap *tap, uint8_t * dr_in, uint8 } /** */ -static inline int dsp563xx_write_dr_u8(struct jtag_tap *tap, uint8_t * dr_in, uint8_t dr_out, int dr_len, int rti) +static inline int dsp563xx_write_dr_u8(struct jtag_tap *tap, uint8_t *dr_in, uint8_t dr_out, int dr_len, int rti) { return dsp563xx_write_dr(tap, dr_in, &dr_out, dr_len, rti); } /** */ -static inline int dsp563xx_write_dr_u32(struct jtag_tap *tap, uint32_t * dr_in, uint32_t dr_out, int dr_len, int rti) +static inline int dsp563xx_write_dr_u32(struct jtag_tap *tap, uint32_t *dr_in, uint32_t dr_out, int dr_len, int rti) { return dsp563xx_write_dr(tap, (uint8_t *) dr_in, (uint8_t *) &dr_out, dr_len, rti); } @@ -79,19 +79,19 @@ static inline int dsp563xx_once_ir_exec(struct jtag_tap *tap, int flush, uint8_t } /* IR and DR functions */ -static inline int dsp563xx_write_ir(struct jtag_tap *tap, uint8_t * ir_in, uint8_t * ir_out, int ir_len, int rti) +static inline int dsp563xx_write_ir(struct jtag_tap *tap, uint8_t *ir_in, uint8_t *ir_out, int ir_len, int rti) { jtag_add_plain_ir_scan(tap->ir_length, ir_out, ir_in, TAP_IDLE); return ERROR_OK; } -static inline int dsp563xx_write_ir_u8(struct jtag_tap *tap, uint8_t * ir_in, uint8_t ir_out, int ir_len, int rti) +static inline int dsp563xx_write_ir_u8(struct jtag_tap *tap, uint8_t *ir_in, uint8_t ir_out, int ir_len, int rti) { return dsp563xx_write_ir(tap, ir_in, &ir_out, ir_len, rti); } -static inline int dsp563xx_jtag_sendinstr(struct jtag_tap *tap, uint8_t * ir_in, uint8_t ir_out) +static inline int dsp563xx_jtag_sendinstr(struct jtag_tap *tap, uint8_t *ir_in, uint8_t ir_out) { return dsp563xx_write_ir_u8(tap, ir_in, ir_out, tap->ir_length, 1); } @@ -195,7 +195,7 @@ int dsp563xx_once_read_register(struct jtag_tap *tap, int flush, struct once_reg } /** once read register with register len */ -int dsp563xx_once_reg_read_ex(struct jtag_tap *tap, int flush, uint8_t reg, uint8_t len, uint32_t * data) +int dsp563xx_once_reg_read_ex(struct jtag_tap *tap, int flush, uint8_t reg, uint8_t len, uint32_t *data) { int err; @@ -212,7 +212,7 @@ int dsp563xx_once_reg_read_ex(struct jtag_tap *tap, int flush, uint8_t reg, uint } /** once read register */ -int dsp563xx_once_reg_read(struct jtag_tap *tap, int flush, uint8_t reg, uint32_t * data) +int dsp563xx_once_reg_read(struct jtag_tap *tap, int flush, uint8_t reg, uint32_t *data) { int err; diff --git a/src/target/dsp563xx_once.h b/src/target/dsp563xx_once.h index da7f5e9b8..811c08698 100644 --- a/src/target/dsp563xx_once.h +++ b/src/target/dsp563xx_once.h @@ -76,9 +76,9 @@ int dsp563xx_once_target_status(struct jtag_tap *tap); /** once read registers */ int dsp563xx_once_read_register(struct jtag_tap *tap, int flush, struct once_reg *regs, int len); /** once read register */ -int dsp563xx_once_reg_read_ex(struct jtag_tap *tap, int flush, uint8_t reg, uint8_t len, uint32_t * data); +int dsp563xx_once_reg_read_ex(struct jtag_tap *tap, int flush, uint8_t reg, uint8_t len, uint32_t *data); /** once read register */ -int dsp563xx_once_reg_read(struct jtag_tap *tap, int flush, uint8_t reg, uint32_t * data); +int dsp563xx_once_reg_read(struct jtag_tap *tap, int flush, uint8_t reg, uint32_t *data); /** once write register */ int dsp563xx_once_reg_write(struct jtag_tap *tap, int flush, uint8_t reg, uint32_t data); /** single word instruction */ diff --git a/src/target/dsp5680xx.h b/src/target/dsp5680xx.h index 842796bc7..72557cea2 100644 --- a/src/target/dsp5680xx.h +++ b/src/target/dsp5680xx.h @@ -315,7 +315,7 @@ static inline struct dsp5680xx_common *target_to_dsp5680xx(struct target * * @return */ -int dsp5680xx_f_wr(struct target *target, const uint8_t * buffer, uint32_t address, +int dsp5680xx_f_wr(struct target *target, const uint8_t *buffer, uint32_t address, uint32_t count, int is_flash_lock); /** @@ -329,7 +329,7 @@ int dsp5680xx_f_wr(struct target *target, const uint8_t * buffer, uint32_t addre * * @return */ -int dsp5680xx_f_erase_check(struct target *target, uint8_t * erased, +int dsp5680xx_f_erase_check(struct target *target, uint8_t *erased, uint32_t sector); /** @@ -354,7 +354,7 @@ int dsp5680xx_f_erase(struct target *target, int first, int last); * * @return */ -int dsp5680xx_f_protect_check(struct target *target, uint16_t * protected); +int dsp5680xx_f_protect_check(struct target *target, uint16_t *protected); /** * Writes the flash security words with a specific value. The chip's security will be diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 5683e5a3f..1e5c02764 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -66,7 +66,7 @@ static int write_memory(struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer); static int riscv013_test_sba_config_reg(struct target *target, target_addr_t legal_address, uint32_t num_words, target_addr_t illegal_address, bool run_sbbusyerror_test); -void write_memory_sba_simple(struct target *target, target_addr_t addr, uint32_t* write_data, +void write_memory_sba_simple(struct target *target, target_addr_t addr, uint32_t *write_data, uint32_t write_size, uint32_t sbcs); void read_memory_sba_simple(struct target *target, target_addr_t addr, uint32_t *rd_buf, uint32_t read_size, uint32_t sbcs); diff --git a/src/target/target.c b/src/target/target.c index 936a5da0d..688d31890 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -2281,7 +2281,7 @@ static int target_read_buffer_default(struct target *target, target_addr_t addre return ERROR_OK; } -int target_checksum_memory(struct target *target, target_addr_t address, uint32_t size, uint32_t* crc) +int target_checksum_memory(struct target *target, target_addr_t address, uint32_t size, uint32_t *crc) { uint8_t *buffer; int retval; ----------------------------------------------------------------------- Summary of changes: contrib/loaders/flash/at91sam7x/makefile | 2 +- src/flash/nor/dsp5680xx_flash.c | 2 +- src/flash/nor/numicro.c | 4 ++-- src/flash/nor/sim3x.c | 2 +- src/helper/types.h | 24 ++++++++++++------------ src/jtag/drivers/ftdi.c | 2 +- src/jtag/drivers/osbdm.c | 2 +- src/jtag/jtag.h | 4 ++-- src/rtos/embKernel.c | 2 +- src/rtos/mqx.c | 2 +- src/server/gdb_server.c | 2 +- src/target/avrt.c | 2 +- src/target/dsp563xx_once.c | 16 ++++++++-------- src/target/dsp563xx_once.h | 4 ++-- src/target/dsp5680xx.h | 6 +++--- src/target/riscv/riscv-013.c | 2 +- src/target/target.c | 2 +- tcl/board/hilscher_nxhx10.cfg | 2 +- tcl/board/iar_str912_sk.cfg | 2 +- tcl/board/twr-vf65gs10_cmsisdap.cfg | 2 +- tcl/interface/imx-native.cfg | 2 +- tcl/interface/openjtag.cfg | 2 +- tcl/target/c100config.tcl | 2 +- testing/examples/AT91R40008Test/makefile | 2 +- testing/examples/LPC2148Test/makefile | 2 +- testing/examples/LPC2148Test/prj/eclipse_ram.gdb | 2 +- testing/examples/LPC2148Test/prj/eclipse_rom.gdb | 2 +- testing/examples/LPC2294Test/makefile | 2 +- testing/examples/LPC2294Test/prj/eclipse_ram.gdb | 2 +- testing/examples/LPC2294Test/prj/eclipse_rom.gdb | 2 +- testing/examples/SAM7S256Test/makefile | 2 +- testing/examples/SAM7S256Test/results/607.html | 2 +- testing/examples/SAM7X256Test/makefile | 2 +- testing/examples/STM32-103/readme.txt | 2 +- testing/examples/STR710JtagSpeed/makefile | 2 +- testing/examples/STR710Test/makefile | 2 +- testing/examples/STR710Test/prj/eclipse_ram.gdb | 2 +- testing/examples/STR710Test/prj/eclipse_rom.gdb | 2 +- testing/examples/STR912Test/makefile | 2 +- testing/results/template.html | 2 +- testing/results/v0.4.0-rc1/AT91FR40162.html | 2 +- testing/results/v0.4.0-rc1/LPC2148.html | 2 +- testing/results/v0.4.0-rc1/SAM7.html | 2 +- testing/results/v0.4.0-rc1/STR710.html | 2 +- testing/results/v0.4.0-rc1/STR912.html | 2 +- testing/testcases.html | 2 +- 46 files changed, 69 insertions(+), 69 deletions(-) hooks/post-receive -- Main OpenOCD repository |