Squash commits for public release
This commit is contained in:
9
utils/compilers/DevTreeCompiler/Generator/CWriter.py
Normal file
9
utils/compilers/DevTreeCompiler/Generator/CWriter.py
Normal file
@@ -0,0 +1,9 @@
|
||||
class CWriter():
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def write(self, data):
|
||||
print("static uint8_t _devtree_raw[] = {")
|
||||
for byte in bytearray(data):
|
||||
print(hex(byte), end = ",")
|
||||
print("0x0};")
|
||||
Reference in New Issue
Block a user