/ohos5.0/drivers/hdf_core/framework/support/platform/src/watchdog/ |
H A D | watchdog_if.c | 22 static struct WatchdogCntlr *WatchdogGetById(int16_t wdtId) in WatchdogGetById() argument 27 if (wdtId < 0 || wdtId >= WATCHDOG_ID_MAX) { in WatchdogGetById() 28 HDF_LOGE("WatchdogGetById: invalid id:%d", wdtId); in WatchdogGetById() 37 "HDF_PLATFORM_WATCHDOG_%d", wdtId) < 0) { in WatchdogGetById() 50 int32_t WatchdogOpen(int16_t wdtId, DevHandle *handle) in WatchdogOpen() argument 60 service = WatchdogGetById(wdtId); in WatchdogOpen()
|
H A D | watchdog_if_u.c | 19 static void *WatchdogServiceGetById(int16_t wdtId) in WatchdogServiceGetById() argument 24 if (wdtId < 0 || wdtId >= WATCHDOG_ID_MAX) { in WatchdogServiceGetById() 25 HDF_LOGE("WatchdogServiceGetById: invalid id:%d!", wdtId); in WatchdogServiceGetById() 30 "HDF_PLATFORM_WATCHDOG_%d", wdtId) < 0) { in WatchdogServiceGetById() 43 int32_t WatchdogOpen(int16_t wdtId, DevHandle *handle) in WatchdogOpen() argument 54 service = WatchdogServiceGetById(wdtId); in WatchdogOpen()
|
H A D | watchdog_core.c | 142 infos[PLATFORM_TRACE_UINT_PARAM_SIZE_1 - 1] = cntlr->wdtId; in WatchdogCntlrStart() 172 infos[PLATFORM_TRACE_UINT_PARAM_SIZE_1 - 1] = cntlr->wdtId; in WatchdogCntlrStop()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/test/unittest/common/ |
H A D | hdf_watchdog_mini_test.cpp | 43 static int16_t wdtId = 7; in WatchdogMiniEnableGetEnableTest() local 46 ret = WatchdogOpen(wdtId, &handle); in WatchdogMiniEnableGetEnableTest() 48 printf("WatchdogMiniEnableGetEnableTest: open watchdog_%hd fail, ret: %d!\n", wdtId, ret); in WatchdogMiniEnableGetEnableTest() 76 static int16_t wdtId = 7; in WatchdogMiniBarkTest() local 78 ret = WatchdogOpen(wdtId, &handle); in WatchdogMiniBarkTest() 80 printf("WatchdogMiniBarkTest: open watchdog_%hd fail, ret: %d!\n", wdtId, ret); in WatchdogMiniBarkTest()
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-platform-watchdog-des.md | 61 | int32_t WatchdogOpen(int16_t wdtId, DevHandle \*handle) | 打开看门狗 | 86 DevHandle WatchdogOpen(int16_t wdtId, DevHandle *handle); 93 | wdtId | int16_t类型,看门狗设备号 | 100 int16_t wdtId = 0; 104 ret = WatchdogOpen(wdtId, handle); // 打开0号看门狗设备 106 HDF_LOGE("WatchdogOpen: open watchdog_%hd failed, ret:%d\n", wdtId, ret); 314 int16_t wdtId = 0; 320 ret = WatchdogOpen(wdtId, handle); 322 HDF_LOGE("TestCaseWatchdog: open watchdog_%hd failed, ret:%d\n", wdtId, ret);
|
H A D | driver-platform-watchdog-develop.md | 197 int16_t wdtId; // watchdog设备ID号
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-platform-watchdog-des.md | 54 | int32_t WatchdogOpen(int16_t wdtId, DevHandle *handle) | Opens a watchdog.| 80 DevHandle WatchdogOpen(int16_t wdtId, DevHandle *handle); 87 | wdtId | Watchdog ID.| 94 int16_t wdtId = 0; 98 ret = WatchdogOpen(wdtId, handle); // Open watchdog 0. 100 HDF_LOGE("WatchdogOpen: open watchdog_%hd failed, ret:%d\n", wdtId, ret); 303 int16_t wdtId = 0; 309 ret = WatchdogOpen(wdtId, handle); 311 HDF_LOGE("WatchdogOpen: open watchdog_%hd failed, ret:%d\n", wdtId, ret);
|
H A D | driver-platform-watchdog-develop.md | 177 int16_t wdtId; // Watchdog ID.
|
/ohos5.0/drivers/hdf_core/framework/include/platform/ |
H A D | watchdog_if.h | 82 int32_t WatchdogOpen(int16_t wdtId, DevHandle *handle);
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/platform/watchdog/ |
H A D | watchdog_adapter.c | 61 if (sprintf_s(name, WATCHDOG_NAME_LEN - 1, "/dev/watchdog%d", wdt->wdtId) < 0) { in WdtOpenFile() 264 ret = drsOps->GetUint16(obj->property, "id", &wdt->wdtId, 0); in HdfWdtBind()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/include/watchdog/ |
H A D | watchdog_core.h | 30 int16_t wdtId; member
|
/ohos5.0/drivers/hdf_core/adapter/platform/watchdog/ |
H A D | watchdog_bes.c | 116 watchdogCntlr->wdtId = watchdogDevice->resource.watchdogId; in AttachWatchdogDevice()
|
H A D | watchdog_stm32f4xx.c | 154 watchdogCntlr->wdtId = watchdogdeviceinfo->watchdogId;
|