Skip to content

Commit 9982807

Browse files
committedMar 12, 2018
opcodes: LITTLE_ENDIAN
Docs are not very clear, but in a slightly different context, LE is mentioned, so I guess that is correct for ESP32 main processor and the ULP co-processor.
1 parent b2342be commit 9982807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎esp32_ulp/opcodes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ESP32 ULP Co-Processor Instructions
33
"""
44

5-
from uctypes import struct, addressof, NATIVE, UINT32, BFUINT32, BF_POS, BF_LEN
5+
from uctypes import struct, addressof, LITTLE_ENDIAN, UINT32, BFUINT32, BF_POS, BF_LEN
66

77
from .soc import *
88

@@ -68,7 +68,7 @@ def make_ins(layout):
6868
"""
6969
struct_def = make_ins_struct_def(layout)
7070
instruction = bytearray(4)
71-
return struct(addressof(instruction), struct_def, NATIVE)
71+
return struct(addressof(instruction), struct_def, LITTLE_ENDIAN)
7272

7373

7474
# instruction structure definitions

0 commit comments

Comments
 (0)