Ensure all source code end with one and only one newline

by this command:
git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
This commit is contained in:
Xiang Xiao 2020-02-07 21:17:25 +08:00 committed by Gregory Nutt
parent 81f1133174
commit a8de37fbec
97 changed files with 95 additions and 78 deletions

View File

@ -1069,4 +1069,4 @@ int imxrt_qeinitialize(FAR const char *devpath, int enc)
}
#endif /* CONFIG_IMXRT_ENC1 || CONFIG_IMXRT_ENC2 || \
* CONFIG_IMXRT_ENC3 || CONFIG_IMXRT_ENC4 */
* CONFIG_IMXRT_ENC3 || CONFIG_IMXRT_ENC4 */

View File

@ -48,4 +48,4 @@
* Public Functions
****************************************************************************/
#endif /* __ARCH_ARM_SRC_LPC43XX_LPC43_RTC_H */
#endif /* __ARCH_ARM_SRC_LPC43XX_LPC43_RTC_H */

View File

@ -342,4 +342,4 @@ FAR struct oneshot_lowerhalf_s *oneshot_initialize(int chan,
}
return &priv->lh;
}
}

View File

@ -64,4 +64,4 @@
* Inline Functions
************************************************************************************/
#endif /* __ARCH_ARM_SRC_SAM34_SAM_AES_H */
#endif /* __ARCH_ARM_SRC_SAM34_SAM_AES_H */

View File

@ -342,4 +342,4 @@ FAR struct oneshot_lowerhalf_s *oneshot_initialize(int chan,
}
return &priv->lh;
}
}

View File

@ -53,4 +53,4 @@ struct mm_heap_s g_dtcm_heap;
* Public Functions
****************************************************************************/
#endif /* HAVE_DTCM_HEAP */
#endif /* HAVE_DTCM_HEAP */

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -51,4 +51,4 @@ CHIP_CSRCS += lm32_initialize.c lm32_initialstate.c lm32_interruptcontext.c
CHIP_CSRCS += lm32_irq.c lm32_releasepending.c lm32_releasestack.c
CHIP_CSRCS += lm32_stackframe.c lm32_swint.c lm32_unblocktask.c
CHIP_CSRCS += lm32_reprioritizertr.c lm32_schedulesigaction.c lm32_sigdeliver.c
CHIP_CSRCS += lm32_flushcache.c
CHIP_CSRCS += lm32_flushcache.c

View File

@ -0,0 +1 @@

View File

@ -222,4 +222,4 @@ int gap8_udma_rx_poll(struct gap8_udma_peripheral *instance);
int gap8_udma_doirq(int irq, void *context, FAR void *arg);
#endif /* _ARCH_RISCV_SRC_GAP8_UDMA_H */
#endif /* _ARCH_RISCV_SRC_GAP8_UDMA_H */

View File

@ -319,4 +319,4 @@ FAR struct oneshot_lowerhalf_s *oneshot_initialize(int chan,
}
return &priv->lh;
}
}

View File

@ -81,4 +81,4 @@ _up_vectors::
.dw _up_unused ; Vector offset 24: Unused
.dw _up_unused ; Vector offset 26: Unused
.dw _up_unused ; Vector offset 28: Unused
.dw _up_unused ; Vector offset 30: Unused
.dw _up_unused ; Vector offset 30: Unused

View File

@ -167,4 +167,4 @@ void exec_setsymtab(FAR const struct symtab_s *symtab, int nsymbols)
leave_critical_section(flags);
}
#endif /* CONFIG_LIBC_EXECFUNCS */
#endif /* CONFIG_LIBC_EXECFUNCS */

View File

@ -132,4 +132,4 @@ int imxrt_mmcsd_spi_initialize(int minor)
return OK;
}
#endif /* CONFIG_MMCSD_SPI */
#endif /* CONFIG_MMCSD_SPI */

View File

@ -132,4 +132,4 @@ int imxrt_mmcsd_spi_initialize(int minor)
return OK;
}
#endif /* CONFIG_MMCSD_SPI */
#endif /* CONFIG_MMCSD_SPI */

View File

@ -202,4 +202,4 @@ void lpc17_40_led(int lednum, int state)
lpc17_40_gpiowrite(lednum, state);
}
#endif /* CONFIG_ARCH_LEDS */
#endif /* CONFIG_ARCH_LEDS */

View File

@ -12,4 +12,4 @@ Status
======
2020-01-23: Configuration created (copy-paste from S32K146EVB).
Tested: Serial console, I2C, SPI
Tested: Serial console, I2C, SPI

View File

@ -68,4 +68,4 @@ CONFIG_SYSTEM_I2CTOOL=y
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_NSH_CXXINITIALIZE=y
CONFIG_SYSTEM_SPITOOL=y
CONFIG_USER_ENTRYPOINT="nsh_main"
CONFIG_USER_ENTRYPOINT="nsh_main"

View File

@ -70,4 +70,4 @@ CONFIG_SYSTEM_I2CTOOL=y
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_NSH_CXXINITIALIZE=y
CONFIG_SYSTEM_SPITOOL=y
CONFIG_USER_ENTRYPOINT="nsh_main"
CONFIG_USER_ENTRYPOINT="nsh_main"

View File

@ -12,4 +12,4 @@ Status
======
2020-01-23: Configuration created (copy-paste from S32K146EVB).
Tested: Serial console
Tested: Serial console

View File

@ -68,4 +68,4 @@ CONFIG_SYSTEM_I2CTOOL=y
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_NSH_CXXINITIALIZE=y
CONFIG_SYSTEM_SPITOOL=y
CONFIG_USER_ENTRYPOINT="nsh_main"
CONFIG_USER_ENTRYPOINT="nsh_main"

View File

@ -70,4 +70,4 @@ CONFIG_SYSTEM_I2CTOOL=y
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_NSH_CXXINITIALIZE=y
CONFIG_SYSTEM_SPITOOL=y
CONFIG_USER_ENTRYPOINT="nsh_main"
CONFIG_USER_ENTRYPOINT="nsh_main"

View File

@ -138,4 +138,4 @@ Configurations
builtin applications are selected.
NOTE: This is a very minimal NSH configuration in order to recude
memory usage. Most of the NSH niceties are not available.
memory usage. Most of the NSH niceties are not available.

View File

@ -12,4 +12,4 @@ Status
======
2020-01-23: Configuration created (copy-paste from S32K146EVB).
Tested: Serial console, I2C, SPI.
Tested: Serial console, I2C, SPI.

View File

@ -1 +1 @@
/boot_romfsimg.h
/boot_romfsimg.h

View File

@ -1 +1 @@
/boot_romfsimg.h
/boot_romfsimg.h

View File

@ -17647,4 +17647,4 @@ __attribute__((section(".wlan_firmware_image"))) bcm43362_firmware_image[] = {
0xd2, 0x58, 0x82, 0x92
};
const unsigned int bcm43362_firmware_image_len = sizeof(bcm43362_firmware_image);
const unsigned int bcm43362_firmware_image_len = sizeof(bcm43362_firmware_image);

View File

@ -90,4 +90,4 @@ void arch_sporadic_resume(FAR struct tcb_s *tcb)
stm32_gpiowrite(GPIO_SCHED_RUNNING, true);
}
#endif /* CONFIG_SPORADIC_INSTRUMENTATION */
#endif /* CONFIG_SPORADIC_INSTRUMENTATION */

View File

@ -90,4 +90,4 @@ void arch_sporadic_resume(FAR struct tcb_s *tcb)
stm32_gpiowrite(GPIO_SCHED_RUNNING, true);
}
#endif /* CONFIG_SPORADIC_INSTRUMENTATION */
#endif /* CONFIG_SPORADIC_INSTRUMENTATION */

View File

@ -545,4 +545,4 @@ Configurations
It uses TIM1 to generate PWM and TIM6 to change waveform samples
At the moment, the waveform parameters are hardcoded, but it should be easy to
modify this example and make it more functional.
modify this example and make it more functional.

View File

@ -106,4 +106,4 @@ int stm32l4_can_setup(void)
#endif
}
#endif /* CONFIG_CAN */
#endif /* CONFIG_CAN */

View File

@ -115,4 +115,4 @@ int tiva_timer_configure(void)
return ret;
}
#endif /* CONFIG_DK_TM4C129X_TIMER */
#endif /* CONFIG_DK_TM4C129X_TIMER */

View File

@ -251,4 +251,4 @@ endif
3. Add CONFIG_MOTOROLA_SREC=y in defconfig file or choose make menucofig->Build Setup-> Binary Output Format->
Select Motorola SREC format.
4. Download Renesas flash programmer tool from https://www.renesas.com/in/en/products/software-tools/tools/programmer/renesas-flash-programmer-programming-gui.html#downloads
5. Refer to the user manual document, for steps to flash NuttX binary using RFP tool.
5. Refer to the user manual document, for steps to flash NuttX binary using RFP tool.

View File

@ -209,4 +209,4 @@ endif
3. Add CONFIG_MOTOROLA_SREC=y in defconfig file or choose make menucofig->Build Setup-> Binary Output Format->
Select Motorola SREC format.
4. Download Renesas flash programmer tool from https://www.renesas.com/in/en/products/software-tools/tools/programmer/renesas-flash-programmer-programming-gui.html#downloads
5. Refer to the user manual document, for steps to flash NuttX binary using RFP tool.
5. Refer to the user manual document, for steps to flash NuttX binary using RFP tool.

View File

@ -86,4 +86,4 @@ Execute
293 j reset_handler /* 32 */
(gdb)
And then enjoy yourself debugging with the CLI gdb :-)
And then enjoy yourself debugging with the CLI gdb :-)

View File

@ -0,0 +1 @@

View File

@ -145,4 +145,4 @@ int sim_gpio_initialize(void);
int sim_tsc_setup(int minor);
#endif
#endif /* __BOARDS_SIM_SIM_SIM_SRC_SIM_H */
#endif /* __BOARDS_SIM_SIM_SIM_SRC_SIM_H */

View File

@ -235,4 +235,4 @@
<breakpoints>
</breakpoints>
</project>
</project>

View File

@ -235,4 +235,4 @@
<breakpoints>
</breakpoints>
</project>
</project>

View File

@ -258,4 +258,4 @@
<breakpoints>
</breakpoints>
</project>
</project>

View File

@ -312,4 +312,4 @@
</configuration>
</configurations>
</project>
</project>

View File

@ -258,4 +258,4 @@
<breakpoints>
</breakpoints>
</project>
</project>

View File

@ -312,4 +312,4 @@
</configuration>
</configurations>
</project>
</project>

View File

@ -258,4 +258,4 @@
<breakpoints>
</breakpoints>
</project>
</project>

View File

@ -288,4 +288,4 @@
</ice-event>
</ice-events>
</project>
</project>

View File

@ -288,4 +288,4 @@
</ice-event>
</ice-events>
</project>
</project>

View File

@ -278,4 +278,4 @@ FAR struct dac_dev_s *dac7571_initialize(FAR struct i2c_master_s *i2c,
return &g_dacdev;
}
#endif /* CONFIG_DAC7571 */
#endif /* CONFIG_DAC7571 */

View File

@ -11,4 +11,4 @@ config BCH_ENCRYPTION
config BCH_ENCRYPTION_KEY_SIZE
int "AES key size"
default 16
depends on BCH_ENCRYPTION
depends on BCH_ENCRYPTION

View File

@ -276,4 +276,4 @@ void ft80x_write_hword(FAR struct ft80x_dev_s *priv, uint32_t addr,
void ft80x_write_word(FAR struct ft80x_dev_s *priv, uint32_t addr,
uint32_t data);
#endif /* __DRIVERS_LCD_FT80X_H */
#endif /* __DRIVERS_LCD_FT80X_H */

View File

@ -191,4 +191,4 @@ int altmdm_spi_clearreceiverready(FAR struct altmdm_dev_s *priv);
int altmdm_spi_gpioreadyisr(int irq, FAR void *context, FAR void *arg);
#endif
#endif /* __DRIVERS_MODEM_ALTAIR_ALTMDM_DEV_H */
#endif /* __DRIVERS_MODEM_ALTAIR_ALTMDM_DEV_H */

View File

@ -236,4 +236,4 @@ int altmdm_pm_poweroff(FAR struct altmdm_dev_s *priv);
int altmdm_pm_set_bootstatus(FAR struct altmdm_dev_s *priv, uint32_t status);
#endif
#endif /* __DRIVERS_MODEM_ALTAIR_ALTMDM_PM_H */
#endif /* __DRIVERS_MODEM_ALTAIR_ALTMDM_PM_H */

View File

@ -97,4 +97,4 @@ int bcmf_event_unregister(FAR struct bcmf_dev_s *priv,
int bcmf_event_push_config(FAR struct bcmf_dev_s *priv);
#endif /* __DRIVERS_WIRELESS_IEEE80211_BCMF_BDC_H */
#endif /* __DRIVERS_WIRELESS_IEEE80211_BCMF_BDC_H */

View File

@ -66,4 +66,4 @@ int bcmf_cdc_iovar_request_unsafe(FAR struct bcmf_dev_s *priv, uint32_t ifidx,
int bcmf_cdc_process_control_frame(FAR struct bcmf_dev_s *priv,
struct bcmf_frame_s *frame);
#endif /* __DRIVERS_WIRELESS_IEEE80211_BCMF_CDC_H */
#endif /* __DRIVERS_WIRELESS_IEEE80211_BCMF_CDC_H */

View File

@ -79,4 +79,4 @@ static inline uint16_t bcmf_getle32(uint32_t *val)
return (uint32_t)bcmf_getle16(valw) << 16 | bcmf_getle16(valw + 1);
}
#endif /* __DRIVERS_WIRELESS_IEEE80211_BCMF_UTILS_H */
#endif /* __DRIVERS_WIRELESS_IEEE80211_BCMF_UTILS_H */

View File

@ -45,4 +45,4 @@ DEPPATH += --dep-path wireless$(DELIM)ieee802154$(DELIM)at86rf23x
VPATH += :wireless$(DELIM)ieee802154$(DELIM)at86rf23x
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)wireless$(DELIM)ieee802154$(DELIM)at86rf23x}
endif # CONFIG_IEEE802154_AT86RF233
endif # CONFIG_IEEE802154_AT86RF233

View File

@ -46,4 +46,4 @@ DEPPATH += --dep-path wireless$(DELIM)ieee802154$(DELIM)mrf24j40
VPATH += :wireless$(DELIM)ieee802154$(DELIM)mrf24j40
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)wireless$(DELIM)ieee802154$(DELIM)mrf24j40}
endif # CONFIG_IEEE802154_MRF24J40
endif # CONFIG_IEEE802154_MRF24J40

View File

@ -63,4 +63,4 @@ int mrf24j40_setcca(FAR struct mrf24j40_radio_s *dev,
int mrf24j40_setpamode(FAR struct mrf24j40_radio_s *dev, int mode);
#endif /* __DRIVERS_WIRELESS_IEEE802154_MRF24J40_GETSET_H */
#endif /* __DRIVERS_WIRELESS_IEEE802154_MRF24J40_GETSET_H */

View File

@ -71,4 +71,4 @@ int mrf24j40_beaconstop(FAR struct ieee802154_radio_s *radio);
int mrf24j40_sfupdate(FAR struct ieee802154_radio_s *radio,
FAR const struct ieee802154_superframespec_s *sfspec);
#endif /* __DRIVERS_WIRELESS_IEEE802154_MRF24J40_RADIF_H */
#endif /* __DRIVERS_WIRELESS_IEEE802154_MRF24J40_RADIF_H */

View File

@ -44,4 +44,4 @@ uint8_t mrf24j40_getreg(FAR struct spi_dev_s *spi, uint32_t addr);
int mrf24j40_regdump(FAR struct mrf24j40_radio_s *dev);
#endif /* __DRIVERS_WIRELESS_IEEE802154_MRF24J40_REGOPS_H */
#endif /* __DRIVERS_WIRELESS_IEEE802154_MRF24J40_REGOPS_H */

View File

@ -46,4 +46,4 @@ VPATH += :wireless$(DELIM)spirit$(DELIM)drivers
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" \
$(TOPDIR)$(DELIM)drivers$(DELIM)wireless$(DELIM)spirit$(DELIM)drivers}
endif # CONFIG_SPIRIT_NETDEV
endif # CONFIG_SPIRIT_NETDEV

View File

@ -52,4 +52,4 @@ CSRCS += lfs.c lfs_util.c lfs_vfs.c
DEPPATH += --dep-path littlefs
VPATH += :littlefs
endif
endif

View File

@ -12,4 +12,4 @@ SPIFFS2 thoughts
* Steal one page, use as a bit parity page. When starting an fs modification operation, write one bit
as zero. When ending, write another bit as zero. On mount, if number of zeroes in page is uneven, a
check is automatically run.
check is automatically run.

View File

@ -2216,4 +2216,4 @@ int spiffs_dump(FAR struct spiffs_s *fs)
(long)(ndata_pages * data_pgsize));
return OK;
}
#endif
#endif

View File

@ -49,4 +49,4 @@
****************************************************************************/
#endif /* CONFIG_FS_USERFS */
#endif /* __FS_USERFS_USERFS_H */
#endif /* __FS_USERFS_USERFS_H */

View File

@ -12,4 +12,4 @@
/pwfb_copyrectangle_*bpp.c
/nxglib_cursor_draw_*bpp.c
/nxglib_cursor_erase_*bpp.c
/nxglib_cursor_backup_*bpp.c
/nxglib_cursor_backup_*bpp.c

View File

@ -147,4 +147,4 @@ void mio283qt2_clear(FAR struct lcd_dev_s *dev, uint16_t color);
#endif
#endif /* CONFIG_LCD_MIO283QT2 */
#endif /* __INCLUDE_NUTTX_LCD_MIO283QT2_H */
#endif /* __INCLUDE_NUTTX_LCD_MIO283QT2_H */

View File

@ -147,4 +147,4 @@ void ssd1289_clear(FAR struct lcd_dev_s *dev, uint16_t color);
#endif
#endif /* CONFIG_LCD_SSD1289 */
#endif /* __INCLUDE_NUTTX_LCD_SSD1289_H */
#endif /* __INCLUDE_NUTTX_LCD_SSD1289_H */

View File

@ -71,4 +71,4 @@
FAR char *dlerror(void)
{
return (FAR char *)strerror(errno);
}
}

View File

@ -77,4 +77,4 @@ div_t div(int numer, int denom)
return f;
}
#endif /* CONFIG_CAN_PASS_STRUCTS */
#endif /* CONFIG_CAN_PASS_STRUCTS */

View File

@ -82,4 +82,4 @@ ldiv_t ldiv(long numer, long denom)
return f;
}
#endif /* CONFIG_CAN_PASS_STRUCTS */
#endif /* CONFIG_CAN_PASS_STRUCTS */

View File

@ -82,4 +82,4 @@ lldiv_t lldiv(long long numer, long long denom)
return f;
}
#endif /* CONFIG_CAN_PASS_STRUCTS && CONFIG_HAVE_LONG_LONG */
#endif /* CONFIG_CAN_PASS_STRUCTS && CONFIG_HAVE_LONG_LONG */

View File

@ -573,4 +573,4 @@ int main(int argc, char **argv, char **envp)
parse_file(stream);
fclose(stream);
return EXIT_SUCCESS;
}
}

View File

@ -98,4 +98,4 @@ bool bt_atomic_testbit(FAR bt_atomic_t *ptr, bt_atomic_t bitno);
bool bt_atomic_testsetbit(FAR bt_atomic_t *ptr, bt_atomic_t bitno);
bool bt_atomic_testclrbit(FAR bt_atomic_t *ptr, bt_atomic_t bitno);
#endif /* __WIRELESS_BLUETOOTH_BT_ATOMIC_H */
#endif /* __WIRELESS_BLUETOOTH_BT_ATOMIC_H */

View File

@ -5,4 +5,4 @@ NOTE: Throughout the code, excerpts from the standard are quoted as to make
the code thoroughly readable. I have tried, to always put a reference [1] and
page number. Below is the references that correspond with the reference number
[1]
[1]

View File

@ -72,4 +72,4 @@ void mac802154_rx_assocreq(FAR struct ieee802154_privmac_s *priv,
void mac802154_rx_assocresp(FAR struct ieee802154_privmac_s *priv,
FAR struct ieee802154_data_ind_s *ind);
#endif /* __WIRELESS_IEEE802154__MAC802154_ASSOC_H */
#endif /* __WIRELESS_IEEE802154__MAC802154_ASSOC_H */

View File

@ -61,4 +61,4 @@
* Function Prototypes
****************************************************************************/
#endif /* __WIRELESS_IEEE802154__MAC802154_DATA_H */
#endif /* __WIRELESS_IEEE802154__MAC802154_DATA_H */

View File

@ -78,4 +78,4 @@ int mac802154_req_disassociate(MACHANDLE mac,
(FAR struct ieee802154_privmac_s *)mac;
#endif
return -ENOTTY;
}
}

View File

@ -249,4 +249,4 @@ int mac802154_req_set(MACHANDLE mac, enum ieee802154_attr_e attr,
break;
}
return ret;
}
}

View File

@ -71,4 +71,4 @@ int mac802154_req_gts(MACHANDLE mac, FAR struct ieee802154_gts_req_s *req)
(FAR struct ieee802154_privmac_s *)mac;
#endif
return -ENOTTY;
}
}

View File

@ -63,4 +63,4 @@ struct ieee802154_privmac_s; /* Forward Reference */
void mac802154_txdone_datareq_poll(FAR struct ieee802154_privmac_s *priv,
FAR struct ieee802154_txdesc_s *txdesc);
#endif /* __WIRELESS_IEEE802154__MAC802154_POLL_H */
#endif /* __WIRELESS_IEEE802154__MAC802154_POLL_H */

View File

@ -65,4 +65,4 @@ void mac802154_edscan_onresult(FAR struct ieee802154_privmac_s *priv, uint8_t ed
void mac802154_scanfinish(FAR struct ieee802154_privmac_s *priv,
enum ieee802154_status_e status);
#endif /* __WIRELESS_IEEE802154__MAC802154_SCAN_H */
#endif /* __WIRELESS_IEEE802154__MAC802154_SCAN_H */