Commit Graph

1855 Commits

Author SHA1 Message Date
iabdalkader
b45dec9b1a Use MP_ATOMIC_SECTION to enable/disable IRQs 2014-10-02 01:38:28 +02:00
iabdalkader
17d3e73f86 Update MP branch 2014-10-01 01:41:38 +02:00
iabdalkader
d2fd0f631d Disable patch prog 2014-10-01 01:41:13 +02:00
iabdalkader
559da9af95 Remove RNG from ISR 2014-10-01 01:35:59 +02:00
iabdalkader
db7bce66d1 Update STM Cube to 1.3 2014-10-01 01:26:03 +02:00
iabdalkader
90309715c9 Pass RGB to image_threshold and convert to LAB 2014-09-28 16:40:06 +02:00
iabdalkader
2ba464310e Fix XYZ lookup 2014-09-28 15:37:23 +02:00
iabdalkader
2706b0c41b Move xyz table to /img 2014-09-28 15:35:51 +02:00
iabdalkader
3fca55514a Remove commented code 2014-09-27 18:57:12 +02:00
shimniok@gmail.com
dbb2019b9a Added feature to reset into DFU from omv onboard software when receiving USBDB_BOOT 2014-09-26 22:55:01 -06:00
shimniok@gmail.com
cbace2759a added functionality for starting bootloader via USBDBG_BOOT 2014-09-26 11:15:27 -06:00
iabdalkader
8467c67f06 Add System Reset Command
* Add sys reset to USBDBG and IDE
2014-09-25 03:37:00 +02:00
iabdalkader
d6375f0292 Use gpio module to reg interrupts 2014-09-25 00:14:39 +02:00
iabdalkader
422778e7b3 Add priority, sub_priority to gpio_init_exti 2014-09-24 23:56:30 +02:00
iabdalkader
a70dc7052d Fix GPIO pin defs 2014-09-24 23:55:15 +02:00
iabdalkader
0224c29588 Fix GPIO pin mapping 2014-09-24 23:26:59 +02:00
iabdalkader
04c1fe0d0e Fix FAST ROI
* Find all KPs then discard based on ROI (for small ROIs)
2014-09-24 22:56:45 +02:00
iabdalkader
ec8ed77f27 Fix SDRAM Timings 2014-09-24 22:25:27 +02:00
iabdalkader
ce3d435137 Add load_lbp 2014-09-24 22:25:14 +02:00
iabdalkader
3a04f1c74a Optimize PPM writer 2014-09-20 09:02:24 +02:00
iabdalkader
65cd8a133a Update license
* Switch to MIT
* Add license notice to source files
2014-09-20 05:09:52 +02:00
iabdalkader
bd56912fb6 Fix uSD SPI issue corrupting framebuffer 2014-09-20 03:34:54 +02:00
iabdalkader
5f51438029 Add LBP 2014-09-20 02:02:22 +02:00
iabdalkader
a25650562c Cleanup main 2014-09-18 19:23:10 +02:00
iabdalkader
27f5ae0093 Move FS cache to heap
* This will alloc FS cache only if it's needed.
* Increase heap to ~45K
2014-09-18 19:22:21 +02:00
iabdalkader
e01565cdb5 Fix quant table init 2014-09-17 22:16:04 +02:00
iabdalkader
c41cbc1e85 Format LICENSE 2014-09-17 21:42:23 +02:00
iabdalkader
f470517b2b Disable a few modules, update qstr 2014-09-17 21:40:30 +02:00
iabdalkader
8493538076 Remove old syscalls file 2014-09-17 21:40:13 +02:00
iabdalkader
a44be5d38b Compile for OMV2 only 2014-09-17 21:39:35 +02:00
iabdalkader
8854f0a9d5 Add JPEG encoder 2014-09-17 21:39:19 +02:00
iabdalkader
9cb9c4b892 Move more Objects to ISR section 2014-09-17 21:32:55 +02:00
iabdalkader
cc522583bb Fix lab,xyz tables 2014-09-17 21:20:19 +02:00
iabdalkader
73543a727e Expand heap a bit 2014-09-12 20:55:29 +02:00
iabdalkader
dcd65daee5 Add threshold, scale KW args to VJ detector 2014-09-12 20:53:43 +02:00
iabdalkader
52c71f387e Add STD to cascade. 2014-09-12 19:00:21 +02:00
iabdalkader
9fa248f44b Bug fixes and optimization 2014-09-12 18:59:49 +02:00
iabdalkader
c30adb6ea1 Fix scaled integral 2014-09-12 18:44:26 +02:00
iabdalkader
8bfc2c92a9 Add threshold param to haar detector 2014-09-12 14:32:18 +02:00
iabdalkader
918026a22c Use ROI in Keypoint detector 2014-09-12 13:56:08 +02:00
iabdalkader
017b62d20d Use integral_scaled 2014-09-12 13:48:17 +02:00
iabdalkader
b2d39d3e66 Add integral_scaled prototype 2014-09-12 13:42:37 +02:00
iabdalkader
065a3cb337 Remove SCALE_FACTOR const 2014-09-12 11:50:17 +02:00
iabdalkader
e898bbd15a Fix assertion code 2014-09-12 11:47:14 +02:00
iabdalkader
4a0790635e Check draw_line image boundaries 2014-09-11 11:49:36 +02:00
iabdalkader
04b013b33b Cleanup 2014-09-11 07:35:33 +02:00
iabdalkader
fe778e07f9 Use integral_alloc 2014-09-11 07:08:35 +02:00
iabdalkader
f8e08b9749 Add draw_line 2014-09-11 07:05:36 +02:00
iabdalkader
1bb823b981 Add integral_alloc 2014-09-11 07:03:49 +02:00
iabdalkader
5ec8511f90 Better atan2f 2014-09-11 07:02:52 +02:00
iabdalkader
aa93ab7c42 Use bytes for scores 2014-09-11 06:05:21 +02:00
iabdalkader
44669573ce Minor fixes 2014-09-11 05:52:43 +02:00
iabdalkader
649344c40c More fixes to median 2014-09-11 03:40:51 +02:00
iabdalkader
54fec0f294 Fix median 2014-09-10 23:18:15 +02:00
iabdalkader
b8d989be57 Update MP branch 2014-09-10 23:16:37 +02:00
iabdalkader
7bb8bef8a1 Add Update FB Command 2014-09-10 22:22:50 +02:00
iabdalkader
949fbfef51 Save angle when writing descriptor 2014-09-10 19:00:13 +02:00
iabdalkader
c70960d17e Add save descriptor from ROI 2014-09-10 18:59:34 +02:00
iabdalkader
d0cce539de Fix atan2f 2014-09-09 17:04:04 +02:00
iabdalkader
50062826d2 Add missing header 2014-09-09 15:09:06 +02:00
iabdalkader
3270d08241 Add UART defs 2014-09-09 15:08:25 +02:00
iabdalkader
903f756a7c Misc Fixes, add load/save descriptor 2014-09-09 15:07:22 +02:00
iabdalkader
06c8f77662 Add ceil 2014-09-09 15:02:34 +02:00
iabdalkader
2f5b82ec77 Update UART code 2014-09-05 18:09:07 +02:00
iabdalkader
41d531242a Fix big frame size 2014-09-04 01:03:38 +02:00
iabdalkader
cf9be6bf71 Mirror/VFLIP when building for OMV2 2014-09-03 23:47:09 +02:00
iabdalkader
c12f559d62 Remove sd from isr section
* Overflows on OMV2
2014-09-03 23:37:19 +02:00
iabdalkader
734eca7e97 Add Color to draw_string 2014-09-03 19:16:41 +02:00
iabdalkader
d142654920 Add Scaled Integral Function 2014-09-03 16:17:46 +02:00
iabdalkader
2e81c7a150 Cleanup Haar code 2014-09-03 16:14:17 +02:00
iabdalkader
b2eb44910a Add subimg 2014-09-02 16:29:20 +02:00
iabdalkader
5fdd6e09a3 Add font rendering 2014-09-01 23:43:06 +02:00
iabdalkader
06c9253644 Rework blob counting 2014-09-01 16:52:14 +02:00
iabdalkader
29202f1f99 Add morphological operations, fix threshold 2014-09-01 16:50:58 +02:00
iabdalkader
526efdac04 Small Optimizations 2014-09-01 16:17:33 +02:00
iabdalkader
ad1daadd69 Add more objects to .isr_vector 2014-09-01 15:41:19 +02:00
iabdalkader
82e46987b1 Remove deinit 2014-09-01 15:40:10 +02:00
iabdalkader
4a39ffc65b Add module names for debugging 2014-08-31 15:12:11 +02:00
iabdalkader
99657a2207 Fix I2C init/deinit 2014-08-31 14:13:29 +02:00
iabdalkader
b621643763 Opt imlib_integral_image 2014-08-30 19:19:07 +02:00
iabdalkader
19121dec9f Fix exported functions 2014-08-30 18:35:37 +02:00
iabdalkader
d8c057d935 Optimize blob alloc 2014-08-30 17:31:28 +02:00
iabdalkader
8ab90c57c4 Optimize imlib_threshold 2014-08-29 22:39:58 +02:00
iabdalkader
f500fe28d1 Remove mp_sys_exit 2014-08-29 19:38:04 +02:00
iabdalkader
cb3e021a40 Enable EXTI 2014-08-29 19:37:19 +02:00
iabdalkader
22323eb1a3 Remove dead object files 2014-08-29 19:36:49 +02:00
iabdalkader
78eee3fcc6 Resize FLASH storage 2014-08-29 19:36:32 +02:00
iabdalkader
459ec97aad Use PKHBT to pack SMUAD operands 2014-08-29 13:21:22 +02:00
iabdalkader
25abc200f9 Add FAST/FREAK detector
* Remove SURF code and MP functions
* Add FAST/FREAK keypoint extractor/descriptor
* Add FAST/FREAK Python example
2014-08-27 17:34:58 +02:00
iabdalkader
0aeab28640 Update MP Modules
* Update all modules for new API
* Move modules to built-in
2014-08-26 20:32:43 +02:00
iabdalkader
590bd22e2e Cleanup linker script 2014-08-26 17:30:03 +02:00
iabdalkader
f1d1aa5c67 Cleanup all Makefiles
* Add verbose option
* Fix link dependencies
2014-08-26 17:17:59 +02:00
iabdalkader
165ed73659 Export uwTick 2014-08-26 15:47:16 +02:00
iabdalkader
8355ddc338 Enable _FS_RPATH 2014-08-26 15:44:00 +02:00
iabdalkader
d61526a974 Add atan2, log2 and log 2014-08-26 12:09:51 +02:00
iabdalkader
82efa9042d Throw Exception When malloc Fails 2014-08-25 20:55:52 +02:00
iabdalkader
7038cb25c6 Export gc_collect and random 2014-08-25 14:37:17 +02:00
iabdalkader
bf3f6633ea Use SIMD in Alpha Blend 2014-08-25 14:36:36 +02:00
iabdalkader
1117c49ff9 Use LOW GPIO Speed 2014-08-25 14:34:01 +02:00
iabdalkader
e13e902d80 Add 1 to max temp scale 2014-08-25 14:33:44 +02:00
iabdalkader
9572faf78f Add scaled function
* Returns new scaled image
2014-08-25 14:32:31 +02:00
iabdalkader
45c3a5d3ae Use DMA for SPI transfers 2014-08-25 14:32:16 +02:00
iabdalkader
9752af11df WFI When sleeping 2014-08-25 14:27:10 +02:00
iabdalkader
e7de5bc4f1 Disable FE interrupt in direct mode 2014-08-25 14:25:51 +02:00
iabdalkader
cc09ad155e Use SDRAM for FB base 2014-08-23 10:47:42 +02:00
iabdalkader
e21794b4cb Reset DMA stream before re-init 2014-08-23 10:47:01 +02:00
iabdalkader
777fafc8ef Fix ld script 2014-08-21 12:30:09 +02:00
iabdalkader
5d5f801051 Add USR_SPI defs 2014-08-20 22:14:30 +02:00
iabdalkader
9e0136dbc8 Add proper fb locking 2014-08-20 21:17:27 +02:00
iabdalkader
dac7beadc6 Add mutex 2014-08-20 21:10:43 +02:00
iabdalkader
43aa7688a6 Fix RNG 2014-08-19 19:06:27 +02:00
iabdalkader
729fedfe6f Use new scale function 2014-08-18 12:40:13 +02:00
iabdalkader
f1861a332a Add scale, blit and blend functions
* Add scale, blit, blend and rainbow
* Update imlib header
* Export new functions to MP
2014-08-18 12:36:47 +02:00
iabdalkader
d151388e73 Add SDRAM region 2014-08-18 10:40:50 +02:00
iabdalkader
133f2fccb9 Retry to init before failing 2014-08-18 10:36:32 +02:00
iabdalkader
074557265d Add rainbow filter 2014-08-18 10:33:46 +02:00
iabdalkader
5722436a63 Add MLX90620 driver 2014-08-18 10:26:32 +02:00
iabdalkader
563ab52eca Add Soft I2C 2014-08-18 10:21:48 +02:00
iabdalkader
a0e99939ad Pass Target to CPP 2014-08-18 10:12:03 +02:00
iabdalkader
02999f2432 Rename stm32f407_hal_msp 2014-08-10 19:42:14 +02:00
iabdalkader
12d062d1bc Enable GPIO and SPI
* Fix GPIO/SPI code
* Use buffers in SPI read/write
* Add pin qstrs OMV2
* remove old led files
* Update LCD user examples
2014-08-10 19:39:19 +02:00
iabdalkader
a93cd7fd7a Use CPP to generate linker scripts 2014-07-31 06:26:19 +02:00
iabdalkader
52da153c0c Fix sdram init function 2014-07-31 06:19:23 +02:00
iabdalkader
4215697e00 Add checks for OPENMV2 2014-07-31 06:12:53 +02:00
iabdalkader
cb3af4e25a Fix comment typo 2014-07-31 05:59:04 +02:00
iabdalkader
046d7afa98 Enable GPIOF clock 2014-07-31 05:57:56 +02:00
iabdalkader
4242a753fe Fix SDRAM test 2014-07-31 05:57:38 +02:00
iabdalkader
991645da8b Fix F429 PLLs 2014-07-23 08:09:26 +02:00
iabdalkader
ba49bc9c9f Add SDRAM driver
* Add SDRAM driver
* Add SDRAM to linker script
* Add FMC drivers to Makefile
2014-07-23 08:08:29 +02:00
iabdalkader
b67ee0e5f3 Add SD SDIO driver 2014-07-23 08:06:56 +02:00
iabdalkader
92ded74fd9 Add IR LED Support 2014-07-21 03:55:54 +02:00
iabdalkader
381e24d315 Add support for STM32F429 2014-07-17 09:16:04 +02:00
iabdalkader
35fdb04aa9 Enable CCM clock in startup code 2014-07-17 09:13:56 +02:00
iabdalkader
6389cce8b3 Export select 2014-07-14 04:17:11 +02:00
iabdalkader
dfab091f25 Add select 2014-07-14 03:43:21 +02:00
iabdalkader
932398820b Keep track of socket state 2014-07-14 03:42:29 +02:00
iabdalkader
9b145bd4c7 Fix inet_ntop endianness 2014-07-14 02:56:50 +02:00
iabdalkader
2fd8af0bf5 Disable IRQs around spi calls
* Fixes SPI transfer failures.
* Set highest baudrates for SD and CC3K
2014-07-09 04:34:16 +02:00
iabdalkader
78ad46dd34 Add set_quality for JPEG mode 2014-07-09 04:31:39 +02:00
iabdalkader
366171b042 Replace spi_recv with macro
* Set baudrate prescaler to 2
2014-07-07 04:59:14 +02:00
iabdalkader
d30c06f55a Set max Rx/Tx packet size 2014-07-07 03:17:46 +02:00
iabdalkader
945331cace Fix ucPad 2014-07-07 02:24:43 +02:00
iabdalkader
3681237acf Split recv packets 2014-07-07 02:04:36 +02:00
iabdalkader
b07cb91357 Add CC patch programmer 2014-07-07 02:03:20 +02:00
iabdalkader
55ae590bcb Update CC host driver
* Update to v1.15
2014-07-07 02:00:25 +02:00
iabdalkader
dcb4f34520 Remove old patch programmer 2014-07-06 23:38:29 +02:00
iabdalkader
84483d1d11 Update MP 2014-07-05 03:50:01 +02:00
iabdalkader
74280e07c6 Update CC3K SPI driver 2014-07-05 03:45:16 +02:00
iabdalkader
2d3abcf2f4 Add wlan and socket python modules 2014-07-05 03:41:43 +02:00
iabdalkader
43758d1a67 Make wlan_start timeout 2014-07-05 03:39:01 +02:00
iabdalkader
95b36965ec Update cc3k.h 2014-07-05 03:38:45 +02:00
iabdalkader
7826c14c05 Add inet_pton and inet_ntop 2014-07-05 03:36:04 +02:00
iabdalkader
545c29763e Fix SPI timeout 2014-07-02 00:03:59 +02:00
iabdalkader
3ee3716842 Clear connected flag when interrupted 2014-06-30 03:47:42 +02:00
iabdalkader
59d9d18bbe Update MP 2014-06-30 03:47:30 +02:00
iabdalkader
52bf272e8e Move test for USBDBG before snapshot 2014-06-30 03:47:04 +02:00
iabdalkader
30169f3aaa Add buffer protocol to image 2014-06-30 03:46:32 +02:00
iabdalkader
34ca3ed295 Lower default Qs 2014-06-30 03:46:09 +02:00
iabdalkader
e2ef1a568f Use MP's file module 2014-06-30 03:45:52 +02:00
iabdalkader
73f0d348bc More fixes to SD code 2014-06-30 03:45:03 +02:00
iabdalkader
94c46ab309 Cleanup SDCARD code 2014-06-28 19:54:06 +02:00
iabdalkader
92563b6190 Add SDCARD SPI driver 2014-06-28 01:26:32 +02:00
iabdalkader
0191702058 Export open 2014-06-27 23:46:13 +02:00
iabdalkader
1c7f8d7bdf Move GPIO configuration to MSP 2014-06-27 22:21:59 +02:00
iabdalkader
e23dca875c Update MP branch 2014-06-25 19:53:55 +02:00
iabdalkader
2d833b2ab5 Fix warning 2014-06-25 19:51:09 +02:00
iabdalkader
f23336e3ae Return the number of SURF matches 2014-06-25 19:50:45 +02:00
iabdalkader
5470b6c72f Add new constants 2014-06-25 19:50:30 +02:00
iabdalkader
185ab2877c ADD JPEG support
* ADD higher resolutions
* Set GPIO to low speed
* Use frame_ready to sync snapshots
2014-06-25 19:47:23 +02:00
iabdalkader
d96b1d9656 Update USBDBG
* Update commands
* Sync FB dump
2014-06-25 19:46:22 +02:00
iabdalkader
561c97cb41 Add JPEG regs
* Some fixes to old registers
2014-06-25 15:54:16 +02:00
iabdalkader
18e62155b0 Cleanup Makefile 2014-06-22 12:31:19 +02:00
iabdalkader
f8eb7b35e1 Fix br/cont/gain 2014-06-21 09:44:25 +02:00
iabdalkader
aaa06a4021 Add Get/Set sensor attributes 2014-06-21 09:43:26 +02:00
iabdalkader
b5587adc65 Add sensor controls 2014-06-21 09:41:27 +02:00
iabdalkader
aaa51cfdf6 Fix DMA mode 2014-06-20 15:30:02 +02:00
iabdalkader
bd2783f2b1 Enable FIFO 2014-06-20 09:52:46 +02:00
iabdalkader
9cc9af6edd Update MP branch 2014-06-19 23:25:20 +02:00
iabdalkader
62b8eadbfc Remove unused variable 2014-06-19 23:24:45 +02:00
iabdalkader
2ea09a43db Add template saving 2014-06-19 23:21:18 +02:00
iabdalkader
ad65c304dd Fix exceptions 2014-06-19 23:21:04 +02:00
iabdalkader
9fb77ee5ac Enable HaarCascade and Image 2014-06-19 23:20:32 +02:00
iabdalkader
64b883ceaf Update sensor drivers
* Add set_contrast
* Fix set_brightness
2014-06-19 23:19:11 +02:00
iabdalkader
06ed1c0a53 Update PPM
* Fix ppm_read
* Add ppm_write_subimg
2014-06-19 23:16:59 +02:00
iabdalkader
ce3ab63337 Fix template matching 2014-06-19 23:14:11 +02:00
iabdalkader
c76f04baf5 Update MP branch 2014-06-18 21:21:31 +02:00
iabdalkader
f53295a18e Enable str functions 2014-06-18 21:20:47 +02:00
iabdalkader
c1dab26fca Fix more sources to use HAL 2014-06-18 21:20:22 +02:00
iabdalkader
51458b1c2e Update USB Debug Interface 2014-06-18 17:29:09 +02:00
iabdalkader
1e4b6fa8fd Update sources to new HAL 2014-06-18 17:28:46 +02:00
iabdalkader
0e69ebad74 Update MP branch 2014-06-18 17:14:02 +02:00
iabdalkader
6cf069fb9e Add sources to sthal Makefile 2014-06-18 17:12:47 +02:00
iabdalkader
8c3712b55d Move linker script to omv 2014-06-18 17:11:04 +02:00
iabdalkader
7a4cee620b Add MP header 2014-06-15 21:18:22 +02:00
iabdalkader
55740aa14d Add OMV Makefile 2014-06-15 21:17:01 +02:00
iabdalkader
d5e3a2eace Update MP branch 2014-06-15 21:16:04 +02:00
iabdalkader
b00d9c2e97 Update sources for new STHAL/MP 2014-06-15 21:15:13 +02:00
iabdalkader
dd2933a200 Add top Makefile 2014-06-15 21:12:44 +02:00
iabdalkader
c6e1a1fe12 Update libraries
* Remove old libraries
* Add new sources
* Use new STM HAL
2014-06-15 21:04:00 +02:00
iabdalkader
4f90903cd0 Update branch 2014-06-14 18:08:26 +02:00
iabdalkader
2aaa070b10 Update branch 2014-06-14 17:17:09 +02:00
iabdalkader
4df970b418 Move files to OMV 2014-06-14 12:28:45 +02:00
iabdalkader
5fe261e170 set MP submodule to openmv branch 2014-06-14 12:20:43 +02:00
iabdalkader
0c7529c0fa Add micropython submodule 2014-06-14 12:08:48 +02:00
iabdalkader
72c13e47d7 Fix blob detection 2014-05-03 00:03:39 +02:00
iabdalkader
b56821a9f0 Fix blobs detection 2014-05-02 22:44:56 +02:00
iabdalkader
7b6c0beacb Change comments 2014-05-02 22:01:54 +02:00
iabdalkader
26fac06bd5 Fix ppm_write to save RGB888 2014-04-12 19:46:22 +02:00
iabdalkader
dbee032c6a Add SD Card support 2014-04-12 18:58:55 +02:00
iabdalkader
140ecd59ea Fix file_read bug 2014-04-12 01:13:32 +02:00
iabdalkader
c3a2d8ac0f re-enable CC3K 2014-04-10 17:09:58 +02:00
iabdalkader
1558e4fc1b Fix gc_alloc calls 2014-04-10 17:08:35 +02:00
iabdalkader
48b73580b0 Fix sensor reset code 2014-04-10 17:08:18 +02:00
iabdalkader
5f2b17f62c Use new MP API 2014-04-10 17:07:15 +02:00
iabdalkader
d6f66bc2f9 Remove short-enums 2014-04-10 16:56:47 +02:00
iabdalkader
fdefb82df9 Add SCCB DeInit 2014-04-08 02:02:13 +02:00
iabdalkader
91099e9edc Update image API 2014-04-04 21:07:09 +02:00
iabdalkader
be7d0d317e Fix framerate and gainceiling 2014-04-04 20:31:15 +02:00
iabdalkader
2a33cde156 Fix RGB median 2014-04-04 19:11:26 +02:00
iabdalkader
16a377affd Update linker script 2014-04-02 02:15:38 +02:00
iabdalkader
25e76a5db6 Remove template read/write 2014-04-02 02:13:32 +02:00
iabdalkader
c844da7bec Add ppm support 2014-04-02 02:12:46 +02:00
iabdalkader
5998aa4857 Adding missing sensor functions 2014-03-30 19:37:16 +02:00
iabdalkader
b23eeda8e5 Convert all MP modules to static modules 2014-03-30 19:26:47 +02:00
iabdalkader
5bfc56d33a Disable LED callback 2014-03-30 19:18:58 +02:00
iabdalkader
da48eb4ff4 Check laplacian sign before matching 2014-03-30 19:18:24 +02:00
iabdalkader
862dd3d16a Update libmp 2014-03-27 17:45:47 +02:00
iabdalkader
f1b524b520 Add circle drawing 2014-03-23 20:38:31 +02:00
iabdalkader
2390c8bb4b Disable unused functions 2014-03-22 19:40:45 +02:00
iabdalkader
0fd2047fad Add check for array length 2014-03-22 19:40:25 +02:00
iabdalkader
3a18b8f4b6 Move math functions to separate source 2014-03-22 19:40:11 +02:00
iabdalkader
bee46316c4 Add SURF prototypes and export MP module 2014-03-22 19:30:47 +02:00
iabdalkader
a13642f714 Add mem checks 2014-03-22 19:07:47 +02:00
iabdalkader
e578633449 Add misc defs 2014-03-22 19:07:20 +02:00
iabdalkader
d888f8d9f6 Fix set_framesize
* Disable/Enable DSP for frame size change to work.
2014-03-19 01:41:14 +02:00
iabdalkader
2ff7b4ecb0 Add wlan test code 2014-03-19 01:40:36 +02:00
iabdalkader
4f6c8e5ec8 Fix bug
* Adding wrong Y to blob
2014-03-19 01:39:35 +02:00
iabdalkader
fb928482b4 Add grayscale median 2014-03-16 22:24:47 +02:00
iabdalkader
822cd035b2 Set blob points init array size 2014-03-16 22:22:35 +02:00
iabdalkader
ee8df1a861 Cleanup exported functions 2014-03-16 20:01:32 +02:00
iabdalkader
669a9effb4 Add CC3000 library 2014-03-13 02:10:18 +02:00
iabdalkader
681110df97 Remove opt pragma 2014-03-07 22:18:39 +02:00
iabdalkader
a511f6203a Add GPIO module 2014-03-07 20:53:57 +02:00
iabdalkader
db86110da6 Remove unsupported pragma 2014-03-07 20:53:07 +02:00
iabdalkader
ef6be8ab3c Add stack unwinding code for HardFault exception 2014-03-07 20:43:28 +02:00
iabdalkader
9ce736322f Add SPI driver and Python module 2014-03-07 20:38:03 +02:00
iabdalkader
27856cc8db Fix SVGA regs 2014-03-05 17:12:03 +02:00
iabdalkader
cc23cb4c49 Set default brightness and gainceiling 2014-03-05 17:11:15 +02:00
iabdalkader
8eaa4fafb5 Improve flood algorithm 2014-03-04 20:02:35 +02:00
iabdalkader
46b8d97901 Fix blobs and array bugs 2014-03-04 01:57:35 +02:00
iabdalkader
da58d6b9ba Enable 30FPS
* Set DSP input image to 800x600
* Enable 30FPS
2014-03-03 22:18:58 +02:00
iabdalkader
5a5c93f66b Use volatile for curr_ticks 2014-03-03 16:32:11 +02:00
iabdalkader
ea113dcc34 Update exported modules 2014-03-03 16:31:35 +02:00
iabdalkader
cc314d555d Use uint32_t for xalloc 2014-03-03 16:27:29 +02:00
iabdalkader
70a5e45129 Remove libc dependency 2014-03-03 16:24:50 +02:00
iabdalkader
c75969a9e8 Update image code to use fast math 2014-03-03 16:23:14 +02:00
iabdalkader
ccc88548f7 Add fast math functions 2014-03-03 16:18:48 +02:00
iabdalkader
ffb3dac484 Add time module 2014-03-03 16:17:42 +02:00
iabdalkader
9e6524f70c Fix bug
* Reset sensor state before setting polarity
2014-03-03 16:03:12 +02:00
iabdalkader
b410b5038c Add array_pop_back and fix bug 2014-03-02 19:38:41 +02:00
iabdalkader
1d62ec6101 Add two new sqrt functions
* Add vsqrt implemented with VSQRT instruction
* Add fsqrt IEEE float dependant approximation
2014-03-02 00:57:14 +02:00
iabdalkader
b6491622d4 Use volatile with I2C timeout 2014-03-01 20:40:49 +02:00
iabdalkader
7d7cc77571 Use sqrtf in haar 2014-03-01 20:40:17 +02:00
iabdalkader
facee324c8 Remove sqrt functions 2014-03-01 20:39:54 +02:00
iabdalkader
90dc4e448d Fix -O flag 2014-03-01 17:32:16 +02:00
iabdalkader
9ad02e2b83 Add sqrt_qxx functions 2014-03-01 16:39:49 +02:00
iabdalkader
a1cf2c4602 Add array alloc with initial size 2014-03-01 15:29:45 +02:00
iabdalkader
f5b91439b2 Restructure Image Library
* Split image library into multiple source files
* Add new img/ to src
* Add median, kmeans, median, blob, SURF.
2014-03-01 15:27:37 +02:00
iabdalkader
41936ff96a Add checks for NULL return from gc_* 2014-03-01 13:35:26 +02:00
iabdalkader
b21018f39e Handle default case in set_pixformat 2014-03-01 13:33:31 +02:00
iabdalkader
d29dc4db7f Add RNG module 2014-03-01 13:33:01 +02:00
iabdalkader
36bfe95829 Add check for array destructor
* Check if array destructor is not null before calling.
2014-02-27 14:12:44 +02:00
iabdalkader
d8f3ac933c Add xalloc0 2014-02-25 18:47:27 +02:00
iabdalkader
5a12d1e372 Check if array destructor is NULL 2014-02-25 17:04:34 +02:00
iabdalkader
42be54aa72 Fix Makefile CFLAGS 2014-02-23 23:29:40 +02:00
iabdalkader
103f67801c Fix USB divider 2014-02-23 23:26:39 +02:00
iabdalkader
d00ee2d083 Replace malloc calls with xalloc 2014-02-23 23:26:04 +02:00
iabdalkader
a2f0ee04f8 Add _bss_end for gccollect 2014-02-23 03:40:36 +02:00
iabdalkader
7630a9be74 Update python bindings for new libmp 2014-02-23 03:40:11 +02:00
iabdalkader
7891a89723 Use pendsv exception to interrupt running code 2014-02-23 03:37:46 +02:00
iabdalkader
427b03aaed Add check if sensor_init failed 2014-02-21 23:35:40 +02:00
iabdalkader
e2e66d9240 Add OV2640 driver 2014-02-21 23:32:25 +02:00
iabdalkader
4b0dd6e62c Update detect_objects to return empty list
* Update detect_objects to return empty list if there's no detection.
2014-02-21 23:24:07 +02:00
iabdalkader
1e14eacaa2 Update sensor code
* Add OV2640 PID
* Add DCMI polarities to sensor struct
* Set DCMI polarities in sensors init functions
* Update OV9650 to set DCMI polarities
2014-02-21 23:23:18 +02:00
iabdalkader
7efede186b Check sensor_init result 2014-02-21 05:00:14 +02:00
iabdalkader
e83f72c8fe Enabel OV9650 Internal Regulator 2014-02-21 03:32:27 +02:00
iabdalkader
e20bd56001 Disable systick alloc 2014-02-19 02:45:41 +02:00
iabdalkader
112f0b5ce3 Fix template mean 2014-02-18 03:17:21 +02:00
iabdalkader
474bfd1b71 Add template matching
* Add fast template matching using NCC
* Add some support functions to imlib
2014-02-17 21:59:13 +02:00
iabdalkader
86c7bb2041 Remove whitespaces from ld script 2014-02-14 15:56:33 +02:00
iabdalkader
8856f5e24d Add assert str macro 2014-02-14 15:43:43 +02:00
iabdalkader
8668c17cba Export open to python 2014-02-14 15:42:59 +02:00
iabdalkader
492b1488e2 Add support for loading haar cascade from file 2014-02-14 15:40:14 +02:00
iabdalkader
156d194bf8 Add file module 2014-02-14 15:38:03 +02:00
iabdalkader
9991b6b803 Update main
* Remove pyb prefix
* Export ticks() function to python
2014-02-13 23:00:33 +02:00
iabdalkader
8a91d9f6d4 Export imlib module 2014-02-13 03:17:51 +02:00
iabdalkader
4b6c073133 Cleanup file
* Fix line endings
* Remove whitespaces
2014-02-13 03:17:05 +02:00
iabdalkader
cb2da9fc9d Add MP imlib module 2014-02-13 03:15:15 +02:00
iabdalkader
f7aff67ba5 Add MP image module 2014-02-13 03:14:38 +02:00
iabdalkader
b18744e8e7 Add py_assert helper macros 2014-02-13 03:13:11 +02:00
iabdalkader
ca39013097 Update imlib
* Use image for imlib functions
* Rename some types
2014-02-13 03:12:11 +02:00
iabdalkader
f0431b9b10 Remove sensor arg from py_sensor 2014-02-13 03:11:24 +02:00
iabdalkader
ddcf6919c1 Remove sensor struct arg
* Remove sensor arg from sensor functions
* Use sensor struct in sensor.c
2014-02-13 03:09:51 +02:00
iabdalkader
4afc74a3c1 Move framebuffer to separate header 2014-02-13 03:02:59 +02:00
iabdalkader
875e239157 Add USB debug interface module
* Add USB debug interface module
2014-02-13 02:13:24 +02:00
iabdalkader
f944b81571 Remove break from OTG_FS_WKUP_IRQHandler 2014-02-11 01:44:02 +02:00
iabdalkader
567feccc66 Fix usbdbg exec script 2014-02-10 03:11:53 +02:00
iabdalkader
e7da05d28b Add USB debugging interface 2014-02-09 23:57:24 +02:00
iabdalkader
a8350215b0 Cleanup main
* Remove boot script
* Update main script
* Change namespace to openmv
2014-02-09 23:20:19 +02:00
iabdalkader
4e1306244a Add OSC definition 2014-02-09 22:41:07 +02:00
iabdalkader
41ca67b709 Update RESET and PWDN for REV3 2014-02-08 01:10:36 +02:00
iabdalkader
422529dcea Export sensor functions and constants to MP 2014-02-05 14:05:46 +02:00
iabdalkader
37f614367c Add sensor MP bindings
* Add sensor MicroPython bindings
2014-02-04 18:56:11 +02:00
iabdalkader
aa6b1630a5 Add pendsv interrupt
* Enable pendsv interrupt to support Ctrl-c
2014-02-04 18:41:35 +02:00
iabdalkader
f8f3eebe2f Update linker script
* Add _ram_start variable used for framebuffer.
* Check for enough space for MP cache.
* Increase MP's heap size to 32KB.
2014-02-03 17:55:34 +02:00
iabdalkader
ce5987f67e Use correct address for sensor heap 2014-02-03 17:51:42 +02:00
iabdalkader
160b727809 Export LED as a Python module 2014-02-03 17:49:36 +02:00
iabdalkader
d175c69d19 Remove libusbcore and libusbdevcore from Makefile
* Remove USB libraries and use MP's stack for now.
2014-02-03 17:48:08 +02:00
iabdalkader
f2cfdf66ce Add LED toggle function 2014-02-03 17:24:12 +02:00
iabdalkader
a44540f793 Add Initial Support for MicroPython
* Add pre-compiled MicroPython library and headers.
* Change Makefile to link libmp.a remove libusbgeneric
* Change linker script to support MicroPython memory layout.
* Change OTG handle name in stm32f4xx_it.c
* Change main to init libmp and export Python functions.
* Add MicroPython bindings to src
2014-02-01 21:56:45 +02:00
iabdalkader
659ffc73cc Remove syscalls.c 2014-02-01 21:38:29 +02:00
iabdalkader
4609f0295e Use main RAM block exclusively for frame buffers
* Remove malloc's on the main RAM block.
2014-02-01 20:44:53 +02:00
iabdalkader
9cddd79abd Add systick_has_passed function 2014-02-01 19:13:02 +02:00
iabdalkader
a55ec77a9d Add led_state function to led module 2014-02-01 19:08:04 +02:00
iabdalkader
48826fb1f6 Add new HW revision
* Remove power switch and its decoupling cap
* Resize the mounting holes to 2mm
* Connect the switch to NRST instead of BOOT0
* Change RGB LED footprint to PLCC-6
* Change switch footprint
* Add extra pads to usb connector
* Remove crystal and load caps, use ceramic resonator
2014-01-26 13:41:36 +02:00
iabdalkader
dcc33231b4 Remove CCM from cascade 2014-01-24 13:41:48 +02:00
iabdalkader
387f04d80d Use CCM for stack and data sections
* Update linker script to use CCM for stack and data.
* Reserve main RAM block for heap.
* Update std library with weak _sbrk symbol.
* Override _sbrk to use entire main RAM block for malloc.
2014-01-24 13:37:30 +02:00
iabdalkader
5f152403fb Update LED module to use systick task 2014-01-24 13:36:55 +02:00
iabdalkader
b3ebe766f4 Add Systick Task Scheduling
* Add periodic task scheduling to systick module.
2014-01-23 12:28:11 +02:00
iabdalkader
41c5fb117f Move linker script to src/ 2014-01-21 16:34:30 +02:00
iabdalkader
5ec44f4fb5 Add libfatfs to Makefile 2014-01-15 16:03:21 +02:00
iabdalkader
8bb57a94a8 Use SYSCLK frequency to derive sensor extclk
* Use current SYSCLK frequency to derive sensor's extclk.
2014-01-15 15:59:53 +02:00
iabdalkader
b581e244cc Use I2C instead of SW SCCB
* Change SCCB to use I2C instead of soft SCCB
2014-01-15 14:54:50 +02:00
iabdalkader
3b5c554dd9 Set core frequency in main
* Set core frequency using rcc_ctrl
2014-01-15 14:29:23 +02:00
iabdalkader
bf253c22c3 Add RCC Control module
* Add RCC (Reset and Clock Control) module
2014-01-15 13:29:15 +02:00
iabdalkader
d778e82300 Update for the new hardware revision
* Fix PCLK1 divider to default value.
* Disable USB OTG ID and SOF pins used for sensors PWDN and RESET.
* Add PWDN and RESET pin configuration.
2014-01-07 13:32:37 +02:00
iabdalkader
3bd030d0a2 Disable OV965x Internal Regulator 2013-12-24 13:09:50 +02:00
iabdalkader
c6e4c29223 Change default gain ceiling to 4x 2013-12-13 18:46:21 +02:00
iabdalkader
7b11205d53 Add gain ceiling function
Add gain ceiling function to the HAL
Implement set gain ceiling function in ov9650
Change the main loop to accept gain ceiling command
2013-12-13 18:33:02 +02:00
iabdalkader
d34209ced0 Remove unused variable
Remove unused GROUP_EPS variable, a simpler merging algorithm is used.
2013-12-13 03:09:41 +02:00
iabdalkader
1967e7aef5 Remove calls to delay function 2013-12-13 02:49:54 +02:00
iabdalkader
b21069a435 Add a HAL to support more OV sensors.
* Move DMA and DCMI to new HAL
* Change OV9650 driver to sensor specific tasks only.
2013-12-13 01:31:32 +02:00
iabdalkader
0d8c75e0b4 Added the new hardware revision
Added missing DSP library
Fixed SysTick timer IRQ priority
userspace fixes
2013-12-06 03:40:57 +02:00
iabdalkader
5a259bbcf1 Fixed linker script to load haar cascade into CCM
Fixed issue with SCCB delay and optimization
Recompiled all libraries with optimization enabled (-O2)
Some more tweaks to the Sensor's registers
Added function to load CCM data into .ccm section in runtime
2013-12-02 22:17:45 +02:00
iabdalkader
b0c4f8e844 Added USB OTG FS support
Added userspace libusb driver
Fixed some registers now QCIF/QQCIF resoultions are working
Updated CMSIS and STM32F4xx standard peripheral libraries
2013-11-30 04:23:22 +02:00
iabdalkader
e7871c1d04 initial viola-jones face detection code 2013-11-25 14:24:06 +02:00
iabdalkader
773e24e566 added stm32f4xx_std compiled library and header 2013-11-25 10:30:55 +02:00
iabdalkader
38d83381e6 Moved all registers defintions to a separate file.
Added new enums for all resoultions and framerates.
Sensor configuration can be set via serial commands.
2013-11-21 00:19:18 +02:00
iabdalkader
8463773e63 some register fixes. 2013-11-19 23:11:00 +02:00
iabdalkader
125fbdf77a Seperated the camera configuration into pixel, frame size and frame rate functions 2013-11-19 19:56:08 +02:00
iabdalkader
75b069345a cleaned up the rgb_led code 2013-11-19 04:37:36 +02:00
iabdalkader
c6f7ed40d1 systick timer module 2013-11-19 04:34:41 +02:00
iabdalkader
8968c08392 Removed almost all hard-coded values.
Memory for the frame buffer is now allocated dynamically based on image format.
DMA stream will be configured based on image format.
New ov9650 struct to keep track of current config and frame_buffer.
New bin directory to hold a known working binary.
New imlib function for erosion.
New motion detection code.
2013-11-18 23:26:40 +02:00
iabdalkader
24a6572364 fixed some registers 2013-11-15 19:07:29 +02:00
iabdalkader
b439bdae91 Initial commit 2013-11-13 12:24:56 +02:00