64 lines
2.3 KiB
C
64 lines
2.3 KiB
C
/*
|
|
******************************************************************************
|
|
*
|
|
* @file system.h
|
|
* @brief system module
|
|
* @ic sy8835
|
|
*
|
|
* @version 1.0
|
|
* @date 2024/11/01 09:59:40
|
|
* @author Alex Xu
|
|
*
|
|
* Copyright (c) 2013-2099,Tkplusemi Technology Co.,Ltd.
|
|
* All Rights Reserved
|
|
*
|
|
* History:
|
|
* Revision Date Author Desc
|
|
* 1.0.0 2024/11/01 Alex build this file
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef __SYSTEM_H__
|
|
#define __SYSTEM_H__
|
|
|
|
/*_____ I N C L U D E S ____________________________________________________*/
|
|
|
|
#include "define.h"
|
|
|
|
/******************************************************************************\
|
|
Macro definitions
|
|
\******************************************************************************/
|
|
/*中断号计算方式:中断向量 = 中断号 * 8 + 3*/
|
|
|
|
#define Interrupt_Vector_IE0 0 //0x03,SY8836 IE0 use for wakeup
|
|
#define Interrupt_Vector_TF0 1 //0x0B,Timer 0 Overflow
|
|
#define Interrupt_Vector_IE1 2 //0x13
|
|
#define Interrupt_Vector_TF1 3 //0x1B,Timer 1 Overflow
|
|
#define Interrupt_Vector_RI_TI 4 //0x23,Serial Port0 Interrupt
|
|
#define Interrupt_Vector_TF2 5 //0x2B
|
|
|
|
#define Interrupt_Vector_IE7 8 //0x43,External Interrupt 7 / PWM
|
|
#define Interrupt_Vector_IE2 9 //0x4B,External Interrupt 2
|
|
#define Interrupt_Vector_IE3 10 //0x53,External Interrupt 3
|
|
#define Interrupt_Vector_IE4 11 //0x5B,External Interrupt 4
|
|
#define Interrupt_Vector_IE5 12 //0x63,External Interrupt 5
|
|
#define Interrupt_Vector_IE6 13 //0x6B,External Interrupt 6 / ADC中断
|
|
|
|
#define Interrupt_Vector_RI1_TI1 16 //0x83,Serial Port1 Interrupt
|
|
#define Interrupt_Vector_IE8 17 //0x8B,Serial Port2 Interrupt
|
|
|
|
/******************************************************************************\
|
|
Variables definitions
|
|
\******************************************************************************/
|
|
|
|
|
|
|
|
/******************************************************************************\
|
|
Functions definitions
|
|
\******************************************************************************/
|
|
|
|
extern void System_Init(void);
|
|
|
|
#endif
|
|
|