![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
clock
myMapPlat/myf401.h@0:17e9016529cf, 2018-05-08 (annotated)
- Committer:
- donghuoyinzi
- Date:
- Tue May 08 02:13:50 2018 +0000
- Revision:
- 0:17e9016529cf
- Child:
- 3:b8766d623f01
CLOCK_needle_180508
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 "string" |
donghuoyinzi | 0:17e9016529cf | 3 | #include "myknow.h" |
donghuoyinzi | 0:17e9016529cf | 4 | |
donghuoyinzi | 0:17e9016529cf | 5 | #ifndef myf401_H |
donghuoyinzi | 0:17e9016529cf | 6 | #define myf401_H |
donghuoyinzi | 0:17e9016529cf | 7 | |
donghuoyinzi | 0:17e9016529cf | 8 | class f401Act |
donghuoyinzi | 0:17e9016529cf | 9 | { |
donghuoyinzi | 0:17e9016529cf | 10 | public: |
donghuoyinzi | 0:17e9016529cf | 11 | static void init(void); //f401 cpu initialization; |
donghuoyinzi | 0:17e9016529cf | 12 | static void ready(void); |
donghuoyinzi | 0:17e9016529cf | 13 | static char revoke(void); |
donghuoyinzi | 0:17e9016529cf | 14 | static void get_pow(void); |
donghuoyinzi | 0:17e9016529cf | 15 | |
donghuoyinzi | 0:17e9016529cf | 16 | static void put_rwdg(void); |
donghuoyinzi | 0:17e9016529cf | 17 | static void put_rst(void); |
donghuoyinzi | 0:17e9016529cf | 18 | static void put_slepy(void); |
donghuoyinzi | 0:17e9016529cf | 19 | |
donghuoyinzi | 0:17e9016529cf | 20 | private: |
donghuoyinzi | 0:17e9016529cf | 21 | static IWDG_HandleTypeDef hiwdg; |
donghuoyinzi | 0:17e9016529cf | 22 | |
donghuoyinzi | 0:17e9016529cf | 23 | static void SystemClock_Config(void); |
donghuoyinzi | 0:17e9016529cf | 24 | static void MX_GPIO_Init(void); |
donghuoyinzi | 0:17e9016529cf | 25 | static void MY_GPIO_Config(void); |
donghuoyinzi | 0:17e9016529cf | 26 | |
donghuoyinzi | 0:17e9016529cf | 27 | static void init_wdg(void); |
donghuoyinzi | 0:17e9016529cf | 28 | static void isr_pc(void); //get interrupt buffer |
donghuoyinzi | 0:17e9016529cf | 29 | |
donghuoyinzi | 0:17e9016529cf | 30 | static int cnt; |
donghuoyinzi | 0:17e9016529cf | 31 | static char bufR[10]; //pc receive buffer |
donghuoyinzi | 0:17e9016529cf | 32 | static char bufT[10]; |
donghuoyinzi | 0:17e9016529cf | 33 | static int bufpow; |
donghuoyinzi | 0:17e9016529cf | 34 | }; |
donghuoyinzi | 0:17e9016529cf | 35 | |
donghuoyinzi | 0:17e9016529cf | 36 | #endif |