BRISCITS  0.1
RISC "Real-Time" Scheduler
brisc_irq.h
Go to the documentation of this file.
1 /*****************************************************************************
2  ________ ________ ___ ________ ________ ___ _________ ________
3 |\ __ \|\ __ \|\ \|\ ____\|\ ____\|\ \|\___ ___\\ ____\
4 \ \ \|\ /\ \ \|\ \ \ \ \ \___|\ \ \___|\ \ \|___ \ \_\ \ \___|_
5  \ \ __ \ \ _ _\ \ \ \_____ \ \ \ \ \ \ \ \ \ \ \_____ \
6  \ \ \|\ \ \ \\ \\ \ \|____|\ \ \ \____\ \ \ \ \ \ \|____|\ \
7  \ \_______\ \__\\ _\\ \__\____\_\ \ \_______\ \__\ \ \__\ ____\_\ \
8  \|_______|\|__|\|__|\|__|\_________\|_______|\|__| \|__| |\_________\
9  \|_________| \|_________|
10 
11 MIT License
12 
13 Copyright (c) 2021 Mike Sharkey
14 
15 Permission is hereby granted, free of charge, to any person obtaining a copy
16 of this software and associated documentation files (the "Software"), to deal
17 in the Software without restriction, including without limitation the rights
18 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19 copies of the Software, and to permit persons to whom the Software is
20 furnished to do so, subject to the following conditions:
21 
22 The above copyright notice and this permission notice shall be included in all
23 copies or substantial portions of the Software.
24 
25 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31 SOFTWARE.
32 
33 ******************************************************************************/
34 #ifndef _BRISC_IRQ_H_
35 #define _BRISC_IRQ_H_
36 
37 #include <brisc_sched.h>
38 
39 #ifdef __cplusplus
40 extern "C"
41 {
42 #endif
43 
48 __attribute__( ( naked ) ) void brisc_isr_systick( void );
49 
54 __attribute__( ( naked ) ) void brisc_isr_yield( void );
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif
__attribute__((naked)) void brisc_isr_systick(void)
timer interrupt, increment systick, and potentially switch thread context
Definition: brisc_irq.c:71