yan zhang
/
NB_CLOCK_180505
clock
myMapPlat/myf401.h@3:b8766d623f01, 2018-05-22 (annotated)
- Committer:
- donghuoyinzi
- Date:
- Tue May 22 09:10:05 2018 +0000
- Revision:
- 3:b8766d623f01
- Parent:
- 0:17e9016529cf
0522
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
donghuoyinzi | 0:17e9016529cf | 1 | #include "mbed.h" |
donghuoyinzi | 0:17e9016529cf | 2 | #include "myknow.h" |
donghuoyinzi | 0:17e9016529cf | 3 | |
donghuoyinzi | 0:17e9016529cf | 4 | #ifndef myf401_H |
donghuoyinzi | 0:17e9016529cf | 5 | #define myf401_H |
donghuoyinzi | 0:17e9016529cf | 6 | |
donghuoyinzi | 0:17e9016529cf | 7 | class f401Act |
donghuoyinzi | 0:17e9016529cf | 8 | { |
donghuoyinzi | 0:17e9016529cf | 9 | public: |
donghuoyinzi | 0:17e9016529cf | 10 | static void init(void); //f401 cpu initialization; |
donghuoyinzi | 0:17e9016529cf | 11 | static void ready(void); |
donghuoyinzi | 0:17e9016529cf | 12 | static char revoke(void); |
donghuoyinzi | 0:17e9016529cf | 13 | static void get_pow(void); |
donghuoyinzi | 0:17e9016529cf | 14 | |
donghuoyinzi | 3:b8766d623f01 | 15 | //static void put_rwdg(void); |
donghuoyinzi | 0:17e9016529cf | 16 | static void put_rst(void); |
donghuoyinzi | 3:b8766d623f01 | 17 | //static void put_slepy(void); |
donghuoyinzi | 0:17e9016529cf | 18 | |
donghuoyinzi | 0:17e9016529cf | 19 | private: |
donghuoyinzi | 3:b8766d623f01 | 20 | //static IWDG_HandleTypeDef hiwdg; |
donghuoyinzi | 0:17e9016529cf | 21 | |
donghuoyinzi | 3:b8766d623f01 | 22 | //static void SystemClock_Config(void); |
donghuoyinzi | 3:b8766d623f01 | 23 | //static void MX_GPIO_Init(void); |
donghuoyinzi | 3:b8766d623f01 | 24 | //static void MY_GPIO_Config(void); |
donghuoyinzi | 0:17e9016529cf | 25 | |
donghuoyinzi | 3:b8766d623f01 | 26 | //static void init_wdg(void); |
donghuoyinzi | 0:17e9016529cf | 27 | static void isr_pc(void); //get interrupt buffer |
donghuoyinzi | 0:17e9016529cf | 28 | |
donghuoyinzi | 0:17e9016529cf | 29 | static int cnt; |
donghuoyinzi | 0:17e9016529cf | 30 | static char bufR[10]; //pc receive buffer |
donghuoyinzi | 0:17e9016529cf | 31 | static char bufT[10]; |
donghuoyinzi | 0:17e9016529cf | 32 | static int bufpow; |
donghuoyinzi | 0:17e9016529cf | 33 | }; |
donghuoyinzi | 0:17e9016529cf | 34 | |
donghuoyinzi | 0:17e9016529cf | 35 | #endif |