ShellAddicted / BNO055ESP32

C++ Interface for the Bosch-Sensortec's BNO055 compatible with Espressif's ESP32 SoC running esp-idf.
MIT License
24 stars 9 forks source link

Fix changes according to new espressif api #12

Closed wojciechmadry closed 8 months ago

wojciechmadry commented 1 year ago

According to the API change in the new espressif, I created changes that fix compilation errors. I haven't tested this on physical hardware yet, and I don't think it should be merged. I'm creating this PR because maybe it will solve someone's compilation problem.

  1. fatal error: driver/i2c.h: No such file or directory Solution. image

  2. error: 'const uart_config_t' has no non-static data member named 'use_ref_tick' Solution. image

  3. error: 'gpio_pad_select_gpio' was not declared in this scope; did you mean 'esp_rom_gpio_pad_select_gpio'? Solution. image

  4. error: 'portTICK_RATE_MS' was not declared in this scope; Solution. image

wojciechmadry commented 1 year ago

Update: I ran this code with the hardware (esp + BNO) and it worked

ShellAddicted commented 8 months ago

Hi, thanks for the PR but #include "rom/gpio.h" doesn't seem a good idea to me. I'm more inclined to replace gpio_pad_select_gpio() altogether.

closing this, will try to take care of the adjustments over the weekend.