Files
Custom-Operating-System/utils/compilers/DevTreeCompiler/Generator/CWriter.py

9 lines
232 B
Python
Raw Normal View History

2025-02-12 09:54:05 -05:00
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};")