Skip to content

Commit fcac075

Browse files
ports/mimxrt: Initial additions for CSI driver.
1 parent 4efc5e1 commit fcac075

File tree

5 files changed

+658
-0
lines changed

5 files changed

+658
-0
lines changed

ports/mimxrt/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ SRC_HAL_IMX_C += \
127127
$(MCU_DIR)/drivers/fsl_clock.c \
128128
$(MCUX_SDK_DIR)/drivers/common/fsl_common.c \
129129
$(MCUX_SDK_DIR)/drivers/common/fsl_common_arm.c \
130+
$(MCUX_SDK_DIR)/drivers/csi/fsl_csi.c \
130131
$(MCUX_SDK_DIR)/drivers/dmamux/fsl_dmamux.c \
131132
$(MCUX_SDK_DIR)/drivers/edma/fsl_edma.c \
132133
$(MCUX_SDK_DIR)/drivers/flexram/fsl_flexram.c \
@@ -155,6 +156,7 @@ INC_HAL_IMX += \
155156
-I$(TOP)/$(MCU_DIR) \
156157
-I$(TOP)/$(MCU_DIR)/drivers \
157158
-I$(TOP)/$(MCUX_SDK_DIR)/drivers/common \
159+
-I$(TOP)/$(MCUX_SDK_DIR)/drivers/csi \
158160
-I$(TOP)/$(MCUX_SDK_DIR)/drivers/dmamux \
159161
-I$(TOP)/$(MCUX_SDK_DIR)/drivers/edma \
160162
-I$(TOP)/$(MCUX_SDK_DIR)/drivers/flexram \
@@ -256,6 +258,7 @@ SRC_C += \
256258
machine_spi.c \
257259
main.c \
258260
mbedtls/mbedtls_port.c \
261+
mimxrt_csi.c \
259262
mimxrt_flash.c \
260263
mimxrt_sdram.c \
261264
modmimxrt.c \

ports/mimxrt/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ int main(void) {
7878

7979
systick_enable_dispatch(SYSTICK_DISPATCH_LWIP, mod_network_lwip_poll_wrapper);
8080
#endif
81+
82+
mimxrt_csi_init();
83+
8184
#if MICROPY_PY_BLUETOOTH
8285
mp_bluetooth_hci_init();
8386
#endif
@@ -164,6 +167,7 @@ int main(void) {
164167
#if MICROPY_PY_MACHINE_I2S
165168
machine_i2s_deinit_all();
166169
#endif
170+
mimxrt_csi_deinit();
167171
#if MICROPY_PY_BLUETOOTH
168172
mp_bluetooth_deinit();
169173
#endif

0 commit comments

Comments
 (0)