![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
pissa pepper
myf401.h
- Committer:
- donghuoyinzi
- Date:
- 2018-04-20
- Revision:
- 0:a9ea0137c16b
File content as of revision 0:a9ea0137c16b:
#ifndef myf401_H #define myf401_H #include "string" /****引脚重定义*****/ #define LED2 PC_8 //user LED test pin LED2 #define LED3 PC_9 //user LED test pin LED3 #define RESET PC_13 //BC95 reset pin(CPU) #define DEBUG_TX PA_9 //PC debug #define DEBUG_RX PA_10 //PC debug #define BC95_TX PA_2 //BC95 TX(CPU) #define BC95_RX PA_3 //BC95 RX(CPU) class F401script { public: static int poL; static int poC_initF; static int poC_initS; static int poC_revokF; static int poC_revokS; static int poC_rdyF; static int poC_rdyS; static int poC_getF; static int poC_getS; static int poC_putF; static int poC_putS; static int poC_putcallF; static int poC_putcallS; static int poC_ticisrF; static int poC_ticisrS; static int poC_ticisr1F; static int poC_ticisr1S; static int poC_isrF; static int poC_isrS; static int poC_step; }; extern F401script f401scpt; class f401Act { public: /*******public method***********/ static void init(void); //f401 cpu initialization; static void ready(void); static void get(void); static void put(void); static void put_call(void); //static void reiwdg(void); static Serial uart; static DigitalOut led2; static DigitalOut led3; static Ticker time1; //定时器1 static Ticker timerone; //定时器1 /*******public middle variable***********/ static int datacnt; //接受数据计数 private: /******* private method***********/ //static IWDG_HandleTypeDef hiwdg; //?????????? //static AnalogIn powAD; static Timer outtime; // static void isr_tick(void); static void isr_tick1(void); static void isr_pc(void); //get interrupt buffer /******* private middle variable***********/ static int f401cnt; static char buf[512]; }; #endif