headers: Fix headers across the project

Any word started with underscore followed by and uppercase letter or a
second underscore is a reserved word according with C99.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-09-14 10:43:44 -07:00 committed by Anas Nashif
commit 67ca176754
505 changed files with 1463 additions and 1458 deletions

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __IMX_CCM_H
#define __IMX_CCM_H
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_IMX_CCM_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_IMX_CCM_H_
#define IMX_CCM_CORESYS_CLK 0
#define IMX_CCM_PLATFORM_CLK 1
@ -13,4 +13,4 @@
#define IMX_CCM_LPUART_CLK 3
#define IMX_CCM_LPI2C_CLK 4
#endif /* __IMX_CCM_H */
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_IMX_CCM_H_ */

View file

@ -4,12 +4,12 @@
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __KINETIS_SIM_H
#define __KINETIS_SIM_H
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SIM_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SIM_H_
#define KINETIS_SIM_CORESYS_CLK 0
#define KINETIS_SIM_PLATFORM_CLK 1
#define KINETIS_SIM_BUS_CLK 2
#define KINETIS_SIM_LPO_CLK 19
#endif /* __KINETIS_SIM_H */
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_KINETIS_SIM_H_ */

View file

@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __STM32_CLOCK_H
#define __STM32_CLOCK_H
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32_CLOCK_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32_CLOCK_H_
/* clock bus references */
#define STM32_CLOCK_BUS_AHB1 0
@ -15,4 +15,4 @@
#define STM32_CLOCK_BUS_IOP 5
#endif /* __STM32_CLOCK_H */
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32_CLOCK_H_ */

View file

@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __DT_BINDINGS_GPIO_GPIO_H
#define __DT_BINDINGS_GPIO_GPIO_H
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_GPIO_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_GPIO_H_
/**
@ -180,4 +180,4 @@
#endif /* __DT_BINDINGS_GPIO_GPIO_H */
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_GPIO_H_ */

View file

@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __DT_BINDINGS_I2C_I2C_H
#define __DT_BINDINGS_I2C_I2C_H
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_I2C_I2C_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_I2C_I2C_H_
#define I2C_BITRATE_STANDARD 100000 /* 100 Kbit/s */
#define I2C_BITRATE_FAST 400000 /* 400 Kbit/s */
@ -12,4 +12,4 @@
#define I2C_BITRATE_HIGH 3400000 /* 3.4 Mbit/s */
#define I2C_BITRATE_ULTRA 5000000 /* 5 Mbit/s */
#endif /* __DT_BINDINGS_I2C_I2C_H */
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_I2C_I2C_H_ */

View file

@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __DT_BINDING_IRQ_H
#define __DT_BINDING_IRQ_H
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_INTERRUPT_CONTROLLER_INTEL_IOAPIC_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_INTERRUPT_CONTROLLER_INTEL_IOAPIC_H_
#define IRQ_TYPE_LEVEL 0x00008000
#define IRQ_TYPE_EDGE 0x00000000

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _STM32_PINCTRL_COMMON_H_
#define _STM32_PINCTRL_COMMON_H_
#ifndef ZEPHYR_STM32_PINCTRL_COMMON_H_
#define ZEPHYR_STM32_PINCTRL_COMMON_H_
/**
@ -233,4 +233,4 @@
#define STM32_PIN_PK14 STM32PIN(STM32_PORTK, 14)
#define STM32_PIN_PK15 STM32PIN(STM32_PORTK, 15)
#endif /* _STM32_PINCTRL_COMMON_H_ */
#endif /* ZEPHYR_STM32_PINCTRL_COMMON_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _STM32_PINCTRL_H_
#define _STM32_PINCTRL_H_
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_STM32_PINCTRL_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_STM32_PINCTRL_H_
#include <dt-bindings/pinctrl/stm32-pinctrl-common.h>
/**
@ -94,4 +94,4 @@
#define STM32_OPENDRAIN_PULLUP (STM32_OTYPER_OPEN_DRAIN | STM32_PUPDR_PULL_UP)
#define STM32_PUSHPULL_PULLUP (STM32_OTYPER_PUSH_PULL | STM32_PUPDR_PULL_UP)
#endif /* _STM32_PINCTRL_H_ */
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_STM32_PINCTRL_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _STM32_PINCTRLF1_H_
#define _STM32_PINCTRLF1_H_
#ifndef ZEPHYR_STM32_PINCTRLF1_H_
#define ZEPHYR_STM32_PINCTRLF1_H_
#include <dt-bindings/pinctrl/stm32-pinctrl-common.h>
@ -107,4 +107,4 @@
#define STM32_PIN_SPI_SLAVE_NSS (STM32_MODE_INPUT | STM32_CNF_IN_FLOAT)
#define STM32_PIN_USB (STM32_MODE_INPUT | STM32_CNF_IN_PUPD)
#endif /* _STM32_PINCTRLF1_H_ */
#endif /* ZEPHYR_STM32_PINCTRLF1_H_ */

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __IMX_RDC_H
#define __IMX_RDC_H
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_
#define A7_DOMAIN_ID 0
#define A9_DOMAIN_ID 0
@ -18,4 +18,4 @@
#define RDC_DOMAIN_PERM(domain, perm) (perm << (domain * 2))
#endif /* __IMX_RDC_H */
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_RDC_IMX_RDC_H_ */