Files

copied
Last update 2 years 1 month by Gianpaolo Macario
Filesfirmware
..
blinky
common
cpld
hackrf_usb
tools
.gitignore
CMakeLists.txt
README
appveyor.sh
dfu-util.cmake
dfu.py
hackrf-common.cmake
toolchain-arm-cortex-m.cmake
libopencm3
dfu.py
import os.path import struct import sys with open("_header.bin", "wb") as f: x = struct.pack('<H', os.path.getsize(sys.argv[1] + '_dfu.bin') // 512 + 1) y = [0xda, 0xff, x[0], x[1]] + [0xff] * 12 f.write(bytearray(y))
Report a bug