blob: a7ab435d24dc0f710d8e4b1c4b21bdae8fe6e4f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* Copyright (c) 2006-2026, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2026-09-27 seteiro trigger and clear the QingKe V2 software interrupt
*/
#include "board.h"
void rt_trigger_software_interrupt(void)
{
SysTick->CTLR |= (1 << 31);
}
void rt_hw_do_after_save_above(void)
{
__asm volatile("li t0,0x20");
__asm volatile("csrs 0x804, t0");
SysTick->CTLR &= ~(1 << 31);
}
|