Skip to content

Commit 6846c25

Browse files
committed
variants: bunch all includes in common file
Also fix #47 Signed-off-by: Dhruva Gole <[email protected]>
1 parent 8a28d3a commit 6846c25

File tree

5 files changed

+8
-18
lines changed

5 files changed

+8
-18
lines changed

variants/arduino_nano_33_ble/arduino_nano_33_ble_pinmap.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
*/
66

77
/* All the pins that are 100 + x are gpio1 pins and < 100 are in gpio0 */
8-
#pragma once
9-
#include <zephyr/drivers/gpio.h>
10-
#include <zephyr/zephyr.h>
11-
#include <zephyr/drivers/i2c.h>
12-
#include <zephyr/device.h>
8+
#include <common_includes.h>
139

1410
#define LED_BUILTIN 13
1511

variants/arduino_nano_33_ble_sense/arduino_nano_33_ble_sense_pinmap.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
*/
66

77
/* All the pins that are 100 + x are gpio1 pins and < 100 are in gpio0 */
8-
#pragma once
9-
#include <zephyr/drivers/gpio.h>
10-
#include <zephyr/zephyr.h>
11-
#include <zephyr/drivers/i2c.h>
12-
#include <zephyr/device.h>
8+
#include <common_includes.h>
139

1410
#define LED_BUILTIN 13
1511

variants/arduino_nano_33_iot/arduino_nano_33_iot_pinmap.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
*/
66

77
/* All the pins that are 100 + x are gpio1 pins and < 100 are in gpio0 */
8-
#pragma once
9-
#include <zephyr/drivers/gpio.h>
10-
#include <zephyr/zephyr.h>
11-
#include <zephyr/drivers/i2c.h>
12-
#include <zephyr/device.h>
8+
#include <common_includes.h>
139

1410
#define LED_BUILTIN 13
1511

variants/common_includes.h

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#include <zephyr/drivers/gpio.h>
2+
#include <zephyr/kernel.h>
3+
#include <zephyr/drivers/i2c.h>
4+
#include <zephyr/device.h>

variants/nrf52840dk_nrf52840/nrf52840dk_nrf52840_pinmap.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
#ifndef __NRF52840DK_NRF52840_PINMAP_H__
88
#define __NRF52840DK_NRF52840_PINMAP_H__
99

10-
#include <zephyr/drivers/gpio.h>
11-
#include <zephyr/drivers/i2c.h>
12-
#include <zephyr/zephyr.h>
10+
#include <common_includes.h>
1311

1412
#define LED_BUILTIN 22
1513

0 commit comments

Comments
 (0)