Commit Graph

2956 Commits

Author SHA1 Message Date
Ibrahim Abd Elkader
e23fb45195
Merge pull request #1299 from kwagyeman/kwabena/improve_set_windowing
Make set_windowing much more flexible
2021-05-06 02:19:29 +02:00
Kwabena W. Agyeman
3e9c435540 Make set_windowing much more flexible 2021-05-05 16:40:28 -07:00
Kwabena W. Agyeman
466e0ad6d3 Cropped not True if framesize is invalid 2021-05-05 16:38:24 -07:00
Kwabena W. Agyeman
8150459399 Make frame buffer readout locking more fair 2021-05-04 22:02:14 -07:00
iabdalkader
f6bc7c4a0f Implement missing USBDBG function to return IRQ status. 2021-05-04 20:22:50 +02:00
iabdalkader
d48d317c34 Add Systick, PendSV dispatch slots for WINC. 2021-05-04 01:57:10 +02:00
iabdalkader
a93075b302 Small fix to buffer pointers.
* Need to set out pointer when checking buffer length for WIFI debugging.
2021-05-03 22:28:34 +02:00
Kwabena W. Agyeman
b05415b373
MDMA Offload for camera data capture. (#1271)
* Add MDMA acceleration to camera module

* Update src/omv/ports/stm32/sensor.c

* Update src/omv/ports/stm32/sensor.c

* Update src/omv/ports/stm32/sensor.c

* Update src/omv/ports/stm32/sensor.c

Co-authored-by: Ibrahim Abd Elkader <i.abdalkader@gmail.com>
2021-05-01 20:53:47 +02:00
Ibrahim Abd Elkader
573affea26
Merge pull request #1288 from kwagyeman/kwabena/no_change_checks
Add no change checks
2021-05-01 20:14:12 +02:00
Jeff Epler
36fb0226db
Fix build errors encountered with GNU Arm Embedded Toolchain 10-2020-q4-major (#1285)
* stm32: Fix gcc10 array-bounds diagnostics.
* nm_common.h: Fix "multiple definition of `at_sb_printf'".
* py_clock.h: Fix "multiple definition of `py_clock_type'".
* lepton.c: Fix gcc10 array-bounds diagnostics.
* py_fir_lepton.c: Fix gcc10 array-bounds diagnostics.
* winc1500: Fix possible string truncation of 32-byte SSIDs
* travis.yml: Use 10-2020q4, presently the newest arm toolchain
2021-05-01 19:39:59 +02:00
iabdalkader
17bf0851cc Align with MicroPython upstream.
* Pull SDIO/SDCARD/UART changes.
2021-04-30 22:19:20 +02:00
iabdalkader
e8073b4223 Fix Nano33 PID. 2021-04-30 21:54:26 +02:00
iabdalkader
d0c77f9070 Disable inline for small functions 2021-04-30 21:02:54 +02:00
iabdalkader
a60fc54ef2 Disable inline for small functions. 2021-04-30 20:37:50 +02:00
Kwabena W. Agyeman
44db70588d Use new software I2C 2021-04-30 10:06:10 -07:00
Kwabena W. Agyeman
6bfbec3f69 Add no change checks 2021-04-30 09:43:23 -07:00
iabdalkader
eccb534d55 Fix nimble build with gcc10 and -O2 2021-04-30 03:01:27 +02:00
iabdalkader
0c28ad455a WINC1500: don't include winc headers if the module is disabled. 2021-04-28 22:38:09 +02:00
iabdalkader
3efee0d703 Portenta: Enable bluetooth. 2021-04-27 22:44:44 +02:00
iabdalkader
b69c397bff Add ulab config file per board. 2021-04-27 22:19:43 +02:00
Ibrahim Abd Elkader
24584bdc9c
Merge pull request #1280 from openmv/cywbt_fixes
Update CYW-BT driver.
2021-04-27 02:14:49 +02:00
iabdalkader
ee513ffac4 Add support for enabling bluetooth module (nimble stack). 2021-04-27 01:51:44 +02:00
iabdalkader
412369f656 Update CYW-BT driver. 2021-04-27 01:37:29 +02:00
iabdalkader
41f0b404a0 Fix UART clock source. 2021-04-27 00:51:36 +02:00
iabdalkader
40e9db6cd1 Add nimble submodule. 2021-04-26 20:03:01 +02:00
iabdalkader
26c5376b06 Update to MicroPython 1.15 2021-04-25 23:21:06 +02:00
Ibrahim Abd Elkader
3a6de705de
Merge pull request #1276 from openmv/fast_fix
Fix FAST build.
2021-04-25 23:20:44 +02:00
iabdalkader
7aabb94ac1 Fix FAST build. 2021-04-25 22:57:11 +02:00
iabdalkader
bfe23416fe Add missing ll headers to HAL conf. 2021-04-25 22:54:04 +02:00
iabdalkader
364eea6c7e Update to MicroPython 1.14 2021-04-25 21:55:25 +02:00
iabdalkader
be53435a8f Add mutex lock_timeout 2021-04-25 19:30:39 +02:00
iabdalkader
8ce2bb6d9b PORTENTA: Reduce the heap to fit Eth descriptors.
* Must reduce the heap for eth descriptors to fit.
2021-04-24 20:56:50 +02:00
iabdalkader
b67900c80e ImageIO Fix update JPEG buffer after loading frame. 2021-04-24 01:05:13 +02:00
iabdalkader
d597b08730 Fix ImageIO pause arg.
* Pause was inverted.
2021-04-21 23:59:09 +02:00
iabdalkader
e2109f53f3 Enable basic built-in modules for OPENMV2. 2021-04-19 21:34:29 +02:00
Ibrahim Abd Elkader
2c5347a77f
Merge pull request #1265 from kwagyeman/kwabena/flir_init_issues
Make FLIR Lepton init reliably on Pure Thermal
2021-04-18 19:38:20 +02:00
Ibrahim Abd Elkader
aef64ab673
Merge pull request #1266 from kwagyeman/kwabena/add_color_palette_disable
Fix mp_const_none comparison
2021-04-17 21:57:41 +02:00
Kwabena W. Agyeman
a86a75974e Add ability to pass -1 to disable color palette when default. None can't be an argument 2021-04-17 10:20:45 -07:00
iabdalkader
a16b9cb55e Include ADC, RTC ll files 2021-04-17 00:42:22 +02:00
Kwabena W. Agyeman
f1a993aee4 Make FLIR Lepton init reliably on Pure Thermal 2021-04-15 22:49:12 -07:00
Ibrahim Abd Elkader
65a70211bb
Merge pull request #1261 from kwagyeman/kwabena/interrupt_double_buffer_approach
Double buffer mode working for all imaging modes
2021-04-16 03:33:46 +02:00
Kwabena W. Agyeman
9dd90ae55f Add support for double buffer, triple buffering, and video fifo 2021-04-15 18:13:40 -07:00
Kwabena W. Agyeman
d39136a650
Rename head/tail per convention (#1263)
* Rename head/tail per convention
2021-04-15 00:10:06 +02:00
Ibrahim Abd Elkader
4cee826bd7
Merge pull request #1262 from kwagyeman/kwabena/open_analog_switches
Remove PC2/3_C as we only have PC2/3_C on the original H7
2021-04-13 19:22:19 +02:00
Kwabena W. Agyeman
dd399d11c9 Remove PC2/3_C as we only have PC2/3_C on the original H7 2021-04-12 23:04:08 -07:00
iabdalkader
e2e9ceb5cd Fix init order.
* make sure framebuffer and fb_alloc are initialized before sensor_init0
2021-04-05 21:22:08 +02:00
iabdalkader
5c6937bd14 Remove update_jpeg_buffer arg. 2021-04-05 02:59:30 +02:00
iabdalkader
ffdbca8cc4 Change update_jpeg_buffer arg to bool.
* Will be used to swap buffers later.
2021-04-05 02:10:20 +02:00
iabdalkader
d28b14e175 Make JPEG buffer update use image source arg. 2021-04-03 21:06:19 +02:00
iabdalkader
a42f3a6474 Remove streaming mode.
* Will be replaced by double buffering soon.
2021-04-02 21:46:58 +02:00
Ibrahim Abd Elkader
84407e4aca
Merge pull request #1252 from kwagyeman/kwabena/add_jpeg_copying
Add jpeg copying support
2021-03-31 19:49:48 +02:00
Kwabena W. Agyeman
28d323b71d Add jpeg copying support 2021-03-31 10:25:55 -07:00
Ibrahim Abd Elkader
119a6c858c
Merge pull request #1247 from kwagyeman/kwabena/cleanup_imlib
Cleanup imlib unused methods
2021-03-30 19:36:21 +02:00
Ibrahim Abd Elkader
322b14bf15
Merge pull request #1249 from openmv/himax_update
Fix HM01B0 vflip/hmirror settings.
2021-03-30 19:25:27 +02:00
iabdalkader
5b9cb0710a Fix HM01B0 vflip/hmirror settings. 2021-03-30 19:15:52 +02:00
Ibrahim Abd Elkader
f225a09861
Merge pull request #1245 from kwagyeman/kwabena/open_analog_switches
Make sure dedicated analog pads are isolated
2021-03-30 18:20:14 +02:00
Kwabena W. Agyeman
f32b1a20fb Make sure dedicated analog pads are isolated 2021-03-30 09:04:20 -07:00
iabdalkader
9e9009bad2 Add initial MT9M114 driver. 2021-03-30 03:09:33 +02:00
Kwabena W. Agyeman
dda33be809 Cleanup imlib unused methods 2021-03-29 10:34:09 -07:00
Ibrahim Abd Elkader
ca124aa9ca
Merge pull request #1239 from kwagyeman/kwabena/add_debayering_support
Add debayering support to draw image
2021-03-28 17:16:24 +02:00
jiskra
a0f321836f
Update omv_boardconfig.h
change openmv4p usb clock source
2021-03-27 17:39:02 +08:00
iabdalkader
80cc1f3baf Bump firmware version. 2021-03-27 00:38:36 +02:00
iabdalkader
32742440a9 Re-enable combined fw image for factory programming. 2021-03-26 21:34:17 +02:00
Kwabena W. Agyeman
5cbd2e3950 Add debayering support to draw image 2021-03-26 09:37:06 -07:00
iabdalkader
c729ed9f33 Add 320x320 resolution for HM01B0 2021-03-25 23:07:41 +02:00
iabdalkader
9e46f866bc Disable all MPU regions in msp_init. 2021-03-25 02:47:30 +02:00
Ibrahim Abd Elkader
c1bcfbe8ec
Merge pull request #1235 from kwagyeman/kwabena/software_jpeg_speedup
Move software jpeg encoder front end to new SIMD MCU code
2021-03-23 20:06:03 +02:00
iabdalkader
68aa8b9e52 Portenta: Fix standby mode. 2021-03-22 01:36:51 +02:00
iabdalkader
8f3a921658 Update CM4 firmware.
* Enable HSEM driver.
* Use HSEM to sync standby mode.
2021-03-21 22:46:50 +02:00
iabdalkader
d3bc1b2c7b Update ulpi.c 2021-03-21 22:00:22 +02:00
Kwabena W. Agyeman
39402e27a6 Ifdef out lcd/tv init0 2021-03-20 11:04:15 -07:00
Kwabena W. Agyeman
85b5130c09 Move software jpeg encoder front end to new SIMD MCU code 2021-03-20 10:59:09 -07:00
Ibrahim Abd Elkader
dc089106f6
Merge pull request #1231 from kwagyeman/kwabena/make_bayer_faster
Speed debayering to 19.5ms for VGA
2021-03-17 23:19:28 +02:00
iabdalkader
3d5015dcf1 PORTENTA: Cleanup low power function 2021-03-17 22:24:08 +02:00
iabdalkader
5947e1be47 Add enable/disable external OSC callback functions. 2021-03-17 19:43:27 +02:00
Kwabena W. Agyeman
7a1eb1c113 Speed debayering to 19.5ms for VGA 2021-03-16 22:09:51 -07:00
Ibrahim Abd Elkader
b4a1b57f55
Merge pull request #1221 from bitbank2/master
Sped up jpeg bayer_to_ycbcr for encode
2021-03-16 02:44:13 +02:00
Ibrahim Abd Elkader
ee083f6bcb
Merge pull request #1225 from kwagyeman/kwabena/fix_counter_init
Filled out PWM TIMER init for FLIR/LCD
2021-03-16 02:43:48 +02:00
iabdalkader
06568f35a4 PORTENTA: low-power mode fixes.
* Fix PMIC SW1 current limit.
* Fix Ethernet low power functions.
* Switch ULPI to low power mode.
2021-03-16 02:23:58 +02:00
iabdalkader
3301c55457 Add USB3320 ULPI driver. 2021-03-16 00:58:10 +02:00
iabdalkader
1b4ce747bc Add support for generating Cortex-M4 firmware. 2021-03-15 21:14:27 +02:00
Ibrahim Abd Elkader
c06775d99d
Merge pull request #1222 from kwagyeman/kwabena/cambus_reinit
Make cambus reinit standard for all boards
2021-03-15 20:47:42 +02:00
Ibrahim Abd Elkader
1329542c2b
Merge pull request #1219 from kwagyeman/kwabena/mt9v034_refactor
Kwabena/mt9v034 refactor
2021-03-15 20:46:52 +02:00
Ibrahim Abd Elkader
b4f747812b
Merge pull request #1224 from kwagyeman/kwabena/add_buzzer_module
Add support for the new buzzer module
2021-03-15 20:38:31 +02:00
Ibrahim Abd Elkader
812b9c44e1
Merge pull request #1223 from kwagyeman/kwabena/fix_lcd_pll_typo
Fix missing 0
2021-03-15 20:01:49 +02:00
Kwabena W. Agyeman
936d1eb1d6 Add support for the new buzzer module 2021-03-15 09:38:22 -07:00
Kwabena W. Agyeman
9948619513 Cleanup initing counters 2021-03-14 22:32:36 -07:00
Kwabena W. Agyeman
911b08ed22 Fix missing 0 2021-03-14 18:42:47 -07:00
Kwabena W. Agyeman
9e4bcb21fc Make cambus reinit standard for all boards 2021-03-14 15:49:08 -07:00
Laurence Bank
3947c28672 Sped up jpeg bayer_to_ycbcr for encode 2021-03-14 18:44:17 -04:00
Kwabena W. Agyeman
4420536c45 Fix clock speed and gain/exposure math 2021-03-14 14:57:09 -07:00
Kwabena W. Agyeman
dc7b378a9f Fix issues with agc/aec logic 2021-03-14 14:57:09 -07:00
Kwabena W. Agyeman
51ac032cad Add sensor readout control to the mt9v034 2021-03-14 14:57:09 -07:00
Kwabena W. Agyeman
446fa0f73d Reduce DMA buffer size 2021-03-14 13:27:22 -07:00
iabdalkader
c1289deb02 PORTENTA: Fix DMA buffer size. 2021-03-11 23:02:55 +02:00
Ibrahim Abd Elkader
6cc75175a8
Merge pull request #1217 from kwagyeman/kwabena/use_dma_buffer
Use DMA buffer for FIR Lepton
2021-03-10 01:43:19 +02:00
iabdalkader
4f7b73746a Set DMA buffers sizes for all boards. 2021-03-10 00:49:36 +02:00
iabdalkader
069e96f51a Add DMA buffer allocator 2021-03-10 00:25:37 +02:00
Ibrahim Abd Elkader
df15963b6c
Merge pull request #1213 from kwagyeman/kwabena/axi_qos
Add AXI QOS to make LCD output stable
2021-03-09 17:45:53 +02:00
Kwabena W. Agyeman
f41c5b3199 Use DMA buffer for FIR Lepton 2021-03-08 22:07:44 -08:00
Kwabena W. Agyeman
021f3aca22 Add AXI QOS to make LCD output stable 2021-03-08 21:23:37 -08:00
iabdalkader
2314afd99d Move stack to DTCM/ITCM on QSPI boards. 2021-03-08 22:48:38 +02:00
iabdalkader
8a99ad7616 Allow FFS cache to not be defined. 2021-03-08 22:20:54 +02:00
iabdalkader
bc4072802c Cleanup QSPI flash config.
* Remove unused softqspi protocol.
* Move QSPI flash to data memory, to free the DTCM.
2021-03-08 02:57:53 +02:00
Ibrahim Abd Elkader
afb8f9e47d
Merge pull request #1211 from kwagyeman/kwabena/fb_alloc_cleanup
Cleanup FB_ALLOC_OVERLAY pointers
2021-03-08 02:41:06 +02:00
Kwabena W. Agyeman
c163560224 Cleanup FB_ALLOC_OVERLAY pointers 2021-03-07 16:17:31 -08:00
Kwabena W. Agyeman
6867d744ab Reduce bus contention and save RAM 2021-03-07 15:54:02 -08:00
Ibrahim Abd Elkader
95783c0f49
Merge pull request #1209 from openmv/dma_memory
Add DMA regions in each domain.
2021-03-07 23:27:20 +02:00
iabdalkader
dda4c69d44 Add DMA regions in each domain. 2021-03-07 22:54:06 +02:00
Ibrahim Abd Elkader
84621c6dd5
Merge pull request #1208 from kwagyeman/kwabena/fix_lcd_polarity
Fix LCD output polarity
2021-03-07 18:15:48 +02:00
Kwabena W. Agyeman
70da8d8354 Fix LCD output polarity 2021-03-06 20:41:17 -08:00
iabdalkader
265018c7e7 Update HM01B0 driver.
* Fix set_auto_exposure.
* Implement get_exposure_us.
* Implement set_gainceiling.
* Implement set_colorbar.
* Implement set_auto_gain.
* Implement get_gain_db.
* Remove unimplemented functions.
2021-03-06 19:51:43 +02:00
iabdalkader
319993adde Fix the SDMMC used in CYW43 driver. 2021-03-04 23:49:11 +02:00
iabdalkader
9d2b4cf91e HM01B0: Tune AE target and max gain. 2021-03-04 23:42:13 +02:00
Ibrahim Abd Elkader
e64067ca60
Merge pull request #1202 from kwagyeman/kwabena/fix_dma_max
Subtle max limit improvement for SPI LCD DMA.
2021-03-04 15:34:43 +02:00
Ibrahim Abd Elkader
397941930b
Merge pull request #1201 from kwagyeman/kwabena/flir_dma_fix
Improve FLIR module DMA efficiency
2021-03-04 01:29:39 +02:00
iabdalkader
449f695ade Add Ethernet low power functions. 2021-03-03 21:57:06 +02:00
Ibrahim Abd Elkader
a025908d1a
Merge pull request #1203 from openmv/sdmmc_instance
Allow boards to define SDMMC instance for SD card and WiFi explicitly.
2021-03-03 21:56:24 +02:00
iabdalkader
ebc34c3e32 Allow boards to define SDMMC instance used for SD card and WiFi explicitly. 2021-03-03 21:33:12 +02:00
Kwabena W. Agyeman
646b16350d This should match the fifo size of 8, not 16 2021-03-02 22:22:34 -08:00
Kwabena W. Agyeman
276e8a7a7d Improve FLIR module DMA efficency 2021-03-02 22:21:30 -08:00
Ibrahim Abd Elkader
d8c2777e6d
Merge pull request #1171 from kwagyeman/kwabena/jpeg_speedup
Kwabena/jpeg speedup
2021-03-02 19:50:18 +02:00
Kwabena W. Agyeman
28b9d9fc78 Fix autofocus logic 2021-02-28 18:29:01 -08:00
Kwabena W. Agyeman
a87fbda7e4 Speedup JPEG using MDMA 2021-02-27 18:34:22 -08:00
Ibrahim Abd Elkader
eabd9557af
Merge pull request #1194 from kwagyeman/kwabena/tv_driver_simd_fix
TV driver SIMD update
2021-02-27 02:40:02 +02:00
Kwabena W. Agyeman
4720d6ea01 TV driver SIMD update 2021-02-26 08:53:48 -08:00
Ibrahim Abd Elkader
4ac425aa45
Merge pull request #1191 from kwagyeman/kwabena/m4_alignment
Add alignment for the M4
2021-02-26 18:45:40 +02:00
Kwabena W. Agyeman
fc9d9a4952 Add alignment for the M4 2021-02-26 08:28:13 -08:00
Ibrahim Abd Elkader
ee62f68d00
Merge pull request #1192 from kwagyeman/kwabena/lcd_fixes
Kwabena/lcd fixes
2021-02-26 16:20:05 +02:00
Ibrahim Abd Elkader
115a443086
Merge pull request #1190 from kwagyeman/kwabena/tv_dma_speed_improvment
Use the most efficient data transfers for TV DMA
2021-02-26 16:09:41 +02:00
iabdalkader
eba6ad937d NANO: Configure PDWN and RST in sensor_init 2021-02-25 23:53:00 +02:00
iabdalkader
d4859f58a8 NANO: Remove NO STOP from readb. 2021-02-25 23:48:55 +02:00
iabdalkader
972dec4bbd NANO: Define reset pin. 2021-02-25 23:48:28 +02:00
iabdalkader
288d0f72eb NANO: Reduce ISC I2C frequency to standard. 2021-02-25 23:48:04 +02:00
Kwabena W. Agyeman
62e4fc01a1 Fix DMA over 64KB bytes 2021-02-24 21:47:33 -08:00
Kwabena W. Agyeman
b117637ddf Remove redundant no hint 2021-02-24 21:46:56 -08:00
Kwabena W. Agyeman
e2bcf95337 Use the most efficent data transfers for TV DMA 2021-02-24 21:24:13 -08:00
Ibrahim Abd Elkader
7fc6a0d4dd
Merge pull request #1189 from kwagyeman/kwabena/improve_lcd_code_memory_bandwidth
Massively reduces bus usage for SPI LCD
2021-02-25 04:39:52 +02:00
Kwabena W. Agyeman
2ac0480e99 Massively reduces bus usage for SPI LCD 2021-02-24 17:57:07 -08:00
Kwabena W. Agyeman
a1162282ba Move fb_alloc_all into jpeg_compress 2021-02-24 17:02:01 -08:00
Kwabena W. Agyeman
28e93b40f7 Keep JPEG core on during script execution 2021-02-24 16:13:46 -08:00
Ibrahim Abd Elkader
757c538dd3
Merge pull request #1185 from kwagyeman/kwabena/speedup_jpeg_trailing_data_cleanup
Speed up clearing trailing jpeg data
2021-02-25 00:51:17 +02:00
Kwabena W. Agyeman
b0930505d5 Speed up clearing trailing jpeg data 2021-02-24 14:08:54 -08:00
Kwabena W. Agyeman
28dfeed446 Add stubs for init/deinit of the imlib 2021-02-24 11:07:35 -08:00
iabdalkader
9fc9e76644 Fix linker script stack alignment for boards with SRAM stack.
* The stack pointer needs to be aligned to 8 bytes to conform with EABI, most of the boards are configured
to use ITCM for stack, which starts at 0 and are Not affected by the linker script alignment. This patch
fixes the issue with boards that use SRAM for stack which can get misaligned.
2021-02-23 19:30:53 +02:00
iabdalkader
ff19149f59 Add mpy stack option to mpconfig. 2021-02-23 19:27:33 +02:00
iabdalkader
35ff974264 Remove port config overrides defined in some board configs.
* These are not seen in main.
2021-02-23 04:20:10 +02:00
iabdalkader
883d51098b Enable PORT K for Portenta and Bormio. 2021-02-22 21:47:19 +02:00
iabdalkader
03de0ceb26 Add Himax ioctl to control internal osc.
* Add ioctl to switch to internal OSC for MD.
* Add example to show how to wake up from low-power on MD events.
2021-02-22 03:35:25 +02:00
iabdalkader
d36cfb2313 Implement Himax motion detection with ioctls. 2021-02-21 22:55:29 +02:00
iabdalkader
29226a8b08 Implement sensor driver for nrf/Nano 33 2021-02-21 01:01:00 +02:00
iabdalkader
74c15bc1e3 Add MDMA priority. 2021-02-21 00:47:24 +02:00
iabdalkader
af3ad76b04 Add basic OV7670 driver.
* Still needs a lot work.
2021-02-21 00:06:11 +02:00
iabdalkader
7262cc92b1 Fix py_imu include in py_sensor. 2021-02-18 02:02:36 +02:00
iabdalkader
3c34fe141c Fix Bormio PLL config. 2021-02-17 19:44:26 +02:00
iabdalkader
34ce2ee137 Add nrf cambus read/write byte functions. 2021-02-15 21:00:54 +02:00
iabdalkader
970ff64dce Fix TV module define. 2021-02-15 20:51:29 +02:00
Ibrahim Abd Elkader
f48ba98893
Merge pull request #1173 from kwagyeman/kwabena/cache_alignment
Kwabena/cache alignment
2021-02-15 20:08:02 +02:00
Kwabena W. Agyeman
666c9dd386 Use 4 less bytes per alginment 2021-02-15 09:35:10 -08:00
Kwabena W. Agyeman
45b7e12cf9 Fix fb_alloc_all cache alignment 2021-02-15 09:25:14 -08:00
Kwabena W. Agyeman
09121b378e
Update src/omv/imlib/framebuffer.h
Remove padding.

Co-authored-by: Ibrahim Abd Elkader <i.abdalkader@gmail.com>
2021-02-14 19:14:30 -08:00
Kwabena W. Agyeman
c2567c3416 Make TV and LCD optional 2021-02-14 17:05:17 -08:00
Kwabena W. Agyeman
103042d27a Use new cache alignment for flir lepton 2021-02-14 15:45:23 -08:00
Kwabena W. Agyeman
900477383e Add cache alignment support to fb_alloc 2021-02-14 15:41:10 -08:00
Kwabena W. Agyeman
5c49066508 Cache align jpeg and frame buffer 2021-02-14 15:12:33 -08:00
iabdalkader
d08da5e072 Fix swapped G/B named pins. 2021-02-14 21:37:54 +02:00
iabdalkader
5bbe25c201 Replace VSYNC output pin with callback. 2021-02-14 21:10:23 +02:00
iabdalkader
aeb7539cfa Update license date. 2021-02-14 16:47:45 +02:00
iabdalkader
46495ff8cf Bump firmware version. 2021-02-13 22:08:33 +02:00
Ibrahim Abd Elkader
5e024e22db
Merge pull request #1166 from openmv/cyw43_softreset
Fix CYW43/LWIP and soft-reset bugs.
2021-02-13 02:04:21 +02:00
Ibrahim Abd Elkader
a7d67f3e79
Merge pull request #1165 from openmv/usbdbg_basepri
Make sure pendsv is not masked before stop/exec script.
2021-02-13 01:34:43 +02:00
iabdalkader
70366bdac1 Fix CYW43/LWIP and soft-reset bugs. 2021-02-13 01:20:02 +02:00
iabdalkader
1ced9d1507 Make sure pendsv is not masked before stop/exec script. 2021-02-13 01:19:04 +02:00
iabdalkader
cee4218548 Use temporary DMA buffers for SDIO transfers.
* Force SDIO to use DMA transfers to avoid FIFO under/overruns
2021-02-13 01:12:12 +02:00
iabdalkader
55b716692c Add timeout to cy43 connect. 2021-02-13 00:39:47 +02:00
iabdalkader
c646451650 Update LWIP to latest. 2021-02-13 00:10:37 +02:00
iabdalkader
7677b44feb Add Bormio board. 2021-02-12 03:28:11 +02:00
iabdalkader
4b5a3f93dd Add flags to reserve DMA streams. 2021-02-12 03:13:41 +02:00
iabdalkader
ac80f946ae Make PLL clock source configurable. 2021-02-12 00:07:47 +02:00
iabdalkader
107bbed9f1 Call gc_sweep_all on soft-reset.
* Make sure to collect open lwip sockets otherwise it runs out of memory.
* This should be okay to add in general but will only enable for LWIP for now.
2021-02-10 22:58:07 +02:00
Ibrahim Abd Elkader
1cf5191c9c
Merge pull request #1154 from kwagyeman/kwabena/fix_jpeg_binary_bug
Fix JPEG Binary Image Compression
2021-02-05 20:26:09 +02:00
Kwabena W. Agyeman
d679899e01 Missing x shift 2021-02-04 22:35:11 -08:00
Kwabena W. Agyeman
0bd845b908 Fix rgb channel for TV 2021-02-04 21:22:41 -08:00
Kwabena W. Agyeman
8907be98a4
Kwabena/flir lepton updates (#1150)
* Add timeout support for grabbing a new frame
* Fix ffc with a timeout
2021-02-02 21:20:01 +02:00
iabdalkader
10f9600008 Bump firmware version. 2021-01-31 22:59:03 +02:00
Kwabena W. Agyeman
5eb5064d56 Renable IMLIB parts 2021-01-31 09:39:24 -08:00
iabdalkader
6b829381e6 Update docs. 2021-01-29 20:58:56 +02:00
Kwabena W. Agyeman
8c755dd8c9 Update ImageIO version 2021-01-28 20:56:03 -08:00
iabdalkader
a8120f6866 Enable SD HW flow control. 2021-01-27 17:53:29 +02:00
iabdalkader
416a614e9f Add comment about errata. 2021-01-27 17:52:43 +02:00
Ibrahim Abd Elkader
ad7fa68279
Merge pull request #1141 from openmv/sensor_xdown
Sensor shutdown fixes.
2021-01-25 22:37:05 +02:00
iabdalkader
b6130942de Deinit DCMI on sensor shutdown. 2021-01-25 22:06:46 +02:00
iabdalkader
c17de02430 Add DCMI MSP Deinit. 2021-01-25 22:05:12 +02:00
Kwabena W. Agyeman
3d7c2bd48e
Fix lepton driver on m4 and m7 (#1138)
* Fix lepton driver on F4 and F7
* Increase clock rate for F4/F7 since they can't hit 10 MHz correctly
2021-01-25 19:38:18 +02:00
Kwabena W. Agyeman
721bf81a12 Re-enable support for these now that the extra code fits 2021-01-24 20:13:30 -08:00
Kwabena W. Agyeman
ef25f1912d Fix issues with F7 LCD triple buffering 2021-01-24 12:31:59 -08:00
Kwabena W. Agyeman
7d43093e43 Switch to RGB565 when color table is used 2021-01-22 21:10:30 -08:00
Kwabena W. Agyeman
cd0372f1b3 Fix grayscale color and y filter 2021-01-22 20:44:24 -08:00
Kwabena W. Agyeman
1b36b95521 Improve TV driver resolution, add scaling, and triple buffering 2021-01-22 20:44:24 -08:00
Kwabena W. Agyeman
a6237a96b2 Switch to fast YUV macros 2021-01-22 20:44:24 -08:00
iabdalkader
6d70b9e2a6 Bump firmware version. 2021-01-22 23:04:34 +02:00
iabdalkader
2d913dc456 Add LoRa library for Arduino Portenta. 2021-01-22 21:46:21 +02:00
iabdalkader
2a190f35c0 Update ulab to 2.1.3 2021-01-22 21:20:03 +02:00
iabdalkader
690a39c0cb Use interpolated LAB table.
* Saves about 100KBs.
2021-01-21 22:53:28 +02:00
iabdalkader
eccaeb111b Fix default OV5640 SYSTEM_CTROL0 value in sleep() 2021-01-21 19:44:20 +02:00
iabdalkader
6954b6d858 Fix default OV5640 SYSTEM_CTROL0 value in sleep() 2021-01-21 19:41:45 +02:00
iabdalkader
9935d9f4d5 Low power fixes.
* Disable QSPI in stop and standby modes.
* Power down SDRAM in standby mode.
2021-01-21 02:31:06 +02:00
iabdalkader
39ca235442 Enable exFAT for Portenta. 2021-01-20 17:39:17 +02:00
Ibrahim Abd Elkader
4d35329ab9
Merge pull request #1130 from openmv/stm32cubeai_fix
Fix stm32cube ai build.
2021-01-20 01:21:38 +02:00
iabdalkader
a848d6c663 Fix stm32cube ai build. 2021-01-20 00:55:39 +02:00
iabdalkader
85205b165c Add top python modules to qstr sources. 2021-01-20 00:51:48 +02:00
iabdalkader
65ddb5f49f Remove gdb flag for normal builds. 2021-01-19 22:45:15 +02:00
iabdalkader
823c3c1bdb Update build scripts from upstream. 2021-01-19 20:29:57 +02:00
iabdalkader
7183fc905c Fix HM01b0 default OSC register value. 2021-01-18 22:18:49 +02:00
Ibrahim Abd Elkader
6ae6056b83
Update HM01B0 driver. (#1125)
* Fix framerate for QVGA and QQVGA.
* Fix set_exposure calculations.
* Calculate vt_pix_clk from dividers in OSC register.
* Implement frame rate for HM01b0.
* Fix frame timing for QQVGA
* Implement set_framerate.
2021-01-18 15:23:57 +02:00
iabdalkader
b72aea3bc0 Add set/get_framerate(). 2021-01-17 21:24:28 +02:00
Ibrahim Abd Elkader
730efc65aa
Merge pull request #1122 from kwagyeman/kwabena/cleanup_to_ops
Kwabena/cleanup to ops
2021-01-16 20:44:33 +02:00
Ibrahim Abd Elkader
81aa60a15c
Merge pull request #1124 from openmv/himax_pix_fix
Fix pixel clock polarity for the HM01B0
2021-01-16 02:37:23 +02:00
iabdalkader
efb786f58c Fix pixel clock polarity for the HM01B0 2021-01-16 02:04:12 +02:00
Ibrahim Abd Elkader
7ad3111948
Merge pull request #1123 from kwagyeman/kwabena/make_copy_to_fb_smarter
Make copy_to_fb smarter about resources
2021-01-15 23:03:37 +02:00
Kwabena W. Agyeman
cfedaa54d7 Make copy_to_fb smarter about resources 2021-01-15 10:41:23 -08:00
Kwabena W. Agyeman
cb2f22e737 Centralize and improve to_x/copy/crop 2021-01-15 10:36:26 -08:00
Kwabena W. Agyeman
01aad01c49 Update draw image to support in place updates 2021-01-15 10:29:07 -08:00
iabdalkader
6fa0b9f478 Bump firmware version. 2021-01-13 22:01:22 +02:00
iabdalkader
8a24f84123 Bump firmware version. 2021-01-13 21:40:43 +02:00
Frank Zhao
7e45f89bc7
Fix OV5640 PCLK calculation to use current register values (#1120) 2021-01-13 19:43:13 +02:00
Kwabena W. Agyeman
7689622982
Add support for the MLX90641 (#1117) 2021-01-13 02:35:59 +02:00
iabdalkader
4c8fb46832 Patch spi.c from upstream. 2021-01-11 21:03:38 +02:00
iabdalkader
91c1aecb51 Make xalloc exception more useful.
* Add the number of bytes to the exception message, could be very helpful to the user in debugging stuff.
2021-01-11 19:14:20 +02:00
Kwabena W. Agyeman
ad00a842e9
Switch to compressed error messages (#1116) 2021-01-10 19:58:07 +02:00
Kwabena W. Agyeman
4c8a3ab750
Kwabena/get openmvpt lepton working (#1115)
* OpenMV PT Lepton working

* Reset py external modules earlier

* Fix sharing camera I2C bus on OPENMVPT

* Update MP
2021-01-10 15:37:30 +02:00
iabdalkader
93a310c312 Enable UART 8 for Portenta. 2021-01-08 20:00:53 +02:00
iabdalkader
7d22c6e963 Fix H7 timer state with new HAL.
* Fixes #1036
2021-01-07 23:32:13 +02:00
iabdalkader
5aa41b6cbe Define UID size in board config. 2021-01-07 20:28:54 +02:00
Ibrahim Abd Elkader
6c6f919298
Merge pull request #1111 from openmv/py_fir_scan_fix
Fix cambus scan.
2021-01-07 16:09:31 +02:00
iabdalkader
7a5d350256 Fix cambus scan.
* Retry scan at least once before giving up. The bus can be stuck from the last run.
2021-01-07 15:47:01 +02:00
iabdalkader
266665ed4e NRF Twi fixes.
* Deinit once before recovery.
* Reduce TWI timeout.
2021-01-07 15:45:46 +02:00
Kwabena W. Agyeman
da6c1a6ed9 Add auto scanning and update examples 2021-01-06 16:48:10 -08:00
iabdalkader
125107dd0a NRF: Add sensor drivers to frozen modules. 2021-01-07 00:42:06 +02:00
iabdalkader
a7fe87753b NRF: Fix early board init/deinit. 2021-01-06 20:14:56 +02:00
Ibrahim Abd Elkader
64bb3a6631
Merge pull request #1105 from openmv/hts221
Add frozen hts221 driver.
2021-01-06 00:06:31 +02:00
iabdalkader
740ea4f2b8 Add frozen hts221 driver. 2021-01-05 23:47:32 +02:00
iabdalkader
b170f2e9d7 NRF: Switch to frozen manifest. 2021-01-05 23:40:52 +02:00
iabdalkader
dd696708a5 MicroPython updates.
* NRF fix I2C priority.
* NRF enable line source.
* machine i2c: scan with read instead of write.
2021-01-05 22:03:07 +02:00
iabdalkader
25ec7349f5 Implement NRF cambus scan and gencall. 2021-01-05 20:01:19 +02:00
Ibrahim Abd Elkader
b0cfa3abb1
Merge pull request #1101 from openmv/port_fixes
Port fixes
2021-01-05 00:32:05 +02:00
iabdalkader
e122e4e82d Add OpenMV gpio and i2c abstraction layer. 2021-01-05 00:07:45 +02:00
iabdalkader
3813fed939 Remove cambus_struct headers 2021-01-04 23:42:05 +02:00
Kwabena W. Agyeman
7dc2c50a74
Merge branch 'master' into kwabena/fix_fir_extern_vars 2021-01-04 12:07:05 -08:00
Kwabena W. Agyeman
a3017f5ba1
Make cambus_t also static. 2021-01-04 12:06:07 -08:00