You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/api-reference/system/ulp-lp-core.rst
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,13 +142,14 @@ When the ULP is woken up, it will go through the following steps:
142
142
143
143
.. list::
144
144
145
-
:CONFIG_ESP_ROM_HAS_LP_ROM: #. Unless :cpp:member:`ulp_lp_core_cfg_t::skip_lp_rom_boot` is specified: run ROM start-up code and jump to the entry point in LP RAM. ROM start-up code will initialize lp-uart as well as print boot messages.
145
+
:CONFIG_ESP_ROM_HAS_LP_ROM: #. Unless :cpp:member:`ulp_lp_core_cfg_t::skip_lp_rom_boot` is specified, run ROM start-up code and jump to the entry point in LP RAM. ROM start-up code will initialize LP UART as well as print boot messages.
146
146
#. Initialize system feature, e.g., interrupts
147
147
#. Call user code ``main()``
148
148
#. Return from ``main()``
149
149
#. If ``lp_timer_sleep_duration_us`` is specified, then configure the next wake-up alarm
150
150
#. Call :cpp:func:`ulp_lp_core_halt`
151
151
152
+
152
153
ULP LP-Core Peripheral Support
153
154
------------------------------
154
155
@@ -169,10 +170,10 @@ To enhance the capabilities of the ULP LP-Core coprocessor, it has access to per
169
170
170
171
The ROM code is not executed if :cpp:member:`ulp_lp_core_cfg_t::skip_lp_rom_boot` is set to true. This is useful when you need the ULP to wake-up as quickly as possible and the extra overhead of initializing and printing is unwanted.
171
172
172
-
In addition to the boot-up code mentioned above the ROM code also provides the following functions and interfaces:
173
+
In addition to the boot-up code mentioned above, the ROM code also provides the following functions and interfaces:
Since these functions are already present in LP-ROM no matter what, using these in your program allows you to reduce the RAM footprint of your ULP application.
为了增强 ULP LP-Core 协处理器的功能,它可以访问在低功耗电源域运行的外设。ULP LP-Core 协处理器可以在主 CPU 处于睡眠模式时与这些外设进行交互,并在达到唤醒条件时唤醒主 CPU。以下为支持的外设:
153
157
154
-
* LP IO
155
-
* LP I2C
156
-
* LP UART
158
+
.. list::
159
+
160
+
* LP IO
161
+
* LP I2C
162
+
* LP UART
163
+
164
+
.. only:: CONFIG_ESP_ROM_HAS_LP_ROM
165
+
166
+
ULP LP-Core ROM
167
+
---------------
168
+
169
+
ULP LP-Core ROM 是位于 LP-ROM 中的一小段预编译代码,用户无法修改。与主 CPU 运行的引导加载程序 ROM 代码类似,ULP LP-Core ROM 也在 ULP LP-Core 协处理器启动时执行。该 ROM 代码会初始化 ULP LP-Core 协处理器,随后跳转到用户程序。如果已初始化 LP UART,该 ROM 代码还会打印启动信息。
170
+
171
+
如果已将 :cpp:member:`ulp_lp_core_cfg_t::skip_lp_rom_boot` 设置为真,则不会执行 ULP LP-Core ROM 代码。如需尽快唤醒 ULP,同时避免初始化和信息打印产生额外开销,则可使用这一功能。
0 commit comments