Skip to content

Commit

Permalink
Update highint5.S
Browse files Browse the repository at this point in the history
commented line 64 and directly cleared interrupt, still variables aren't set.
  • Loading branch information
HaydenDekker committed Dec 7, 2021
1 parent 0e903e5 commit 4f6e6f5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main/highint5.S
Expand Up @@ -43,26 +43,26 @@ xt_highint5:
s32i a15, a14, 0
memw

movi a15, GPIO_STATUS_REG
movi a15, DPORT_APP_GPIO_INTERRUPT_MAP_REG
l32i a13, a15, 0
memw

movi a14, gpio_status
movi a14, app_gpio_int_map
s32i a13, a14, 0
memw

movi a15, DPORT_APP_GPIO_INTERRUPT_MAP_REG
l32i a13, a15, 0
movi a15, GPIO_STATUS_REG
l32i a13, a15, 0 // will hold PIN 18 or 19, which should clear the ISR.
memw

movi a14, app_gpio_int_map
movi a14, gpio_status
s32i a13, a14, 0
memw

/* Clear interupt on GPIO18 and GPIO19 */
movi a14, GPIO_STATUS_W1TC_REG
movi a15, (1 << 18) | (1 << 19)
s32i a15, a14, 0
// movi a15, (1 << 18) | (1 << 19)
s32i a13, a14, 0
memw

//movi a14, isr_runs_total
Expand Down

0 comments on commit 4f6e6f5

Please sign in to comment.