|
Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
|
Modules | |
| Watch-dog reset/interrupt mode definition | |
Data Structures | |
| struct | bflb_wdg_config_s |
| WDG configuration structure. More... | |
Macros | |
| #define | WDG_CLKSRC_BCLK 0 |
| #define | WDG_CLKSRC_32K 1 |
| #define | WDG_CLKSRC_1K 2 |
| #define | WDG_CLKSRC_XTAL 3 |
| #define | WDG_CLKSRC_GPIO 4 |
| #define | WDG_CLKSRC_NO 5 |
Functions | |
| void | bflb_wdg_init (struct bflb_device_s *dev, const struct bflb_wdg_config_s *config) |
| Initialize watchdog. More... | |
| void | bflb_wdg_start (struct bflb_device_s *dev) |
| Start watchdog. More... | |
| void | bflb_wdg_stop (struct bflb_device_s *dev) |
| Stop watchdog. More... | |
| uint16_t | bflb_wdg_get_countervalue (struct bflb_device_s *dev) |
| Get watchdog counter value. More... | |
| void | bflb_wdg_set_countervalue (struct bflb_device_s *dev, uint16_t value) |
| Set watchdog counter value. More... | |
| void | bflb_wdg_reset_countervalue (struct bflb_device_s *dev) |
| Reset watchdog counter value. More... | |
| void | bflb_wdg_compint_clear (struct bflb_device_s *dev) |
| Clear watchdog compare interrupt status. More... | |
| #define WDG_CLKSRC_1K 2 |
Definition at line 18 of file bflb_wdg.h.
| #define WDG_CLKSRC_32K 1 |
Definition at line 17 of file bflb_wdg.h.
| #define WDG_CLKSRC_BCLK 0 |
Definition at line 15 of file bflb_wdg.h.
| #define WDG_CLKSRC_GPIO 4 |
Definition at line 21 of file bflb_wdg.h.
| #define WDG_CLKSRC_NO 5 |
Definition at line 23 of file bflb_wdg.h.
| #define WDG_CLKSRC_XTAL 3 |
Definition at line 19 of file bflb_wdg.h.
| void bflb_wdg_compint_clear | ( | struct bflb_device_s * | dev | ) |
Clear watchdog compare interrupt status.
| [in] | dev | device handle |
| uint16_t bflb_wdg_get_countervalue | ( | struct bflb_device_s * | dev | ) |
Get watchdog counter value.
| [in] | dev | device handle |
| void bflb_wdg_init | ( | struct bflb_device_s * | dev, |
| const struct bflb_wdg_config_s * | config | ||
| ) |
Initialize watchdog.
| [in] | dev | device handle |
| [in] | config | pointer to save watchdog config |
| void bflb_wdg_reset_countervalue | ( | struct bflb_device_s * | dev | ) |
Reset watchdog counter value.
| [in] | dev | device handle |
| void bflb_wdg_set_countervalue | ( | struct bflb_device_s * | dev, |
| uint16_t | value | ||
| ) |
Set watchdog counter value.
| [in] | dev | device handle |
| [in] | counter | value |
| void bflb_wdg_start | ( | struct bflb_device_s * | dev | ) |
Start watchdog.
| [in] | dev | device handle |
| void bflb_wdg_stop | ( | struct bflb_device_s * | dev | ) |
Stop watchdog.
| [in] | dev | device handle |