Remove the ADC channel configuration from the board.h files and use new DT macros to configure the ADC peripheral based on board.dts only.
22 lines
407 B
C
22 lines
407 B
C
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Copyright (c) 2020 Martin Jäger / Libre Solar
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* @brief Mock necessary functions and generated Devicetree or Kconfig defines from Zephyr
|
|
* for unit tests
|
|
*/
|
|
|
|
#include "devicetree_mock.h"
|
|
|
|
#ifndef __deprecated
|
|
#define __deprecated __attribute__((deprecated))
|
|
#endif
|
|
#ifndef __weak
|
|
#define __weak __attribute__((__weak__))
|
|
#endif
|