Cosmetic changes for coding style for last PR

This commit is contained in:
Gregory Nutt
2019-01-20 07:38:55 -06:00
parent a7d4abd8d2
commit bb2391358c
9 changed files with 201 additions and 159 deletions
@@ -66,6 +66,7 @@
/****************************************************************************
* Public Functions
****************************************************************************/
/****************************************************************************
* Name: stm32_bringup
*
@@ -126,3 +127,4 @@ int stm32_bringup(void)
UNUSED(ret);
return OK;
}
+1
View File
@@ -193,3 +193,4 @@ uint8_t stm32_spi2status(FAR struct spi_dev_s *dev, uint32_t devid)
#endif /* CONFIG_STM32F0L0_SPI2 */
#endif /* CONFIG_STM32F0L0_SPI */
+4 -2
View File
@@ -107,7 +107,8 @@ static void sx127x_chip_reset(void)
/* Configure reset as output */
stm32_configgpio(GPIO_SX127X_RESET|GPIO_OUTPUT|GPIO_SPEED_HIGH|GPIO_OUTPUT_SET);
stm32_configgpio(GPIO_SX127X_RESET | GPIO_OUTPUT | GPIO_SPEED_HIGH |
GPIO_OUTPUT_SET);
/* Set pin to zero */
@@ -119,7 +120,7 @@ static void sx127x_chip_reset(void)
/* Configure reset as input */
stm32_configgpio(GPIO_SX127X_RESET|GPIO_INPUT|GPIO_FLOAT);
stm32_configgpio(GPIO_SX127X_RESET | GPIO_INPUT | GPIO_FLOAT);
/* Wait 10 ms */
@@ -163,3 +164,4 @@ int stm32_lpwaninitialize(void)
errout:
return ret;
}
+4 -2
View File
@@ -100,7 +100,8 @@ static void sx127x_chip_reset(void)
/* Configure reset as output */
stm32_configgpio(GPIO_SX127X_RESET|GPIO_OUTPUT|GPIO_SPEED_HIGH|GPIO_OUTPUT_SET);
stm32_configgpio(GPIO_SX127X_RESET | GPIO_OUTPUT | GPIO_SPEED_HIGH |
GPIO_OUTPUT_SET);
/* Set pin to zero */
@@ -112,7 +113,7 @@ static void sx127x_chip_reset(void)
/* Configure reset as input */
stm32_configgpio(GPIO_SX127X_RESET|GPIO_INPUT|GPIO_FLOAT);
stm32_configgpio(GPIO_SX127X_RESET | GPIO_INPUT | GPIO_FLOAT);
/* Wait 10 ms */
@@ -156,3 +157,4 @@ int stm32_lpwaninitialize(void)
errout:
return ret;
}
+1
View File
@@ -63,3 +63,4 @@ endchoice
endif # WL_SX127X
endif # DRIVERS_LPWAN
+1
View File
@@ -40,3 +40,4 @@ ifeq ($(CONFIG_DRIVERS_LPWAN),y)
include wireless$(DELIM)lpwan$(DELIM)sx127x$(DELIM)Make.defs
endif # CONFIG_DRIVERS_LPWAN
File diff suppressed because it is too large Load Diff
+1
View File
@@ -867,3 +867,4 @@
#endif
#endif /* __DRIVERS_WIRELESS_LPWAN_SX127X_H */
+9 -8
View File
@@ -99,7 +99,7 @@
/* RX FIFO data *************************************************************/
#define SX127X_READ_DATA_HEADER_LEN (sizeof(struct sx127x_read_hdr_s)-SX127X_READ_DATA_MAX)
#define SX127X_READ_DATA_HEADER_LEN (sizeof(struct sx127x_read_hdr_s) - SX127X_READ_DATA_MAX)
#define SX127X_READ_DATA_MAX (CONFIG_LPWAN_SX127X_RXFIFO_DATA_LEN)
#define SX127X_RXFIFO_ITEM_SIZE (sizeof(struct sx127x_read_hdr_s))
@@ -241,23 +241,23 @@ enum sx127x_lora_cr_e
struct sx127x_lower_s
{
int (*irq0attach)(xcpt_t handler, FAR void *arg);
CODE int (*irq0attach)(xcpt_t handler, FAR void *arg);
#ifdef CONFIG_LPWAN_SX127X_DIO1
int (*irq1attach)(xcpt_t handler, FAR void *arg);
CODE int (*irq1attach)(xcpt_t handler, FAR void *arg);
#endif
#ifdef CONFIG_LPWAN_SX127X_DIO2
int (*irq2attach)(xcpt_t handler, FAR void *arg);
CODE int (*irq2attach)(xcpt_t handler, FAR void *arg);
#endif
#ifdef CONFIG_LPWAN_SX127X_DIO3
int (*irq3attach)(xcpt_t handler, FAR void *arg);
CODE int (*irq3attach)(xcpt_t handler, FAR void *arg);
#endif
#ifdef CONFIG_LPWAN_SX127X_DIO4
int (*irq4attach)(xcpt_t handler, FAR void *arg);
CODE int (*irq4attach)(xcpt_t handler, FAR void *arg);
#endif
#ifdef CONFIG_LPWAN_SX127X_DIO5
int (*irq5attach)(xcpt_t handler, FAR void *arg);
CODE int (*irq5attach)(xcpt_t handler, FAR void *arg);
#endif
void (*reset)(void);
CODE void (*reset)(void);
};
/****************************************************************************
@@ -268,3 +268,4 @@ int sx127x_register(FAR struct spi_dev_s *spi,
FAR const struct sx127x_lower_s *lower);
#endif /* __INCLUDE_NUTTX_SX127X_H */