]> sigrok.org Git - libsigrok.git/commit
asix-sigma: Cleanup the bit2bitbang
authorMarek Vasut <redacted>
Sun, 20 Apr 2014 17:19:33 +0000 (19:19 +0200)
committerBert Vermeulen <redacted>
Wed, 30 Apr 2014 16:45:50 +0000 (09:45 -0700)
commitd485d4436177b04e305f1e6c880edf62755380e0
tree3b068add113c237ea78bb8dfeb64bf5d0be11429
parent8bbf7627df3706fd1fee6d094c09a010dcda9b1a
asix-sigma: Cleanup the bit2bitbang

Rework the bit2bitbang function. Remarkable changes are:
- The function was renamed to sigma_fw_2_bitbang()
- We use glib function calls to work with the file
- We mmap the file containing firmware instead of opening the file
  and then reading it into a buffer.
- The magic firmware transformation is now type-safe.
- Documentation and comments were added where applicable.

Signed-off-by: Marek Vasut <redacted>
hardware/asix-sigma/asix-sigma.c