lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /*******************************************************************************
|
| 2 | * °æÈ¨ËùÓÐ (C)2011, ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
|
| 3 | *
|
| 4 | * ÎļþÃû³Æ: sio_irq.h
|
| 5 | * Îļþ±êʶ: sio_irq.h
|
| 6 | * ÄÚÈÝÕªÒª: sio stands for Serial IO, irq stands for Interrupt Request
|
| 7 | * ʹÓ÷½·¨: #include "sio_irq.h"
|
| 8 | *
|
| 9 | * ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
|
| 10 | * ------------------------------------------------------------------------------
|
| 11 | * 2012/01/09 V1.0 Create ÁõÑÇÄÏ ´´½¨
|
| 12 | *
|
| 13 | *******************************************************************************/
|
| 14 |
|
| 15 | #ifndef _SIO_IRQ_H
|
| 16 | #define _SIO_IRQ_H
|
| 17 |
|
| 18 | /*******************************************************************************
|
| 19 | * Í·Îļþ *
|
| 20 | *******************************************************************************/
|
| 21 | #include "cpu_intlock.h"
|
| 22 |
|
| 23 |
|
| 24 | /*******************************************************************************
|
| 25 | * ºê¶¨Òå *
|
| 26 | *******************************************************************************/
|
| 27 | #ifdef _OS_WIN
|
| 28 | # define GLOBAL_INT_DISABLE(int_state)
|
| 29 | # define GLOBAL_INT_ENABLE(int_state)
|
| 30 | #else
|
| 31 | # define GLOBAL_INT_DISABLE(int_state) ZOSS_SAVE_IRQ(int_state)
|
| 32 | # define GLOBAL_INT_ENABLE(int_state) ZOSS_RESTORE_IRQ(int_state)
|
| 33 | #endif
|
| 34 |
|
| 35 |
|
| 36 | /*******************************************************************************
|
| 37 | * Êý¾ÝÀàÐͶ¨Òå *
|
| 38 | *******************************************************************************/
|
| 39 |
|
| 40 |
|
| 41 | /*******************************************************************************
|
| 42 | * È«¾Ö±äÁ¿ÉùÃ÷ *
|
| 43 | *******************************************************************************/
|
| 44 |
|
| 45 |
|
| 46 | /*******************************************************************************
|
| 47 | * È«¾Öº¯ÊýÉùÃ÷ *
|
| 48 | *******************************************************************************/
|
| 49 |
|
| 50 | #endif // #ifndef _SIO_IRQ_H
|
| 51 |
|