2019-07-19 20:45发布
we167527 发表于 2017-7-15 16:13 也不算死机! 就是停在那里了 ==SET改成!=RESET就可以通过了。这个问题一直很无语
最多设置5个标签!
修改 stm8s.h
//typedef enum {FALSE = 0, TRUE = !FALSE} bool;
#include <stdbool.h>
#define FALSE 0
#define TRUE 1
//typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus, BitStatus, BitAction;
#define FlagStatus bool
#define ITStatus bool
#define BitStatus bool
#define BitAction bool
#define RESET 0
#define SET 1
//typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;
#define FunctionalState bool
#define DISABLE 0
#define ENABLE 1
//typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrorStatus;
#define ErrorStatus bool
#define ERROR 0
#define SUCCESS 1
一周热门 更多>