summaryrefslogtreecommitdiff
path: root/utils (follow)
Commit message (Collapse)AuthorAge
* atj213x: Fix DMAC block in description fileMarcin Bukat2015-01-23
| | | | Change-Id: I4afc17b06f85d552248c0248e6b4b921ffc1e7a7
* atj213x: fix desc file errorsMarcin Bukat2015-01-22
| | | | | | | Catched by swiss_knife check there are some overlaping fields and invalid characters in some names. Change-Id: Ia26ffd2e29452f4ddd9f8229f78bb2a2cc325ab4
* hwstub: implement read/write data abort recoveryAmaury Pouly2015-01-13
| | | | Change-Id: I1625873b6864584c40984723d82548ad242ee08e
* Fix crash on uninitialized variableThomas Jarosch2015-01-13
| | | | | | | | | | | The WRITE() macro checks if the "fw" pointer is open upon fwrite() error. Since fw was not initialized before use, it might crash for non-zero fw. cppcheck reported. [utils/jz4740_tools/HXFreplace.c:187]: (error) Uninitialized variable: fw Change-Id: I558170f9f17828c9fd515a5da36ad8b5cb30a9ad
* Clean up bogus 'make compiler happy' codeThomas Jarosch2015-01-12
| | | | | | Less code makes the compiler even happier. Change-Id: I24cf586ba44f432b541fd17079f93dbd52314828
* regtools/headergen: Make generator more flexibleMarcin Bukat2015-01-12
| | | | Change-Id: I2328ec021ed990a40257d4ce6f4fc5b3db2ba998
* jz4740 usbtool: Fix undefined behavior in set_reg()Thomas Jarosch2015-01-04
| | | | | | | | | | | | | | The variable 'i' should actually be 'size'. See the read_reg() function above it. Confirmed via private email from Maurus Cuelenaere. Thanks! (who also remembered having trouble reading/setting registers over USB back then ;)) cppcheck reported: [rockbox/utils/jz4740_tools/jz4740_usbtool.c:281]: (error) Uninitialized variable: i Change-Id: I0f34834335e89d2504e7597e8db22cf69b5ca7e7
* Fix uninitialized variable (should fix libusb retry handling)Thomas Jarosch2015-01-04
| | | | | | Reported by cppcheck Change-Id: I5ac7b73f2e3eaee3d5427d118944613e572f684d
* Remove unneeded std::string .c_str() callThomas Jarosch2015-01-04
| | | | | | | cppcheck reported: [utils/zenutils/source/update_patch/main.cpp:105]: (performance) Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. Change-Id: Ied9de135e693af22e1fdc3aa3b67d14b7d2c21e6
* Remove useless assignment of 'len'Thomas Jarosch2014-12-20
| | | | | | | | | | | The variable 'len' is not used after this statement. Probably a copy'n'paste leftover from the similar looking block above. cppcheck reported: [rockbox/utils/zenutils/source/shared/cenc.cpp:212]: (style) Same expression on both sides of '-'. Change-Id: Ia8357187ed39d3fab10d97df75a1146c4f733790
* sb1: fix buggy comparisonAmaury Pouly2014-12-20
| | | | | | | | | cppcheck reported: [rockbox/utils/imxtools/sbtools/sb1.c:440]: (warning) Comparison of a boolean expression with an integer other than 0 or 1. Thanks to Thomas Jarosch Change-Id: I0078232706d4014a1f2acea310a7a0d0edf7788b
* regtools/qeditor: use the new model, drop unused codeAmaury Pouly2014-12-15
| | | | | | Change-Id: Ic4e2e201f6d055c85d52b7fe15d25980386df5b8 Reviewed-on: http://gerrit.rockbox.org/1023 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* regtools/qeditor: introduce custom table model for reg fieldsAmaury Pouly2014-12-15
| | | | | | | | This one is much more efficient than using a generic table widget. Change-Id: I3578964eead746e656f6b0a8dcec0f8442deb13d Reviewed-on: http://gerrit.rockbox.org/1022 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* regtoosl/qeditor: remove unused codeAmaury Pouly2014-12-15
| | | | | | Change-Id: I79ad3151d6a500903786b3467c271b43741f8fee Reviewed-on: http://gerrit.rockbox.org/1021 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* regtools/qeditor: fix field editor not updating the validator on changeAmaury Pouly2014-12-15
| | | | | | Change-Id: Ib8df47c8b7cfe0beb486e45542e3fcc9187bcc54 Reviewed-on: http://gerrit.rockbox.org/1020 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* regtools/qeditor: fix backend dump bug, be more correct on readAmaury Pouly2014-12-15
| | | | | | Change-Id: I581c033435f553f092b61144c4b68b05ab931dd8 Reviewed-on: http://gerrit.rockbox.org/1019 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* regtools/socdesc: update library with a field useful functionsAmaury Pouly2014-12-15
| | | | | | Change-Id: Ib2891fe36b0594e8554bb354a29bc8b3485de20d Reviewed-on: http://gerrit.rockbox.org/1018 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: message widget now supports IDs, useful to clear messagesAmaury Pouly2014-12-15
| | | | | | Change-Id: Ibe0a8909128469a71a25415761860e06fc9f1e67 Reviewed-on: http://gerrit.rockbox.org/1006 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: change setting names, they were inconsistentAmaury Pouly2014-12-15
| | | | | | Change-Id: I47c94520749d0cef1e602c7c62c685a8a3703258 Reviewed-on: http://gerrit.rockbox.org/1000 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: rework register dump to be more general and flexibleAmaury Pouly2014-12-15
| | | | | | Change-Id: I2fb7a2813c93f0804ed1ca6223625706d0dff9a5 Reviewed-on: http://gerrit.rockbox.org/998 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: introduce a new "RAM" backend, and refactor file backendAmaury Pouly2014-12-15
| | | | | | Change-Id: Icfbbc01b83d3592041803387e35f5aa6fb0fa813 Reviewed-on: http://gerrit.rockbox.org/997 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: display message on "Nothing" backend selectionAmaury Pouly2014-12-15
| | | | | | Change-Id: I071c79500f55afe0b6342cbb5a26a9fddba35d94 Reviewed-on: http://gerrit.rockbox.org/996 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: backends can now report validity statusAmaury Pouly2014-12-15
| | | | | | Change-Id: Iefedc9cee10a8c7457d972e5a60d151a6cb38aa8 Reviewed-on: http://gerrit.rockbox.org/995 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: introduce a message widget to display non-interactive messagesAmaury Pouly2014-12-15
| | | | | | Change-Id: Iad43efa1f09428389fbd09403c1ae20d2805f1c5 Reviewed-on: http://gerrit.rockbox.org/987 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: rework mainwindow tab names handlingAmaury Pouly2014-12-15
| | | | | | | | | With the previous code, tab names would be ignored if tab is detached which can happen early on. Change-Id: I9eac4202850f3e79a04590a4ba1444850ec6a583 Reviewed-on: http://gerrit.rockbox.org/986 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: add copyrightAmaury Pouly2014-12-15
| | | | | | Change-Id: I7834bc09b21f2a2d84b1c9edbbe1188372809c63 Reviewed-on: http://gerrit.rockbox.org/983 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* Revert "regtools/qeditor: use the new model, drop unused code"Amaury Pouly2014-12-15
| | | | | This reverts commit 3b3d9bf725a5b04e4cd9bc4254fbd2594b518e89. Gerrit did crap on this one.
* regtools/qeditor: use the new model, drop unused codeAmaury Pouly2014-12-15
| | | | | | Change-Id: Ic4e2e201f6d055c85d52b7fe15d25980386df5b8 Reviewed-on: http://gerrit.rockbox.org/1023 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* MTP: put libs after files in the Makefile, to please old gcc versionsAmaury Pouly2014-12-13
| | | | Change-Id: I6de6771bd8888e40fb9dafa3c84653c8c680bbef
* hwstub/atj213x: add clock setup to crt0.SMarcin Bukat2014-11-28
| | | | | | | Change-Id: I3b6e1b8ee1fa76396f7abe7df69af26e9599cfe9 Reviewed-on: http://gerrit.rockbox.org/1055 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested: Marcin Bukat <marcin.bukat@gmail.com>
* qeditor: add clock analyser for ATJ213xMarcin Bukat2014-11-28
| | | | | | Change-Id: I5f5a3537d1ddf6b02684dd4c1dd13be862d3a918 Reviewed-on: http://gerrit.rockbox.org/1054 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
* hwstub_shell: add support for call and jumpMarcin Bukat2014-11-28
| | | | | | | Change-Id: Ie09d0db21831b79255da858bada7382a08ff4eef Reviewed-on: http://gerrit.rockbox.org/1052 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested: Marcin Bukat <marcin.bukat@gmail.com>
* hwstub: lua functions for atj213x/irivere150Marcin Bukat2014-11-28
| | | | | | | Change-Id: I3ab32996b4b6603fd7d66eee5b3bfd795b79eee1 Reviewed-on: http://gerrit.rockbox.org/1049 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested: Marcin Bukat <marcin.bukat@gmail.com>
* regs-atj213x.xml upadteMarcin Bukat2014-11-18
| | | | Change-Id: Ia34dcf651e68ea66baebdeb8c056db86799ea33c
* hwstub/qeditor: add support for atomic read/writesMarcin Bukat2014-11-18
| | | | | | | | | | The current code assumed that READ/WRITE would produce atomic read/writes for 8/16/32-bit words, which in turned put assumption on the memcpy function. Since some memcpy implementation do not always guarantee such strong assumption, introduce two new operation READ/WRITE_ATOMIC which provide the necessary tools to do correct read and write to register in a single memory access. Change-Id: I37451bd5057bb0dcaf5a800d8aef8791c792a090
* adfuload: fix argument parsingAmaury Pouly2014-11-15
| | | | | | Change-Id: Ibde77a2f7cb7a73c26235be5b2afed9f0aec3e97 Reviewed-on: http://gerrit.rockbox.org/1039 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* hwstub_shell: add atj targetAmaury Pouly2014-11-15
| | | | | | Change-Id: I566694f19dfb110dbf245be7b7f139a4c616e16b Reviewed-on: http://gerrit.rockbox.org/1041 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* regtools: ATJ213x description fileMarcin Bukat2014-11-06
| | | | Change-Id: I5b4d29e0808c57e252f5b6c3b9ba26a52c1bd112
* adfuload: Improve arguments parsingMarcin Bukat2014-11-06
| | | | Change-Id: If18975f13d20bb7f7232cafdb4ea87fa516b5750
* hwstub: Add atj213x supportMarcin Bukat2014-11-05
| | | | Change-Id: Ic32200f9ab2c6977e503307a9cbe43a1328d0341
* atjbootool: fix date printingAmaury Pouly2014-10-31
| | | | Change-Id: If5cd0d79e4afb12224932b24c63b016636c7a56e
* atj213x: e100/150 lcd test binaryMarcin Bukat2014-10-18
| | | | Change-Id: I3f9fa21dcb33d1cd3081d0c995adfb44e085dd7a
* regtools/socdesc: fix redAmaury Pouly2014-10-08
| | | | Change-Id: If40c52168eb5cd2d194c90c3f65263d2b9da0451
* regtools: reg-rk27xx.xml description file rework and cleanupMarcin Bukat2014-09-19
| | | | Change-Id: I0a2e45eb1b4aa03122382cc93bbc0c292b3249be
* qeditor: Implement clock analyzer for rk27xxMarcin Bukat2014-09-19
| | | | | | Change-Id: Ib8f53d32120893b6c1054299ed434a6650a0d7c2 Reviewed-on: http://gerrit.rockbox.org/971 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
* qeditor: rework modified indicator, register tab names depend on contentAmaury Pouly2014-09-19
| | | | | | | | | | | | Because Qt doesn't support QObject multiple inherance, it is a bit tricky to have a base class which interact with the UI. The register tab name now display: - file dump name (for dumps) - hwstub device path (for hwstub) And the register editor display the filename Change-Id: If2579992098c02627c67d560c824f1668e73bc45 Reviewed-on: http://gerrit.rockbox.org/979 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: implement usb device list refresh (if supported)Amaury Pouly2014-09-19
| | | | | | Change-Id: Iaf05cad0e057f767dcde963d194027b2e290dbea Reviewed-on: http://gerrit.rockbox.org/978 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: fix UI to update register/analyser view on each tree/list clickAmaury Pouly2014-09-19
| | | | | | Change-Id: Idaceb7ffaf33c2184a43353dd9d7dee20ac807a9 Reviewed-on: http://gerrit.rockbox.org/972 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: fix horrible out of bound bugAmaury Pouly2014-09-19
| | | | | | Change-Id: I1b34b1cd7be83d90e38559e386d0c6c64797b707 Reviewed-on: http://gerrit.rockbox.org/977 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* qeditor: when switching type tab, automagically switch view, implement reloadAmaury Pouly2014-09-19
| | | | | | Change-Id: I7360af3b5dd7380151732687d6d8de3dbd503f20 Reviewed-on: http://gerrit.rockbox.org/976 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>