1 /*---------------------------------------------------------------------------* 2 Project: Cafe OS 3 File: OSInterrupt.h 4 5 Copyright (C) 2010-2012 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 *---------------------------------------------------------------------------*/ 14 15 #ifndef __OSINTERRUPT_H__ 16 #define __OSINTERRUPT_H__ 17 18 #include <types.h> 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 /*---------------------------------------------------------------------------* 25 Interrupt API 26 *---------------------------------------------------------------------------*/ 27 28 BOOL OSDisableInterrupts(void); 29 BOOL OSEnableInterrupts(void); 30 BOOL OSRestoreInterrupts(BOOL level); 31 BOOL OSIsInterruptEnabled(void); 32 33 34 #ifdef __cplusplus 35 36 } 37 #endif 38 39 #endif // __OSINTERRUPT_H__ 40 41