coding style fixes, copyright waiver (#395)
Co-authored-by: Paulo Marques <pm@quant-insight.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (c) 2021-2023 pmarques-dev @ github
|
* Copyright (c) 2023 Raspberry Pi (Trading) Ltd.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
;
|
;
|
||||||
; Copyright (c) 2021-2023 pmarques-dev @ github
|
; Copyright (c) 2023 Raspberry Pi (Trading) Ltd.
|
||||||
;
|
;
|
||||||
; SPDX-License-Identifier: BSD-3-Clause
|
; SPDX-License-Identifier: BSD-3-Clause
|
||||||
;
|
;
|
||||||
@@ -59,14 +59,14 @@ decrement:
|
|||||||
; this is where the main loop starts
|
; this is where the main loop starts
|
||||||
.wrap_target
|
.wrap_target
|
||||||
update:
|
update:
|
||||||
MOV ISR, Y
|
MOV ISR, Y ; read 11
|
||||||
PUSH noblock
|
PUSH noblock
|
||||||
|
|
||||||
sample_pins:
|
sample_pins:
|
||||||
; we shift into ISR the last state of the 2 input pins (now in OSR) and
|
; we shift into ISR the last state of the 2 input pins (now in OSR) and
|
||||||
; the new state of the 2 pins, thus producing the 4 bit target for the
|
; the new state of the 2 pins, thus producing the 4 bit target for the
|
||||||
; computed jump into the correct action for this state. Both the PUSH
|
; computed jump into the correct action for this state. Both the PUSH
|
||||||
; above and the OUT below zero the other bits in ISR
|
; above and the OUT below zero out the other bits in ISR
|
||||||
OUT ISR, 2
|
OUT ISR, 2
|
||||||
IN PINS, 2
|
IN PINS, 2
|
||||||
|
|
||||||
@@ -139,4 +139,3 @@ static inline int32_t quadrature_encoder_get_count(PIO pio, uint sm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user