2019-07-19 20:45发布
503126063 发表于 2017-7-11 20:18 那就不清楚了,我用过208没试过你说的假死
we167527 发表于 2017-7-14 16:47 ST8我还发现 有时候写 某一条库函数的判断时会出现死机。 比如判断GPIO
最多设置5个标签!
会不会跟晶振也有问题。我的晶振是无缘5032的封装!
修改 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
一周热门 更多>