#ifndef __COMMON_H__
#define __COMMON_H__
#include "BAT32A279.h"
#if defined BAT32G1X9_100PIN || defined BAT32G2X9_100PIN
#define BAT32G1XX_100PIN
#elif defined BAT32G1X9_80PIN || defined BAT32G2X9_80PIN
#define BAT32G1XX_80PIN
#elif defined BAT32G1X9_64PIN || defined BAT32G2X9_64PIN
#define BAT32G1XX_64PIN
#endif
typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus;
typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrorStatus;
typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
//#define SPI_INTERFACE
#endif
-
时昊 authoredae63e8ab