Skip to content

Commit 9a205cb

Browse files
author
Adrian Negreanu
committed
sgpio: a_p_u_r_o suggestions
1 parent 3a00411 commit 9a205cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/hic_hal/nxp/lpc4322/swdp_sgpio.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,18 +1129,18 @@ void SWJ_Sequence(uint32_t count, const uint8_t *request)
11291129
// return: none
11301130
void SWD_Sequence(uint32_t info, const uint8_t *swdo, uint8_t *swdi)
11311131
{
1132-
uint32_t bytes_nb;
1132+
uint32_t bits_sz;
11331133

11341134
shift_clk_preset_init();
11351135

1136-
bytes_nb = info & SWD_SEQUENCE_CLK;
1137-
if (bytes_nb == 0U)
1138-
bytes_nb = 64U;
1136+
bits_sz = info & SWD_SEQUENCE_CLK;
1137+
if (bits_sz == 0U)
1138+
bits_sz = 64U;
11391139

11401140
if (info & SWD_SEQUENCE_DIN)
1141-
sequence_read(bytes_nb*8, swdi);
1141+
sequence_read(bits_sz, swdi);
11421142
else
1143-
sequence_send(bytes_nb*8, swdo);
1143+
sequence_send(bits_sz, swdo);
11441144
}
11451145

11461146

0 commit comments

Comments
 (0)