dhgdh
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
priv_sys_irq_hook_exports.h
00001 /* 00002 * Copyright (c) 2016, ARM Limited, All Rights Reserved 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00006 * not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00013 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 #ifndef __UVISOR_API_PRIV_SYS_IRQ_HOOK_EXPORTS_H__ 00018 #define __UVISOR_API_PRIV_SYS_IRQ_HOOK_EXPORTS_H__ 00019 00020 /* 00021 * Privileged system interrupt hooks 00022 * 00023 * In this version of uVisor, uVisor lives alongside an RTOS that requires 00024 * running privileged code. In order for the RTOS to run any privileged code, 00025 * uVisor must allow the RTOS to handle a subset of privileged system 00026 * interrupts. Only the following system interrupts are hookable. Code called 00027 * by these hooks circumvents uVisor security. HANDLE WITH CARE. */ 00028 typedef struct { 00029 void (*priv_svc_0)(void); 00030 void (*priv_pendsv)(void); 00031 void (*priv_systick)(void); 00032 } UvisorPrivSystemIRQHooks; 00033 00034 /* Use this macro to register privileged system IRQ hooks. If you don't want to 00035 * register a particular privileged system IRQ hook, you can supply NULL for 00036 * that hook parameter. */ 00037 #define UVISOR_SET_PRIV_SYS_IRQ_HOOKS(priv_svc_0_, priv_pendsv_, priv_systick_) \ 00038 UVISOR_EXTERN const UvisorPrivSystemIRQHooks __uvisor_priv_sys_irq_hooks = { \ 00039 .priv_svc_0 = priv_svc_0_, \ 00040 .priv_pendsv = priv_pendsv_, \ 00041 .priv_systick = priv_systick_, \ 00042 }; 00043 00044 #endif
Generated on Tue Jul 12 2022 11:01:57 by
1.7.2
