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)
711
711
712
712
// Disable TXEN.
713
713
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 ;
715
715
SLICE_SHD (SLICE_SWDIO_TXEN ) = 0 ;
716
716
717
717
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 );
719
718
720
719
if (bits_sz <= BYTES_PER_SLICE * 8 )
721
720
{
722
- slices_used = SLICE_SWDIO_TMS_DIN0 ;
721
+ slices_used = SLICE_SWDIO_TMS_DIN0_MASK ;
723
722
SLICE_POS (SLICE_SWDIO_TMS_DIN0 ) = POS_POS (bits_per_chunk ) | POS_PRESET (bits_per_chunk );
724
723
}
725
724
else
726
725
{
727
- slices_used = SLICE_SWDIO_TMS_DIN0 | SLICE_SWDIO_TMS_DIN1 ;
726
+ slices_used = SLICE_SWDIO_TMS_DIN0_MASK | SLICE_SWDIO_TMS_DIN1_MASK ;
728
727
SLICE_POS (SLICE_SWDIO_TMS_DIN0 ) = POS_POS (bits_per_chunk ) | POS_PRESET (bits_per_chunk );
729
728
SLICE_POS (SLICE_SWDIO_TMS_DIN1 ) = POS_POS (bits_per_chunk ) | POS_PRESET (bits_per_chunk );
730
729
}
@@ -734,7 +733,6 @@ static void sequence_read(uint32_t bits_sz, uint8_t *data)
734
733
uint32_t bits_remaining = bits_sz - bits_it ;
735
734
uint32_t bytes_remaining = (bits_remaining + 7 ) / 8 ;
736
735
uint32_t slice_it = 0 ;
737
- uint32_t slices_used = 0 ;
738
736
uint32_t slices_required = bytes_remaining /BYTES_PER_SLICE ;
739
737
740
738
if (!slices_started )
You can’t perform that action at this time.
0 commit comments