cleanup: remove the whitespaces before the # character
Indenting preprocessor directives reduces the code readability, because it make preprocessor directives harder to spot. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
8920cf127a
commit
b1991eba94
8 changed files with 45 additions and 45 deletions
|
@ -4,8 +4,8 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include <arch/arc/v2/mpu/arc_mpu.h>
|
#include <arch/arc/v2/mpu/arc_mpu.h>
|
||||||
|
|
||||||
static struct arc_mpu_region mpu_regions[] = {
|
static struct arc_mpu_region mpu_regions[] = {
|
||||||
#if CONFIG_ICCM_SIZE > 0
|
#if CONFIG_ICCM_SIZE > 0
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#include <arch/arm/cortex_m/mpu/arm_mpu.h>
|
#include <arch/arm/cortex_m/mpu/arm_mpu.h>
|
||||||
|
|
||||||
static struct arm_mpu_region mpu_regions[] = {
|
static struct arm_mpu_region mpu_regions[] = {
|
||||||
/* Region 0 */
|
/* Region 0 */
|
||||||
|
|
|
@ -12,12 +12,12 @@
|
||||||
* for the ARM LTD Beetle SoC.
|
* for the ARM LTD Beetle SoC.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <device.h>
|
#include <device.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Perform basic hardware initialization at boot.
|
* @brief Perform basic hardware initialization at boot.
|
||||||
|
|
|
@ -22,17 +22,17 @@
|
||||||
#define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS
|
#define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS
|
||||||
|
|
||||||
#if defined CONFIG_SOC_PART_NUMBER_SAM3X4C
|
#if defined CONFIG_SOC_PART_NUMBER_SAM3X4C
|
||||||
#include <sam3x4c.h>
|
#include <sam3x4c.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X4E
|
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X4E
|
||||||
#include <sam3x4e.h>
|
#include <sam3x4e.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X8C
|
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X8C
|
||||||
#include <sam3x8c.h>
|
#include <sam3x8c.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X8E
|
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X8E
|
||||||
#include <sam3x8e.h>
|
#include <sam3x8e.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X8H
|
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X8H
|
||||||
#include <sam3x8h.h>
|
#include <sam3x8h.h>
|
||||||
#else
|
#else
|
||||||
#error Library does not support the specified device.
|
#error Library does not support the specified device.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ID_UART0 ID_UART
|
#define ID_UART0 ID_UART
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
#define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS
|
#define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS
|
||||||
|
|
||||||
#if defined(CONFIG_SOC_PART_NUMBER_SAM4S16C)
|
#if defined(CONFIG_SOC_PART_NUMBER_SAM4S16C)
|
||||||
#include <sam4s16c.h>
|
#include <sam4s16c.h>
|
||||||
#else
|
#else
|
||||||
#error Library does not support the specified device.
|
#error Library does not support the specified device.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "soc_pinmap.h"
|
#include "soc_pinmap.h"
|
||||||
|
|
|
@ -20,23 +20,23 @@
|
||||||
#define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS
|
#define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS
|
||||||
|
|
||||||
#if defined CONFIG_SOC_PART_NUMBER_SAME70J19
|
#if defined CONFIG_SOC_PART_NUMBER_SAME70J19
|
||||||
#include <same70j19.h>
|
#include <same70j19.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAME70J20
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70J20
|
||||||
#include <same70j20.h>
|
#include <same70j20.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAME70J21
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70J21
|
||||||
#include <same70j21.h>
|
#include <same70j21.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N19
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N19
|
||||||
#include <same70n19.h>
|
#include <same70n19.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N20
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N20
|
||||||
#include <same70n20.h>
|
#include <same70n20.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N21
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70N21
|
||||||
#include <same70n21.h>
|
#include <same70n21.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q19
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q19
|
||||||
#include <same70q19.h>
|
#include <same70q19.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q20
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q20
|
||||||
#include <same70q20.h>
|
#include <same70q20.h>
|
||||||
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q21
|
#elif defined CONFIG_SOC_PART_NUMBER_SAME70Q21
|
||||||
#include <same70q21.h>
|
#include <same70q21.h>
|
||||||
#else
|
#else
|
||||||
#error Library does not support the specified device.
|
#error Library does not support the specified device.
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -4,17 +4,17 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sensor.h>
|
#include <sensor.h>
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <device.h>
|
#include <device.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <misc/byteorder.h>
|
#include <misc/byteorder.h>
|
||||||
#include <misc/__assert.h>
|
#include <misc/__assert.h>
|
||||||
|
|
||||||
#include <gpio.h>
|
#include <gpio.h>
|
||||||
|
|
||||||
#include "lsm9ds0_gyro.h"
|
#include "lsm9ds0_gyro.h"
|
||||||
|
|
||||||
extern struct lsm9ds0_gyro_data lsm9ds0_gyro_data;
|
extern struct lsm9ds0_gyro_data lsm9ds0_gyro_data;
|
||||||
|
|
||||||
|
|
|
@ -47,17 +47,17 @@
|
||||||
#include <zephyr.h>
|
#include <zephyr.h>
|
||||||
|
|
||||||
#if defined(CONFIG_ISA_IA32)
|
#if defined(CONFIG_ISA_IA32)
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#include <float_regs_x86_gcc.h>
|
#include <float_regs_x86_gcc.h>
|
||||||
#else
|
#else
|
||||||
#include <float_regs_x86_other.h>
|
#include <float_regs_x86_other.h>
|
||||||
#endif /* __GNUC__ */
|
#endif /* __GNUC__ */
|
||||||
#elif defined(CONFIG_CPU_CORTEX_M4)
|
#elif defined(CONFIG_CPU_CORTEX_M4)
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#include <float_regs_arm_gcc.h>
|
#include <float_regs_arm_gcc.h>
|
||||||
#else
|
#else
|
||||||
#include <float_regs_arm_other.h>
|
#include <float_regs_arm_other.h>
|
||||||
#endif /* __GNUC__ */
|
#endif /* __GNUC__ */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue