File tree Expand file tree Collapse file tree 4 files changed +760
-0
lines changed Expand file tree Collapse file tree 4 files changed +760
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,36 @@ if(CONFIG_TESTING_DRIVER_TEST)
183
183
endif ()
184
184
endif ()
185
185
186
+ if (CONFIG_I2C_DRIVER AND CONFIG_I2C_SLAVE_DRIVER )
187
+ nuttx_add_application (
188
+ NAME
189
+ cmocka_driver_i2c_write
190
+ PRIORITY
191
+ ${CONFIG_TESTING_DRIVER_TEST_PRIORITY}
192
+ STACKSIZE
193
+ ${CONFIG_TESTING_DRIVER_TEST_STACKSIZE}
194
+ MODULE
195
+ ${CONFIG_TESTING_DRIVER_TEST}
196
+ DEPENDS
197
+ cmocka
198
+ SRCS
199
+ drivertest_i2c_write.c )
200
+
201
+ nuttx_add_application (
202
+ NAME
203
+ cmocka_driver_i2c_read
204
+ PRIORITY
205
+ ${CONFIG_TESTING_DRIVER_TEST_PRIORITY}
206
+ STACKSIZE
207
+ ${CONFIG_TESTING_DRIVER_TEST_STACKSIZE}
208
+ MODULE
209
+ ${CONFIG_TESTING_DRIVER_TEST}
210
+ DEPENDS
211
+ cmocka
212
+ SRCS
213
+ drivertest_i2c_read.c )
214
+ endif ()
215
+
186
216
if (CONFIG_DEV_GPIO )
187
217
nuttx_add_application (
188
218
NAME
Original file line number Diff line number Diff line change @@ -88,6 +88,14 @@ PROGNAME += cmocka_driver_i2c_spi
88
88
endif
89
89
endif
90
90
91
+ ifneq ($(CONFIG_I2C_DRIVER )$(CONFIG_I2C_SLAVE_DRIVER ) ,)
92
+ MAINSRC += drivertest_i2c_write.c
93
+ PROGNAME += cmocka_driver_i2c_write
94
+
95
+ MAINSRC += drivertest_i2c_read.c
96
+ PROGNAME += cmocka_driver_i2c_read
97
+ endif
98
+
91
99
ifneq ($(CONFIG_DEV_GPIO ) ,)
92
100
PROGNAME += cmocka_driver_gpio
93
101
MAINSRC += drivertest_gpio.c
You can’t perform that action at this time.
0 commit comments