Skip to content

Commit 35514f0

Browse files
committed
added interrupt_priority to the template
1 parent de5ec96 commit 35514f0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

targets/chip/target_template/target_template.hpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,26 @@ namespace klib::template {
5151
static void disable_irq() {
5252
// globally disable the interrupts
5353
}
54+
55+
/**
56+
* @brief Set the priority of a interrupt
57+
*
58+
* @tparam Irq
59+
*/
60+
template <irq::arm_vector Irq, uint8_t Priority>
61+
static void interrupt_priority() {
62+
// set the priority of a interrupt
63+
}
64+
65+
/**
66+
* @brief Set the priority of a interrupt
67+
*
68+
* @tparam Irq
69+
*/
70+
template <uint32_t Irq, uint8_t Priority>
71+
static void interrupt_priority() {
72+
// set the priority of a interrupt
73+
}
5474
}
5575

5676
#endif

0 commit comments

Comments
 (0)