samples: basic: limit board.h to where its needed
For blink_led, fade_led, and rgb_led, we only need board.h for the hexiwear_k64 board. Remove other references to board.h and only include it if we are building on hexiwear_k64 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
501283e9bf
commit
ab439ca7fd
|
@ -14,7 +14,6 @@
|
|||
#include <misc/printk.h>
|
||||
#include <device.h>
|
||||
#include <pwm.h>
|
||||
#include <board.h>
|
||||
|
||||
#if defined(CONFIG_SOC_STM32F401XE) || defined(CONFIG_SOC_STM32F412ZG) || \
|
||||
defined(CONFIG_SOC_STM32F413XH) || defined(CONFIG_SOC_STM32L476XG) || \
|
||||
|
@ -31,6 +30,7 @@
|
|||
#define PWM_DRIVER CONFIG_PWM_NRF5_SW_0_DEV_NAME
|
||||
#define PWM_CHANNEL LED0_GPIO_PIN
|
||||
#elif defined(CONFIG_BOARD_HEXIWEAR_K64)
|
||||
#include <board.h>
|
||||
#define PWM_DRIVER GREEN_PWM_NAME
|
||||
#define PWM_CHANNEL GREEN_PWM_CHANNEL
|
||||
#elif defined(CONFIG_BOARD_COLIBRI_IMX7D_M4)
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <misc/printk.h>
|
||||
#include <device.h>
|
||||
#include <pwm.h>
|
||||
#include <board.h>
|
||||
|
||||
#if defined(CONFIG_SOC_STM32F401XE) || defined(CONFIG_SOC_STM32L476XG)
|
||||
#define PWM_DRIVER CONFIG_PWM_STM32_2_DEV_NAME
|
||||
|
@ -26,10 +25,10 @@
|
|||
#define PWM_DRIVER CONFIG_PWM_QMSI_DEV_NAME
|
||||
#define PWM_CHANNEL 0
|
||||
#elif defined(CONFIG_SOC_FAMILY_NRF)
|
||||
#include <board.h>
|
||||
#define PWM_DRIVER CONFIG_PWM_NRF5_SW_0_DEV_NAME
|
||||
#define PWM_CHANNEL LED0_GPIO_PIN
|
||||
#elif defined(CONFIG_BOARD_HEXIWEAR_K64)
|
||||
#include <board.h>
|
||||
#define PWM_DRIVER GREEN_PWM_NAME
|
||||
#define PWM_CHANNEL GREEN_PWM_CHANNEL
|
||||
#elif defined(CONFIG_SOC_ESP32)
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <misc/printk.h>
|
||||
#include <device.h>
|
||||
#include <pwm.h>
|
||||
#include <board.h>
|
||||
|
||||
#if defined(CONFIG_SOC_QUARK_SE_C1000)
|
||||
#define PWM_DEV0 CONFIG_PWM_QMSI_DEV_NAME
|
||||
|
@ -24,6 +23,7 @@
|
|||
#define PWM_DEV2 CONFIG_PWM_QMSI_DEV_NAME
|
||||
#define PWM_CH2 2
|
||||
#elif defined(CONFIG_BOARD_HEXIWEAR_K64)
|
||||
#include <board.h>
|
||||
#define PWM_DEV0 RED_PWM_NAME
|
||||
#define PWM_CH0 RED_PWM_CHANNEL
|
||||
#define PWM_DEV1 GREEN_PWM_NAME
|
||||
|
|
Loading…
Reference in a new issue