File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
source/hic_hal/nxp/lpc4322 Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -711,20 +711,19 @@ static void sequence_read(uint32_t bits_sz, uint8_t *data)
711711
712712 // Disable TXEN.
713713 SLICE_POS (SLICE_SWDIO_TXEN ) = POS_POS (0 ) | POS_PRESET (0 );
714- SLICE_REG (SLICE_SWDIO_TMS_OE ) = 0 ;
714+ SLICE_REG (SLICE_SWDIO_TXEN ) = 0 ;
715715 SLICE_SHD (SLICE_SWDIO_TXEN ) = 0 ;
716716
717717 uint32_t bits_per_chunk = bits_sz <=64 ? bits_sz : 64 ;
718- SLICE_POS (SLICE_SWDIO_TMS_DIN1 ) = POS_POS (bits_per_chunk ) | POS_PRESET (bits_per_chunk );
719718
720719 if (bits_sz <= BYTES_PER_SLICE * 8 )
721720 {
722- slices_used = SLICE_SWDIO_TMS_DIN0 ;
721+ slices_used = SLICE_SWDIO_TMS_DIN0_MASK ;
723722 SLICE_POS (SLICE_SWDIO_TMS_DIN0 ) = POS_POS (bits_per_chunk ) | POS_PRESET (bits_per_chunk );
724723 }
725724 else
726725 {
727- slices_used = SLICE_SWDIO_TMS_DIN0 | SLICE_SWDIO_TMS_DIN1 ;
726+ slices_used = SLICE_SWDIO_TMS_DIN0_MASK | SLICE_SWDIO_TMS_DIN1_MASK ;
728727 SLICE_POS (SLICE_SWDIO_TMS_DIN0 ) = POS_POS (bits_per_chunk ) | POS_PRESET (bits_per_chunk );
729728 SLICE_POS (SLICE_SWDIO_TMS_DIN1 ) = POS_POS (bits_per_chunk ) | POS_PRESET (bits_per_chunk );
730729 }
@@ -734,7 +733,6 @@ static void sequence_read(uint32_t bits_sz, uint8_t *data)
734733 uint32_t bits_remaining = bits_sz - bits_it ;
735734 uint32_t bytes_remaining = (bits_remaining + 7 ) / 8 ;
736735 uint32_t slice_it = 0 ;
737- uint32_t slices_used = 0 ;
738736 uint32_t slices_required = bytes_remaining /BYTES_PER_SLICE ;
739737
740738 if (!slices_started )
You can’t perform that action at this time.
0 commit comments