]> granicus.if.org Git - esp-idf/commitdiff
ulp: Add aditional uint32_t object to `ulp_insn_t`
authorSaket Dandawate <newton3143@gmail.com>
Wed, 10 Jul 2019 14:37:37 +0000 (07:37 -0700)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 15 Aug 2019 15:34:26 +0000 (17:34 +0200)
Used to get the encoded instruction from bit-field structs.

Merges https://github.com/espressif/esp-idf/pull/3759

components/ulp/include/esp32/ulp.h

index b045ccc3d9e2f0136337470b05bb2017bd943ee7..d55a8c6c7c35a54b1daedb9df4d4fdb75e3f7df3 100644 (file)
@@ -293,6 +293,8 @@ typedef union {
         uint32_t opcode: 4;         /*!< Opcode (OPCODE_MACRO) */
     } macro;                        /*!< Format of tokens used by MACROs */
 
+    uint32_t instruction;           /*!< Encoded instruction for ULP coprocessor */
+
 } ulp_insn_t;
 
 _Static_assert(sizeof(ulp_insn_t) == 4, "ULP coprocessor instruction size should be 4 bytes");