forked from espressif/esp-idf
esp_system: move intr_alloc
This commit is contained in:
@@ -5,16 +5,24 @@ if(${target} STREQUAL "esp32")
|
|||||||
list(APPEND requires efuse)
|
list(APPEND requires efuse)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(priv_requires efuse)
|
||||||
|
|
||||||
set(srcs "compare_set.c" "cpu_util.c")
|
set(srcs "compare_set.c" "cpu_util.c")
|
||||||
if(NOT BOOTLOADER_BUILD)
|
if(NOT BOOTLOADER_BUILD)
|
||||||
list(APPEND srcs "esp_async_memcpy.c" "esp_clk.c" "clk_ctrl_os.c" "mac_addr.c" "hw_random.c")
|
list(APPEND srcs "esp_async_memcpy.c"
|
||||||
|
"esp_clk.c"
|
||||||
|
"clk_ctrl_os.c"
|
||||||
|
"hw_random.c"
|
||||||
|
"intr_alloc.c"
|
||||||
|
"mac_addr.c")
|
||||||
|
list(APPEND priv_requires esp_ipc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
idf_component_register(SRCS ${srcs}
|
idf_component_register(SRCS ${srcs}
|
||||||
INCLUDE_DIRS include include/soc
|
INCLUDE_DIRS include include/soc
|
||||||
PRIV_INCLUDE_DIRS port/include
|
PRIV_INCLUDE_DIRS port/include
|
||||||
REQUIRES ${requires}
|
REQUIRES ${requires}
|
||||||
PRIV_REQUIRES efuse
|
PRIV_REQUIRES ${priv_requires}
|
||||||
LDFRAGMENTS linker.lf)
|
LDFRAGMENTS linker.lf)
|
||||||
|
|
||||||
idf_build_get_property(target IDF_TARGET)
|
idf_build_get_property(target IDF_TARGET)
|
||||||
|
@@ -5,7 +5,7 @@ COMPONENT_ADD_LDFRAGMENTS := linker.lf
|
|||||||
port/$(IDF_TARGET)/rtc_clk.o: CFLAGS += -fno-jump-tables -fno-tree-switch-conversion
|
port/$(IDF_TARGET)/rtc_clk.o: CFLAGS += -fno-jump-tables -fno-tree-switch-conversion
|
||||||
|
|
||||||
ifdef IS_BOOTLOADER_BUILD
|
ifdef IS_BOOTLOADER_BUILD
|
||||||
COMPONENT_OBJEXCLUDE += clk_ctrl_os.o mac_addr.o esp_async_memcpy.o
|
COMPONENT_OBJEXCLUDE += clk_ctrl_os.o mac_addr.o esp_async_memcpy.o intr_alloc.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
COMPONENT_OBJEXCLUDE += esp_async_memcpy.o
|
COMPONENT_OBJEXCLUDE += esp_async_memcpy.o
|
||||||
|
@@ -13,7 +13,6 @@ else()
|
|||||||
list(APPEND srcs "crosscore_int.c"
|
list(APPEND srcs "crosscore_int.c"
|
||||||
"esp_err.c"
|
"esp_err.c"
|
||||||
"freertos_hooks.c"
|
"freertos_hooks.c"
|
||||||
"intr_alloc.c"
|
|
||||||
"int_wdt.c"
|
"int_wdt.c"
|
||||||
"panic.c"
|
"panic.c"
|
||||||
"esp_system.c"
|
"esp_system.c"
|
||||||
@@ -33,7 +32,7 @@ else()
|
|||||||
# [refactor-todo] requirements due to init code,
|
# [refactor-todo] requirements due to init code,
|
||||||
# should be removable once using component init functions
|
# should be removable once using component init functions
|
||||||
# link-time registration is used.
|
# link-time registration is used.
|
||||||
esp_pm app_update nvs_flash pthread app_trace esp_gdbstub esp_ipc
|
esp_pm app_update nvs_flash pthread app_trace esp_gdbstub
|
||||||
espcoredump
|
espcoredump
|
||||||
LDFRAGMENTS "linker.lf" "app.lf")
|
LDFRAGMENTS "linker.lf" "app.lf")
|
||||||
add_subdirectory(port)
|
add_subdirectory(port)
|
||||||
|
@@ -228,7 +228,7 @@ INPUT = \
|
|||||||
$(IDF_PATH)/components/heap/include/esp_heap_caps_init.h \
|
$(IDF_PATH)/components/heap/include/esp_heap_caps_init.h \
|
||||||
$(IDF_PATH)/components/heap/include/multi_heap.h \
|
$(IDF_PATH)/components/heap/include/multi_heap.h \
|
||||||
## Interrupt Allocation
|
## Interrupt Allocation
|
||||||
$(IDF_PATH)/components/esp_system/include/esp_intr_alloc.h \
|
$(IDF_PATH)/components/esp_hw_support/include/esp_intr_alloc.h \
|
||||||
## Watchdogs
|
## Watchdogs
|
||||||
## NOTE: for two lines below header_file.inc is not used
|
## NOTE: for two lines below header_file.inc is not used
|
||||||
$(IDF_PATH)/components/esp_system/include/esp_int_wdt.h \
|
$(IDF_PATH)/components/esp_system/include/esp_int_wdt.h \
|
||||||
|
@@ -158,7 +158,7 @@ After the I2C driver is configured, install it by calling the function :cpp:func
|
|||||||
- Port number, one of the two port numbers from :cpp:type:`i2c_port_t`
|
- Port number, one of the two port numbers from :cpp:type:`i2c_port_t`
|
||||||
- Master or slave, selected from :cpp:type:`i2c_mode_t`
|
- Master or slave, selected from :cpp:type:`i2c_mode_t`
|
||||||
- (Slave only) Size of buffers to allocate for sending and receiving data. As I2C is a master-centric bus, data can only go from the slave to the master at the master's request. Therefore, the slave will usually have a send buffer where the slave application writes data. The data remains in the send buffer to be read by the master at the master's own discretion.
|
- (Slave only) Size of buffers to allocate for sending and receiving data. As I2C is a master-centric bus, data can only go from the slave to the master at the master's request. Therefore, the slave will usually have a send buffer where the slave application writes data. The data remains in the send buffer to be read by the master at the master's own discretion.
|
||||||
- Flags for allocating the interrupt (see ESP_INTR_FLAG_* values in :component_file:`esp_system/include/esp_intr_alloc.h`)
|
- Flags for allocating the interrupt (see ESP_INTR_FLAG_* values in :component_file:`esp_hw_support/include/esp_intr_alloc.h`)
|
||||||
|
|
||||||
|
|
||||||
.. _i2c-api-master-mode:
|
.. _i2c-api-master-mode:
|
||||||
|
@@ -75,7 +75,7 @@ I2C 驱动程序管理在 I2C 总线上设备的通信,该驱动程序具备
|
|||||||
- 端口号,从 :cpp:type:`i2c_port_t` 中二选一
|
- 端口号,从 :cpp:type:`i2c_port_t` 中二选一
|
||||||
- 主机或从机模式,从 :cpp:type:`i2c_mode_t` 中选择
|
- 主机或从机模式,从 :cpp:type:`i2c_mode_t` 中选择
|
||||||
- (仅限从机模式)分配用于在从机模式下发送和接收数据的缓存区大小。I2C 是一个以主机为中心的总线,数据只能根据主机的请求从从机传输到主机。因此,从机通常有一个发送缓存区,供从应用程序写入数据使用。数据保留在发送缓存区中,由主机自行读取。
|
- (仅限从机模式)分配用于在从机模式下发送和接收数据的缓存区大小。I2C 是一个以主机为中心的总线,数据只能根据主机的请求从从机传输到主机。因此,从机通常有一个发送缓存区,供从应用程序写入数据使用。数据保留在发送缓存区中,由主机自行读取。
|
||||||
- 用于分配中断的标志(请参考 ESP_INTR_FLAG_* values in :component_file:`esp_system/include/esp_intr_alloc.h`)
|
- 用于分配中断的标志(请参考 ESP_INTR_FLAG_* values in :component_file:`esp_hw_support/include/esp_intr_alloc.h`)
|
||||||
|
|
||||||
|
|
||||||
.. _i2c-api-master-mode:
|
.. _i2c-api-master-mode:
|
||||||
|
Reference in New Issue
Block a user