AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: 9: 10: 14: #ifndef __WDTCTL_H__ 15: #define __WDTCTL_H__ 16: 17: 18: #include <stdint.h> 19: #include "lib_common/AG903_common.h" 20: 21: #ifdef __cplusplus 22: extern "C" { 23: #endif 24: 25: 27: typedef struct _AG903_WDTCtlParam{ 28: uint32_t count; 29: uint8_t intrlen; 30: uint8_t enable; 31: uint8_t rsv[2]; 32: } AG903_WDTCtlParam; 33: 34: #define AG903_WDT_SYSRESET_ENABLE (1<<0) 35: #define AG903_WDT_SYSINTR_ENABLE (1<<1) 36: #define AG903_WDT_EXTSIGNAL_ENABLE (1<<2) 37: 38: 39: int32_t AG903_WDTCtlInit(AG903_WDTCtlParam* param); 40: int32_t AG903_WDTCtlSetIntHandler(void* func, void* param); 41: int32_t AG903_WDTCtlDeleteIntHandler(void); 42: void AG903_WDTCtlEnable(void); 43: void AG903_WDTCtlDisable(void); 44: void AG903_WDTCtlRestart(void); 45: int32_t AG903_WDTCtlGetStatus(uint32_t* status); 46: int32_t AG903_WDTCtlClearStatus(void); 47: int32_t AG903_WDTCtlGetCount(uint32_t* count); 48: 49: #ifdef __cplusplus 50: } 51: #endif 52: 53: #endif
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.