summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-09-11 12:59:55 +0800
committerRbb666 <[email protected]>2024-09-19 21:14:42 +0800
commit94e49755af3fe7b66f7da531502f3cc5e1ad71b0 (patch)
tree82ee63327290af2b809016c519e9ac370db9ffbc /components/drivers/include
parent04cdbc647c28b04d21ddb50fe80210dec30b5927 (diff)
[FEATURE/PIC] support PIC cancel (only in debug)
PIC may free because some wrongs in debug. We should remove in PIC list or there are some undefined behavior will happen. Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include')
-rwxr-xr-xcomponents/drivers/include/drivers/pic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/pic.h b/components/drivers/include/drivers/pic.h
index fa1941abbc..c624d249d1 100755
--- a/components/drivers/include/drivers/pic.h
+++ b/components/drivers/include/drivers/pic.h
@@ -148,6 +148,7 @@ void rt_pic_default_name(struct rt_pic *pic);
struct rt_pic *rt_pic_dynamic_cast(void *ptr);
rt_err_t rt_pic_linear_irq(struct rt_pic *pic, rt_size_t irq_nr);
+rt_err_t rt_pic_cancel_irq(struct rt_pic *pic);
int rt_pic_config_ipi(struct rt_pic *pic, int ipi_index, int hwirq);
int rt_pic_config_irq(struct rt_pic *pic, int irq_index, int hwirq);