Skip to main content

xxx System/Module

Note:

1. This template provides recommended guidance for writing a README.

2. All italics are writing guides; please ensure they are all deleted in the formal document.

【General Writing Requirements】

1. Confirm the Writing Content:Introduce what the system/module is (What), what it can do (Why), and how to develop it (How).

2. Adopt the User's Perspective:Present content from the developer's perspective, focusing on what they care about and need to use.

3. Be Flexible:The template is for reference only; adjust it flexibly according to the actual situation.

Introduction

【Writing Requirement】Required

Content Introduction: The role of this system/module in the entire TuyaOpen architecture, the functions it implements, usage scenarios, and supported devices.

Notes:

ItemContent Requirement
1Language Requirements
1.1Writing style: Formal language, avoiding colloquial expressions.
1.2Compliance requirements: Do not use words with legal and compliance risks, such as third - party intellectual property - specific concepts.
1.3Consistent terminology: Ensure consistency with the terminology library, and provide the full form of abbreviations on their first appearance in the text.
2Format Requirements
2.1Correct punctuation, with sentences ending in periods.
2.2Present content in bullet points or categorized lists as much as possible.
2.3For supplementary explanations of content, use styles like "Note/Attention/Warning".
3Tables
3.1Tables must have headers, and empty cells should be filled with "Not Applicable/None".
4Screenshots
4.1Graphics should be logically clear and used in conjunction with text.
4.2It is recommended to use the.png format.
4.3Use Chinese for Chinese - language figures and English for English - language figures.

Architecture Diagram

【Writing Requirement】Optional

ItemContent Requirement
1Use an architecture diagram to illustrate the system/module architecture and provide necessary explanations of the main components.
2If this module is part of a subsystem, indicate that understanding the subsystem - related concepts is required and provide a reference.

Code Directory

【Writing Requirement】Required. Clarify the code directory structure of this project and the functional description of each directory.

├── include                 # Framework code
│   ├── tkl_mutex.h # Header file directory
│   ├── tkl_adc.h
├── src
│   ├── tkl_mutex.c
│   ├── tkl_adc.c
├── tools
│   └── test-tools.py # Test Tool directory

Usage Restrictions

【Writing Requirement】Optional. Specify the prerequisites for running the subsystem, such as a specific fixed version of the operating system.

ItemContent Requirement
1Clarify functional or operational restrictions.
2Constraints that impact task - guided development.

Development Guide

【Writing Requirement】Optional

ItemContent Requirement
1How to Write Good Steps
1.1Step completeness: Provide all necessary steps to ensure successful completion of the operation.
1.2Task sentences: Use the "verb + noun" structure.
1.3Clear purpose: Specify the purpose of each step, i.e., the desired goal.
1.4Include success criteria after step completion.
2How to Write Good Code Segments
2.1Ensure the code is correct and executable.
2.2Add clear comments for critical steps.

Interface Description

【Writing Requirement】Optional. Provide links to API interfaces in this repository.

【Writing Requirement】Optional. List links to strongly related repositories for further learning by developers.