Commit Graph

3928 Commits

Author SHA1 Message Date
Kwabena W. Agyeman
5b993fa765 imlib/jpege: Fix jpeg timing code. 2024-02-17 23:20:48 -08:00
Ibrahim Abdelkader
9b8e39c608
Merge pull request #2156 from kwagyeman/kwabena/update_lib_tf_again
lib/libtf: Fixed missing tensorflow operators crash.
2024-02-18 09:13:49 +02:00
Ibrahim Abdelkader
c0ee9a967f
Merge pull request #2068 from kwagyeman/kwabena/add_user_spi_display_control
modules/py_display: Add user SPI LCD register control.
2024-02-18 00:39:25 +02:00
Kwabena W. Agyeman
bee933d9d2 lib/libtf: Fixed missing tensorflow operators crash. 2024-02-17 14:32:10 -08:00
Kwabena W. Agyeman
59fea5bc52 imlib/jpege: Improve jpeg YUV422/420 UV sub-sampling speed. 2024-02-16 16:51:12 -08:00
Kwabena W. Agyeman
4fe7fb63b9 imlib: Remove mul(). 2024-02-16 11:49:19 -08:00
Kwabena W. Agyeman
179888f233 modules: Add controller and bus write support to spi display. 2024-02-15 13:45:42 -08:00
Kwabena W. Agyeman
7d1f378a08 modules: Change dsi read/write to generic bus read/write. 2024-02-15 13:43:03 -08:00
iabdalkader
694e783f14 boards/ARDUINO_GIGA: Enable GC2145 driver. 2024-02-15 21:06:19 +01:00
Ibrahim Abdelkader
17412e544c
Merge pull request #2151 from openmv/ov5640_gc2145_fix
misc: Support using GC2145 and OV5640 at the same time.
2024-02-15 22:05:33 +02:00
Ibrahim Abdelkader
3f1b71cb48
Merge pull request #2147 from kwagyeman/kwabena/remove_cartoon
imlib: Remove cartoon() method.
2024-02-15 22:02:33 +02:00
iabdalkader
a62d606467 misc: Support using GC2145 and OV5640 at the same time.
Both sensors have the same I2C address, so can't be enabled at the
same time. This patch tries to read a byte-sized address first,
if GC2145 chip id is not read back, then it retries reading wide
address. I tested this with RT1060 and H7 and I can detect the OV5640
fine.
2024-02-15 21:01:47 +01:00
Kwabena W. Agyeman
c017cde2bb ports/stm32: Move instances to init functions. 2024-02-14 17:02:29 -08:00
Kwabena W. Agyeman
567cc08281 ports/stm32: Fix setting freq to zero bug. 2024-02-14 16:57:43 -08:00
Kwabena W. Agyeman
c5cf3cf498 ports/stm32: Fix xclk duty cycle to 50%. 2024-02-14 16:53:57 -08:00
Ibrahim Abdelkader
78c7d1aa43
Merge pull request #2140 from kwagyeman/kwabena/remove_slow_stuff
modules/py_image: Remove div() method.
2024-02-14 09:39:17 +02:00
Ibrahim Abdelkader
82b61a8553
Merge pull request #2138 from kwagyeman/kwabena/move_ksize_helper
imlib: Add ksize helper.
2024-02-14 09:37:58 +02:00
Kwabena W. Agyeman
055a468b83 imlib: Remove cartoon() method. 2024-02-12 20:27:41 -08:00
Kwabena W. Agyeman
31847bdac7 imlib: Simplify binary mask and zero code. 2024-02-12 18:19:31 -08:00
Ibrahim Abdelkader
32b7075bc6
Merge pull request #2141 from openmv/sensor_utils_reconfigure
ports/all: Add a sensor function to reconfigure hardware if/when needed.
2024-02-12 22:30:19 +02:00
Ibrahim Abdelkader
afe7087b5e
Merge pull request #2123 from kwagyeman/kwabena/enable_edma
ports/mimxrt: Enable edma memcpy.
2024-02-12 22:30:01 +02:00
Kwabena W. Agyeman
63edb776c3 ports/mimxrt: Enable edma memcpy. 2024-02-12 12:05:24 -08:00
iabdalkader
ebc4c6c831 ports/all: Add a sensor function to reconfigure hardware if/when needed.
sensor_dcmi_config function was called every time the pixel format changed,
and typically reconfigured the capture interface. This originated from the
stm32 port, which required reconfiguring the DCMI if the pixel format changed.
However, most ports only require configuring the capture interface once
during initialization (for example nrf, rp2 and mimxrt ports).
The new sensor_config function is called after a setting that may require
reconfiguring the hardware changes, such as such as window size, frame size,
or pixel format. The exact setting that has changed is passed to the function,
allowing ports to decide whether to do a full reconfiguration of the hardware,
or just ignore it based on the changed setting.
2024-02-12 18:32:36 +01:00
Ibrahim Abdelkader
262eb98e43
Merge pull request #2133 from kwagyeman/kwabena/tensor_flow_update_2_2024
modules/py_tf: Refactor regression() code to handle arrays correctly.
2024-02-11 21:37:05 +02:00
Kwabena W. Agyeman
84cca7c6ca modules/py_image: Optimize invert and negate. 2024-02-10 11:54:26 -08:00
Kwabena W. Agyeman
7c932602e2 modules/py_image: Remove div() method. 2024-02-10 11:49:17 -08:00
Kwabena W. Agyeman
70ea77c044 imlib: Add ksize helper. 2024-02-10 11:24:57 -08:00
Kwabena W. Agyeman
61ec9006bb hal/sensor_utils: Allow DMA memcpy fallback to CPU. 2024-02-10 10:42:30 -08:00
Kwabena W. Agyeman
7c6105e54c ports/mimxrt: Use hardware byteswap support. 2024-02-10 10:31:52 -08:00
Kwabena W. Agyeman
c5ec576c11 modules/py_tf: Refactor regression() code to handle arrays correctly. 2024-02-09 11:43:37 -08:00
iabdalkader
b69f9306d4 boards/NICLA_VISION: Reduce flash usage. 2024-02-09 16:50:16 +02:00
iabdalkader
602530c5fd imlib: Add config options for find_features. 2024-02-09 16:08:12 +02:00
iabdalkader
1b58433320 imlib: Refactor collections linked list.
- Remove unused linked list functions.
- Remove iterator functions and replace them with a list_for_each macro.
Note the smaller iterator functions may Not have been inlined because
we -fno-inline-small-functions is used.
- Replace iterator_get which used memcpy, with a cast.
- Add list_insert and list_remove functions.
2024-02-07 13:25:00 +02:00
Ibrahim Abdelkader
3803e7d5fa
Merge pull request #2131 from openmv/refactor_boardconfig
misc: Refactor board config files.
2024-02-06 21:23:40 +02:00
iabdalkader
bc5222df03 misc: Refactor board config files.
- Rename options more consistently.
- Add OMV prefix to every config option.
- Replace the ST-specific DCMI prefix with CSI.
- Remove the clock source defined in every header to a common enum.
- Remove obsolete board config options.
2024-02-06 21:20:56 +02:00
Ibrahim Abdelkader
4d22163733
Merge pull request #2082 from kwagyeman/kwabena/pure_termal_example_update
scripts/examples: Add working Pure Thermal OpenMV example.
2024-02-04 11:38:13 +02:00
Ibrahim Abdelkader
bd3aa0494e
Merge pull request #2089 from kwagyeman/kwabena/fix_yuv_shift
ports: Add yuv shift to match bayer shift.
2024-02-04 11:37:29 +02:00
iabdalkader
e7087367e3 misc: Add custom board reset function. 2024-02-04 11:07:24 +02:00
Kwabena W. Agyeman
b57864ea11 scripts/examples: Add working Pure Thermal OpenMV example. 2024-02-03 12:06:04 -08:00
iabdalkader
725dcdd5cf boards/all: Enable OMA_ENABLE_DMA_MEMCPY for boards that support it. 2024-02-03 09:07:06 +02:00
iabdalkader
345b80358d ports/all: Refactor frame buffer line copying code. 2024-02-03 09:07:02 +02:00
Ibrahim Abdelkader
27161405b4
Merge pull request #2129 from openmv/nrf_sensor_format
misc: Code formatting.
2024-02-03 09:03:47 +02:00
iabdalkader
ae54a50663 misc: Code formatting. 2024-02-03 09:01:04 +02:00
iabdalkader
db65ab81d8 ports/all: Refactor frame rate control. 2024-02-03 08:59:52 +02:00
Ibrahim Abdelkader
f1f1bd1258
Merge pull request #2126 from openmv/update_micropython_fork
micropython: Update fork to fix shared TinyUSB HS config.
2024-02-02 10:37:21 +02:00
iabdalkader
759b4e05d8 micropython: Update fork to fix shared TinyUSB HS config. 2024-02-02 10:31:58 +02:00
Kwabena W. Agyeman
9b0dc3458a common/sensor: Add comments about bayer patterns. 2024-02-01 18:12:17 -08:00
Kwabena W. Agyeman
b5d9bbca30 ports: Move first_line and drop_frame to sensor.c. 2024-02-01 17:57:25 -08:00
Kwabena W. Agyeman
018f2eaed1 ports: Move copy_transposed_line to sensor.h. 2024-02-01 17:40:23 -08:00
iabdalkader
cec66374fb ports/stm32: Scan devices once per scan.
This saves boot time and also fixes an issue with some image
sensors.
2024-01-31 22:15:24 +02:00
iabdalkader
d04209e083 hal/omv_i2c: Update I2C flags. 2024-01-31 17:25:14 +02:00
Kwabena W. Agyeman
7a33d891b2 modules/py_fir: Fix mlx data root pointer. 2024-01-30 22:30:32 -08:00
Ibrahim Abdelkader
fce8e44989
Merge pull request #2098 from xue-singtown/master
imlib/draw: Add anti aliasing in draw_line.
2024-01-30 20:49:44 +02:00
xue-singtown
25f760991e imlib/draw: Add anti aliasing in draw_line. 2024-01-30 17:39:42 +08:00
Ibrahim Abdelkader
a3be7d6fa8
Merge pull request #2088 from kwagyeman/kwabena/fix_bayer
ports: Fix sensor bayer image with cropping and transpose.
2024-01-27 11:16:59 +02:00
Ibrahim Abdelkader
b792c592b2
Merge pull request #2117 from bitbank2/master
imlib/jpegd: Fix jpeg decode for non-multiple of 8.
2024-01-26 20:16:49 +02:00
Laurence Bank
19d1b11eef imlib/jpegd: Fix jpeg decode for non-multiple of 8. 2024-01-26 18:08:47 +00:00
Ibrahim Abdelkader
0afc4c6574
Merge pull request #2116 from openmv/sensor_abort_args
ports/all: Allow sensor_abort() to be called from different contexts.
2024-01-26 19:47:32 +02:00
iabdalkader
d478f19326 ports/all: Allow sensor_abort() to be called from different contexts.
This patch removes the duplicated `sensor_abort()` logic in the stm32 and mimxrt ports.
This is done by adding a `flush_fifo` argument, which controls the flush operation, and
a `in_irq` argument , which indicates whether `sensor_abort()` is called from within an
IRQ context or not.
2024-01-26 19:42:48 +02:00
iabdalkader
955c8ae42e micropython: Update Arduino boards pins. 2024-01-26 10:37:42 +02:00
iabdalkader
9999e0a9ea imlib: Combine framebuffer reset and flush.
To simplify the API, a single function is now used to flush old
frames only, or reset and drop all frames.
2024-01-26 09:05:45 +02:00
Ibrahim Abdelkader
609a882c68
Merge pull request #2114 from kwagyeman/kwabena/fix_comment
ports: Fix sensor abstraction layer comment.
2024-01-26 08:40:19 +02:00
Kwabena W. Agyeman
91250fba30 ports: Fix sensor abstraction layer comment. 2024-01-25 12:56:15 -08:00
Kwabena W. Agyeman
78a0d03ab3 port/mimxrt: Add sensor.JPEG support. 2024-01-24 18:44:56 -08:00
Kwabena W. Agyeman
01c2a8417c boards/OPENMV_RT1060: Update line buffer size to handle max image resolution. 2024-01-24 18:44:56 -08:00
Kwabena W. Agyeman
1f4bbd32a1 boards/OPENMV_RT1060: Update framebuffer size to maximum. 2024-01-24 18:44:56 -08:00
Kwabena W. Agyeman
6d640d8a9a ports/mimxrt: Fix mimxrt sensor.set_windowing(). 2024-01-24 18:44:56 -08:00
Kwabena W. Agyeman
391c1752f6 ports/mimxrt: Add frame_callback support. 2024-01-24 16:58:11 -08:00
Kwabena W. Agyeman
b4a57ffca2 ports/mimxrt: Add set_framerate support. 2024-01-24 16:58:11 -08:00
Ibrahim Abdelkader
baa8a4ee58
Merge pull request #2113 from kwagyeman/kwabena/fix_gamma_bug
modules/py_image: Fix bug with gamma arguments.
2024-01-24 20:57:06 +02:00
Kwabena W. Agyeman
64a02db1c7 micropython: Add back IMXRT CAN Driver. 2024-01-24 10:13:24 -08:00
Kwabena W. Agyeman
8540d44aa2 modules/py_image: Fix bug with gamma arguments. 2024-01-24 10:11:33 -08:00
Kwabena W. Agyeman
ab7f4323fa sensors/paj6100: Fix driver for RT1062. 2024-01-23 17:20:34 -08:00
Kwabena W. Agyeman
29076f597e board/OPENMV_RT1060: Enable ISP Ops. 2024-01-23 12:31:03 -08:00
Kwabena W. Agyeman
49dc731344 boards/OPENMV_RT1060: Enable ulab. 2024-01-22 21:48:33 -08:00
Kwabena W. Agyeman
11c1862345 micropython: Fix deepsleep on mimxrt1062. 2024-01-22 14:34:41 -08:00
iabdalkader
f42fa85873 ports/all: Remove custom pendsv prototypes. 2024-01-20 10:18:47 +02:00
iabdalkader
8da2436c05 ports/all: Refactor PendSV code.
All ports use common PendSV code now, with port-specific
PendSV entries defined in pendsv.h files.
2024-01-20 10:02:56 +02:00
Kwabena W. Agyeman
3b263c3a68 boards: Enable OV5640 Autofocus firmware and add example. 2024-01-19 16:21:04 -08:00
iabdalkader
eec8640d7e misc: Use LD wrap for redirecting serial data to TinyUSB debug code.
Prior to this update, each port had to be patched to call TinyUSB
debugging function. Now these wrappers will call the port's functions
if debugging is not enabled.
2024-01-19 18:09:49 +02:00
iabdalkader
801cb29d6c misc: Update to Arm GNU Toolchain 13.2.rel1. 2024-01-17 10:47:09 +02:00
iabdalkader
8c574f3c9b micropython: Disable GC scanning of BSS.
We no longer need this, since all global pointers are now referenced by
root pointers.
2024-01-17 09:58:53 +02:00
Kwabena W. Agyeman
1f15790cb1 imlib/fmath: Fix compiling fast_expf. 2024-01-17 09:46:36 +02:00
Kwabena W. Agyeman
b3ce9d6302 imlib/qrcode: Fix new GCC compile issues. 2024-01-17 09:29:18 +02:00
Kwabena W. Agyeman
b09dbbdd47 imlib/filter: Fix offset argument being truncated. 2024-01-17 09:29:18 +02:00
iabdalkader
1601f8f029 misc: Fix errors triggered by disabling specific features. 2024-01-17 09:17:15 +02:00
Ibrahim Abdelkader
d0d234568d
Merge pull request #2094 from openmv/cmsis_update
ports/all: Update to CMSIS version 5.9.0.
2024-01-16 19:56:26 +02:00
iabdalkader
78b9daf2d6 boards/all: Add CMSIS_MCU_H board config option. 2024-01-16 19:20:14 +02:00
iabdalkader
9ac8540ed3 ports/all: Update code to support new CMSIS. 2024-01-16 19:20:09 +02:00
iabdalkader
9f56943cf3 hal/CMSIS: Update to CMSIS v5.9.0. 2024-01-16 17:48:43 +02:00
Ibrahim Abdelkader
5c6b34becb
Merge pull request #2093 from kwagyeman/kwabena/error_jpg_size
ports/stm32: Error on jpeg geometry mismatch.
2024-01-15 20:31:34 +02:00
Kwabena W. Agyeman
333fb2b5fe ports/stm32: Error on jpeg geometry mismatch. 2024-01-14 23:30:22 -08:00
Kwabena W. Agyeman
b101c58811 hal/cmsis: Move cmsis gcc extensions to new file. 2024-01-14 11:41:01 -08:00
Kwabena W. Agyeman
00500ccdef modules/sensor: Disable transpose for YUV422 images. 2024-01-12 18:51:27 -08:00
Kwabena W. Agyeman
c1eeaefd6a ports: Add yuv shift to match bayer shift. 2024-01-12 18:45:49 -08:00
Kwabena W. Agyeman
48d2f210ee ports: Fix sensor bayer image with cropping and transpose. 2024-01-12 18:09:48 -08:00
Ibrahim Abdelkader
87d2da4640
Merge pull request #1604 from kwagyeman/kwabena/hardware_jpeg_decoder
imlib: Enable hardware JPEG decoder.
2024-01-12 22:52:20 +02:00
Kwabena W. Agyeman
d459e604eb imlib: Rename jpeg encoder file. 2024-01-12 12:40:18 -08:00
Kwabena W. Agyeman
469519bad2 imlib: Mainline hardware jpeg decoder. 2024-01-12 12:40:17 -08:00
Ibrahim Abdelkader
d707d27fae
Merge pull request #2086 from kwagyeman/kwabena/minor_bug_fix
drivers/pixart: Fix buffer overflow case.
2024-01-12 20:40:32 +02:00
Ibrahim Abdelkader
b530b48651
Merge pull request #2077 from kwagyeman/kwabena/upgrade_cmm
modules/py_image: Upgrade ccm to work well with ulab.
2024-01-12 20:39:14 +02:00
Kwabena W. Agyeman
5a790790c8 drivers/pixart: Fix buffer overflow case. 2024-01-10 18:41:47 -08:00
Ibrahim Abdelkader
96e9caf586
Merge pull request #2057 from kwagyeman/kwabena/refactor_py_tf
modules/py_tf: Cleanup segment, detect, and callback data.
2024-01-08 16:15:47 +02:00
Kwabena W. Agyeman
dcecfaf91e modules/py_tf: Cleanup segment, detect, and callback data. 2024-01-07 12:50:44 -05:00
Ibrahim Abdelkader
c0a16c41a7
Merge pull request #2074 from kwagyeman/kwabena/get_threshold_fix
imlib/stats: Fix get_threshold A/B values.
2024-01-07 09:15:53 +02:00
Kwabena W Agyeman
36d5cecbd2
modules/py_image: Refactor isp ops to use mp_arg_parse. (#2076)
- modules/py_image: Refactor awb to use mp_arg_parse_all.
- modules/py_image: Refactor gamma to use mp_arg_parse.
2024-01-07 08:43:10 +02:00
Ibrahim Abdelkader
03dd8a423e
Merge pull request #2075 from kwagyeman/kwabena/fix_find_rects_roi
imlib/apriltag: Fix find_rects() roi parameter.
2024-01-06 12:44:01 +02:00
Kwabena W. Agyeman
b4821d890a boards/OPENMV_RT1060: Update UMM Heap Size to match H7 Plus. 2024-01-04 13:54:43 -05:00
Kwabena W. Agyeman
a99d9e09ea modules/py_image: Upgrade ccm to work well with ulab. 2024-01-03 22:27:08 -05:00
Kwabena W. Agyeman
dfabc5f816 imlib/apriltag: Fix find_rects() roi parameter. 2024-01-03 13:37:57 -05:00
Kwabena W. Agyeman
a2e15ae07b imlib/stats: Fix get_threshold A/B values. 2024-01-03 13:00:31 -05:00
iabdalkader
1c1cd5856c micropython: Update to MicroPython v1.22. 2024-01-03 11:09:33 +01:00
iabdalkader
c20b71f3b9 boards/ARDUINO_NANO_33_BLE_SENSE: Rename board to match upstream. 2024-01-03 11:09:33 +01:00
iabdalkader
f76e10580c hal/stm32: Update hal config. 2024-01-03 11:09:33 +01:00
iabdalkader
7df6694c3d modules/py_display: Update module definition macro. 2024-01-03 11:09:33 +01:00
iabdalkader
bf9d3e555d modules/py_tv: Use micropy atomic instead of irq functions. 2024-01-03 11:09:33 +01:00
iabdalkader
b64e3d625a boards/all: Update manifests. 2024-01-03 11:09:33 +01:00
Ibrahim Abdelkader
61501d2580
Merge pull request #2055 from kwagyeman/kwabena/fix_cs_issue
ports: Don't deinit the SSEL pin on stm32 and mimxrt.
2023-12-26 19:22:28 +02:00
Kwabena W. Agyeman
e8c38d4fa7 ports/stm32: Move SSEL pin deinit to omv_spi.c module. 2023-12-24 12:21:02 -08:00
iabdalkader
4e148000be misc: Bump firmware version. 2023-12-24 21:19:56 +01:00
Ibrahim Abdelkader
e4c0846c55
Merge pull request #2052 from kwagyeman/kwabena/fix_servicing_tiny_usb
ports/mimxrt: Service TinyUSB while waiting for sensor frames.
2023-12-24 15:21:09 +02:00
Kwabena W. Agyeman
4b37c0c82e ports/mimxrt: Service TinyUSB while waiting for sensor frames. 2023-12-23 09:04:33 -08:00
iabdalkader
ba754186f7 misc: Fix TinyUSB polling. 2023-12-23 15:38:39 +01:00
Ibrahim Abdelkader
9dd6e47e06
Merge pull request #2053 from kwagyeman/kwabena/fix_led_name
boards/OPENMV_RT1060: Fix default script LED pin name.
2023-12-23 12:02:38 +02:00
Kwabena W. Agyeman
03f45f7206 boards/OPENMV_RT1060: Fix default script LED pin name. 2023-12-22 13:41:39 -08:00
Kwabena W. Agyeman
6d5703f524 boards/OPENMV_RT1060: Enable high res apriltags. 2023-12-10 21:19:03 -08:00
Kwabena W. Agyeman
da42c9b540 modules/py_tv: Fix argument parsing. 2023-12-08 12:09:11 -08:00
Ibrahim Abdelkader
0d00e62b03
Merge pull request #2043 from kwagyeman/kwabena/mjpeg_fps_internal
modules/py_mjpeg: Calculate MJPEG FPS internally.
2023-12-05 21:29:08 +02:00
Ibrahim Abdelkader
90b33598e9
Merge pull request #2037 from Bexin3/master
boards/ARDUINO_GIGA: Enable OV5640.
2023-12-05 21:15:34 +02:00
Kwabena W. Agyeman
83229dcdfe modules/py_mjpeg: Calculate MJPEG FPS internally. 2023-12-05 11:03:31 -05:00
Ibrahim Abdelkader
96ffa1ffeb
Merge pull request #2031 from kwagyeman/kwabena/py_tf_fix_segment
modules/py_tf: Fix non-square image support.
2023-12-04 21:02:53 +02:00
Kwabena W. Agyeman
70b2db2bf4 modules/py_tf: Fix non-square image support. 2023-12-04 13:57:09 -05:00
iabdalkader
1ae4d24882 ports/All: Add support for passing variables to manifest files.
- Pulled from upstream.
2023-12-03 10:22:26 +01:00
iabdalkader
c20ee4c272 ports/mimxrt: Add CAN support. 2023-12-03 09:47:24 +01:00
Benjamin
b6aa0f653b boards/ARDUINO_GIGA: Enable OV5640.
Add support for OV5640 on GIGA R1 with AF enabled and highest stable clock.
2023-12-03 08:41:23 +00:00
iabdalkader
8486c6459b micropython: Update docs. 2023-12-01 17:26:34 +01:00
lxowalle
3cdb67b0a2 imlib: Fix imlib_midpoint_pool cannot select the centered area. 2023-12-01 09:49:06 +08:00
iabdalkader
eb488a1922 misc: Bump firmware version. 2023-11-29 18:24:20 +01:00
iabdalkader
e5f1705315 ports/all: Remove support for self-tests. 2023-11-29 17:42:16 +01:00
Ibrahim Abdelkader
1e454f4022
Merge pull request #2029 from openmv/refactor_boot_script_code
ports/all: Refactor common boot code.
2023-11-29 18:34:22 +02:00
iabdalkader
7094a69401 ports/nrf: Refactor common boot code. 2023-11-29 16:04:16 +01:00
iabdalkader
d57086e1b7 ports/stm32: Refactor common boot code. 2023-11-29 16:04:16 +01:00
iabdalkader
c7457f11ed ports/rp2: Refactor common boot code. 2023-11-29 16:04:13 +01:00
Ibrahim Abdelkader
a2a76c66c6
Merge pull request #2028 from kwagyeman/kwabena/simply_scaling
modules: Make int/floating image scaling behavior the same.
2023-11-27 08:44:30 +02:00
Kwabena W. Agyeman
8bd25d6cd7 modules: Make int/floating image scaling behavior the same. 2023-11-26 19:20:45 -05:00
iabdalkader
861ee0b9b2 ports/mimxrt: Refactor common boot code. 2023-11-26 17:33:22 +01:00
iabdalkader
2fe47234b3 misc: Refactor common boot code. 2023-11-26 17:33:22 +01:00
iabdalkader
803388efdb ports/mimxrt: Update led driver. 2023-11-26 17:29:30 +01:00
Ibrahim Abdelkader
d1cb045de6
Merge pull request #2025 from openmv/py_tf_fix_arg
modules/py_tf: Revert `load_to_fb` arg name.
2023-11-25 16:37:55 +02:00
Ibrahim Abdelkader
64f5249610
Merge pull request #2022 from kwagyeman/kwabena/fix_imx_openmv_disk
ports/mimxrt: Add .openmv_disk file.
2023-11-25 16:36:52 +02:00
iabdalkader
687c53ec16 modules/py_tf: Fix arg name. 2023-11-25 15:26:10 +01:00
iabdalkader
88845c573e ports/nrf: Refactor arg parsing. 2023-11-25 15:13:54 +01:00
iabdalkader
22c6c1a74a ports/stm32/modules: Refactor arg parsing. 2023-11-25 15:13:54 +01:00
iabdalkader
d25337b340 modules/py_tf: Refactor arg parsing. 2023-11-25 15:13:54 +01:00
iabdalkader
9e6e03eca4 modules/py_sensor: Refactor arg parsing. 2023-11-25 15:13:51 +01:00
iabdalkader
555e67ecd6 modules/py_gif: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
d15fc6b8d9 modules/py_imageio: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
3d679f5a6c modules/py_mjpeg: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
9b411a66da modules/py_tv: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
a4c0f20bfd modules/py_tof: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
08bf62a32f modules/py_fir: Refactor arg parsing. 2023-11-25 15:02:40 +01:00
iabdalkader
4773126560 modules/py_helper: Update helper functions.
- Add arg_to_float_array helper function.
- Add arg_to_minmax helper function.
- Add arg_to_float helper function.
- Remove py_helper_keyword_iterable.
2023-11-25 15:02:40 +01:00
Kwabena W. Agyeman
9cbf6057b5 ports/mimxrt: Add .openmv_disk file. 2023-11-23 10:37:19 -05:00
Ibrahim Abdelkader
25359054e7
Merge pull request #2015 from kwagyeman/kwabena/add_ioctl_for_fov_over_fps
sensors/gc2145: Add support for a wider FoV.
2023-11-17 19:52:09 +02:00
Kwabena W. Agyeman
55e12f2499 sensors/gc2145: Add support for a wider FoV. 2023-11-17 08:16:22 -05:00
Kwabena W. Agyeman
a925178ecb modules/py_image: Cleanup MP_DEFINES for helper functions. 2023-11-13 15:03:43 -08:00
Kwabena W. Agyeman
88274c88fe boards/ARDUINO_PORTENTA_H7: Disable unused camera modules. 2023-11-07 12:29:59 -08:00
Kwabena W. Agyeman
66567958c3 imlib: Add scaling and centering hints to draw_image. 2023-11-07 12:29:57 -08:00
iabdalkader
d434d920fe boards/ARDUINO_NICLA_VISION: Add Arduino pins. 2023-11-02 11:47:10 +01:00
Ibrahim Abdelkader
5f4c6763f2
Merge pull request #2008 from kwagyeman/kwabena/add_file_path_image_loading
modules: Allow arg_to_image to load images from paths.
2023-11-01 21:42:52 +02:00
Kwabena W. Agyeman
a6e8030724 modules: Add image file loading to screen drawing methods. 2023-11-01 12:33:22 -07:00
Kwabena W. Agyeman
3a9a51fa1b modules: Allow arg_to_image to load images from paths. 2023-11-01 12:31:00 -07:00
Kwabena W. Agyeman
1d52a9f759 modules: Refactor keyword_to_image helper function. 2023-10-30 18:08:22 -07:00
Ibrahim Abdelkader
a388b0711d
Merge pull request #1993 from kwagyeman/kwabena/add_hmirror_vflip_transpose_to_draw_image
imlib: Add hmirror, vflip, and transpose support to draw_image.
2023-10-30 18:21:32 +02:00
Kwabena W. Agyeman
3fc2480126 modules: Move palette constants to the image module. 2023-10-29 23:30:16 -07:00
Kwabena W. Agyeman
30ed69b306 imlib: Add hmirror, vflip, and transpose support to draw_image. 2023-10-29 23:08:11 -07:00
Kwabena W. Agyeman
fee9b435fa modules: Remove the static spi_display pointer. 2023-10-29 15:40:03 -07:00
Kwabena W. Agyeman
230fa1ca32 imlib: Add callback argument to draw_image. 2023-10-29 15:35:58 -07:00
Kwabena W. Agyeman
8ea9c98e00 imlib: Fix potential mjpeg bounds calculation bug. 2023-10-29 15:29:51 -07:00
Kwabena W. Agyeman
15c98c0762 imlib: Refactor imlib_draw_image_rect. 2023-10-29 15:28:22 -07:00
iabdalkader
8178c237cc modules/display: Refactor scale arg parsing. 2023-10-29 19:42:18 +01:00
iabdalkader
ca184b6d07 modules/helper: Add arg_to_scale helper. 2023-10-29 19:42:00 +01:00
iabdalkader
dc73c0e298 modules: Refactor py_helper_arg_to_image functions. 2023-10-29 18:39:15 +01:00
iabdalkader
161737092d modules/display: Switch to mp_arg_parse. 2023-10-29 17:17:50 +01:00
iabdalkader
f19f8918d2 modules/py_helper: Add helper functions to support mp_arg_parse.
Those new helper functions will be used later to refactor other functions.
2023-10-29 17:17:26 +01:00
Ibrahim Abdelkader
fb9379e1e1
Merge pull request #1976 from openmv/ff_refactor
misc: Refactor file management code.
2023-10-29 11:57:26 +02:00
Ibrahim Abdelkader
a99a8fad95
Merge pull request #1996 from kwagyeman/kwabena/fix_tv_bug
modules/tv: Fix image corruption when specifying image rect.
2023-10-27 22:32:35 +02:00
iabdalkader
6d4c4224a2 drivers/winc: Fix AP mode.
The `WEP` security mode has been deprecated since firmware 19.7.6
the only two supported modes now are open and WPA.
2023-10-27 22:18:45 +02:00
Kwabena W. Agyeman
d05c7a67c8 modules/tv: Fix image corruption when specifying image rect. 2023-10-27 12:37:03 -07:00
iabdalkader
b6cdf8de15 modules/py_winc: Make module more compatible with other WiFi modules. 2023-10-27 21:10:23 +02:00
Ibrahim Abdelkader
b65f639f82
Merge pull request #1994 from openmv/display_backlight
modules/display: Add support for Python backlight controllers.
2023-10-27 15:24:39 +02:00
iabdalkader
7bcdca8241 scripts/libraries: Refactor display module. 2023-10-27 12:14:47 +02:00
iabdalkader
ad44d4533f scripts/libraries: Add Python DAC and PWM backlight controllers. 2023-10-27 12:14:47 +02:00
iabdalkader
391ec443f6 modules/display: Add support for Python backlight controllers. 2023-10-27 12:14:46 +02:00
iabdalkader
274b4e915c boards/arduino_nano_33_ble_sense: Update board manifest.py. 2023-10-26 15:55:23 +02:00
iabdalkader
c4511338a2 micropython: Add MICROPY_NLR_RAISE_HOOK.
- This can be set from a custom mpconfigport.h file to call
fb_alloc_free or any other needed cleanup before an exception.
- The omvdummy stuff is no longer needed since a default empty
hook is defined.
2023-10-24 22:04:32 +02:00
iabdalkader
ec40364ed4 ports/all: Add custom mpconfigport file. 2023-10-24 22:03:38 +02:00
iabdalkader
1cd9a8ae68 modules/spi_display: Fix display args.
Arguments were parsed/used in the wrong order.
2023-10-23 16:36:40 +02:00
iabdalkader
d11c0b4669 micropython: Update docs. 2023-10-21 09:15:50 +02:00
iabdalkader
364cbce1d7 misc: Fix build when debugging is enabled. 2023-10-17 15:49:17 +02:00
iabdalkader
03f4dd75c6 imlib: Fix corner detection bug. 2023-10-17 15:01:43 +02:00
iabdalkader
c0753da1df stm32/boards/ARDUINO_GIGA: Add QSPI fix/workaround to early init. 2023-10-16 15:16:55 +02:00
iabdalkader
0a04368528 misc: Refactor file management code. 2023-10-15 17:51:35 +02:00
Ibrahim Abdelkader
e9ef4cda2d
Merge pull request #1975 from kwagyeman/kwabena/support_loading_bytearrays
imlib: Support creating images from bytearrays.
2023-10-15 10:07:34 +03:00
Kwabena W. Agyeman
6752c95ac3 imlib: Support creating images from bytearrays. 2023-10-14 10:03:30 -07:00
Ibrahim Abdelkader
a5c52bb75b
Merge pull request #1974 from kwagyeman/kwabena/fix_fsync
ports/mimxrt: Add support for fsync pin to snapshot.
2023-10-13 21:14:42 +03:00
Kwabena W. Agyeman
bac362b47a ports/mimxrt: Add support for fsync pin to snapshot. 2023-10-13 10:39:26 -07:00
Kwabena W. Agyeman
9f6046bc1c boards/OPENMV_RT1060: Add FSYNC pin and fixed swapped MOSI/MISO pins on SPI4. 2023-10-13 10:38:37 -07:00
Kwabena W. Agyeman
8c010b8ca6 sensors/mt9v0xx: Enable row noise correction. 2023-10-12 13:30:02 -07:00
iabdalkader
2aaff2a24e misc: Bump firmware version. 2023-10-10 16:05:37 +02:00
iabdalkader
b1f0e0d1c0 misc: Bump firmware version. 2023-10-10 15:40:41 +02:00
Ibrahim Abdelkader
76628b3719
Merge pull request #1971 from openmv/ov7670_vga_window
sensors/OV7670: Fix VGA window.
2023-10-10 16:08:51 +03:00
iabdalkader
99e46e9f04 sensors/OV7670: Fix VGA window. 2023-10-10 15:02:57 +02:00
Ibrahim Abdelkader
79a4e169d7
Merge pull request #1970 from openmv/sensor_auto_func_fail
modules/py_sensor: Print warning on missing sensor controls.
2023-10-10 13:17:53 +03:00
iabdalkader
dbf4996f21 modules/py_sensor: Print warning on missing sensor controls.
Will not raise an exception if a sensor control is not implemented,
this will allow sharing more scripts between different sensors.
2023-10-10 12:00:21 +02:00
Ibrahim Abdelkader
21ce6f70a0
Merge pull request #1960 from kwagyeman/kwabena/super_morph
imlib: Improve morph grayscale/rgb565 performance by 2.5x.
2023-10-10 09:42:32 +03:00
Kwabena W. Agyeman
e3b5ac7fe9 imlib: Improve morph grayscale/rgb565 performance by 2.5x. 2023-10-09 12:33:35 -07:00
Ibrahim Abdelkader
2e094d5522
Merge pull request #1964 from kwagyeman/kwabena/fix_bug
imlib: Fix in-place scaling bug.
2023-10-09 17:37:38 +03:00
iabdalkader
0cd2e9cbd4 boards/ARDUINO_GIGA: Add Arduino pins. 2023-10-09 16:19:25 +02:00
iabdalkader
023e89a535 micropython/drivers/cywbt.c: Sync CYWBT driver with upstream. 2023-10-09 13:36:41 +02:00
Kwabena W. Agyeman
a2861040e3 imlib: Fix in-place scaling bug. 2023-10-08 22:51:55 -07:00
iabdalkader
088bf957e0 boards/arduino_nano_33_ble_sense: Add LED pins. 2023-10-06 19:54:44 +02:00
iabdalkader
c5b4d061ad scripts/libraries: Add machine extension module. 2023-10-06 19:19:10 +02:00
Ibrahim Abdelkader
6f596c901d
Merge pull request #1956 from kwagyeman/kwabena/cleanup_dma2d
imlib: Fix DMA2D cache line access.
2023-10-06 16:31:40 +03:00
iabdalkader
02eb33995a ports/stm32: Fix display portrait mode. 2023-10-06 15:18:32 +02:00
Kwabena W. Agyeman
522a363f5c imlib: Remove redundant code in draw.c. 2023-10-05 17:48:31 -07:00
Kwabena W. Agyeman
bcc1eacd69 imlib: Fix DMA2D cache line access. 2023-10-05 17:47:37 -07:00
Kwabena W. Agyeman
8c8f23b605 ports/stm32: Improve LCD display update interrupt code. 2023-10-05 16:56:27 -07:00
iabdalkader
7f795dbb2a boards: Add support for Arduino Giga. 2023-10-05 16:05:52 +02:00
iabdalkader
b2852ecd04 micropython: Fix I2C4 support. 2023-10-05 15:52:27 +02:00
iabdalkader
99140040e2 ports/stm32: Call sensor MDMA handler if needed. 2023-10-04 20:51:41 +02:00
iabdalkader
5c1599c14e ports/stm32: Remove hardcoded MDMA channels.
MDMA channels can now be defined in board config files.
2023-10-04 20:51:36 +02:00
Ibrahim Abdelkader
9b5b2476c4
Merge pull request #1938 from kwagyeman/kwabena/sensor_full_control
sensors: Add full control.
2023-10-04 20:26:09 +03:00
iabdalkader
65524162b2 ports/stm32: Fix DSI display timing. 2023-10-04 19:16:58 +02:00
Kwabena W. Agyeman
6e99dcbdb4 sensors/ov5640: Fix exposure calculation. 2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
74ff2d28f4 sensors: Fix gain calculation math accuracy. 2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
53d69d3473 sensors/ov5640: Add night mode control. 2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
25d4f197c1 sensors/ov5640: Add black level calibration control. 2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
abfd430854 sensors/ov7725: Add ioctl to control nightmode. 2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
33db84ebdc sensors/ov7725: Add controls for blc. 2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
3fde9542a8 sensors: Add stubs for controlling sensor blc. 2023-10-03 14:18:06 -07:00
Ibrahim Abdelkader
1bc70b0bef
Merge pull request #1946 from kwagyeman/kwabena/fix_transpose_glitches
ports/stm32: Drop frames on transpose corruption.
2023-10-03 22:27:30 +03:00
Kwabena W. Agyeman
63deacdd51 ports/stm32: Drop frames on transpose corruption. 2023-10-03 08:59:12 -07:00
iabdalkader
99ae306b99 sensors/OV7670: Implement flip and mirror controls. 2023-10-03 13:05:31 +02:00
Kwabena W. Agyeman
8fb6dfd88b imlib: Speed up transpose by 5X. 2023-10-02 18:37:40 -07:00
iabdalkader
2b5b7963bb scripts/libraries: Replace drivers with upstream versions. 2023-10-02 14:29:41 +02:00
iabdalkader
55dfec4f06 ports/stm32: Enable DSI display support. 2023-10-01 16:49:18 +02:00
iabdalkader
6c63368297 boards/All: Update board display configuration. 2023-10-01 16:49:18 +02:00
iabdalkader
227824aaca micropython: Refactor all display related modules. 2023-10-01 16:49:18 +02:00
iabdalkader
7467731a38 micropython: Add TFP410 DVI serializer module. 2023-10-01 16:49:18 +02:00
iabdalkader
86ad6dcdbd micropython: Add FT5X06 touch panel driver module. 2023-10-01 16:49:18 +02:00
iabdalkader
9471f94cd1 micropython: Add display data channel module. 2023-10-01 16:49:18 +02:00
iabdalkader
43a4e5519e drivers: Add CEC driver. 2023-10-01 16:49:18 +02:00
iabdalkader
9344c3b743 boards/All: Rename LED pins more consistently. 2023-10-01 16:24:42 +02:00
iabdalkader
311d401cc5 sensors/OV7670: Fix VGA window. 2023-10-01 14:19:30 +02:00
iabdalkader
ae327c186d sensors: Support scanning multiple devices on the camera bus.
To support boards that have multiple devices on the camera bus,
the scan now uses a list to return all detected addresses, and
it will check them all for a valid sensor.
2023-09-27 19:00:40 +02:00
iabdalkader
7a022148f2 micropython: Fix QSPI reset command.
Need to add a delay after a reset and before issuing any other
commands.
2023-09-27 18:30:30 +02:00
Ibrahim Abdelkader
2e8d5d505d
Merge pull request #1936 from openmv/microspeech_fix
ports/stm32: Fix microspeech demo.
2023-09-25 14:13:22 +03:00
iabdalkader
0648071141 ports/stm32: Fix microspeech demo.
- Need to poll events to schedule the audio callback after switching
from pendsv.
- Fixes #1904
2023-09-25 12:38:13 +02:00
iabdalkader
13293d7416 ports/stm32: Misc fixes.
- Link user switch module.
- Add missing string header for debug builds.
2023-09-25 12:29:46 +02:00
Kwabena W. Agyeman
d7687260fe drivers: Update SPI code to not reconfigure bus dynamically. 2023-09-18 12:36:13 -07:00
Kwabena W. Agyeman
c37260df95 ports/mimxrt: Enable support for all py modules. 2023-09-16 22:24:49 -07:00
Kwabena W. Agyeman
4639b1eb2f drivers: Make all spi based py modules cross platform. 2023-09-16 13:24:24 -07:00
Kwabena W. Agyeman
e46776795b drivers: Upgrade SPI driver to support py drivers on all boards. 2023-09-16 13:21:33 -07:00
luzpaz
971f14daab misc: Fix typos in src/omw subdirectory
Found via `codespell -q 3 -S "*.pgm,*.ppm,./src/hal,./src/drivers" -L als,dout,erro,extint,hsi,inout,ois,paeth,re-use,ser,serie`
2023-09-16 17:01:42 +00:00
iabdalkader
081731abd0 micropython: Remove MICROPY_STREAMS_POSIX_API from board config files. 2023-09-15 15:03:59 +02:00
Kwabena W. Agyeman
ed3e4ee89c ports/imxrt/sensor: Fix sensor_set_xclk freq to accept any frequency. 2023-09-13 16:38:05 -07:00
Kwabena W. Agyeman
16c9faa179 sensors: Allow disabling settling time delays. 2023-09-10 18:47:57 -07:00
Ibrahim Abdelkader
d35b6f51d5
Merge pull request #1919 from kwagyeman/kwabena/mt9v034_exposure
sensors/mt9v0xx: Fix exposure calculation.
2023-09-09 19:28:56 +03:00
Kwabena W. Agyeman
b1a823f547 drivers: Move alloc alignment macros to the common header. 2023-09-08 10:49:24 -07:00
Ibrahim Abdelkader
3bb8d12a30
Merge pull request #1914 from kwagyeman/kwabena/fix_invalid_instructions
imlib/fmath: Fix invalid fp instruction usage on cortex-m4.
2023-09-08 11:50:57 +03:00
Kwabena W. Agyeman
2ee188c41b sensors/mt9v0xx: Fix exposure calculation. 2023-09-07 18:19:05 -07:00
Kwabena W. Agyeman
ab0936a747 imlib/fmath: Fix invalid fp instruction usage on cortex-m4. 2023-09-07 18:12:16 -07:00
Kwabena W. Agyeman
a5066fd939 imlib: Fix int maybe breaking. 2023-09-01 19:27:55 -07:00
iabdalkader
8a90e070a8 misc: Bump firmware version. 2023-08-23 18:50:55 +02:00
Ibrahim Abdelkader
8ffedbd1f7
Merge pull request #1901 from openmv/omvrt_1060_pinout
ports/mimxrt: Update port to support OPENMV_RT1060 REV2.
2023-08-23 12:19:05 +03:00
Ibrahim Abdelkader
22bf517587
Merge pull request #1906 from kwagyeman/kwabena/fix_sd_card_detect
boards/OPENMV_RT1060: Fix SD Card Detection on power-on.
2023-08-23 12:10:06 +03:00
Kwabena W. Agyeman
3accc5a306 ports/mimxrt: Add rtc alarm/wakeup functionality. 2023-08-20 14:18:30 +02:00
iabdalkader
437a6cd525 ports/mimxrt: Update port to support OPENMV_RT1060 REV2. 2023-08-20 14:18:24 +02:00
Kai
b4ec242949
ports/imxrt: Fix compile error when disabling sdram. 2023-08-12 18:51:55 +08:00
Kwabena W. Agyeman
bd11076b87 boards/OPENMV_RT1060: Fix SD Card Detection on power-on. 2023-08-02 16:18:07 -07:00
Kwabena W. Agyeman
0695ebe506 boards/OPENMV_RT1060: Fix blinking LED polarity. 2023-07-31 11:40:39 -07:00
Ibrahim Abdelkader
90ab4dc12c
Merge pull request #1900 from openmv/docs_update
micropython: Update docs.
2023-07-22 02:33:36 +03:00
iabdalkader
ca628f1abe micropython: Update docs. 2023-07-22 02:18:18 +03:00
Kwabena W. Agyeman
2a518eb224 misc: Handle short packets for debug mode in TinyUSB. 2023-07-16 13:31:12 -07:00
iabdalkader
26bd27bdbb misc: Rename common header. 2023-07-04 12:53:23 +02:00
iabdalkader
0195473235 ports/stm32: Refactor I2C bus definitions. 2023-07-03 18:35:14 +02:00
iabdalkader
35ed56310d misc: Format code. 2023-07-02 21:49:23 +02:00
iabdalkader
d3840037d4 misc: Disable formatting for auto-generated files and some types. 2023-07-02 16:42:15 +02:00
iabdalkader
187840a9f0 boards/OPENMV_RT1060: Add missing flash size macro. 2023-07-02 12:07:00 +02:00
iabdalkader
4f1152c749 imlib: refactor py blob code. 2023-07-02 11:51:36 +02:00
iabdalkader
1e7be46001 micropython: Update submodule.
* Add board config files.
2023-06-28 23:21:44 +02:00
iabdalkader
989e7cc029 boards/OPENMV_RT60: Add board config files. 2023-06-28 23:09:36 +02:00
iabdalkader
a7033e1b3a ports/mimxrt: Add MIMXRT OMV port. 2023-06-28 22:53:03 +02:00
iabdalkader
9e6efd28c9 hal/mimxrt: Add MIMXRT HAL. 2023-06-28 22:53:00 +02:00
iabdalkader
8c34e2b713 ports/stm32: Call gc_sweep before deinitializing networking drivers.
* Move GC before any deinitializing any drivers as some of them
still need IRQs to clean up.
2023-06-28 17:17:27 +02:00
iabdalkader
e5b3604bd6 ports/stm32: Link CYW43 BTHCI.
* The default/weak bthci was used.
2023-06-27 21:37:57 +02:00
Ibrahim Abdelkader
e6572097b1
Merge pull request #1877 from openmv/gpio_hal_refactor
ports/stm32: Share GPIO IRQ descriptor with other ports.
2023-06-27 19:09:46 +03:00
iabdalkader
7e355bca88 ports/stm32: Share GPIO IRQ descriptor with other ports.
* Move GPIO IRQ descriptor to common HAL to share it with other ports,
and reduce the default descriptor size, while allow ports to add bits.
2023-06-27 18:01:17 +02:00
tejalbarnwal
2d8f3f94a1 lib/libtf: Update libtf regression to support 2D input.
updated tf_regregression to take ulab array as input

updated tf_regregression to take ulab array as input

updated libtf_regression function name

included ulab ndarray

updated libtf header file
2023-06-26 18:46:58 +05:30
iabdalkader
0e91aac4a3 lib/libtf: Update libtf to support 2D regression.
* Note libtf_regression_1Dinput_1Doutput is kept for backwards
compatibility.
2023-06-26 09:57:09 +02:00
Ibrahim Abdelkader
3fdad014f0
Merge pull request #1872 from openmv/pixart_spi_fix
drivers/pixart: Fix spi send/recv functions.
2023-06-24 22:38:40 +03:00
iabdalkader
b27aed8138 ports/stm32: Fix SPI HAL DMA/blocking transfers. 2023-06-24 21:12:20 +02:00
iabdalkader
c5ca54157d drivers/pixart: Fix spi send/recv functions. 2023-06-24 21:11:51 +02:00
iabdalkader
cd9bac9558 ports/stm32: Switch IMU module to the new SPI HAL. 2023-06-17 23:10:17 +02:00
iabdalkader
8c1cb53c65 drivers/pixart: Switch to the new SPI HAL. 2023-06-17 20:37:28 +02:00
iabdalkader
dd9d803ce5 drivers/winc1500: Switch to the new SPI HAL. 2023-06-17 20:14:26 +02:00
iabdalkader
f68f6d70e4 sensors/lepton: Use new VOSPI/SPI HAL.
* This change makes lepton sensor driver completely generic,
by moving all of the VOSPI code to vospi.c, which in turn
uses the new OMV SPI HAL.
2023-06-17 19:21:34 +02:00
iabdalkader
28f808f54f hal/omv: Add SPI HAL. 2023-06-17 17:52:49 +02:00
iabdalkader
67cd9727db ports/stm32: Add DMA utils. 2023-06-17 13:25:29 +02:00
iabdalkader
6975a6c11c ports/stm32: Refactor CEC module to use new GPIO HAL. 2023-06-10 22:31:45 +02:00
iabdalkader
e7b5a3f7e0 ports/all: Refactor cambus code.
* Rename cambus to omv_i2c for consistency with other HALs.
* Rename sensor I2C handle from bus to i2c_bus to allow adding
another handle (ex spi_bus).
2023-06-10 22:00:56 +02:00
iabdalkader
a1724d90dd ports/stm32: Refactor all GPIO pin definitions. 2023-06-10 17:19:12 +02:00
iabdalkader
13bc0fa66d hal: Add GPIO abstraction layer. 2023-06-10 17:19:08 +02:00
iabdalkader
4a2923534e micropython: misc fixes and features for mimxrt. 2023-06-09 22:54:18 +02:00
iabdalkader
de7f161acd sensors/ov7670: Fix CLKRC bypass/pre-scaler. 2023-05-25 15:39:11 +02:00
iabdalkader
275ce67269 ports/nrf: Fix sensor readout.
* D0 & D1 are swapped on ML kit.
2023-05-25 15:39:03 +02:00
iabdalkader
dcbda2bba3 boards/NANO33: Fix OV767x clkrc. 2023-05-25 15:38:54 +02:00
Ibrahim Abdelkader
20a51c7a1e
Merge pull request #1848 from kwagyeman/kwabena/enable_more_tensor_flow_ops
imlib/libtf: Update to the latest tensorflow API.
2023-05-22 22:09:49 +03:00
Kwabena W. Agyeman
1173667522 imlib/libtf: Update to the latest tensorflow API. 2023-05-22 11:47:04 -07:00
Ibrahim Abdelkader
531c656eb6
Merge pull request #1846 from openmv/rp2_license
ports/rp2: Add missing license header to cambus.c
2023-05-19 19:39:50 +03:00
iabdalkader
b01582eff4 ports/rp2: Add missing license header to cambus.c 2023-05-19 18:37:49 +02:00
Ibrahim Abdelkader
ae86790c4e
Merge pull request #1831 from kwagyeman/kwabena/enable_more_tensor_flow_ops
imlib/libtf: Enable more ops in tensorflow library.
2023-05-07 14:30:45 +03:00
Ibrahim Abdelkader
564b023020
Merge pull request #1830 from kwagyeman/kwabena/isp_updates
imlib: Update gamma_corr to support bayer and yuv images.
2023-05-07 14:30:00 +03:00
iabdalkader
59d9f2603b boards/All: Update boards manifests. 2023-05-07 13:18:35 +02:00
iabdalkader
77a7d16c09 boards: Rename Arduino targets. 2023-05-07 13:18:35 +02:00
iabdalkader
9cc17743e6 micropython: Update all types to use the new type definition. 2023-05-07 13:18:35 +02:00
iabdalkader
b2ef6e7b9f micropython: Update micropython to 1.20.0. 2023-05-07 13:18:31 +02:00
Ibrahim Abdelkader
2930561667
Merge pull request #1836 from openmv/arduino_cyw43_opensource
ports/stm32: Switch to the open-source cyw43 driver.
2023-05-07 13:43:17 +03:00
iabdalkader
4f0e3d4ac9 ports/stm32: Switch to the open-source cyw43 driver. 2023-05-07 12:42:29 +02:00
iabdalkader
dd92f06664 micropython: Update ulab to 6.0.12. 2023-05-07 12:39:09 +02:00
iabdalkader
ccfb5b2135 micropython: Update docs. 2023-05-05 11:29:58 +02:00
Kwabena W. Agyeman
abf25b3694 imlib/libtf: Enable more ops in tensorflow library. 2023-05-01 11:09:14 -07:00
Kwabena W. Agyeman
4ba1dfa443 imlib: Update gamma_corr to support bayer and yuv images. 2023-04-27 14:07:37 -07:00
Ibrahim Abdelkader
9ad2a0f156
Merge pull request #1822 from kwagyeman/kwabena/add_isp_stuff
imlib: Add support for AWB and CCM.
2023-04-26 20:26:41 +02:00
Kwabena W. Agyeman
0e0326ffab imlib: Add support for AWB and CCM. 2023-04-26 11:19:35 -07:00
Kwabena W. Agyeman
62910602ef imlib/apriltag: Add floating point centroid. 2023-04-17 17:20:49 -07:00
Kwabena W. Agyeman
3fc55ad314 imlib/mjpeg: Vastly improve MJPEG code. 2023-04-08 15:38:40 -07:00
iabdalkader
9bf509af9e misc: Bump firmware version. 2023-04-07 19:42:52 +02:00
Ibrahim Abdelkader
b156d6b2b4
Merge pull request #1818 from openmv/tinyusb_debug
misc/tinyusb_debug: Misc fixes.
2023-04-07 17:42:54 +02:00
iabdalkader
3b02e197f6 misc/tinyusb_debug: Misc fixes.
* Fix CDC task scheduling.
* Define tinyusb debug packet size.
2023-04-07 17:37:33 +02:00
iabdalkader
2d46e31e8a ports/stm32: Improve script execution and exceptions handling. 2023-04-07 17:35:05 +02:00
iabdalkader
a9e52acdf1 ports/rp2: Improve script execution and exception handling. 2023-04-07 17:34:56 +02:00
iabdalkader
edcdd634f9 ports/nrf: Improve script execution and exception handling. 2023-04-07 17:34:50 +02:00
iabdalkader
e59c0027b1 micropython/pyexec: Disable USB debugger before raising exceptions. 2023-04-07 17:34:50 +02:00
iabdalkader
471453c250 misc/usbdbg: Add function to return debug state. 2023-04-07 17:34:50 +02:00
iabdalkader
985ffd7f6e misc/usbdbg: Refactor USB debugger code.
* Switch to statically allocated exception.
* Refactor common code.
* Misc fixes to harden the exec/stop commands.
2023-04-07 13:07:49 +02:00
iabdalkader
aa6685283d ports/All: Switch to using board pendsv entries. 2023-04-07 12:38:33 +02:00
Ibrahim Abdelkader
afb26ddf72
Merge pull request #1814 from openmv/audio_modules_sched
ports/All: Use static scheduler nodes for Audio modules.
2023-04-07 12:22:24 +02:00
iabdalkader
d705684957 ports/stm32: Use static scheduler nodes for Audio module. 2023-04-07 12:15:18 +02:00
iabdalkader
dafc47bcde ports/rp2: Use static scheduler nodes for Audio module. 2023-04-07 12:15:18 +02:00
iabdalkader
ea21ffedc0 ports/nrf: Use static scheduler nodes for Audio module. 2023-04-07 12:15:16 +02:00
Ibrahim Abdelkader
f555bc9506
Merge pull request #1813 from kwagyeman/kwabena/fix_copy_bug
imlib: Fix bug with copy argument updating original object.
2023-04-02 05:15:45 +02:00
Kwabena W. Agyeman
0e2e95f059 imlib: Fix bug with copy argument updating original object. 2023-04-01 17:34:24 -07:00
iabdalkader
63132ea7b2 sensors/FIR: Disable FIR module build if no sensors are enabled. 2023-04-01 13:57:01 +02:00
iabdalkader
46fb0da0fe ports/stm32: Rename FB alloc overlay size macro. 2023-03-15 12:58:41 +01:00
Ibrahim Abdelkader
142caafee9
Merge pull request #1806 from openmv/assert_fix
imlib: Fix redefined assert error on some builds.
2023-03-14 19:04:36 +02:00
iabdalkader
2ec70fbbaa imlib: Fix redefined assert error on some builds. 2023-03-14 17:57:44 +01:00
iabdalkader
df49751244 sensors/MT9M114: Optimize patch loading.
* Optimize and simplify patch loading by converting firmware patches
to byte arrays and stashing patch address at the start of the array.
This allows loading patches with just one call to cambus_write_bytes,
vs the old 1K short REVs and 1K calls to cambus_write_bytes. Since
patch loading is done on every reset at 100KHz, this saves a lot
of overhead on script run.
2023-03-11 20:03:22 +01:00
iabdalkader
6e40c8ee6b misc/tinyusb_debug: Define IRQ handler names in board config. 2023-03-07 19:27:56 +01:00
iabdalkader
b85a181474 boards/all: Add a bytes offset config option for multi-word UIDs. 2023-03-07 17:47:25 +01:00
iabdalkader
9086dd8911 drivers/winc1500: Set NIC to NULL on closing sockets.
* Just in case user code calls functions on closed socket.
2023-02-21 16:19:02 +01:00
iabdalkader
36a5a96c50 drivers/winc1500: Keep listening socket open on accept timeout. 2023-02-19 19:28:34 +01:00
Kwabena W. Agyeman
509b094a5d imlib/jpeg: Fix compression argument order. 2023-02-19 08:51:46 -08:00
Ibrahim Abdelkader
78c3a1256a
Merge pull request #1781 from kwagyeman/kwabena/add_readout_control_to_niclav
boards/NICLAV: Add readout control to driver and fix image orientation.
2023-02-16 17:08:48 +02:00
Ibrahim Abdelkader
58235761c7
Merge pull request #1772 from kwagyeman/kwabena/add_byte_reversal_support
ports/stm32: Add byte reversal support to lcd screen.
2023-02-15 18:56:32 +02:00
Kwabena W. Agyeman
c64e564943 boards/NICLAV: Add readout control to driver and fix image orientation. 2023-02-12 13:49:36 -08:00
Kwabena W. Agyeman
39ba1a7f50 ports/stm32: Clock finds frequency under requested. 2023-02-12 13:48:25 -08:00
iabdalkader
73222f775f boards/PORTENTA: Override default MT sensor clock. 2023-02-06 17:48:02 +02:00
iabdalkader
a996ead28f sensors/MT9V0XX: Allow overriding external clock frequency. 2023-02-06 17:39:36 +02:00
iabdalkader
4aad2ddf19 misc: Bump firmware version. 2023-01-27 23:05:29 +02:00
iabdalkader
3aece7acf6 ports/stm32: Fix DCMI pins deinit.
* DCMI pins were deinitialized with the DCMI.
2023-01-27 22:44:25 +02:00
iabdalkader
46d346161b boards/OPENMV4_PRO: Enable QSPI Flash. 2023-01-23 12:32:02 +02:00
Kwabena W. Agyeman
e68d002bb7 ports/stm32: Add byte reversal support to lcd screen. 2023-01-22 17:50:13 -08:00
iabdalkader
d44738f94c misc: Bump firmware version. 2023-01-21 11:58:42 +02:00
iabdalkader
c4409c2acd Bump firmware version. 2023-01-21 11:22:19 +02:00
iabdalkader
f3dedd38fd micropython: Update cyw43 library. 2023-01-21 10:23:54 +02:00
Ibrahim Abdelkader
aa355b8c5c
Merge pull request #1768 from openmv/winc_nonblocking
drivers/WINC1500: Return a non-blocking error on socket timeout.
2023-01-19 17:59:48 +02:00
iabdalkader
1dc4bea880 drivers/WINC1500: Return a non-blocking error on socket timeout.
* Return a non-blocking error to MicroPython on socket timeouts,
so the socket doesn't get closed.
2023-01-19 17:41:35 +02:00
iabdalkader
01bc27705a ports/stm32: Call GC sweep first before deinitializing SPI.
* WINC1500 needs SPI active to close sockets, when socket_close
is called from the socket finalizer, which is called from gc_sweep.
2023-01-19 17:38:58 +02:00
tejalbarnwal
ac49aa5285 lib/libtf: Add support for 1D/1D regression models.
* Fixes #1751.
* Fixes #1739.
2022-12-28 20:08:24 +01:00
iabdalkader
b38bbb6791 boards/NICLAV: Fix low-power standby mode. 2022-12-11 17:54:37 +01:00
iabdalkader
86f1f6e905 ports/stm32: Add memory region for CM4. 2022-12-11 17:47:07 +01:00
iabdalkader
f78d191e35 boards/NICLAV: Enable support for CM4. 2022-12-11 17:46:06 +01:00
iabdalkader
df618ffb02 boards/NICLAV: Make MicroSpeech work on Nicla Vision.
* Add example for Nicla Vision.
* Update example comment.
* Fixes #1756
2022-12-04 20:34:42 +01:00
iabdalkader
b277ca8368 misc/stm32cube: Fix module register macro. 2022-11-29 16:13:27 +01:00
iabdalkader
ab9739c2a5 hal/H7: Fix LPUART GPIO AF. 2022-11-29 15:53:22 +01:00
iabdalkader
ffea7ce8d5 boards/NICLAV: Enable LPUART1. 2022-11-28 13:52:27 +01:00
iabdalkader
50a3d3efd5 sensors/OV767x: Update registers. 2022-11-27 18:34:58 +01:00
iabdalkader
ad77f21aa6 misc: Update MicroPython docs. 2022-11-19 18:56:59 +01:00
iabdalkader
c350ad1c94 ports/nrf: Minor fix for mpremote softreboot.
* Print missing soft reboot string.
2022-11-14 19:41:29 +01:00
iabdalkader
9052df5ef9 ports/stm32: Fix HAL MSP deinit functions. 2022-11-11 20:24:31 +01:00
Ibrahim Abdelkader
580fea18ec
Merge pull request #1738 from openmv/fix_unsigned_minmax
imlib: Fix possible signed/unsigned comparisons issues.
2022-10-16 15:16:32 +02:00
iabdalkader
a1f6e04d23 imlib: Fix possible signed/unsigned comparisons issues. 2022-10-16 15:08:43 +02:00
iabdalkader
20b12228dd imlib: Detect comparison between signed and unsigned in MIN/MAX macros. 2022-10-16 15:08:40 +02:00
Ibrahim Abdelkader
90883af6f1
Merge pull request #1726 from kwagyeman/kwabena/fix_draw_image_area_scaling
imlib: Fix Draw Image Area Scaling.
2022-10-03 15:49:38 +02:00
iabdalkader
7c2176af2e ports/stm32: Re-initialize IMU after every soft-reset.
* Fixes #1734.
* On soft-reset all SPI instance are deinitialized, if IMU SPI bus
is enabled in MicroPython it needs to be reinitialized.
2022-09-30 21:31:45 +02:00
iabdalkader
26c6099443 misc: Fix debug_printf.
* Fixes #1707.
2022-09-26 18:23:17 +02:00
iabdalkader
ddf01cb09b ports/rp2: Switch to upstream Nina driver and module. 2022-09-26 18:16:46 +02:00
iabdalkader
238ab38ddc ports/nrf: Switch to the new tinyusb debugger. 2022-09-26 18:16:46 +02:00