Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: espressif/arduino-esp32
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: mwyborski/arduino-esp32
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 23, 2017

  1. Bugfix I_DELAY macro

    When compiling 
    
    > const ulp_insn_t program[] = {
    > I_DELAY(1)
    > };
    
    with the xtensa-esp32-elf-g++ compiler i always got the error:
    
    > sorry, unimplemented: non-trivial designated initializers not supported
    > 
    >        };
    
    This was due to the different order in the macro and the struct. The struct has another order of the fields (opcode, unused, cycles) vs (cycles, unused, opcode):
    >    struct {
    >        uint32_t cycles : 16;       /*!< Number of cycles to sleep */
    >        uint32_t unused : 12;       /*!< Unused */
    >        uint32_t opcode : 4;        /*!< Opcode (OPCODE_DELAY) */
    >    } delay;                        /*!< Format of DELAY instruction */
    
    After updating the order in the macro it is possible to compile with the g++ compiler.
    robotrovsky authored Nov 23, 2017
    Configuration menu
    Copy the full SHA
    ba81697 View commit details
    Browse the repository at this point in the history
Loading