1 /********************************** (C) COPYRIGHT ******************************* 2 * File Name : ch32v10x_it.h 3 * Author : WCH 4 * Version : V1.0.0 5 * Date : 2020/04/30 6 * Description : This file contains the headers of the interrupt handlers. 7 * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd. 8 * SPDX-License-Identifier: Apache-2.0 9 *******************************************************************************/ 10 #ifndef __CH32V10x_IT_H 11 #define __CH32V10x_IT_H 12 13 #include "debug.h" 14 15 #define GET_INT_SP() asm("csrrw sp,mscratch,sp") 16 #define FREE_INT_SP() asm("csrrw sp,mscratch,sp") 17 18 #endif /* __CH32V10x_IT_H */ 19 20 21