Advertisement
dhruvag2000

diff-zephyr1

Aug 23rd, 2022
1,321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.10 KB | None | 0 0
  1. └─❯ git diff
  2. diff --git a/variants/arduino_mkrzero/arduino_mkrzero.overlay b/variants/arduino_mkrzero/arduino_mkrzero.overlay
  3. index 57f281c..2209c8f 100644
  4. --- a/variants/arduino_mkrzero/arduino_mkrzero.overlay
  5. +++ b/variants/arduino_mkrzero/arduino_mkrzero.overlay
  6. @@ -27,5 +27,6 @@
  7.                 d19_gpios = <&arduino_mkr_header 19 0>; /* D19 / A5 / I2C-SCL */
  8.                 d20_gpios = <&arduino_mkr_header 20 0>;
  9.                 d21_gpios = <&arduino_mkr_header 21 0>;
  10. +               led0_gpio = <&arduino_mkr_header 22 0>;
  11.         };
  12.  };
  13. diff --git a/variants/arduino_mkrzero/arduino_mkrzero_pinmap.h b/variants/arduino_mkrzero/arduino_mkrzero_pinmap.h
  14. index 6875cab..12b48c5 100644
  15. --- a/variants/arduino_mkrzero/arduino_mkrzero_pinmap.h
  16. +++ b/variants/arduino_mkrzero/arduino_mkrzero_pinmap.h
  17. @@ -55,6 +55,8 @@ static struct gpio_dt_spec d20 =
  18.      GPIO_DT_SPEC_GET(DT_PATH(zephyr_user), d20_gpios);
  19.  static struct gpio_dt_spec d21 =
  20.      GPIO_DT_SPEC_GET(DT_PATH(zephyr_user), d21_gpios);
  21. +static struct gpio_dt_spec led0_gpio =
  22. +    GPIO_DT_SPEC_GET(DT_PATH(zephyr_user), led0_gpio);
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement