iabdalkader
fe506fa0fb
Use sizeof(tx_buf_len) instead of length.
...
* Length should always be 4 but it's safer this way.
2016-03-06 02:37:36 +02:00
iabdalkader
c12473d8b7
Execute a script only if there's no script running.
2016-03-06 02:36:45 +02:00
iabdalkader
28047269ac
Add DSB after setting USBDBG IRQ.
2016-03-06 02:36:10 +02:00
Kwabena W. Agyeman
1121a6f7df
Fixed save image.
...
It now figures out the file type from the file extension. If no file
extension is given it just saves the file as BMP if its not a JPEG image
or JPEG if it's a JPEG image. If you specify an extension and the file is
not of that type then it will give you an error.
The new test_save.py should run until you reach the JPEG image part
where it quits due to lack of JPEG support natively on OV7725 boards.
Maybe JPEG mode should be supoorted by just compressing pictures?
2016-02-26 22:00:04 -05:00
Kwabena W. Agyeman
ac3d1e4373
Add BMP/PNM/JPEG image file loading and saving.
...
There's not a lot of actual functionality changes from the last commit.
However, switching the basic wrapper library to just long_jump on
failure and moving all the state info to structs required changes to all
the base functions in the last commit. The rest of the changes are to
link in the new functionality and to get the code to compile (usbdbg.c
edits).
Next I'll work on a function which abstracts the problem of opening an
image up and executing a line by line function op on it. I already
worked the code out for that. But, it's not in this commit to keep
things streamlined.
2016-02-25 22:26:56 -05:00
iabdalkader
5aa3555a36
Add enable/disable JPEG to USB commands.
2016-02-18 04:12:53 +02:00
iabdalkader
a0b2f3f7fa
Fix frame request flag.
2016-02-09 03:40:20 +02:00
iabdalkader
dbd69a3a25
Remove framebuffer locking.
...
* Not needed anymore.
2016-02-09 01:11:25 +02:00
iabdalkader
cf641af6b0
Add command to return script running flag.
...
* Return script running flag to disable/enable execute and stop buttons.
* Up ABI version
2016-02-06 17:59:52 +02:00
iabdalkader
544dee93ae
Remove USBDBG clear flags (not needed anymore).
2016-02-06 17:03:50 +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
d9d991054d
Clear debug flags when initializing usbdbg
2015-08-09 21:58:31 +02:00
iabdalkader
4c9982b7e9
Rename usbdbg clear script to clear flags
2015-08-06 12:20:17 +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
f7d71cd594
More parse and compile script to main thread
2015-07-13 07:51:48 +02:00
iabdalkader
42b439a52e
Change IDE interrupt type
...
* Change IDE interrupt from OSError to Exception
2015-07-08 22:27:44 +02:00
iabdalkader
182a844cd2
Add FW version command
...
* Add FW version command to usbdbg.
* Add FW version function to openmv.py
* Check for major version in the IDE.
2015-07-04 03:44:42 +02:00
iabdalkader
977b068316
Use pendsv_nlr_jump_hard to schedule HW PENDSV
2015-04-29 00:46:02 +03:00
iabdalkader
12fd9d5df2
Return compiled script instead of vstr
...
* Compile the script when the last part is received.
* This makes sure script_buf is not changed before it's compiled
2015-04-25 23:39:58 +03:00
iabdalkader
754cce406c
Implement debugging over CDC
2015-02-08 11:12:24 +02:00
iabdalkader
40d43a2a8c
Add OMV Debug Interface
2014-11-06 15:14:33 +02:00
iabdalkader
cea31c1774
Use one request for locking and header
...
* Use one request for locking and FB header to save bandwidth
2014-11-01 15:58:52 +02:00
iabdalkader
899ec65507
Add delay if IDE tried to lock FB
...
* Fix #27
2014-10-31 13:57:17 +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
65cd8a133a
Update license
...
* Switch to MIT
* Add license notice to source files
2014-09-20 05:09:52 +02:00
iabdalkader
7bb8bef8a1
Add Update FB Command
2014-09-10 22:22:50 +02:00
iabdalkader
c70960d17e
Add save descriptor from ROI
2014-09-10 18:59:34 +02:00
iabdalkader
41d531242a
Fix big frame size
2014-09-04 01:03:38 +02:00
iabdalkader
9e0136dbc8
Add proper fb locking
2014-08-20 21:17:27 +02:00
iabdalkader
3ee3716842
Clear connected flag when interrupted
2014-06-30 03:47:42 +02:00
iabdalkader
d96b1d9656
Update USBDBG
...
* Update commands
* Sync FB dump
2014-06-25 19:46:22 +02:00
iabdalkader
aaa06a4021
Add Get/Set sensor attributes
2014-06-21 09:43:26 +02:00
iabdalkader
2ea09a43db
Add template saving
2014-06-19 23:21:18 +02:00
iabdalkader
51458b1c2e
Update USB Debug Interface
2014-06-18 17:29:09 +02:00
iabdalkader
4df970b418
Move files to OMV
2014-06-14 12:28:45 +02:00