Commit Graph

3426 Commits

Author SHA1 Message Date
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
iabdalkader
1d339cc355 ports/rp2: Switch to the new tinyusb debugger. 2022-09-26 18:16:46 +02:00
iabdalkader
1e18ecb256 micropython: Update all modules to use new MP_REGISTER_MODULE. 2022-09-26 18:16:46 +02:00