Commit Graph

2414 Commits

Author SHA1 Message Date
iabdalkader
cba935a9f4 Move HAL header define to port Makefile 2020-12-19 20:08:35 +02:00
Ibrahim Abd Elkader
9a7eb9e054
Update README.md 2020-12-19 04:17:49 +02:00
iabdalkader
04fae4f28b Update sensors drivers headers.
* Fix possible build issues if a driver is disabled.
* Make sure no extra files are included if a driver is disabled.
2020-12-19 00:39:11 +02:00
iabdalkader
908d5c8291 Remove code dependency on mp.h header. 2020-12-18 23:16:55 +02:00
iabdalkader
0be13bdaa1 Add extern definition for HAL_GetHalVersion 2020-12-18 22:20:11 +02:00
iabdalkader
9f5dbae31b Move mutex to common code. 2020-12-18 21:54:29 +02:00
iabdalkader
c3ccf19234 Build MicroPython before HAL.
* To generate headers before they're included in HAL.
2020-12-18 21:10:08 +02:00
iabdalkader
8fc60b208b Add per port Makefile. 2020-12-18 20:50:20 +02:00
iabdalkader
bc6d1d22f0 Split code into common and port specific code. 2020-12-18 00:59:28 +02:00
iabdalkader
dd67d4c341 Move sensor drivers to subdir. 2020-12-18 00:59:28 +02:00
iabdalkader
a98e6288bd Add port flag to board makefiles. 2020-12-18 00:40:19 +02:00
iabdalkader
fbc767b36c Remove outdated CMSIS-NN code. 2020-12-16 22:01:24 +02:00
iabdalkader
8f3ff7c55d Fix stm32cubeai Makefile. 2020-12-16 21:39:51 +02:00
Ibrahim Abd Elkader
255e7fa8d6
Merge pull request #1033 from openmv/sensors_update
Remove HAL include from sensor drivers.
2020-12-16 19:27:56 +02:00
iabdalkader
4983cc12e5 Remove HAL include from sensor drivers. 2020-12-16 18:42:53 +02:00
iabdalkader
dac419f9fc Set startup and system files in Makefile based on MCU. 2020-12-16 00:25:17 +02:00
iabdalkader
5de70dcfab Make UVC and Bootloader build configurable in board config files. 2020-12-15 21:56:47 +02:00
iabdalkader
86ed19df7a Add tinyusb submodule. 2020-12-15 21:22:15 +02:00
iabdalkader
0b4b74ee19 Remove outdated drivers. 2020-12-14 23:02:15 +02:00
iabdalkader
13a6ccd123 Restructure the repository. 2020-12-14 01:44:51 +02:00
Kwabena W. Agyeman
fee119f5c6
Kwabena/ov5640 af (#1024)
* Enable OV5640 AF
* Add IOCTLs to control auto focus
2020-12-07 03:00:10 +02:00
iabdalkader
561ab24f7a Bump firmware version. 2020-12-06 21:55:24 +02:00
iabdalkader
17bcc7d200 Bump firmware version to 3.8.0 2020-12-06 21:13:01 +02:00
iabdalkader
2c80728bc8 Calculate CAN bit timing from baudrate. 2020-12-06 20:34:42 +02:00
iabdalkader
d61f236f26 F4: Disable DAC functions that require DMA.
* It's not possible to use DAC with heap buffers on the F4 because the heap is located in CCM which is not accessible by DMA.
2020-12-05 20:20:07 +02:00
iabdalkader
7590a17400 Update Pure Thermal board files. 2020-12-05 04:27:50 +02:00
Kwabena W. Agyeman
6ef6e92cc9 Rename OpenMV Pure Thermal 2020-12-04 16:59:51 -08:00
Kwabena W. Agyeman
7f62250b36 Fix OV2640 sensor clock 2020-12-04 15:19:49 -08:00
Kwabena W. Agyeman
5e419eedde Fix OV5640 rev Y slock freq scaling 2020-12-04 14:38:19 -08:00
iabdalkader
1a46add7f9 Update docs. 2020-12-04 14:46:20 +02:00
iabdalkader
9c5a15973a Fix TIM state in updated H7 HAL. 2020-12-04 00:57:28 +02:00
iabdalkader
71b3f62275 Make sure Systick is disabled on stop mode entry. 2020-12-03 19:44:34 +02:00
iabdalkader
bb698b1210 H7 low power mode fixes.
* Fix stop mode voltage scaling for H7 rev V devices.
* Re-enable disabled OSCs and PLLs after exiting stop mode.
* Add functions to enter/exit SDRAM low power mode.
* Fix DRAM retention in stop mode.
2020-12-02 22:52:46 +02:00
iabdalkader
7e920b4c42 Enable DBGMCU only if DEBUG=1 2020-12-02 22:52:14 +02:00
iabdalkader
cdfcf839f1 Revert raise_irq_pri on SD read/write blocks. 2020-12-01 23:25:52 +02:00
iabdalkader
a2d7cdee62 Switch debugging build to -Og 2020-12-01 16:15:07 +02:00
iabdalkader
fce5c9016d Fix FIR I2C bus arbitration lost error.
* If the FIR I2C bus is interrupted during a read/write the I2C device misbehaves and gets stuck pulling SDA low and the next
time the device is re-initialized the I2C controller detects an arbitration lost condition.
* The most affected sensor seems to be the AMG8833 on the F4, F7 and H7 micros and the MLX90640 on the F4 mirco.
* Add a function to switch SCL to GPIO and pulse SCL at ~100KHz to attempt to unstuck the I2C device, it will attempt this
one time before giving up.
* This seems to work very well on all the tested micro-controllers.
2020-12-01 15:21:22 +02:00
iabdalkader
ffe9a4bba3 Retry AMG8833 init a few times.
* Fixes occasional failure on F7 on soft-reset.
2020-12-01 01:13:03 +02:00
iabdalkader
2700fb9123 Use I2C_TIMING for F4. 2020-11-30 22:36:21 +02:00
iabdalkader
193ea31ec3 Use a different timeout for cambus/i2c scanning. 2020-11-30 22:24:18 +02:00
iabdalkader
4e4a2ba1ca Update docs. 2020-11-30 18:04:58 +02:00
iabdalkader
5f193e8a82 Remove old fatfs library. 2020-11-30 00:13:02 +02:00
iabdalkader
77a1512dad Update STHAL
* F4 HAL V1.7.1 -> V1.7.10
* F7 HAL V1.2.2 -> V1.2.8
* H7 HAL V1.6.0 -> V1.9.0
2020-11-29 21:22:43 +02:00
iabdalkader
0fb882adc3 Update CMSIS headers. 2020-11-29 00:43:46 +02:00
Ibrahim Abd Elkader
eab5a2837c
Merge pull request #1012 from openmv/make_link
Link libgcc to bootloader and UVC.
2020-11-29 00:38:12 +02:00
Ibrahim Abd Elkader
8e8f0cd952
Merge pull request #1011 from openmv/repl_prompt
Add HAL version to REPL prompt
2020-11-29 00:30:49 +02:00
Ibrahim Abd Elkader
b559ed9111
Merge pull request #1010 from kwagyeman/kwabena/fix_m4_lcd
Fix defines
2020-11-29 00:07:51 +02:00
iabdalkader
106cbbc125 Link libgcc to bootloader and UVC.
* Fixes link error in newer HALs.
2020-11-29 00:06:38 +02:00
iabdalkader
22bd9a6c54 Add HAL version to REPL prompt 2020-11-29 00:05:25 +02:00
Kwabena W. Agyeman
e537a476b2 Fix defines 2020-11-28 13:26:14 -08:00