Draft
Show file tree
Hide file tree
Changes from all commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Original file line numberDiff line numberDiff line change
Expand Up@@ -73,7 +73,6 @@ CFLAGS += \
-DCONFIG_WCHAR_BUILTIN \
-DCONFIG_HAVE_DOUBLE \
-DNDEBUG \
-Dmain=spresense_main \
-D_estack=__stack \
-DCIRCUITPY_BOARD_ID="\"$(BOARD)\"" \
-c \
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -169,7 +169,7 @@ void common_hal_camera_deinit(camera_obj_t *self) {
return;
}

video_uninitialize();
video_uninitialize(camera_dev.devpath);

close(camera_dev.fd);
camera_dev.fd = -1;
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -165,3 +165,11 @@ void port_interrupt_after_ticks(uint32_t ticks) {
void port_idle_until_interrupt(void) {
// TODO: Implement sleep.
}

// Wrap main in spresense_main
extern void main(void);
extern int spresense_main(int argc, FAR char *argv[]);
int spresense_main(int argc, FAR char *argv[]) {
main();
return 0;
}