ulp: Add aditional uint32_t object to `ulp_insn_t`

Used to get the encoded instruction from bit-field structs.

Merges https://github.com/espressif/esp-idf/pull/3759
pull/3947/head
Saket Dandawate 2019-07-10 07:37:37 -07:00 zatwierdzone przez Ivan Grokhotkov
rodzic 28ca2d72b8
commit ccc95191ea
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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");