Coder Social home page Coder Social logo

jocd's People

Contributors

bmh avatar efk-certi avatar ianmaciel avatar inm-certi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jocd's Issues

[USB] Throw an exception if timeout on reads

When a timeout occurs on a read operation USB implementation will log the error and return null (no data available).
CmsisDapProtocol needs to handle this exception and be aware that it might receive a null array of bytes.

[USB] Rename UsbInterface to something else

On DapAccess package we have a package named "usbinterface" and a class "UsbInterface" which isn't a good name. Android uses exactly the same name for interfaces from usb devices.
So we must rename this package and class to not cause misunderstanding.

Remove Android dependency from jOCD sources

jOCD is using Log (android.util.Log) and Context (android.content.Context) both from Android.
We should keep jOCD independent from Android. One possible way is creating another equivalent class to Log, and pass the context as an object to AndroidUsbDevice.

Remove assert

Assert keyword are meant just for debugging.
We should change asserts to "if" and throw exceptions instead.

Remove repeated code

Currently we have two ways to convert from byte to long.
This should be refactored to a unique method to convert byte->long and another long->byte.
Any other methods (array conversion) should use this same method so we don't repeat code.

Throw exception when piece of code isn't implemented

On some piece of code, we have "TODO" marks to indicate that to code isn't completed and some work is needed.
Some of this might not ever become implemented. So we must be sure that not a single "TODO" will be in the middle of the flashing logic by throwing exceptions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.