tuya/tuyaopen-ide-manifests/timer

Claude Code and agent skill by tuya/tuyaopen-ide-manifests

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

TuyaOS hardware timer via tkl_timer: init, start, stop, callback. 硬件定时器、tkl_timer、周期回调。

Install

npx vskill@latest install tuya/tuyaopen-ide-manifests/timer

SKILL.md

TuyaOS Timer (tkl_timer)

Demo: …/examples/driver_timer/example_driver_timer.c

Pattern

c
#include "tkl_timer.h"
#include "tkl_output.h"
#define TIMER_ID 0
#define DELAY_TIME 1000 /* unit per demo/platform */
static void timer_cb(void *args)
{
(void)args;
tkl_log_output("\r\n------------- Timer Callback --------------\r\n");
tkl_timer_stop(TIMER_ID);
tkl_timer_deinit(TIMER_ID);
}
void app_timer_start(void)
{
TUYA_TIMER_BASE_CFG_T cfg = {
.mode = TUYA_TIMER_MODE_PERIOD, /* verify enum in demo */
.cb = timer_cb,
.args = NULL,
};
tkl_timer_init(TIMER_ID, &cfg);
tkl_timer_start(TIMER_ID, DELAY_TIME);
}

API

FunctionRole
tkl_timer_initbind callback/mode
tkl_timer_startarm
tkl_timer_stop / tkl_timer_deinitstop/release

Keep callbacks short; defer heavy work to a thread (tal_thread_*).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tuya/tuyaopen-ide-manifests/timer/badge)](https://verified-skill.com/skills/tuya/tuyaopen-ide-manifests/timer)

Something wrong with this skill or its page? Tell us.