35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/********************************** (C) COPYRIGHT *******************************
|
|
* File Name : ch32v20x_it.h
|
|
* Author : WCH
|
|
* Version : V1.0.0
|
|
* Date : 2021/06/06
|
|
* Description : This file contains the headers of the interrupt handlers.
|
|
*********************************************************************************
|
|
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
|
|
* Attention: This software (modified or not) and binary are used for
|
|
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
|
|
*******************************************************************************/
|
|
#ifndef __CH32V20x_IT_H
|
|
#define __CH32V20x_IT_H
|
|
|
|
#include "debug.h"
|
|
|
|
/* SPI Mode Definition */
|
|
#define HOST_MODE 0
|
|
#define SLAVE_MODE 1
|
|
|
|
/* SPI Communication Mode Selection */
|
|
#define SPI_MODE HOST_MODE
|
|
//#define SPI_MODE SLAVE_MODE
|
|
|
|
#define Size 18
|
|
|
|
extern volatile u8 Txval;
|
|
extern volatile u8 Rxval;
|
|
extern u16 TxData[Size];
|
|
extern u16 RxData[Size];
|
|
|
|
#endif /* __CH32V20x_IT_H */
|
|
|
|
|