| | |
| | | /* |
| | | * Copyright (c) 2019-2023 Beijing Hanwei Innovation Technology Ltd. Co. and |
| | | * Copyright (c) 2019-2025 Beijing Hanwei Innovation Technology Ltd. Co. and |
| | | * its subsidiaries and affiliates (collectly called MKSEMI). |
| | | * |
| | | * All rights reserved. |
| | |
| | | #include "mk_trace.h" |
| | | #include "app.h" |
| | | |
| | | #ifdef WSF_EN |
| | | |
| | | static struct APP_CB_T app_cb; |
| | | |
| | | int app_init(uint8_t handle_id) |
| | |
| | | |
| | | void app_timer_set(uint8_t id, uint32_t ms, uint8_t mode) |
| | | { |
| | | WsfTimerStartMs(&app_cb.app_timer[id], ms, mode); |
| | | mk_timer_list_start_timer(&app_cb.app_timer[id], ms, mode); |
| | | } |
| | | |
| | | void app_timer_clr(uint8_t id) |
| | | { |
| | | WsfTimerStop(&app_cb.app_timer[id]); |
| | | mk_timer_list_stop_timer(&app_cb.app_timer[id]); |
| | | } |
| | | |
| | | void app_button_event_set(enum APP_EVT_ID_T evt) |
| | |
| | | { |
| | | WsfBufFree(pBuf); |
| | | } |
| | | |
| | | #endif |