rp2040

RP2040 Programming without SDK
Log | Files | Refs

commit b5392ca728e1e2abe47cdf5a141578ef0becec4e
parent ce03f9f733ec6ec8fe6c43ca89b292783dae0f85
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Tue, 27 Feb 2024 12:13:23 +0900

fix bug in unreset_chk

Diffstat:
Mex2/main.s | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ex2/main.s b/ex2/main.s @@ -13,10 +13,13 @@ reset: ldr r3, resets_base ldr r1, atomic_clr str r0, [r3, r1] // RESETS: RESET + mov r1, #1 + lsl r1, #22 + bic r0, r1 // uart stays in reset state until clock_peri is enabled unreset_chk: ldr r1, [r3, #0x8] // RESETS: RESET_DONE - tst r0, r1 - beq unreset_chk + bic r0, r1 + bne unreset_chk // set gpio functions ldr r3, io_bank0_base