mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
104 lines
4.1 KiB
C
104 lines
4.1 KiB
C
/*********************************************************************************************************************
|
||
* COPYRIGHT NOTICE
|
||
* Copyright (c) 2020,<2C><><EFBFBD>ɿƼ<C9BF>
|
||
* All rights reserved.
|
||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>QQȺ<51><C8BA><EFBFBD><EFBFBD>Ⱥ<EFBFBD><C8BA>824575535
|
||
*
|
||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݰ<EFBFBD>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɿƼ<C9BF><C6BC><EFBFBD><EFBFBD>У<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5>;<EFBFBD><CDBE>
|
||
* <20><>ӭ<EFBFBD><D3AD>λʹ<CEBB>ò<EFBFBD><C3B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>뱣<EFBFBD><EBB1A3><EFBFBD><EFBFBD><EFBFBD>ɿƼ<C9BF><C6BC>İ<EFBFBD>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
*
|
||
* @file isr_config
|
||
* @company <09>ɶ<EFBFBD><C9B6><EFBFBD><EFBFBD>ɿƼ<C9BF><C6BC><EFBFBD><EFBFBD><EFBFBD>˾
|
||
* @author <09><><EFBFBD>ɿƼ<C9BF>(QQ3184284598)
|
||
* @version <09>鿴doc<6F><63>version<6F>ļ<EFBFBD> <20>汾˵<E6B1BE><CBB5>
|
||
* @Software ADS v1.2.2
|
||
* @Target core TC264D
|
||
* @Taobao https://seekfree.taobao.com/
|
||
* @date 2020-3-23
|
||
********************************************************************************************************************/
|
||
|
||
#ifndef _isr_config_h
|
||
#define _isr_config_h
|
||
|
||
|
||
//ISR_PRIORITY<54><59> TC264<36><34><EFBFBD><EFBFBD>255<35><35><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1-255<35><35>0<EFBFBD><30><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>жϣ<D0B6>255Ϊ<35><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>
|
||
//<2F>ر<EFBFBD>ע<EFBFBD><D7A2>
|
||
//<2F>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ֵ
|
||
//<2F>ر<EFBFBD>ע<EFBFBD><D7A2>
|
||
|
||
|
||
|
||
//INT_SERVICE<43><45> <20>궨<EFBFBD><EAB6A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD>˭<EFBFBD><CBAD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD><D2B2>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD>ṩ<EFBFBD>ߣ<EFBFBD><DFA3><EFBFBD>TC264<36>У<EFBFBD><D0A3>жϱ<D0B6><CFB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1A3A9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>÷<EFBFBD>ΧIfxSrc_Tos_cpu0 IfxSrc_Tos_cpu1 IfxSrc_Tos_dma <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>ֵ
|
||
|
||
|
||
//<2F><><EFBFBD><EFBFBD>INT_SERVICE<43><45><EFBFBD><EFBFBD>ΪIfxSrc_Tos_dma<6D>Ļ<EFBFBD><C4BB><EFBFBD>ISR_PRIORITY<54>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>÷<EFBFBD>Χ<EFBFBD><CEA7><EFBFBD><EFBFBD>0-47<34><37>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
//------------PIT<49>жϲ<D0B6><CFB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD><D8B6><EFBFBD>------------
|
||
#define CCU6_0_CH0_INT_SERVICE IfxSrc_Tos_cpu0 //<2F><><EFBFBD><EFBFBD>CCU6_0 PITͨ<54><CDA8>0<EFBFBD>жϷ<D0B6><CFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>˭<EFBFBD><CBAD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD> 0:CPU0 1:CPU1 3:DMA <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>ֵ
|
||
#define CCU6_0_CH0_ISR_PRIORITY 30 //<2F><><EFBFBD><EFBFBD>CCU6_0 PITͨ<54><CDA8>0<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD> <20><><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD>Χ1-255 Խ<><D4BD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>Խ<EFBFBD><D4BD> <20><>ƽʱʹ<CAB1>õĵ<C3B5>Ƭ<EFBFBD><C6AC><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||
|
||
#define CCU6_0_CH1_INT_SERVICE IfxSrc_Tos_cpu0
|
||
#define CCU6_0_CH1_ISR_PRIORITY 31
|
||
|
||
#define CCU6_1_CH0_INT_SERVICE IfxSrc_Tos_cpu0
|
||
#define CCU6_1_CH0_ISR_PRIORITY 32
|
||
|
||
#define CCU6_1_CH1_INT_SERVICE IfxSrc_Tos_cpu0
|
||
#define CCU6_1_CH1_ISR_PRIORITY 33
|
||
|
||
|
||
|
||
//------------GPIO<49>жϲ<D0B6><CFB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD><D8B6><EFBFBD>------------
|
||
//ͨ<><CDA8>0<EFBFBD><30>ͨ<EFBFBD><CDA8>4<EFBFBD>ǹ<EFBFBD><C7B9><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>жϺ<D0B6><CFBA><EFBFBD> <20><><EFBFBD>ж<EFBFBD><D0B6>ڲ<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>־λ<D6BE>ж<EFBFBD><D0B6><EFBFBD>˭<EFBFBD><CBAD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>
|
||
#define ERU_CH0_CH4_INT_SERVICE IfxSrc_Tos_cpu0 //<2F><><EFBFBD><EFBFBD>ERUͨ<55><CDA8>0<EFBFBD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<D6BE>ж<EFBFBD><D0B6><EFBFBD>˭<EFBFBD><CBAD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>
|
||
#define ERU_CH3_CH7_INT_SERVICE IfxSrc_Tos_cpu0 //<2F><><EFBFBD><EFBFBD>ERUͨ<55><CDA8>3<EFBFBD><33>ͨ<EFBFBD><CDA8>7<EFBFBD>жϷ<D0B6><CFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD>ͬ<EFBFBD><CDAC>
|
||
#define ERU_CH3_CH7_INT_PRIO 43 //<2F><><EFBFBD><EFBFBD>ERUͨ<55><CDA8>3<EFBFBD><33>ͨ<EFBFBD><CDA8>7<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD> ͬ<><CDAC>
|
||
|
||
|
||
//------------DMA<4D>жϲ<D0B6><CFB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD><D8B6><EFBFBD>------------
|
||
#define ERU_DMA_INT_SERVICE IfxSrc_Tos_cpu0 //ERU<52><55><EFBFBD><EFBFBD>DMA<4D>жϷ<D0B6><CFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>˭<EFBFBD><CBAD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD> 0:CPU0 1:CPU1 3:DMA <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>ֵ
|
||
#define ERU_DMA_INT_PRIO 60 //ERU<52><55><EFBFBD><EFBFBD>DMA<4D>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD> <20><><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD>Χ1-255 Խ<><D4BD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>Խ<EFBFBD><D4BD> <20><>ƽʱʹ<CAB1>õĵ<C3B5>Ƭ<EFBFBD><C6AC><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||
|
||
|
||
//------------<2D><><EFBFBD><EFBFBD><EFBFBD>жϲ<D0B6><CFB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ض<EFBFBD><D8B6><EFBFBD>------------
|
||
#define UART0_INT_SERVICE IfxSrc_Tos_cpu0 //<2F><><EFBFBD>崮<EFBFBD><E5B4AE>0<EFBFBD>жϷ<D0B6><CFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>˭<EFBFBD><CBAD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD> 0:CPU0 1:CPU1 3:DMA <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>ֵ
|
||
#define UART0_TX_INT_PRIO 10 //<2F><><EFBFBD>崮<EFBFBD><E5B4AE>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD> <20><><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD>Χ1-255 Խ<><D4BD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>Խ<EFBFBD><D4BD> <20><>ƽʱʹ<CAB1>õĵ<C3B5>Ƭ<EFBFBD><C6AC><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||
#define UART0_RX_INT_PRIO 11 //<2F><><EFBFBD>崮<EFBFBD><E5B4AE>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD> <20><><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD>Χ1-255 Խ<><D4BD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>Խ<EFBFBD><D4BD> <20><>ƽʱʹ<CAB1>õĵ<C3B5>Ƭ<EFBFBD><C6AC><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||
#define UART0_ER_INT_PRIO 12 //<2F><><EFBFBD>崮<EFBFBD><E5B4AE>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD> <20><><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD>Χ1-255 Խ<><D4BD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>Խ<EFBFBD><D4BD> <20><>ƽʱʹ<CAB1>õĵ<C3B5>Ƭ<EFBFBD><C6AC><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||
|
||
#define UART1_INT_SERVICE IfxSrc_Tos_cpu0
|
||
#define UART1_TX_INT_PRIO 13
|
||
#define UART1_RX_INT_PRIO 14
|
||
#define UART1_ER_INT_PRIO 15
|
||
|
||
#define UART2_INT_SERVICE IfxSrc_Tos_cpu0
|
||
#define UART2_TX_INT_PRIO 16
|
||
#define UART2_RX_INT_PRIO 17
|
||
#define UART2_ER_INT_PRIO 18
|
||
|
||
#define UART3_INT_SERVICE IfxSrc_Tos_cpu0
|
||
#define UART3_TX_INT_PRIO 19
|
||
#define UART3_RX_INT_PRIO 20
|
||
#define UART3_ER_INT_PRIO 21
|
||
|
||
|
||
#endif
|