mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-28 05:31:44 +01:00
docs: Provide CN translation for documents under api-reference
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
Programming ULP FSM Coprocessor Using C Macros (Legacy)
|
||||
=======================================================
|
||||
|
||||
:link_to_translation:`zh_CN:[中文]`
|
||||
|
||||
In addition to the existing binutils port for the {IDF_TARGET_NAME} ULP coprocessor, it is possible to generate programs for the ULP FSM coprocessor by embedding assembly-like macros into an {IDF_TARGET_NAME} application. Here is an example how this can be done::
|
||||
|
||||
const ulp_insn_t program[] = {
|
||||
@@ -25,7 +27,7 @@ The ``program`` array is an array of ``ulp_insn_t``, i.e., ULP coprocessor instr
|
||||
.. note::
|
||||
|
||||
Load, store and move instructions use **addresses expressed in 32-bit words**. Address 0 corresponds to the first word of ``RTC_SLOW_MEM``.
|
||||
This is different to how address arguments are handled in assembly code of the same instructions. See the section :ref:`ulp-fsm-addressing` for more details for reference.
|
||||
This is different from how address arguments are handled in assembly code of the same instructions. See the section :ref:`ulp-fsm-addressing` for more details for reference.
|
||||
|
||||
To generate branch instructions, special ``M_`` preprocessor defines are used. ``M_LABEL`` define can be used to define a branch target. Label identifier is a 16-bit integer. ``M_Bxxx`` defines can be used to generate branch instructions with target set to a particular label.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user