jtag: fix some minor typo
Minor typos found by the new checkpatch boosted by the dictionary provided by 'codespell'. Change-Id: I101c76a638805d77c1ff356cf0f027552389e5d3 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6216 Tested-by: jenkins
This commit is contained in:
@@ -262,7 +262,7 @@ static int cmsis_dap_usb_open(struct cmsis_dap *dap, uint16_t vids[], uint16_t p
|
||||
* - config asked explicitly for an interface number
|
||||
* - the device has only one interface
|
||||
* The later two cases should be honored only if we know
|
||||
* we are on the rigt device */
|
||||
* we are on the right device */
|
||||
bool intf_identified_reliably = cmsis_dap_in_interface_str
|
||||
|| (device_identified_reliably &&
|
||||
(cmsis_dap_usb_interface != -1
|
||||
|
||||
@@ -301,7 +301,7 @@ static int jtag_dpi_init(void)
|
||||
serv_addr.sin_addr.s_addr = inet_addr(server_address);
|
||||
|
||||
if (serv_addr.sin_addr.s_addr == INADDR_NONE) {
|
||||
LOG_ERROR("inet_addr error occured");
|
||||
LOG_ERROR("inet_addr error occurred");
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
|
||||
@@ -844,11 +844,11 @@ static int nulink_usb_read_mem(void *handle, uint32_t addr, uint32_t size,
|
||||
/* the nulink only supports 8/32bit memory read/writes
|
||||
* honour 32bit, all others will be handled as 8bit access */
|
||||
if (size == 4) {
|
||||
/* When in jtag mode the nulink uses the auto-increment functinality.
|
||||
/* When in jtag mode the nulink uses the auto-increment functionality.
|
||||
* However it expects us to pass the data correctly, this includes
|
||||
* alignment and any page boundaries. We already do this as part of the
|
||||
* adi_v5 implementation, but the nulink is a hla adapter and so this
|
||||
* needs implementiong manually.
|
||||
* needs implementing manually.
|
||||
* currently this only affects jtag mode, they do single
|
||||
* access in SWD mode - but this may change and so we do it for both modes */
|
||||
|
||||
@@ -909,11 +909,11 @@ static int nulink_usb_write_mem(void *handle, uint32_t addr, uint32_t size,
|
||||
/* the nulink only supports 8/32bit memory read/writes
|
||||
* honour 32bit, all others will be handled as 8bit access */
|
||||
if (size == 4) {
|
||||
/* When in jtag mode the nulink uses the auto-increment functinality.
|
||||
/* When in jtag mode the nulink uses the auto-increment functionality.
|
||||
* However it expects us to pass the data correctly, this includes
|
||||
* alignment and any page boundaries. We already do this as part of the
|
||||
* adi_v5 implementation, but the nulink is a hla adapter and so this
|
||||
* needs implementiong manually.
|
||||
* needs implementing manually.
|
||||
* currently this only affects jtag mode, do single
|
||||
* access in SWD mode - but this may change and so we do it for both modes */
|
||||
|
||||
|
||||
@@ -561,8 +561,8 @@ static int ublast_read_byteshifted_tdos(uint8_t *buf, int nb_bytes)
|
||||
* - first bit is stored in byte0, bit0 (LSB)
|
||||
* - second bit is stored in byte0, bit 1
|
||||
* ...
|
||||
* - eight bit is sotred in byte0, bit 7
|
||||
* - ninth bit is sotred in byte1, bit 0
|
||||
* - eight bit is stored in byte0, bit 7
|
||||
* - ninth bit is stored in byte1, bit 0
|
||||
* - etc ...
|
||||
*
|
||||
* Returns ERROR_OK if OK, ERROR_xxx if a read error occurred
|
||||
|
||||
Reference in New Issue
Block a user