Commit Graph

480 Commits

Author SHA1 Message Date
iabdalkader
940f3a0d7d Disabled self tests for OMV1
* RGB QVGA doesn't fit in OMV1's RAM, fix the script or write another one.
2015-08-18 23:54:49 +02:00
iabdalkader
d7130234d3 Return script buffer without copying.
* Since IDE interrupts are enabled after compiling the script, we can
just return a pointer to the script buffer without copying it first.
2015-08-17 19:48:45 +02:00
iabdalkader
b33f7b4c29 Add functions to disable/enable IDE interrupts
* This constrains IDE interrupts avoiding the need for critical sections.
2015-08-17 19:48:18 +02:00
iabdalkader
bf9401ee6f Remove unused #define 2015-08-16 01:11:05 +02:00
iabdalkader
20b823333a Free script buffer after copying it. 2015-08-16 00:16:16 +02:00
iabdalkader
02ac02643e Increase QCIF res 2015-08-15 16:54:09 +02:00
iabdalkader
891f6ab96b Move FS cache to main SRAM for OMV2 2015-08-15 16:50:14 +02:00
iabdalkader
9e19e0ffc6 Re-enable TIM3 to flush storage periodically. 2015-08-14 16:02:11 +02:00
iabdalkader
801f74c2da Remove global misc functions
* Remove redundant functions
2015-08-13 23:18:59 +02:00
iabdalkader
7d949694ef Fix main script FS template 2015-08-13 23:15:57 +02:00
iabdalkader
eb29fc8894 Add sanity checks to draw_string 2015-08-13 23:15:35 +02:00
iabdalkader
83c52c020f Fix draw_string to support Grayscale 2015-08-13 23:14:52 +02:00
iabdalkader
533f0e3e8f Re-init MP state and use pyexec_file/str
* Use pyexec_file/str with re-raise flag
* re-init MP state before executing scripts
2015-08-13 00:22:55 +02:00
iabdalkader
cbbd93b0ca Add the selftest script in main 2015-08-09 22:06:57 +02:00
iabdalkader
d9d991054d Clear debug flags when initializing usbdbg 2015-08-09 21:58:31 +02:00
iabdalkader
54288c5351 Add image module
* Move Image class and misc functions to image module
2015-08-09 13:00:06 +02:00
iabdalkader
0dffedda92 Fix typo 2015-08-08 00:33:26 +02:00
iabdalkader
fa12a1a704 Log fatal errors to file 2015-08-08 00:31:59 +02:00
iabdalkader
4376e87609 Revert sensor_init and check error after USB init 2015-08-08 00:30:39 +02:00
iabdalkader
9af3b9eaba Return different error codes in sensor_init 2015-08-07 23:31:45 +02:00
iabdalkader
aaeaff476d Delay sensor_init
* Call sensor_init after initializing USB mass storage to log errors.
2015-08-07 23:16:30 +02:00
iabdalkader
b99df66659 Wait for IDE to read the frame buffer
* Wait for the IDE to read the frame buffer after trying the lock.
2015-08-07 17:55:11 +02:00
iabdalkader
5f54935378 Fix internal ADC channels readings 2015-08-06 23:13:09 +02:00
iabdalkader
35df760a8c Init one ADC channel in ADCAll
* ADC channel 5 in OMV2
2015-08-06 12:20:58 +02:00
iabdalkader
4c9982b7e9 Rename usbdbg clear script to clear flags 2015-08-06 12:20:17 +02:00
iabdalkader
99bedb06b6 Move firmware files to board directories. 2015-08-01 11:16:59 +02:00
iabdalkader
939c47da6c Add ring buffer 2015-08-01 11:07:22 +02:00
iabdalkader
8c1ff900a8 Fix OPENMV1 build
* Fix board config files
* Fix linker script
* Fix sdcard CD
2015-08-01 10:56:37 +02:00
iabdalkader
856938fea5 Add image get/set pixel 2015-07-31 14:13:09 +02:00
iabdalkader
78abfb87e6 Add PY_ASSERT_TRUE_MSG 2015-07-31 14:11:26 +02:00
iabdalkader
269345303b Add image subscr 2015-07-31 12:37:45 +02:00
iabdalkader
e446e03f9d Remove check for unused pyexec_mode_kind 2015-07-30 17:37:31 +02:00
iabdalkader
b42da07430 Remove reset_mode 2015-07-30 17:33:12 +02:00
iabdalkader
d43eda7e51 Move parse and compile inside exception handler
* This allows syntax errors to be caught and printed
2015-07-29 23:04:41 +02:00
iabdalkader
86a141e51a Add set color bar function 2015-07-29 22:32:05 +02:00
iabdalkader
f6d5129cc7 Clear fb ready flag when stopping script
* This stops the IDE from reading the same frame buffer
2015-07-29 22:04:36 +02:00
iabdalkader
4174eaf029 Generate binaries in firmware dir 2015-07-28 20:33:05 +02:00
iabdalkader
3d31d2662a Update USB VID/PID 2015-07-21 17:42:31 +02:00
iabdalkader
4965343069 Update micropython branch to r1.4.4 2015-07-18 07:05:39 +02:00
iabdalkader
f34b07f015 Update print function 2015-07-18 07:05:13 +02:00
iabdalkader
7fbe54ad4e Update headers for MP 1.4.4 2015-07-18 07:04:46 +02:00
iabdalkader
39b40526d3 Update Makefile for MP 1.4.4 2015-07-18 06:58:47 +02:00
iabdalkader
302dde7017 Update MP
* Add HardFault debugging.
2015-07-18 05:58:31 +02:00
iabdalkader
f7d71cd594 More parse and compile script to main thread 2015-07-13 07:51:48 +02:00
iabdalkader
e2f634675f Rename ptr to mem for consistency. 2015-07-13 07:07:46 +02:00
iabdalkader
a26f752285 Change memory exception to MemoryError 2015-07-13 07:07:02 +02:00
iabdalkader
b5e90c4c8d Add xalloc_fail 2015-07-13 07:06:25 +02:00
iabdalkader
a94b324bb4 Call DCMI DMA abort in sensor reset function
* Call DMA abort in sensor reset function just in case there's a
DMA request in progress.
2015-07-12 07:58:41 +02:00
iabdalkader
4618aeb496 Enable DCMI interrupts 2015-07-12 07:57:34 +02:00
iabdalkader
16fdecf7f4 Remove hard sensor reset 2015-07-12 04:11:44 +02:00