Cosmetic: Move # of pre-processior command to column 1
This commit is contained in:
parent
2ed09233d3
commit
975d912b40
@ -2240,7 +2240,7 @@ void up_netinitialize(void)
|
||||
g_c5471[0].c_dev.d_ifup = c5471_ifup; /* I/F down callback */
|
||||
g_c5471[0].c_dev.d_ifdown = c5471_ifdown; /* I/F up (new IP address) callback */
|
||||
g_c5471[0].c_dev.d_txavail = c5471_txavail; /* New TX data callback */
|
||||
#ifdef CONFIG_NET_IGMP
|
||||
#ifdef CONFIG_NET_IGMP
|
||||
g_c5471[0].c_dev.d_addmac = c5471_addmac; /* Add multicast MAC address */
|
||||
g_c5471[0].c_dev.d_rmmac = c5471_rmmac; /* Remove multicast MAC address */
|
||||
#endif
|
||||
|
@ -76,7 +76,7 @@
|
||||
* Pre-processor Definitions
|
||||
*******************************************************************************************************************************/
|
||||
|
||||
#if defined(CONFIG_EFM32_EFM32GG)
|
||||
#if defined(CONFIG_EFM32_EFM32GG)
|
||||
# define EFM32_DMA_NCHANNELS 12
|
||||
#elif defined(CONFIG_EFM32_EFM32G)
|
||||
# define EFM32_DMA_NCHANNELS 8
|
||||
|
@ -59,7 +59,7 @@
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
|
@ -119,4 +119,4 @@
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#endif /* __ARCH_ARM_SRC_LPC11XX_CHIP_LPC116X_PINCONFIG_H */
|
||||
#endif /* __ARCH_ARM_SRC_LPC11XX_CHIP_LPC116X_PINCONFIG_H */
|
||||
|
@ -70,4 +70,4 @@
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#endif /* __ARCH_ARM_SRC_LPC11XX_CHIP_LPC11_MEMORYMAP_H */
|
||||
#endif /* __ARCH_ARM_SRC_LPC11XX_CHIP_LPC11_MEMORYMAP_H */
|
||||
|
@ -70,4 +70,4 @@
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#endif /* __ARCH_ARM_SRC_LPC11XX_CHIP_LPC11_PINCONFIG_H */
|
||||
#endif /* __ARCH_ARM_SRC_LPC11XX_CHIP_LPC11_PINCONFIG_H */
|
||||
|
@ -77,20 +77,20 @@
|
||||
*******************************************************************************/
|
||||
|
||||
#ifndef GPIO_I2C1_SCL
|
||||
#define GPIO_I2C1_SCL GPIO_I2C1_SCL_1
|
||||
#define GPIO_I2C1_SDA GPIO_I2C1_SDA_1
|
||||
# define GPIO_I2C1_SCL GPIO_I2C1_SCL_1
|
||||
# define GPIO_I2C1_SDA GPIO_I2C1_SDA_1
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_I2C0_FREQ
|
||||
#define CONFIG_I2C0_FREQ 100000
|
||||
# define CONFIG_I2C0_FREQ 100000
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_I2C1_FREQ
|
||||
#define CONFIG_I2C1_FREQ 100000
|
||||
# define CONFIG_I2C1_FREQ 100000
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_I2C2_FREQ
|
||||
#define CONFIG_I2C2_FREQ 100000
|
||||
# define CONFIG_I2C2_FREQ 100000
|
||||
#endif
|
||||
|
||||
#define I2C_TIMEOUT ((20 * CLK_TCK) / 1000) /* 20 mS */
|
||||
|
@ -231,4 +231,4 @@
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#endif /* __ARCH_ARM_SRC_LPC17XX_CHIP_LPC176X_PINCONFIG_H */
|
||||
#endif /* __ARCH_ARM_SRC_LPC17XX_CHIP_LPC176X_PINCONFIG_H */
|
||||
|
@ -656,4 +656,4 @@
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#endif /* __ARCH_ARM_SRC_LPC17XX_CHIP_LPC178X_PINCONFIG_H */
|
||||
#endif /* __ARCH_ARM_SRC_LPC17XX_CHIP_LPC178X_PINCONFIG_H */
|
||||
|
@ -72,4 +72,4 @@
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#endif /* __ARCH_ARM_SRC_LPC17XX_CHIP_LPC17_MEMORYMAP_H */
|
||||
#endif /* __ARCH_ARM_SRC_LPC17XX_CHIP_LPC17_MEMORYMAP_H */
|
||||
|
@ -72,4 +72,4 @@
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#endif /* __ARCH_ARM_SRC_LPC17XX_CHIP_LPC17_PINCONFIG_H */
|
||||
#endif /* __ARCH_ARM_SRC_LPC17XX_CHIP_LPC17_PINCONFIG_H */
|
||||
|
@ -73,20 +73,20 @@
|
||||
#if defined(CONFIG_LPC17_I2C0) || defined(CONFIG_LPC17_I2C1) || defined(CONFIG_LPC17_I2C2)
|
||||
|
||||
#ifndef GPIO_I2C1_SCL
|
||||
#define GPIO_I2C1_SCL GPIO_I2C1_SCL_1
|
||||
#define GPIO_I2C1_SDA GPIO_I2C1_SDA_1
|
||||
# define GPIO_I2C1_SCL GPIO_I2C1_SCL_1
|
||||
# define GPIO_I2C1_SDA GPIO_I2C1_SDA_1
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_I2C0_FREQ
|
||||
#define CONFIG_I2C0_FREQ 100000
|
||||
# define CONFIG_I2C0_FREQ 100000
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_I2C1_FREQ
|
||||
#define CONFIG_I2C1_FREQ 100000
|
||||
# define CONFIG_I2C1_FREQ 100000
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_I2C2_FREQ
|
||||
#define CONFIG_I2C2_FREQ 100000
|
||||
# define CONFIG_I2C2_FREQ 100000
|
||||
#endif
|
||||
|
||||
/*******************************************************************************
|
||||
|
@ -78,17 +78,20 @@
|
||||
#if defined(CONFIG_LPC43_I2C0) || defined(CONFIG_LPC43_I2C1)
|
||||
|
||||
#ifndef GPIO_I2C1_SCL
|
||||
#define GPIO_I2C1_SCL GPIO_I2C1_SCL_1
|
||||
#define GPIO_I2C1_SDA GPIO_I2C1_SDA_1
|
||||
# define GPIO_I2C1_SCL GPIO_I2C1_SCL_1
|
||||
# define GPIO_I2C1_SDA GPIO_I2C1_SDA_1
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_I2C0_FREQ
|
||||
#define CONFIG_I2C0_FREQ 100000
|
||||
# define CONFIG_I2C0_FREQ 100000
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_I2C1_FREQ
|
||||
#define CONFIG_I2C1_FREQ 100000
|
||||
# define CONFIG_I2C1_FREQ 100000
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_I2C2_FREQ
|
||||
#define CONFIG_I2C2_FREQ 100000
|
||||
# define CONFIG_I2C2_FREQ 100000
|
||||
#endif
|
||||
|
||||
/*******************************************************************************
|
||||
|
@ -159,7 +159,7 @@
|
||||
#define LCDCA_TIM_PRESC (1 << 0) /* Bit 0: LCD Prescaler Select */
|
||||
#define LCDCA_TIM_CLKDIV_SHIFT (1) /* Bits 1-3: LCD Clock Division */
|
||||
#define LCDCA_TIM_CLKDIV_MASK (7 << LCDCA_TIM_CLKDIV_SHIFT)
|
||||
#define LCDCA_TIM_CLKDIV(n) (((n)-1) << LCDCA_TIM_CLKDIV_SHIFT) /* n=1..8 */
|
||||
# define LCDCA_TIM_CLKDIV(n) (((n)-1) << LCDCA_TIM_CLKDIV_SHIFT) /* n=1..8 */
|
||||
#define LCDCA_TIM_FC0_SHIFT (8) /* Bits 8-12: Frame Counter 0 */
|
||||
#define LCDCA_TIM_FC0_MASK (31 << LCDCA_TIM_FC0_SHIFT)
|
||||
# define LCDCA_TIM_FC0(n) ((n) << LCDCA_TIM_FC0_SHIFT) /* n=0-31 */
|
||||
|
@ -193,7 +193,7 @@ extern "C"
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
@ -196,7 +196,7 @@ extern "C"
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
@ -200,7 +200,7 @@ extern "C"
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
@ -82,7 +82,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SAM34_TWI1_FREQUENCY
|
||||
#define CONFIG_SAM34_TWI1_FREQUENCY 100000
|
||||
# define CONFIG_SAM34_TWI1_FREQUENCY 100000
|
||||
#endif
|
||||
|
||||
/* Driver internal definitions *************************************************/
|
||||
|
@ -84,15 +84,15 @@
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SAMA5_TWI1_FREQUENCY
|
||||
#define CONFIG_SAMA5_TWI1_FREQUENCY 100000
|
||||
# define CONFIG_SAMA5_TWI1_FREQUENCY 100000
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SAMA5_TWI2_FREQUENCY
|
||||
#define CONFIG_SAMA5_TWI2_FREQUENCY 100000
|
||||
# define CONFIG_SAMA5_TWI2_FREQUENCY 100000
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SAMA5_TWI3_FREQUENCY
|
||||
#define CONFIG_SAMA5_TWI3_FREQUENCY 100000
|
||||
# define CONFIG_SAMA5_TWI3_FREQUENCY 100000
|
||||
#endif
|
||||
|
||||
/* Driver internal definitions *************************************************/
|
||||
|
@ -84,11 +84,11 @@
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SAMV7_TWIHS1_FREQUENCY
|
||||
#define CONFIG_SAMV7_TWIHS1_FREQUENCY 100000
|
||||
# define CONFIG_SAMV7_TWIHS1_FREQUENCY 100000
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SAMV7_TWIHS2_FREQUENCY
|
||||
#define CONFIG_SAMV7_TWIHS2_FREQUENCY 100000
|
||||
# define CONFIG_SAMV7_TWIHS2_FREQUENCY 100000
|
||||
#endif
|
||||
|
||||
/* Driver internal definitions *************************************************/
|
||||
|
@ -816,11 +816,11 @@
|
||||
#define GPIO_SAI2_SCK_A_2 (GPIO_ALT|GPIO_AF8|GPIO_PORTD|GPIO_PIN14)
|
||||
#define GPIO_SAI2_SCK_B_1 (GPIO_ALT|GPIO_AF10|GPIO_PORTE|GPIO_PIN12)
|
||||
#define GPIO_SAI2_SCK_B_2 (GPIO_ALT|GPIO_AF8|GPIO_PORTA|GPIO_PIN2)
|
||||
#define GPIO_SAI2_SD_A_1 (GPIO_ALT|GPIO_AF10|GPIO_PORTD|GPIO_PIN11)
|
||||
#define GPIO_SAI2_SD_A_2 (GPIO_ALT|GPIO_AF10|GPIO_PORTB|GPIO_PIN11)
|
||||
#define GPIO_SAI2_SD_B_1 (GPIO_ALT|GPIO_AF10|GPIO_PORTG|GPIO_PIN10)
|
||||
#define GPIO_SAI2_SD_B_2 (GPIO_ALT|GPIO_AF10|GPIO_PORTE|GPIO_PIN11)
|
||||
#define GPIO_SAI2_SD_B_3 (GPIO_ALT|GPIO_AF10|GPIO_PORTF|GPIO_PIN11)
|
||||
#define GPIO_SAI2_SD_A_1 (GPIO_ALT|GPIO_AF10|GPIO_PORTD|GPIO_PIN11)
|
||||
#define GPIO_SAI2_SD_A_2 (GPIO_ALT|GPIO_AF10|GPIO_PORTB|GPIO_PIN11)
|
||||
#define GPIO_SAI2_SD_B_1 (GPIO_ALT|GPIO_AF10|GPIO_PORTG|GPIO_PIN10)
|
||||
#define GPIO_SAI2_SD_B_2 (GPIO_ALT|GPIO_AF10|GPIO_PORTE|GPIO_PIN11)
|
||||
#define GPIO_SAI2_SD_B_3 (GPIO_ALT|GPIO_AF10|GPIO_PORTF|GPIO_PIN11)
|
||||
|
||||
/* HDMI-CEC Controller */
|
||||
|
||||
|
@ -546,7 +546,7 @@ static void adc_tim_dumpregs(struct stm32_dev_s *priv, FAR const char *msg)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef ADC_HAVE_TIMER
|
||||
#ifdef ADC_HAVE_TIMER
|
||||
static void adc_timstart(struct stm32_dev_s *priv, bool enable)
|
||||
{
|
||||
uint16_t regval;
|
||||
|
@ -2095,7 +2095,7 @@ static void stm32_ltdc_linit(int lid)
|
||||
# ifdef STM32_LAYER_CLUT_SIZE
|
||||
ltdc->setclut = stm32_setclut;
|
||||
ltdc->getclut = stm32_getclut;
|
||||
#endif
|
||||
#endif
|
||||
ltdc->setcolor = stm32_setcolor;
|
||||
ltdc->getcolor = stm32_getcolor;
|
||||
ltdc->setcolorkey = stm32_setcolorkey;
|
||||
@ -2107,11 +2107,11 @@ static void stm32_ltdc_linit(int lid)
|
||||
ltdc->setarea = stm32_setarea;
|
||||
ltdc->getarea = stm32_getarea;
|
||||
ltdc->update = stm32_update;
|
||||
#ifdef CONFIG_STM32_DMA2D
|
||||
#ifdef CONFIG_STM32_DMA2D
|
||||
ltdc->blit = stm32_blit;
|
||||
ltdc->blend = stm32_blend;
|
||||
ltdc->fillarea = stm32_fillarea;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Initialize the layer state */
|
||||
|
@ -59,7 +59,7 @@
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
|
@ -65,7 +65,7 @@
|
||||
* F... .... .... ....
|
||||
*/
|
||||
|
||||
#define GPIO_GLITCH (1 << 15) /* Bit 15: Glitch filter enable */
|
||||
#define GPIO_GLITCH (1 << 15) /* Bit 15: Glitch filter enable */
|
||||
|
||||
/* Interrupt modes (valid only if GPIO_INTR==1)
|
||||
* .MM. .... .... ....
|
||||
|
@ -115,8 +115,8 @@
|
||||
* OSCCLK / (CLK_TCK * PRER_DIV) - 1
|
||||
*/
|
||||
|
||||
#define MODCNT_DENOM ((uint32_t)CLK_TCK * (uint32_t)PRER_DIV)
|
||||
#define MODCNT_VALUE ((((uint32_t)HCS12_OSCCLK + (MODCNT_DENOM/2))/ MODCNT_DENOM) - 1)
|
||||
#define MODCNT_DENOM ((uint32_t)CLK_TCK * (uint32_t)PRER_DIV)
|
||||
#define MODCNT_VALUE ((((uint32_t)HCS12_OSCCLK + (MODCNT_DENOM/2))/ MODCNT_DENOM) - 1)
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
|
@ -263,7 +263,7 @@ static inline void up_lowserialsetup(void)
|
||||
|
||||
/* Set port direction registers for Rx/TX pins */
|
||||
|
||||
#if defined(CONFIG_UART0_SERIAL_CONSOLE)
|
||||
#if defined(CONFIG_UART0_SERIAL_CONSOLE)
|
||||
regval = getreg8(M16C_PD6);
|
||||
regval &= ~(1 << 2); /* PD6-2:RxD1 */
|
||||
regval |= (1 << 3); /* PD6-3:TxD1 */
|
||||
|
@ -55,7 +55,7 @@
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
/****************************************************************************
|
||||
* Inline functions
|
||||
|
@ -48,7 +48,7 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
#define KSEG 0x10
|
||||
#define KSEG 0x10
|
||||
|
||||
/****************************************************************************
|
||||
* Globals
|
||||
|
@ -89,7 +89,7 @@ EXTERN uint32_t ez80_systemclock;
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user