From 4384795cb92f31e91da8f026c19d024c2fda9efb Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Fri, 13 Aug 2021 18:48:57 +0200 Subject: [PATCH] treewide: Remove excessive newlines --- boards/6lowpan-clicker/include/board.h | 1 - boards/6lowpan-clicker/include/periph_conf.h | 1 - .../6lowpan-clicker/pic32_config_settings.c | 3 -- boards/acd52832/include/gpio_params.h | 1 - boards/avr-rss2/include/board.h | 2 -- boards/avr-rss2/include/eui_provider_params.h | 1 - boards/avsextrem/board_init.c | 1 - boards/avsextrem/include/board.h | 2 -- boards/b-l072z-lrwan1/board.c | 1 - boards/blackpill-128kib/include/board.h | 1 - boards/blackpill/include/board.h | 1 - .../arduino-mkr/include/periph_conf_common.h | 1 - .../include/periph_conf_atmega_common.h | 1 - boards/common/esp32/include/board_common.h | 4 --- boards/common/esp8266/include/board_common.h | 5 --- .../esp8266/include/periph_conf_common.h | 3 -- boards/common/kw41z/include/cfg_i2c_default.h | 1 - boards/common/msb-430/board_init.c | 1 - boards/common/nrf51/include/cfg_rtt_default.h | 1 - .../common/nrf52xxxdk/include/gpio_params.h | 1 - .../particle-mesh/include/gpio_params.h | 1 - .../include/periph_conf.h | 1 - .../include/periph_conf.h | 3 -- .../include/periph_conf.h | 3 -- .../esp32-ttgo-t-beam/include/periph_conf.h | 3 -- .../include/periph_conf.h | 6 ---- boards/esp32-wroom-32/include/periph_conf.h | 1 - boards/esp32-wrover-kit/include/board.h | 1 - boards/esp32-wrover-kit/include/periph_conf.h | 3 -- boards/esp8266-sparkfun-thing/include/board.h | 1 - boards/fox/board.c | 1 - boards/frdm-k22f/include/periph_conf.h | 2 -- boards/frdm-k64f/include/periph_conf.h | 2 -- boards/hamilton/include/periph_conf.h | 1 - boards/i-nucleo-lrwan1/board.c | 1 - boards/im880b/include/board.h | 1 - boards/limifrog-v1/board.c | 1 - boards/lsn50/board.c | 1 - boards/msba2/include/periph_conf.h | 1 - boards/mulle/include/periph_conf.h | 1 - boards/nrf52832-mdk/include/gpio_params.h | 1 - .../nrf52840-mdk-dongle/include/gpio_params.h | 1 - boards/nrf52840-mdk/include/gpio_params.h | 1 - boards/nrf52840dongle/include/gpio_params.h | 1 - boards/nucleo-f070rb/include/periph_conf.h | 1 - boards/nucleo-f091rc/include/periph_conf.h | 1 - boards/nucleo-l152re/include/periph_conf.h | 1 - boards/nucleo-l412kb/include/periph_conf.h | 1 - boards/nucleo-l476rg/include/periph_conf.h | 1 - boards/nz32-sc151/include/periph_conf.h | 1 - boards/p-nucleo-wb55/include/periph_conf.h | 1 - boards/pba-d-01-kw2x/include/periph_conf.h | 2 -- boards/phynode-kw41z/include/board.h | 1 - boards/pic32-wifire/pic32_config_settings.c | 5 --- boards/reel/include/gpio_params.h | 1 - boards/saml21-xpro/board.c | 1 - boards/saml21-xpro/include/board.h | 1 - boards/samr30-xpro/board.c | 1 - boards/samr30-xpro/include/periph_conf.h | 1 - boards/samr34-xpro/board.c | 1 - boards/samr34-xpro/include/periph_conf.h | 2 -- boards/serpente/include/periph_conf.h | 1 - boards/stm32f429i-disc1/include/board.h | 1 - boards/stm32f4discovery/include/board.h | 1 - boards/stm32f723e-disco/include/board.h | 1 - boards/stm32f769i-disco/include/board.h | 1 - boards/telosb/board.c | 2 -- boards/z1/board.c | 2 -- .../riotboot_dfu/bootloader_selection.h | 1 - core/include/cond.h | 1 - core/include/msg.h | 3 -- cpu/arm7_common/include/VIC.h | 2 -- cpu/arm7_common/include/iap.h | 1 - .../include/atmega_regs_common.h | 2 -- cpu/atmega_common/include/cpu_conf.h | 1 - cpu/atmega_common/periph/i2c.c | 2 -- cpu/atmega_common/periph/uart.c | 1 - cpu/cc2538/cpu.c | 1 - cpu/cc2538/include/cc2538.h | 1 - cpu/cc2538/periph/timer.c | 1 - cpu/cc2538/radio/cc2538_rf.c | 1 - cpu/cc26x0_cc13x0/include/cc26x0_cc13x0_aux.h | 9 ------ .../include/cc26x0_cc13x0_prcm.h | 4 --- cpu/cc26x0_cc13x0/include/periph_cpu.h | 1 - cpu/cc26x2_cc13x2/include/cc26x2_cc13x2_aux.h | 1 - cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_i2c.h | 2 -- cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_ioc.h | 1 - cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_wdt.h | 1 - cpu/cc26xx_cc13xx/periph/uart.c | 1 - .../include/atomic_utils_arch.h | 1 - cpu/cortexm_common/include/cpu_conf_common.h | 1 - cpu/cortexm_common/include/irq_arch.h | 1 - cpu/cortexm_common/thread_arch.c | 3 -- cpu/efm32/include/periph_cpu.h | 2 -- cpu/esp32/include/periph_cpu.h | 1 - cpu/esp32/periph/adc.c | 1 - cpu/esp32/periph/gpio.c | 2 -- cpu/esp32/periph/timer.c | 2 -- cpu/esp8266/periph/adc.c | 1 - cpu/esp8266/periph/timer.c | 2 -- cpu/esp_common/freertos/queue.c | 1 - cpu/esp_common/include/gpio_arch_common.h | 1 - cpu/esp_common/include/sys/types.h | 2 -- cpu/esp_common/periph/flash.c | 1 - cpu/esp_common/periph/i2c_sw.c | 1 - cpu/fe310/periph/cpucycle.c | 1 - cpu/fe310/periph/rtc.c | 1 - .../dist/calc_spi_scalers/calc_spi_scalers.c | 2 -- cpu/kinetis/include/cpu_conf_kinetis.h | 1 - cpu/kinetis/include/periph_cpu.h | 1 - cpu/kinetis/periph/i2c.c | 1 - cpu/kinetis/periph/ics.c | 2 -- cpu/lm4f120/periph/gpio.c | 2 -- cpu/lpc23xx/mci/lpc23xx-mci.c | 31 ------------------- cpu/mips32r2_common/cpu.c | 2 -- cpu/mips32r2_common/irq_arch.c | 1 - cpu/mips32r2_common/thread_arch.c | 2 -- .../include/periph_cpu_common.h | 1 - cpu/mips_pic32_common/periph/timer.c | 1 - cpu/msp430_common/cpu.c | 1 - cpu/msp430_common/include/irq_arch.h | 1 - cpu/msp430_common/msp430-main.c | 1 - cpu/msp430fxyz/periph/spi.c | 1 - cpu/msp430fxyz/periph/timer.c | 1 - cpu/native/irq_cpu.c | 1 - cpu/native/mtd/mtd_native.c | 1 - cpu/native/native_cpu.c | 1 - cpu/native/syscalls.c | 2 -- cpu/native/vfs/native_vfs.c | 1 - cpu/nrf52/include/periph_cpu.h | 1 - cpu/nrf5x_common/include/nrfmin.h | 2 -- cpu/nrf5x_common/radio/nrfmin/nrfmin.c | 2 -- cpu/qn908x/cpu.c | 1 - cpu/qn908x/include/periph_cpu.h | 1 - cpu/qn908x/periph/adc.c | 1 - cpu/qn908x/periph/rtc.c | 2 -- cpu/qn908x/periph/timer.c | 1 - cpu/riscv_common/context_frame.c | 1 - cpu/riscv_common/include/context_frame.h | 3 -- cpu/riscv_common/include/cpucycle.h | 2 -- cpu/riscv_common/periph/coretimer.c | 1 - cpu/rpx0xx/include/cpu_conf.h | 1 - cpu/sam0_common/include/periph_cpu_common.h | 2 -- cpu/sam0_common/periph/wdt.c | 1 - cpu/sam3/periph/adc.c | 2 -- cpu/samd21/cpu.c | 1 - cpu/saml1x/cpu.c | 1 - cpu/stm32/dist/clk_conf/clk_conf.c | 1 - cpu/stm32/include/clk/mp1/cfg_clock_default.h | 1 - cpu/stm32/periph/i2c_1.c | 1 - cpu/stm32/periph/qdec.c | 1 - cpu/stm32/periph/rtt_all.c | 2 -- cpu/stm32/stmclk/stmclk_f0f1f3.c | 1 - dist/tools/ethos/ethos.c | 1 - dist/tools/tunslip/tapslip6.c | 5 --- dist/tools/tunslip/tunslip.c | 1 - dist/tools/tunslip/tunslip6.c | 2 -- drivers/ad7746/include/ad7746_params.h | 1 - drivers/adcxx1c/include/adcxx1c_params.h | 1 - drivers/aip31068/include/aip31068_regs.h | 10 ------ drivers/apa102/apa102.c | 1 - drivers/at30tse75x/at30tse75x.c | 1 - .../at86rf2xx/include/at86rf2xx_internal.h | 2 -- .../bh1750fvi/include/bh1750fvi_internal.h | 2 -- drivers/bmx280/bmx280.c | 1 - drivers/cc110x/cc110x_netdev.c | 1 - drivers/cc110x/include/cc110x_constants.h | 1 - drivers/cc110x/include/cc110x_settings.h | 1 - drivers/cc1xxx_common/gnrc_netif_cc1xxx.c | 1 - drivers/cc2420/cc2420_internal.c | 1 - drivers/cc2420/include/cc2420_internal.h | 2 -- drivers/cc2420/include/cc2420_registers.h | 2 -- drivers/ccs811/ccs811.c | 1 - drivers/dcf77/include/dcf77_internal.h | 2 -- drivers/dfplayer/include/dfplayer_constants.h | 1 - drivers/ds1307/include/ds1307_internal.h | 1 - drivers/ds3234/ds3234.c | 1 - drivers/dynamixel/include/dynamixel_reader.h | 1 - drivers/enc28j60/include/enc28j60_regs.h | 1 - drivers/encx24j600/encx24j600.c | 1 - drivers/feetech/include/feetech_reader.h | 1 - drivers/feetech/writer.c | 1 - drivers/fxos8700/fxos8700.c | 2 -- drivers/hdc1000/hdc1000.c | 1 - drivers/ili9341/ili9341.c | 2 -- drivers/ina2xx/ina2xx.c | 1 - drivers/ina2xx/include/ina2xx_defines.h | 2 -- drivers/include/at30tse75x.h | 1 - drivers/include/can/can_trx.h | 1 - drivers/include/can/candev.h | 1 - drivers/include/dcf77.h | 1 - drivers/include/diskio.h | 2 -- drivers/include/dose.h | 3 -- drivers/include/ds18.h | 1 - drivers/include/hsc.h | 2 -- drivers/include/ili9341.h | 2 -- drivers/include/jc42.h | 3 -- drivers/include/lis3mdl.h | 1 - drivers/include/mma7660.h | 1 - drivers/include/mrf24j40.h | 1 - drivers/include/net/netdev/ieee802154.h | 1 - drivers/include/net/netdev/lora.h | 2 -- drivers/include/nrf24l01p.h | 2 -- drivers/include/opt3001.h | 1 - drivers/include/periph/dac.h | 1 - drivers/include/periph/i2c.h | 1 - drivers/include/pir.h | 1 - drivers/include/pn532.h | 1 - drivers/include/rgbled.h | 1 - drivers/include/saul/periph.h | 1 - drivers/include/sht3x.h | 3 -- drivers/include/si114x.h | 1 - drivers/jc42/jc42.c | 1 - drivers/jc42/jc42_saul.c | 2 -- drivers/kw2xrf/include/kw2xrf_reg.h | 1 - drivers/kw2xrf/include/overwrites.h | 4 --- drivers/kw2xrf/kw2xrf_netdev.c | 1 - drivers/kw2xrf/kw2xrf_spi.c | 1 - drivers/l3g4200d/include/l3g4200d-regs.h | 1 - drivers/lc709203f/lc709203f.c | 1 - drivers/lis3dh/lis3dh.c | 1 - drivers/lpsxxx/lpsxxx.c | 1 - drivers/mcp2515/mcp2515.c | 1 - drivers/mpu9x50/include/mpu9x50_regs.h | 1 - drivers/mrf24j40/include/mrf24j40_internal.h | 1 - drivers/mrf24j40/include/mrf24j40_netdev.h | 1 - drivers/mrf24j40/include/mrf24j40_registers.h | 1 - drivers/mrf24j40/mrf24j40_getset.c | 4 --- drivers/mrf24j40/mrf24j40_internal.c | 1 - drivers/nrf24l01p/nrf24l01p.c | 11 ------- drivers/nvram_spi/nvram-spi.c | 1 - drivers/opt3001/include/opt3001_regs.h | 1 - drivers/pca9633/include/pca9633_regs.h | 6 ---- drivers/ph_oem/include/ph_oem_regs.h | 1 - drivers/qmc5883l/qmc5883l_saul.c | 1 - drivers/rgbled/rgbled.c | 2 -- drivers/saul/adc_saul.c | 1 - drivers/saul/gpio_saul.c | 1 - drivers/saul/init_devs/auto_init_fxos8700.c | 1 - drivers/saul/init_devs/auto_init_hdc1000.c | 1 - drivers/saul/init_devs/auto_init_hmc5883l.c | 1 - drivers/saul/init_devs/auto_init_hts221.c | 1 - drivers/saul/init_devs/auto_init_isl29020.c | 1 - drivers/saul/init_devs/auto_init_l3g4200d.c | 1 - drivers/saul/init_devs/auto_init_lis3dh.c | 1 - drivers/saul/init_devs/auto_init_lpsxxx.c | 1 - drivers/saul/init_devs/auto_init_lsm6dsl.c | 1 - drivers/saul/init_devs/auto_init_pir.c | 1 - drivers/saul/init_devs/auto_init_qmc5883l.c | 1 - drivers/saul/init_devs/auto_init_saul_gpio.c | 2 -- .../saul/init_devs/auto_init_seesaw_soil.c | 1 - .../sdcard_spi/include/sdcard_spi_internal.h | 3 -- drivers/sht3x/sht3x.c | 5 --- drivers/si114x/si114x.c | 1 - drivers/srf02/srf02.c | 1 - drivers/srf08/srf08.c | 3 -- drivers/sx127x/include/sx127x_registers.h | 1 - drivers/sx127x/sx127x_getset.c | 1 - drivers/sx127x/sx127x_internal.c | 2 -- drivers/tsl2561/tsl2561.c | 2 -- drivers/ws281x/esp32.c | 1 - drivers/xbee/xbee.c | 1 - examples/dtls-echo/dtls-client.c | 1 - examples/dtls-echo/main.c | 1 - examples/dtls-wolfssl/main.c | 2 -- examples/gnrc_networking_mac/udp.c | 1 - examples/lua_REPL/main.c | 1 - examples/nanocoap_server/coap_handler.c | 1 - examples/riot_and_cpp/c_functions.h | 1 - examples/skald_eddystone/main.c | 1 - examples/suit_update/main.c | 1 - examples/twr_aloha/control.h | 1 - pkg/cryptoauthlib/contrib/atca.c | 1 - pkg/fatfs/fatfs_vfs/fatfs_vfs.c | 2 -- pkg/littlefs/fs/littlefs_fs.c | 1 - pkg/littlefs2/fs/littlefs2_fs.c | 1 - pkg/lua/contrib/binsearch.h | 1 - pkg/lua/contrib/lua_loadlib.c | 2 -- pkg/lua/contrib/lua_run.c | 1 - pkg/lvgl/contrib/lvgl.c | 1 - pkg/lvgl/include/lv_conf.h | 1 - pkg/mynewt-core/contrib/nrf5x_isr.c | 1 - pkg/nimble/netif/include/nimble_netif_conn.h | 1 - pkg/nimble/scanlist/include/nimble_scanlist.h | 1 - pkg/nimble/statconn/nimble_statconn.c | 1 - .../contrib/platform_functions_wrapper.c | 3 -- pkg/openthread/contrib/platform_misc.c | 1 - pkg/openthread/include/ot.h | 1 - pkg/openthread/include/platform_config.h | 1 - pkg/openwsn/include/board_info.h | 1 - pkg/spiffs/fs/spiffs_fs.c | 1 - pkg/tlsf/contrib/include/tlsf-malloc.h | 1 - pkg/tlsf/contrib/native.c | 1 - pkg/tlsf/contrib/newlib.c | 1 - pkg/uwb-dw1000/hal/uwb_dw1000.c | 1 - pkg/uwb-dw1000/include/uwb_dw1000_config.h | 2 -- pkg/wakaama/contrib/lwm2m_client.c | 1 - pkg/wakaama/include/lwm2m_client_objects.h | 1 - pkg/wakaama/include/objects/device.h | 1 - pkg/wolfssl/include/user_settings.h | 2 -- pkg/wolfssl/sock_tls/sock_tls.c | 3 -- pkg/wolfssl/sock_tls/sock_tls.h | 3 -- sys/can/conn/raw.c | 1 - sys/can/device.c | 1 - sys/crypto/ciphers.c | 4 --- sys/crypto/modes/cbc.c | 3 -- sys/crypto/modes/ccm.c | 4 --- sys/ecc/hamming256.c | 1 - sys/fs/constfs/constfs.c | 1 - sys/hashes/md5.c | 2 -- sys/hashes/sha256.c | 2 -- sys/hashes/sha2xx_common.c | 1 - sys/hashes/sha3.c | 1 - sys/include/app_metadata.h | 1 - sys/include/byteorder.h | 2 -- sys/include/can/conn/raw.h | 1 - sys/include/checksum/crc16_ccitt.h | 1 - sys/include/checksum/fletcher16.h | 2 -- sys/include/crypto/ciphers.h | 7 ----- sys/include/crypto/helper.h | 1 - sys/include/crypto/modes/cbc.h | 1 - sys/include/crypto/modes/ccm.h | 1 - sys/include/crypto/modes/ctr.h | 1 - sys/include/crypto/modes/ecb.h | 1 - sys/include/dbgpin.h | 1 - sys/include/ecc/hamming256.h | 4 --- sys/include/embUnit/Outputter.h | 1 - sys/include/hashes.h | 1 - sys/include/hashes/sha1.h | 1 - sys/include/hashes/sha224.h | 1 - sys/include/hashes/sha256.h | 1 - sys/include/hashes/sha2xx_common.h | 1 - sys/include/net/af.h | 2 -- sys/include/net/csma_sender.h | 2 -- sys/include/net/ethernet.h | 1 - sys/include/net/ethernet/hdr.h | 1 - sys/include/net/ethertype.h | 1 - sys/include/net/fib.h | 1 - sys/include/net/gnrc/gomach/hdr.h | 1 - sys/include/net/gnrc/ipv6.h | 2 -- sys/include/net/gnrc/ipv6/ext.h | 1 - sys/include/net/gnrc/ipv6/nib/ft.h | 1 - sys/include/net/gnrc/netapi.h | 1 - sys/include/net/gnrc/netif/hdr.h | 1 - sys/include/net/gnrc/netif/internal.h | 1 - sys/include/net/gnrc/pkt.h | 1 - sys/include/net/gnrc/rpl.h | 1 - sys/include/net/gnrc/sixlowpan/frag/stats.h | 2 -- sys/include/net/gnrc/sixlowpan/internal.h | 1 - sys/include/net/icmp.h | 2 -- sys/include/net/ipv4.h | 1 - sys/include/net/ipv4/hdr.h | 1 - sys/include/net/ipv6.h | 1 - sys/include/net/ipv6/addr.h | 5 --- sys/include/net/ipv6/hdr.h | 1 - sys/include/net/l2util.h | 1 - sys/include/net/nanocoap.h | 7 ----- sys/include/net/netif.h | 1 - sys/include/net/ppp/hdr.h | 1 - sys/include/net/ppptype.h | 2 -- sys/include/net/protnum.h | 1 - sys/include/net/sock.h | 1 - sys/include/ps.h | 1 - sys/include/puf_sram.h | 1 - sys/include/random.h | 1 - sys/include/test_utils/interactive_sync.h | 2 -- sys/include/timex.h | 1 - sys/include/trickle.h | 1 - sys/include/tsrb.h | 1 - sys/include/universal_address.h | 1 - sys/include/usb/cdc.h | 1 - sys/include/usb/usbopt.h | 1 - sys/include/usb/usbus.h | 1 - sys/include/usb/usbus/control.h | 1 - sys/include/utlist.h | 2 -- sys/include/uuid.h | 2 -- sys/include/xtimer/implementation.h | 1 - sys/isrpipe/read_timeout/read_timeout.c | 1 - sys/net/application_layer/asymcute/asymcute.c | 2 -- .../cord/common/cord_common.c | 1 - sys/net/application_layer/gcoap/gcoap.c | 1 - sys/net/gnrc/link_layer/mac/timeout.c | 1 - sys/net/gnrc/netif/gnrc_netif_raw.c | 1 - sys/net/gnrc/netif/hdr/gnrc_netif_hdr_print.c | 1 - .../gnrc/netif/init_devs/auto_init_enc28j60.c | 1 - .../gnrc/netif/init_devs/auto_init_w5100.c | 1 - .../gnrc/network_layer/ipv6/nib/_nib-6ln.c | 1 - .../gnrc/network_layer/ipv6/nib/_nib-6ln.h | 1 - .../gnrc/network_layer/ipv6/nib/_nib-6lr.h | 1 - .../gnrc/network_layer/ipv6/nib/_nib-arsm.h | 1 - .../frag/vrb/gnrc_sixlowpan_frag_vrb.c | 1 - .../gnrc/routing/rpl/gnrc_rpl_of_manager.c | 2 -- .../gnrc/sock/include/gnrc_sock_internal.h | 1 - sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c | 1 - sys/net/link_layer/csma_sender/csma_sender.c | 2 -- .../include/eui48_provider_params.h | 1 - .../include/eui64_provider_params.h | 1 - .../ipv4/addr/ipv4_addr_from_str.c | 1 - sys/net/sock/async/event/sock_async_ctx.h | 1 - sys/posix/include/sys/socket.h | 1 - sys/posix/sockets/posix_sockets.c | 1 - sys/random/fortuna/fortuna.h | 1 - sys/random/mersenne.c | 1 - sys/riotboot/flashwrite.c | 2 -- sys/saul_reg/saul_reg.c | 1 - sys/shell/commands/sc_can.c | 1 - sys/shell/commands/sc_ccnl.c | 1 - sys/shell/commands/sc_gnrc_ipv6_frag_stats.c | 1 - sys/shell/commands/sc_rtc.c | 1 - sys/shell/commands/sc_suit.c | 1 - sys/stdio_rtt/stdio_rtt.c | 3 -- sys/suit/handlers_envelope.c | 1 - sys/usb/usbus/usbus.c | 1 - sys/vfs/vfs.c | 2 -- tests/bench_mutex_pingpong/main.c | 1 - tests/bench_sizeof_coretypes/main.c | 1 - tests/bench_xtimer_load/main.c | 1 - tests/bitarithm_timings/main.c | 1 - tests/build_system_cflags_spaces/main.c | 1 - tests/driver_at86rf215/main.c | 1 - tests/driver_itg320x/main.c | 1 - tests/driver_lis3dh/main.c | 1 - tests/driver_lpd8808/main.c | 1 - tests/driver_motor_driver/main.c | 1 - tests/driver_nrf24l01p_lowlevel/main.c | 1 - tests/driver_ph_oem/main.c | 1 - tests/driver_pn532/main.c | 1 - tests/driver_soft_uart/main.c | 1 - tests/external_board_native/main.c | 1 - tests/gnrc_ipv6_ext_frag/main.c | 2 -- tests/gnrc_ipv6_fwd_w_sub/common.h | 1 - tests/gnrc_ipv6_nib/common.h | 1 - tests/gnrc_ipv6_nib_6ln/common.h | 1 - tests/gnrc_mac_timeout/main.c | 2 -- tests/gnrc_netif/common.c | 1 - tests/gnrc_netif/common.h | 1 - tests/gnrc_netif_ieee802154/main.c | 1 - tests/gnrc_sixlowpan/main.c | 1 - tests/gnrc_sixlowpan_frag_minfwd/common.h | 1 - tests/gnrc_sock_ip/constants.h | 1 - tests/gnrc_sock_ip/stack.c | 1 - tests/gnrc_sock_ip/stack.h | 1 - tests/gnrc_sock_udp/constants.h | 1 - tests/gnrc_sock_udp/stack.c | 1 - tests/gnrc_sock_udp/stack.h | 1 - tests/ieee802154_hal/main.c | 1 - tests/irq/main.c | 1 - tests/leds/main.c | 1 - tests/libc_newlib/main.c | 3 -- tests/lwip_sock_ip/constants.h | 1 - tests/lwip_sock_ip/stack.c | 1 - tests/lwip_sock_ip/stack.h | 1 - tests/lwip_sock_tcp/constants.h | 1 - tests/lwip_sock_tcp/stack.c | 1 - tests/lwip_sock_udp/constants.h | 1 - tests/lwip_sock_udp/main.c | 1 - tests/lwip_sock_udp/stack.c | 1 - tests/lwip_sock_udp/stack.h | 1 - tests/memarray/main.c | 1 - tests/netutils/mock_dns.c | 1 - tests/nimble_l2cap/main.c | 1 - tests/pbkdf2/main.c | 1 - tests/periph_adc/main.c | 2 -- tests/periph_dac/main.c | 1 - tests/periph_eeprom/main.c | 1 - tests/periph_flashpage/main.c | 2 -- tests/periph_i2c/main.c | 1 - tests/periph_ptp_clock/main.c | 1 - tests/periph_spi/main.c | 1 - tests/periph_uart_mode/main.c | 2 -- tests/pkg_edhoc_c/edhoc_keys.h | 1 - tests/pkg_edhoc_c/initiator.c | 1 - tests/pkg_fatfs/main.c | 1 - tests/pkg_fatfs_vfs/main.c | 1 - tests/pkg_libfixmath/main.c | 1 - tests/pkg_lvgl_touch/main.c | 1 - tests/pkg_micro-ecc/main.c | 1 - tests/pkg_relic/main.c | 1 - tests/pkg_tiny-asn1/main.c | 4 --- tests/pkg_wolfcrypt-ed25519-verify/main.c | 1 - .../tools/ed25519_sign_msg.c | 1 - tests/pthread_tls/main.c | 1 - tests/rng/main.c | 1 - tests/saul/main.c | 1 - tests/sema/main.c | 1 - tests/struct_tm_utility/main.c | 1 - tests/suit_manifest/main.c | 1 - tests/sys_crypto/tests-crypto-modes-cbc.c | 2 -- tests/sys_crypto/tests-crypto-modes-ccm.c | 5 --- tests/sys_crypto/tests-crypto-modes-ctr.c | 2 -- tests/sys_crypto/tests-crypto-modes-ecb.c | 1 - tests/sys_crypto/tests-crypto-modes-ocb.c | 8 ----- tests/test_tools/main.c | 3 -- tests/thread_flags/main.c | 1 - tests/thread_float/main.c | 1 - tests/thread_msg_seq/main.c | 1 - tests/thread_priority_inversion/main.c | 1 - tests/turo/main.c | 1 - .../unittests/tests-bitfield/tests-bitfield.c | 1 - .../unittests/tests-bloom/tests-bloom-sets.h | 1 - tests/unittests/tests-color/tests-color.c | 1 - tests/unittests/tests-ecc/tests-ecc.c | 1 - tests/unittests/tests-fib/tests-fib.c | 1 - tests/unittests/tests-fib_sr/tests-fib_sr.c | 4 --- tests/unittests/tests-fmt/tests-fmt.c | 1 - .../tests-gnrc_ipv6_nib-internal.c | 1 - .../tests-hashes/tests-hashes-sha3.c | 3 -- .../tests-ipv6_addr/tests-ipv6_addr.c | 1 - .../unittests/tests-nanocoap/tests-nanocoap.c | 1 - tests/unittests/tests-netopt/tests-netopt.c | 1 - .../tests-priority_pktqueue.c | 1 - .../unittests/tests-saul_reg/tests-saul_reg.c | 1 - .../tests-scanf_float/tests-scanf_float.c | 1 - .../tests-sixlowpan/tests-sixlowpan.c | 1 - .../tests-sock_util/tests-sock_util.c | 2 -- tests/unittests/tests-uuid/tests-uuid.c | 1 - .../tests-vfs/tests-vfs-file-system-ops.c | 1 - tests/usbus_cdc_acm_stdio/main.c | 2 -- tests/xtimer_hang/main.c | 3 -- tests/xtimer_longterm/main.c | 2 -- tests/xtimer_mutex_lock_timeout/main.c | 2 -- tests/ztimer_mutex_lock_timeout/main.c | 1 - 522 files changed, 788 deletions(-) diff --git a/boards/6lowpan-clicker/include/board.h b/boards/6lowpan-clicker/include/board.h index 11f0e19243..28ec5be64f 100644 --- a/boards/6lowpan-clicker/include/board.h +++ b/boards/6lowpan-clicker/include/board.h @@ -78,6 +78,5 @@ void board_init(void); } #endif - #endif /* BOARD_H */ /** @} */ diff --git a/boards/6lowpan-clicker/include/periph_conf.h b/boards/6lowpan-clicker/include/periph_conf.h index 4681d09404..fa865c8443 100644 --- a/boards/6lowpan-clicker/include/periph_conf.h +++ b/boards/6lowpan-clicker/include/periph_conf.h @@ -29,7 +29,6 @@ extern "C" { #endif - /** * @name Clock configurations * @{ diff --git a/boards/6lowpan-clicker/pic32_config_settings.c b/boards/6lowpan-clicker/pic32_config_settings.c index 0edbe4e0ea..a3c8e3b72c 100644 --- a/boards/6lowpan-clicker/pic32_config_settings.c +++ b/boards/6lowpan-clicker/pic32_config_settings.c @@ -31,8 +31,6 @@ volatile uint32_t _DEVCFG3 __attribute__((used, section(".devcfg3"))) = | (_DEVCFG3_FUSBIDIO_MASK & 0 << _DEVCFG3_FUSBIDIO_POSITION) | (_DEVCFG3_FVBUSONIO_MASK & 1 << _DEVCFG3_FVBUSONIO_POSITION); - - /* Note this sets the PLL to 96MHz (8/2 * 24) which is only supported by 3xx * and 4xx parts and assumes an 8MHz XTAL. * @@ -86,7 +84,6 @@ volatile uint32_t _DEVCFG1 __attribute__ ((used, section(".devcfg1"))) = & (~_DEVCFG1_FWDTEN_MASK | 0 << _DEVCFG1_FWDTEN_POSITION) & (~_DEVCFG1_FWDTWINSZ_MASK | 3 << _DEVCFG1_FWDTWINSZ_POSITION); - /* * DEVCFG0 @ 0x1FC02FFC * diff --git a/boards/acd52832/include/gpio_params.h b/boards/acd52832/include/gpio_params.h index 8acaa54bcc..6589f57d51 100644 --- a/boards/acd52832/include/gpio_params.h +++ b/boards/acd52832/include/gpio_params.h @@ -46,7 +46,6 @@ static const saul_gpio_params_t saul_gpio_params[] = } }; - #ifdef __cplusplus } #endif diff --git a/boards/avr-rss2/include/board.h b/boards/avr-rss2/include/board.h index 4f625eaeec..927277911e 100644 --- a/boards/avr-rss2/include/board.h +++ b/boards/avr-rss2/include/board.h @@ -58,7 +58,6 @@ extern "C" { #define LED1_ON (LED_PORT &= ~LED1_MASK) #define LED1_TOGGLE (LED_PORT ^= LED1_MASK) - /** * @name Usage of LED to turn on when a kernel panic occurs. * @{ @@ -66,7 +65,6 @@ extern "C" { #define LED_PANIC LED0_ON /** @} */ - /** * @name DS18 pins OW_BUS_0 * @{ diff --git a/boards/avr-rss2/include/eui_provider_params.h b/boards/avr-rss2/include/eui_provider_params.h index fad4dbb736..3642ecfb06 100644 --- a/boards/avr-rss2/include/eui_provider_params.h +++ b/boards/avr-rss2/include/eui_provider_params.h @@ -42,7 +42,6 @@ static inline int _at24mac_get_eui64(uint8_t index, eui64_t *addr) #define EUI64_PROVIDER_INDEX 0 /** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/avsextrem/board_init.c b/boards/avsextrem/board_init.c index 1a68e32712..4e01cdfcd6 100644 --- a/boards/avsextrem/board_init.c +++ b/boards/avsextrem/board_init.c @@ -7,7 +7,6 @@ * directory for more details. */ - /** * @file * @brief avsextrem board initialization diff --git a/boards/avsextrem/include/board.h b/boards/avsextrem/include/board.h index f0581febb7..16985607ad 100644 --- a/boards/avsextrem/include/board.h +++ b/boards/avsextrem/include/board.h @@ -7,7 +7,6 @@ * */ - /** * @ingroup boards_avsextrem * @{ @@ -19,7 +18,6 @@ * @author Zakaria Kasmi */ - #ifndef BOARD_H #define BOARD_H diff --git a/boards/b-l072z-lrwan1/board.c b/boards/b-l072z-lrwan1/board.c index 7acc12e043..d69fe87473 100644 --- a/boards/b-l072z-lrwan1/board.c +++ b/boards/b-l072z-lrwan1/board.c @@ -21,7 +21,6 @@ #include "board.h" #include "periph/gpio.h" - void board_init(void) { /* initialize the CPU */ diff --git a/boards/blackpill-128kib/include/board.h b/boards/blackpill-128kib/include/board.h index 24c68e50d3..3dfc00f1bb 100644 --- a/boards/blackpill-128kib/include/board.h +++ b/boards/blackpill-128kib/include/board.h @@ -27,7 +27,6 @@ #ifndef BOARD_H #define BOARD_H - #ifdef __cplusplus extern "C" { #endif diff --git a/boards/blackpill/include/board.h b/boards/blackpill/include/board.h index 00dd6a61e0..6d8fe5c256 100644 --- a/boards/blackpill/include/board.h +++ b/boards/blackpill/include/board.h @@ -27,7 +27,6 @@ #ifndef BOARD_H #define BOARD_H - #ifdef __cplusplus extern "C" { #endif diff --git a/boards/common/arduino-mkr/include/periph_conf_common.h b/boards/common/arduino-mkr/include/periph_conf_common.h index c6f3823fa3..8731007112 100644 --- a/boards/common/arduino-mkr/include/periph_conf_common.h +++ b/boards/common/arduino-mkr/include/periph_conf_common.h @@ -31,7 +31,6 @@ extern "C" { #endif - /** * @name External oscillator and clock configuration * diff --git a/boards/common/atmega/include/periph_conf_atmega_common.h b/boards/common/atmega/include/periph_conf_atmega_common.h index 2cfafdbee0..3810f025ae 100644 --- a/boards/common/atmega/include/periph_conf_atmega_common.h +++ b/boards/common/atmega/include/periph_conf_atmega_common.h @@ -89,7 +89,6 @@ extern "C" { #endif /* UART_NUMOF */ /** @} */ - /** * @name SPI configuration * diff --git a/boards/common/esp32/include/board_common.h b/boards/common/esp32/include/board_common.h index 6c99331279..5d20a889f0 100644 --- a/boards/common/esp32/include/board_common.h +++ b/boards/common/esp32/include/board_common.h @@ -90,7 +90,6 @@ extern "C" { #endif /** @} */ - /** * @name STDIO configuration * @{ @@ -101,7 +100,6 @@ extern "C" { #endif /** @} */ - #if MODULE_MTD || DOXYGEN /** * @name MTD system drive configuration @@ -134,7 +132,6 @@ extern mtd_dev_t *mtd0; /** @} */ #endif /* MODULE_MTD || DOXYGEN */ - #if MODULE_SPIFFS || DOXYGEN /** * @name SPIFFS configuration for the system MTD device @@ -150,7 +147,6 @@ extern mtd_dev_t *mtd0; /** @} */ #endif /* MODULE_SPIFFS || DOXYGEN */ - /** * @brief Initialize the hardware that is common for all ESP32 boards. * diff --git a/boards/common/esp8266/include/board_common.h b/boards/common/esp8266/include/board_common.h index 1392fcea24..0f518bbdcb 100644 --- a/boards/common/esp8266/include/board_common.h +++ b/boards/common/esp8266/include/board_common.h @@ -57,7 +57,6 @@ extern "C" { #endif /** @} */ - /** * @name STDIO configuration * @{ @@ -67,7 +66,6 @@ extern "C" { #endif /** @} */ - #ifndef DOXYGEN /** * @name XTimer configuration @@ -81,7 +79,6 @@ extern "C" { /** @} */ #endif /* DOXYGEN */ - #if defined(MODULE_MTD) || defined(DOXYGEN) /** * @name MTD device configuration @@ -101,7 +98,6 @@ extern mtd_dev_t *mtd0; /** @} */ #endif /* defined(MODULE_MTD) || defined(DOXYGEN) */ - #if defined(MODULE_SPIFFS) || defined(DOXYGEN) /** * @name SPIFFS configuration @@ -117,7 +113,6 @@ extern mtd_dev_t *mtd0; /** @} */ #endif /* defined(MODULE_SPIFFS) || defined(DOXYGEN) */ - /** * @brief Initialize board specific hardware * diff --git a/boards/common/esp8266/include/periph_conf_common.h b/boards/common/esp8266/include/periph_conf_common.h index 2ca9c9cd82..04ec1a61c0 100644 --- a/boards/common/esp8266/include/periph_conf_common.h +++ b/boards/common/esp8266/include/periph_conf_common.h @@ -39,7 +39,6 @@ extern "C" { #define ADC_NUMOF (1) /**< number of ADC channels */ /** @} */ - /** * @name DAC configuration * @@ -49,7 +48,6 @@ extern "C" { #define DAC_NUMOF (0) /**< number of DAC channels */ /** @} */ - /** * @name I2C configuration * @{ @@ -204,7 +202,6 @@ static const spi_conf_t spi_config[] = { #endif /* MODULE_ESP_SW_TIMER */ /** @} */ - /** * @name UART configuration * diff --git a/boards/common/kw41z/include/cfg_i2c_default.h b/boards/common/kw41z/include/cfg_i2c_default.h index 41f9b2eee8..3b33eed4c8 100644 --- a/boards/common/kw41z/include/cfg_i2c_default.h +++ b/boards/common/kw41z/include/cfg_i2c_default.h @@ -26,7 +26,6 @@ extern "C" { #endif - /** * @name I2C configuration * @{ diff --git a/boards/common/msb-430/board_init.c b/boards/common/msb-430/board_init.c index 7c81b8e069..b06ac6f685 100644 --- a/boards/common/msb-430/board_init.c +++ b/boards/common/msb-430/board_init.c @@ -153,7 +153,6 @@ void msp430_init_dco(void) CCTL2 = CCIS0 + CM0 + CAP; /* Define CCR2, CAP, ACLK */ TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continuous mode */ - while (1) { unsigned int compare; diff --git a/boards/common/nrf51/include/cfg_rtt_default.h b/boards/common/nrf51/include/cfg_rtt_default.h index 46ccd3db1c..c63ebdca87 100644 --- a/boards/common/nrf51/include/cfg_rtt_default.h +++ b/boards/common/nrf51/include/cfg_rtt_default.h @@ -43,7 +43,6 @@ extern "C" { #endif /** @} */ - #ifdef __cplusplus } /* end extern "C" */ #endif diff --git a/boards/common/nrf52xxxdk/include/gpio_params.h b/boards/common/nrf52xxxdk/include/gpio_params.h index 3ef2cca269..7dbe1f650a 100644 --- a/boards/common/nrf52xxxdk/include/gpio_params.h +++ b/boards/common/nrf52xxxdk/include/gpio_params.h @@ -96,7 +96,6 @@ static const saul_gpio_params_t saul_gpio_params[] = #endif }; - #ifdef __cplusplus } #endif diff --git a/boards/common/particle-mesh/include/gpio_params.h b/boards/common/particle-mesh/include/gpio_params.h index 0e5fa3f26e..c9b8d65739 100644 --- a/boards/common/particle-mesh/include/gpio_params.h +++ b/boards/common/particle-mesh/include/gpio_params.h @@ -39,7 +39,6 @@ static const saul_gpio_params_t saul_gpio_params[] = }, }; - #ifdef __cplusplus } #endif diff --git a/boards/esp32-ethernet-kit-v1_0/include/periph_conf.h b/boards/esp32-ethernet-kit-v1_0/include/periph_conf.h index 2e7b0e6aee..ad86adaddb 100644 --- a/boards/esp32-ethernet-kit-v1_0/include/periph_conf.h +++ b/boards/esp32-ethernet-kit-v1_0/include/periph_conf.h @@ -125,7 +125,6 @@ #define UART0_RXD GPIO3 /**< direct I/O pin for UART_DEV(0) RxD, can't be changed */ /** @} */ - #ifdef __cplusplus } /* end extern "C" */ #endif diff --git a/boards/esp32-heltec-lora32-v2/include/periph_conf.h b/boards/esp32-heltec-lora32-v2/include/periph_conf.h index 573ed3e698..c53d701729 100644 --- a/boards/esp32-heltec-lora32-v2/include/periph_conf.h +++ b/boards/esp32-heltec-lora32-v2/include/periph_conf.h @@ -68,7 +68,6 @@ #endif /** @} */ - /** * @name I2C configuration * @@ -91,7 +90,6 @@ #endif /** @} */ - /** * @name PWM channel configuration * @@ -167,7 +165,6 @@ #endif /** @} */ - #ifdef __cplusplus } /* end extern "C" */ #endif diff --git a/boards/esp32-mh-et-live-minikit/include/periph_conf.h b/boards/esp32-mh-et-live-minikit/include/periph_conf.h index 29363f538a..26b7f945e1 100644 --- a/boards/esp32-mh-et-live-minikit/include/periph_conf.h +++ b/boards/esp32-mh-et-live-minikit/include/periph_conf.h @@ -65,7 +65,6 @@ #endif /** @} */ - /** * @name I2C configuration * @@ -88,7 +87,6 @@ #endif /** @} */ - /** * @name PWM channel configuration * @@ -164,7 +162,6 @@ #endif /** @} */ - #ifdef __cplusplus } /* end extern "C" */ #endif diff --git a/boards/esp32-ttgo-t-beam/include/periph_conf.h b/boards/esp32-ttgo-t-beam/include/periph_conf.h index 248e8bd014..59ae164888 100644 --- a/boards/esp32-ttgo-t-beam/include/periph_conf.h +++ b/boards/esp32-ttgo-t-beam/include/periph_conf.h @@ -73,7 +73,6 @@ #endif /** @} */ - /** * @name I2C configuration * @@ -96,7 +95,6 @@ #endif /** @} */ - /** * @name PWM channel configuration * @@ -170,7 +168,6 @@ #endif /** @} */ - #ifdef __cplusplus } /* end extern "C" */ #endif diff --git a/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h b/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h index b098d8d094..b3fbc91843 100644 --- a/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h +++ b/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h @@ -83,7 +83,6 @@ #endif /** @} */ - /** * @name I2C configuration * @@ -106,7 +105,6 @@ #endif /** @} */ - /** * @name PWM channel configuration * @@ -127,8 +125,6 @@ #endif /** @} */ - - /** * @name SPI configuration * @@ -166,7 +162,6 @@ #endif /** @} */ - /** * @name UART configuration * @@ -182,7 +177,6 @@ #define UART0_RXD GPIO3 /**< direct I/O pin for UART_DEV(0) RxD, can't be changed */ /** @} */ - #ifdef __cplusplus } /* end extern "C" */ #endif diff --git a/boards/esp32-wroom-32/include/periph_conf.h b/boards/esp32-wroom-32/include/periph_conf.h index 1c077c741c..50ebeb2b54 100644 --- a/boards/esp32-wroom-32/include/periph_conf.h +++ b/boards/esp32-wroom-32/include/periph_conf.h @@ -195,7 +195,6 @@ extern "C" { #endif /** @} */ - #ifdef __cplusplus } /* end extern "C" */ #endif diff --git a/boards/esp32-wrover-kit/include/board.h b/boards/esp32-wrover-kit/include/board.h index b6d08391a9..83e388a6f8 100644 --- a/boards/esp32-wrover-kit/include/board.h +++ b/boards/esp32-wrover-kit/include/board.h @@ -122,7 +122,6 @@ #endif /** @} */ - /* include common board definitions as last step */ #include "board_common.h" diff --git a/boards/esp32-wrover-kit/include/periph_conf.h b/boards/esp32-wrover-kit/include/periph_conf.h index 78df4301de..d5fe114271 100644 --- a/boards/esp32-wrover-kit/include/periph_conf.h +++ b/boards/esp32-wrover-kit/include/periph_conf.h @@ -84,7 +84,6 @@ #endif /** @} */ - /** * @name I2C configuration * @@ -134,7 +133,6 @@ #endif /** @} */ - /** * @name SPI configuration * @@ -207,7 +205,6 @@ #define UART0_RXD GPIO3 /**< direct I/O pin for UART_DEV(0) RxD, can't be changed */ /** @} */ - #ifdef __cplusplus } /* end extern "C" */ #endif diff --git a/boards/esp8266-sparkfun-thing/include/board.h b/boards/esp8266-sparkfun-thing/include/board.h index 343cd81525..4a1d35215e 100644 --- a/boards/esp8266-sparkfun-thing/include/board.h +++ b/boards/esp8266-sparkfun-thing/include/board.h @@ -49,7 +49,6 @@ extern "C" { #endif /* defined(MODULE_PERIPH_SPI) || defined(DOXYGEN) */ /** @} */ - #ifdef __cplusplus } /* end extern "C" */ #endif diff --git a/boards/fox/board.c b/boards/fox/board.c index 8b68b79863..3b0c3fa53a 100644 --- a/boards/fox/board.c +++ b/boards/fox/board.c @@ -21,7 +21,6 @@ #include "board.h" #include "periph/gpio.h" - void board_init(void) { /* initialize the CPU */ diff --git a/boards/frdm-k22f/include/periph_conf.h b/boards/frdm-k22f/include/periph_conf.h index 8963e6a535..7e9ea7aa6e 100644 --- a/boards/frdm-k22f/include/periph_conf.h +++ b/boards/frdm-k22f/include/periph_conf.h @@ -189,7 +189,6 @@ static const pwm_conf_t pwm_config[] = { #define PWM_NUMOF ARRAY_SIZE(pwm_config) /** @} */ - /** * @name SPI configuration * @@ -254,7 +253,6 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF ARRAY_SIZE(spi_config) /** @} */ - /** * @name I2C configuration * @{ diff --git a/boards/frdm-k64f/include/periph_conf.h b/boards/frdm-k64f/include/periph_conf.h index 2f14b75032..3afa5c7e30 100644 --- a/boards/frdm-k64f/include/periph_conf.h +++ b/boards/frdm-k64f/include/periph_conf.h @@ -186,7 +186,6 @@ static const pwm_conf_t pwm_config[] = { #define PWM_NUMOF ARRAY_SIZE(pwm_config) /** @} */ - /** * @name SPI configuration * @@ -251,7 +250,6 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF ARRAY_SIZE(spi_config) /** @} */ - /** * @name I2C configuration * @{ diff --git a/boards/hamilton/include/periph_conf.h b/boards/hamilton/include/periph_conf.h index 1a34083517..2da509de58 100644 --- a/boards/hamilton/include/periph_conf.h +++ b/boards/hamilton/include/periph_conf.h @@ -182,7 +182,6 @@ static const pwm_conf_chan_t pwm_chan1_config[] = { }; #endif - /* PWM device configuration */ static const pwm_conf_t pwm_config[] = { #if PWM_0_EN diff --git a/boards/i-nucleo-lrwan1/board.c b/boards/i-nucleo-lrwan1/board.c index ae057e22d3..4a74f0d333 100644 --- a/boards/i-nucleo-lrwan1/board.c +++ b/boards/i-nucleo-lrwan1/board.c @@ -21,7 +21,6 @@ #include "board.h" #include "periph/gpio.h" - void board_init(void) { /* initialize the CPU */ diff --git a/boards/im880b/include/board.h b/boards/im880b/include/board.h index 633b17e0ff..5226ce3c3a 100644 --- a/boards/im880b/include/board.h +++ b/boards/im880b/include/board.h @@ -56,7 +56,6 @@ extern "C" { #define SX127X_PARAM_TX_SWITCH GPIO_PIN(PORT_A, 4) /** @} */ - /** * @brief Initialize board specific hardware, including clock, LEDs and std-IO */ diff --git a/boards/limifrog-v1/board.c b/boards/limifrog-v1/board.c index 84171eb4d4..bde33a1247 100644 --- a/boards/limifrog-v1/board.c +++ b/boards/limifrog-v1/board.c @@ -21,7 +21,6 @@ #include "board.h" #include "periph/gpio.h" - void board_init(void) { /* initialize the CPU */ diff --git a/boards/lsn50/board.c b/boards/lsn50/board.c index 2e2dfeb31c..7b975eef68 100644 --- a/boards/lsn50/board.c +++ b/boards/lsn50/board.c @@ -21,7 +21,6 @@ #include "board.h" #include "periph/gpio.h" - void board_init(void) { /* initialize the CPU */ diff --git a/boards/msba2/include/periph_conf.h b/boards/msba2/include/periph_conf.h index b75ff5a0b1..4e2744b6cd 100644 --- a/boards/msba2/include/periph_conf.h +++ b/boards/msba2/include/periph_conf.h @@ -68,7 +68,6 @@ extern "C" { #define PWM_FUNC (1) /** @} */ - /** * @name UART configuration * @{ diff --git a/boards/mulle/include/periph_conf.h b/boards/mulle/include/periph_conf.h index 5ff6e02405..303ddfd2c3 100644 --- a/boards/mulle/include/periph_conf.h +++ b/boards/mulle/include/periph_conf.h @@ -7,7 +7,6 @@ * details. */ - /** * @ingroup boards_mulle * @{ diff --git a/boards/nrf52832-mdk/include/gpio_params.h b/boards/nrf52832-mdk/include/gpio_params.h index 5779d6c6d3..7ab269729a 100644 --- a/boards/nrf52832-mdk/include/gpio_params.h +++ b/boards/nrf52832-mdk/include/gpio_params.h @@ -51,7 +51,6 @@ static const saul_gpio_params_t saul_gpio_params[] = }, }; - #ifdef __cplusplus } #endif diff --git a/boards/nrf52840-mdk-dongle/include/gpio_params.h b/boards/nrf52840-mdk-dongle/include/gpio_params.h index ecdaa250c3..d54984fe06 100644 --- a/boards/nrf52840-mdk-dongle/include/gpio_params.h +++ b/boards/nrf52840-mdk-dongle/include/gpio_params.h @@ -59,7 +59,6 @@ static const saul_gpio_params_t saul_gpio_params[] = }, }; - #ifdef __cplusplus } #endif diff --git a/boards/nrf52840-mdk/include/gpio_params.h b/boards/nrf52840-mdk/include/gpio_params.h index b94c9499aa..980050ee93 100644 --- a/boards/nrf52840-mdk/include/gpio_params.h +++ b/boards/nrf52840-mdk/include/gpio_params.h @@ -57,7 +57,6 @@ static const saul_gpio_params_t saul_gpio_params[] = }, }; - #ifdef __cplusplus } #endif diff --git a/boards/nrf52840dongle/include/gpio_params.h b/boards/nrf52840dongle/include/gpio_params.h index 85930549c4..db28892220 100644 --- a/boards/nrf52840dongle/include/gpio_params.h +++ b/boards/nrf52840dongle/include/gpio_params.h @@ -39,7 +39,6 @@ static const saul_gpio_params_t saul_gpio_params[] = }, }; - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-f070rb/include/periph_conf.h b/boards/nucleo-f070rb/include/periph_conf.h index abd546e737..ca117e8eb5 100644 --- a/boards/nucleo-f070rb/include/periph_conf.h +++ b/boards/nucleo-f070rb/include/periph_conf.h @@ -55,7 +55,6 @@ static const timer_conf_t timer_config[] = { #define TIMER_0_ISR isr_tim1_cc - #define TIMER_NUMOF ARRAY_SIZE(timer_config) /** @} */ diff --git a/boards/nucleo-f091rc/include/periph_conf.h b/boards/nucleo-f091rc/include/periph_conf.h index 47a4abeccb..a922c54c18 100644 --- a/boards/nucleo-f091rc/include/periph_conf.h +++ b/boards/nucleo-f091rc/include/periph_conf.h @@ -127,7 +127,6 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF ARRAY_SIZE(uart_config) /** @} */ - /** * @name SPI configuration * @{ diff --git a/boards/nucleo-l152re/include/periph_conf.h b/boards/nucleo-l152re/include/periph_conf.h index 1651fc5c58..10d3b8fc37 100644 --- a/boards/nucleo-l152re/include/periph_conf.h +++ b/boards/nucleo-l152re/include/periph_conf.h @@ -227,7 +227,6 @@ static const dac_conf_t dac_config[] = { #define DAC_NUMOF ARRAY_SIZE(dac_config) /** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/nucleo-l412kb/include/periph_conf.h b/boards/nucleo-l412kb/include/periph_conf.h index 784edf00c3..9657369c72 100644 --- a/boards/nucleo-l412kb/include/periph_conf.h +++ b/boards/nucleo-l412kb/include/periph_conf.h @@ -34,7 +34,6 @@ #include "cfg_timer_tim2.h" #include "cfg_rtt_default.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/boards/nucleo-l476rg/include/periph_conf.h b/boards/nucleo-l476rg/include/periph_conf.h index caec629346..bfc304eaa2 100644 --- a/boards/nucleo-l476rg/include/periph_conf.h +++ b/boards/nucleo-l476rg/include/periph_conf.h @@ -56,7 +56,6 @@ static const dma_conf_t dma_config[] = { #define DMA_NUMOF ARRAY_SIZE(dma_config) /** @} */ - /** * @name Timer configuration * @{ diff --git a/boards/nz32-sc151/include/periph_conf.h b/boards/nz32-sc151/include/periph_conf.h index d7b95d71a2..86a5abf280 100644 --- a/boards/nz32-sc151/include/periph_conf.h +++ b/boards/nz32-sc151/include/periph_conf.h @@ -193,7 +193,6 @@ static const dac_conf_t dac_config[] = { #define DAC_NUMOF ARRAY_SIZE(dac_config) /** @} */ - #ifdef __cplusplus } #endif diff --git a/boards/p-nucleo-wb55/include/periph_conf.h b/boards/p-nucleo-wb55/include/periph_conf.h index dacc45b1c8..73a1c69ef4 100644 --- a/boards/p-nucleo-wb55/include/periph_conf.h +++ b/boards/p-nucleo-wb55/include/periph_conf.h @@ -16,7 +16,6 @@ * @author Francisco Molina */ - #ifndef PERIPH_CONF_H #define PERIPH_CONF_H diff --git a/boards/pba-d-01-kw2x/include/periph_conf.h b/boards/pba-d-01-kw2x/include/periph_conf.h index a36f6c366b..1466491b40 100644 --- a/boards/pba-d-01-kw2x/include/periph_conf.h +++ b/boards/pba-d-01-kw2x/include/periph_conf.h @@ -172,7 +172,6 @@ static const pwm_conf_t pwm_config[] = { #define PWM_NUMOF ARRAY_SIZE(pwm_config) /** @} */ - /** * @name SPI device configuration * @@ -252,7 +251,6 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF ARRAY_SIZE(spi_config) /** @} */ - /** * @name I2C configuration * @{ diff --git a/boards/phynode-kw41z/include/board.h b/boards/phynode-kw41z/include/board.h index 54d9e93459..1216ec3cdd 100644 --- a/boards/phynode-kw41z/include/board.h +++ b/boards/phynode-kw41z/include/board.h @@ -43,7 +43,6 @@ extern "C" #define LED0_OFF (GPIOB->PSOR = LED0_MASK) #define LED0_TOGGLE (GPIOB->PTOR = LED0_MASK) - #define LED1_PIN GPIO_PIN(PORT_B, 1) #define LED1_MASK (1 << 1) #define LED1_ON (GPIOB->PCOR = LED1_MASK) diff --git a/boards/pic32-wifire/pic32_config_settings.c b/boards/pic32-wifire/pic32_config_settings.c index f45d18a446..e09a6ee43a 100644 --- a/boards/pic32-wifire/pic32_config_settings.c +++ b/boards/pic32-wifire/pic32_config_settings.c @@ -26,7 +26,6 @@ * place them at different addresses. */ - /* * DEVCFG3_LA @ 0x1FC0FFC0 (lower alias) * ADEVFGC3_LA @ 0x1FC0FF40 (alternate devcfg3 in lower alias) @@ -149,7 +148,6 @@ volatile uint32_t ADEVCFG2_B1 __attribute__ ((used, section(".adevcfg2_b1"))) = /* uint32_t DEVCFG2_B2 __attribute__ ((section(".devcfg2_b2"))) = DEVCFG2_LA; */ /* uint32_t ADEVCFG2_B2 __attribute__ ((section(".adevcfg2_b2"))) = DEVCFG2_LA; */ - /* * DEVCFG1_LA @ 0x1FC0FFC8 (lower alias) * ADEVFGC1_LA @ 0x1FC0FF48 (alternate devcfg1 in lower alias) @@ -346,7 +344,6 @@ volatile uint32_t ADEVCFG0_B1 __attribute__ ((used, section(".adevcfg0_b1")))= * */ - /* * DEVCP0_LA @ 0x1FC0FFDC (lower alias) * ADEVCP0_LA @ 0x1FC0FF5C (alternate devcp0 in lower alias) @@ -388,7 +385,6 @@ volatile uint32_t SEQ_B1[4] __attribute__ ((used, section(".seq_b1"))) = * {0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF}; */ - /* * STUPIDLY Microchip has hard coded the MSB bit of devsign to 0, So even if * you erase the whole device, everything returns 0xFFFFFFF except this 1 @@ -408,7 +404,6 @@ volatile uint32_t ADEVSIGN_B1 __attribute__ ((used, section(".adevsign_b1"))) = volatile uint32_t DEVSIGN_B2 __attribute__ ((used, section(".devsign_b2"))) = 0x7FFFFFFF; volatile uint32_t ADEVSIGN_B2 __attribute__ ((used, section(".adevsign_b2"))) = 0x7FFFFFFF; - /* * Without a reference to this function from elsewhere LD throws the whole * compile unit away even though the data is 'volatile' and 'used' !!! diff --git a/boards/reel/include/gpio_params.h b/boards/reel/include/gpio_params.h index dcad16f56e..26d78c9909 100644 --- a/boards/reel/include/gpio_params.h +++ b/boards/reel/include/gpio_params.h @@ -63,7 +63,6 @@ static const saul_gpio_params_t saul_gpio_params[] = }, }; - #ifdef __cplusplus } #endif diff --git a/boards/saml21-xpro/board.c b/boards/saml21-xpro/board.c index 753713ffb7..8ef9c4ded9 100644 --- a/boards/saml21-xpro/board.c +++ b/boards/saml21-xpro/board.c @@ -38,7 +38,6 @@ void board_init(void) led_init(); } - /** * @brief Initialize the boards on-board LED */ diff --git a/boards/saml21-xpro/include/board.h b/boards/saml21-xpro/include/board.h index 2acb3fc3a2..453c7f2705 100644 --- a/boards/saml21-xpro/include/board.h +++ b/boards/saml21-xpro/include/board.h @@ -49,7 +49,6 @@ extern "C" { #define BTN0_MODE GPIO_IN_PU /** @} */ - /** * @brief Initialize board specific hardware, including clock, LEDs and std-IO */ diff --git a/boards/samr30-xpro/board.c b/boards/samr30-xpro/board.c index e27a081147..f9e40b7e40 100644 --- a/boards/samr30-xpro/board.c +++ b/boards/samr30-xpro/board.c @@ -55,7 +55,6 @@ void board_init(void) board_antenna_config(RFCTL_ANTENNA_DEFAULT); } - /** * @brief Initialize the boards on-board LED */ diff --git a/boards/samr30-xpro/include/periph_conf.h b/boards/samr30-xpro/include/periph_conf.h index b5b2add878..e3bb984896 100644 --- a/boards/samr30-xpro/include/periph_conf.h +++ b/boards/samr30-xpro/include/periph_conf.h @@ -158,7 +158,6 @@ static const i2c_conf_t i2c_config[] = { #endif /** @} */ - /** * @name ADC Configuration * @{ diff --git a/boards/samr34-xpro/board.c b/boards/samr34-xpro/board.c index 4d5954e76e..7add16ea02 100644 --- a/boards/samr34-xpro/board.c +++ b/boards/samr34-xpro/board.c @@ -48,7 +48,6 @@ void board_init(void) #endif /* USEMODULE_SX127X */ } - /** * @brief Initialize the boards on-board LED */ diff --git a/boards/samr34-xpro/include/periph_conf.h b/boards/samr34-xpro/include/periph_conf.h index a9b296bea4..d341b61a01 100644 --- a/boards/samr34-xpro/include/periph_conf.h +++ b/boards/samr34-xpro/include/periph_conf.h @@ -59,7 +59,6 @@ static const tc32_conf_t timer_config[] = { #define TIMER_NUMOF (sizeof(timer_config)/sizeof(timer_config[0])) /** @} */ - /** * @name UART configuration * @{ @@ -166,7 +165,6 @@ static const adc_conf_chan_t adc_channels[] = { {GPIO_PIN(PA, 7), ADC_INPUTCTRL_MUXPOS(ADC_INPUTCTRL_MUXPOS_AIN7)} }; - #define ADC_NUMOF ARRAY_SIZE(adc_channels) /** @} */ diff --git a/boards/serpente/include/periph_conf.h b/boards/serpente/include/periph_conf.h index dfe6963e84..e95ed8aebd 100644 --- a/boards/serpente/include/periph_conf.h +++ b/boards/serpente/include/periph_conf.h @@ -281,7 +281,6 @@ static const adc_conf_chan_t adc_channels[] = { #define ADC_NUMOF ARRAY_SIZE(adc_channels) /** @} */ - /** * @name USB peripheral configuration * @{ diff --git a/boards/stm32f429i-disc1/include/board.h b/boards/stm32f429i-disc1/include/board.h index dea5c0ebff..92094947a0 100644 --- a/boards/stm32f429i-disc1/include/board.h +++ b/boards/stm32f429i-disc1/include/board.h @@ -53,7 +53,6 @@ extern "C" { #define BTN0_MODE GPIO_IN /** @} */ - /** * @brief Initialize board specific hardware, including clock, LEDs and std-IO */ diff --git a/boards/stm32f4discovery/include/board.h b/boards/stm32f4discovery/include/board.h index fc0c4af577..d93fa41e1b 100644 --- a/boards/stm32f4discovery/include/board.h +++ b/boards/stm32f4discovery/include/board.h @@ -80,7 +80,6 @@ extern "C" { #define BTN0_MODE GPIO_IN /** @} */ - /** * @brief Initialize board specific hardware, including clock, LEDs and std-IO */ diff --git a/boards/stm32f723e-disco/include/board.h b/boards/stm32f723e-disco/include/board.h index 6c5c1bbbd1..bceaf52b6b 100644 --- a/boards/stm32f723e-disco/include/board.h +++ b/boards/stm32f723e-disco/include/board.h @@ -60,7 +60,6 @@ extern "C" { #define BTN0_MODE GPIO_IN /** @} */ - /** * @brief Initialize board specific hardware, including clock, LEDs and std-IO */ diff --git a/boards/stm32f769i-disco/include/board.h b/boards/stm32f769i-disco/include/board.h index 6c34df9730..282df94684 100644 --- a/boards/stm32f769i-disco/include/board.h +++ b/boards/stm32f769i-disco/include/board.h @@ -70,7 +70,6 @@ extern "C" { #define BTN0_MODE GPIO_IN /** @} */ - /** * @brief Initialize board specific hardware, including clock, LEDs and std-IO */ diff --git a/boards/telosb/board.c b/boards/telosb/board.c index 555f333bfe..e72a6239f5 100644 --- a/boards/telosb/board.c +++ b/boards/telosb/board.c @@ -39,7 +39,6 @@ static void telosb_ports_init(void) P5OUT = 0x70; /* Port5 Output: 01110000 = 0x70 */ P5DIR = 0x70; /* Port5 Direction: 01110000 = 0x70 */ - P6SEL = 0xFF; /* Port6 Select: 11111111 = 0xFF */ P6OUT = 0x00; /* Port6 Output: 00000000 = 0x00 */ P6DIR = 0xFF; /* Port6 Direction: 11111000 = 0xFF */ @@ -109,7 +108,6 @@ void msp430_init_dco(void) BCSCTL1 &= ~(DIVA1 + DIVA0); /* remove /8 divisor from ACLK again */ } - //=========================== public ========================================== void board_init(void) diff --git a/boards/z1/board.c b/boards/z1/board.c index bbef1760e9..c2ccbf279a 100644 --- a/boards/z1/board.c +++ b/boards/z1/board.c @@ -21,7 +21,6 @@ * @} */ - #include "cpu.h" #include "board.h" @@ -197,7 +196,6 @@ void msp430_init_dco(void) BCSCTL3 = XCAP_1; /* default value for LFXT1 capacitor and frequency */ } - /* "public" specific initialization function for the Zolertia Z1 hardware */ void board_init(void) diff --git a/bootloaders/riotboot_dfu/bootloader_selection.h b/bootloaders/riotboot_dfu/bootloader_selection.h index e8c6d4ab1a..e552852109 100644 --- a/bootloaders/riotboot_dfu/bootloader_selection.h +++ b/bootloaders/riotboot_dfu/bootloader_selection.h @@ -30,7 +30,6 @@ extern "C" { * if no BTN0_PIN is defined we don't define anything either */ #include - /** @brief Button pin for bootloader selection * * This pin (typically connected to a button) is checked by the riotboot_dfu diff --git a/core/include/cond.h b/core/include/cond.h index 67520c7418..4db672d940 100644 --- a/core/include/cond.h +++ b/core/include/cond.h @@ -185,7 +185,6 @@ void cond_init(cond_t *cond); */ void cond_wait(cond_t *cond, mutex_t *mutex); - /** * @brief Wakes up one thread waiting on the condition variable. * diff --git a/core/include/msg.h b/core/include/msg.h index 7ce01161a2..8fdfa7fc33 100644 --- a/core/include/msg.h +++ b/core/include/msg.h @@ -192,7 +192,6 @@ typedef struct { } content; /**< Content of the message. */ } msg_t; - /** * @brief Send a message (blocking). * @@ -213,7 +212,6 @@ typedef struct { */ int msg_send(msg_t *m, kernel_pid_t target_pid); - /** * @brief Send a message (non-blocking). * @@ -232,7 +230,6 @@ int msg_send(msg_t *m, kernel_pid_t target_pid); */ int msg_try_send(msg_t *m, kernel_pid_t target_pid); - /** * @brief Send a message to the current thread. * @details Will work only if the thread has a message queue. diff --git a/cpu/arm7_common/include/VIC.h b/cpu/arm7_common/include/VIC.h index 085303591b..a08d258670 100644 --- a/cpu/arm7_common/include/VIC.h +++ b/cpu/arm7_common/include/VIC.h @@ -26,7 +26,6 @@ extern "C" { #define INTMode (FIQ32Mode | IRQ32Mode) - /** * @name IRQ Priority Mapping */ @@ -41,7 +40,6 @@ extern "C" { #define LOWEST_PRIORITY 0x0F /** @} */ - #define WDT_INT 0 #define SWI_INT 1 #define ARM_CORE0_INT 2 diff --git a/cpu/arm7_common/include/iap.h b/cpu/arm7_common/include/iap.h index e32753b6ca..6bea0695dd 100644 --- a/cpu/arm7_common/include/iap.h +++ b/cpu/arm7_common/include/iap.h @@ -63,5 +63,4 @@ uint8_t iap_get_sector(uint32_t addr); } #endif - #endif /* IAP_H */ diff --git a/cpu/atmega_common/include/atmega_regs_common.h b/cpu/atmega_common/include/atmega_regs_common.h index 85cd67abc7..5f2785f8ea 100644 --- a/cpu/atmega_common/include/atmega_regs_common.h +++ b/cpu/atmega_common/include/atmega_regs_common.h @@ -113,7 +113,6 @@ typedef struct { #endif /** @} */ - /** * @brief Peripheral register definitions and instances * @{ @@ -139,7 +138,6 @@ typedef struct { #endif /** @} */ - #ifdef __cplusplus } #endif diff --git a/cpu/atmega_common/include/cpu_conf.h b/cpu/atmega_common/include/cpu_conf.h index e97dd2fb0d..d20bea4eb2 100644 --- a/cpu/atmega_common/include/cpu_conf.h +++ b/cpu/atmega_common/include/cpu_conf.h @@ -80,6 +80,5 @@ extern "C" { } #endif - #endif /* CPU_CONF_H */ /** @} */ diff --git a/cpu/atmega_common/periph/i2c.c b/cpu/atmega_common/periph/i2c.c index da95d56ad8..30672ba2fe 100644 --- a/cpu/atmega_common/periph/i2c.c +++ b/cpu/atmega_common/periph/i2c.c @@ -42,7 +42,6 @@ #define ATMEGA_I2C_FLAG_WRITE 0 #define ATMEGA_I2C_FLAG_READ 1 - /* static function definitions */ static int _start(uint8_t address, uint8_t rw_flag); static int _write(const uint8_t *data, int length); @@ -267,7 +266,6 @@ static int _start(uint8_t address, uint8_t rw_flag) return -1; } - /* Load ADDRESS and R/W Flag into TWDR Register. * Clear TWINT bit in TWCR to start transmission of ADDRESS */ TWDR = (address << 1) | rw_flag; diff --git a/cpu/atmega_common/periph/uart.c b/cpu/atmega_common/periph/uart.c index c0a17727d0..71c3801b9a 100644 --- a/cpu/atmega_common/periph/uart.c +++ b/cpu/atmega_common/periph/uart.c @@ -212,7 +212,6 @@ static inline void _tx_isr_handler(int num) avr8_exit_isr(); } - #ifdef UART_0_ISR ISR(UART_0_ISR, ISR_BLOCK) { diff --git a/cpu/cc2538/cpu.c b/cpu/cc2538/cpu.c index 067441b8d0..7c17fc226a 100644 --- a/cpu/cc2538/cpu.c +++ b/cpu/cc2538/cpu.c @@ -42,7 +42,6 @@ void cpu_init(void) periph_init(); } - /** * @brief Configure the controllers clock system */ diff --git a/cpu/cc2538/include/cc2538.h b/cpu/cc2538/include/cc2538.h index 5088eec238..08b3a31640 100644 --- a/cpu/cc2538/include/cc2538.h +++ b/cpu/cc2538/include/cc2538.h @@ -804,7 +804,6 @@ typedef volatile uint32_t cc2538_reg_t; /**< Least-significant 32 bits of the IE #define XOSC32K_FREQ 32768U /**< 32 KHz external oscillator/clock frequency */ #define RCOSC32K_FREQ 32753U /**< 32 KHz internal RC oscillator frequency */ - #define CC2538_VTOR_ALIGN 512 /**< CC2538 Vector Table alignment */ #ifdef __cplusplus diff --git a/cpu/cc2538/periph/timer.c b/cpu/cc2538/periph/timer.c index 5bbcc45257..af8e04307e 100644 --- a/cpu/cc2538/periph/timer.c +++ b/cpu/cc2538/periph/timer.c @@ -290,7 +290,6 @@ int timer_set_absolute(tim_t tim, int channel, unsigned int value) return 0; } - int timer_clear(tim_t tim, int channel) { DEBUG("%s(%u, %u)\n", __FUNCTION__, tim, channel); diff --git a/cpu/cc2538/radio/cc2538_rf.c b/cpu/cc2538/radio/cc2538_rf.c index 96a04ed1e4..4ab86161ee 100644 --- a/cpu/cc2538/radio/cc2538_rf.c +++ b/cpu/cc2538/radio/cc2538_rf.c @@ -85,7 +85,6 @@ static void _cc2538_observable_signals(void) } } - bool cc2538_channel_clear(void) { if (RFCORE->XREG_FSMSTAT0bits.FSM_FFCTRL_STATE == FSM_STATE_IDLE) { diff --git a/cpu/cc26x0_cc13x0/include/cc26x0_cc13x0_aux.h b/cpu/cc26x0_cc13x0/include/cc26x0_cc13x0_aux.h index ed4b92e12d..ee58094562 100644 --- a/cpu/cc26x0_cc13x0/include/cc26x0_cc13x0_aux.h +++ b/cpu/cc26x0_cc13x0/include/cc26x0_cc13x0_aux.h @@ -24,7 +24,6 @@ extern "C" { #endif - /** * AUX_AIODIO registers */ @@ -48,7 +47,6 @@ typedef struct { #define AUX_AIODIO0 ((aux_aiodio_regs_t *) (AUX_AIODIO0_BASE)) /**< AUX_AIODIO0 register bank */ #define AUX_AIODIO1 ((aux_aiodio_regs_t *) (AUX_AIODIO1_BASE)) /**< AUX_AIODIO1 register bank */ - /** * AUX_TDC registers */ @@ -73,7 +71,6 @@ typedef struct { #define AUX_TDC ((aux_tdc_regs_t *) (AUX_TDC_BASE)) /**< AUX_TDC register bank */ - /** * AUX_EVCTL registers */ @@ -105,7 +102,6 @@ typedef struct { #define AUX_EVCTL ((aux_evctl_regs_t *) (AUX_EVCTL_BASE)) /**< AUX_EVCTL register bank */ - /** * AUX_WUC registers */ @@ -154,7 +150,6 @@ typedef struct { #define AUX_WUC ((aux_wuc_regs_t *) (AUX_WUC_BASE)) /**< AUX_WUC register bank */ - /** * AUX_TIMER registers */ @@ -175,7 +170,6 @@ typedef struct { #define AUX_TIMER ((aux_timer_regs_t *) (AUX_TIMER_BASE)) /**< AUX_TIMER register bank */ - /** * AUX_SMPH registers */ @@ -199,7 +193,6 @@ typedef struct { #define AUX_SMPH ((aux_smph_regs_t *) (AUX_SMPH_BASE)) /**< AUX_SMPH register bank */ - /** * AUX_ANAIF registers */ @@ -220,7 +213,6 @@ typedef struct { #define AUX_ANAIF ((aux_anaif_regs_t *) (AUX_ANAIF_BASE)) /**< AUX_ANAIF register bank */ - /** * ADI_4_AUX registers */ @@ -246,7 +238,6 @@ typedef struct { #define ADI_4_AUX ((adi_4_aux_regs_t *) (ADI_4_AUX_BASE)) /**< ADI_4_AUX register bank */ - #define ADDI_SEM AUX_SMPH->SMPH0 /**< the semamphore used for ADDI */ #ifdef __cplusplus diff --git a/cpu/cc26x0_cc13x0/include/cc26x0_cc13x0_prcm.h b/cpu/cc26x0_cc13x0/include/cc26x0_cc13x0_prcm.h index 62572961bc..03187a1db0 100644 --- a/cpu/cc26x0_cc13x0/include/cc26x0_cc13x0_prcm.h +++ b/cpu/cc26x0_cc13x0/include/cc26x0_cc13x0_prcm.h @@ -23,7 +23,6 @@ extern "C" { #endif - /** * DDI_0_OSC registers */ @@ -78,7 +77,6 @@ typedef struct { #define DDI_0_OSC ((ddi0_osc_regs_t *) (DDI0_OSC_BASE)) /**< DDI_0_OSC register bank */ - /** * AON_SYSCTL registers */ @@ -96,7 +94,6 @@ typedef struct { #define AON_SYSCTL ((aon_sysctl_regs_t *) (AON_SYSCTL_BASE)) /**< AON_SYSCTL register bank */ - /** * AON_WUC registers */ @@ -226,7 +223,6 @@ typedef struct { #define AON_RTC ((aon_rtc_regs_t *) (AON_RTC_BASE)) /**< AON_RTC register bank */ - /** * PRCM registers */ diff --git a/cpu/cc26x0_cc13x0/include/periph_cpu.h b/cpu/cc26x0_cc13x0/include/periph_cpu.h index 0692beadb8..d5836e45d3 100644 --- a/cpu/cc26x0_cc13x0/include/periph_cpu.h +++ b/cpu/cc26x0_cc13x0/include/periph_cpu.h @@ -31,6 +31,5 @@ extern "C" { } #endif - #endif /* PERIPH_CPU_H */ /** @} */ diff --git a/cpu/cc26x2_cc13x2/include/cc26x2_cc13x2_aux.h b/cpu/cc26x2_cc13x2/include/cc26x2_cc13x2_aux.h index 951ff5edb4..887e6fcdc6 100644 --- a/cpu/cc26x2_cc13x2/include/cc26x2_cc13x2_aux.h +++ b/cpu/cc26x2_cc13x2/include/cc26x2_cc13x2_aux.h @@ -217,7 +217,6 @@ typedef struct { reg32_t SWPWRPROF; /**< Software Power Profiler */ } aux_sysif_regs_t; - /** * @brief AUX_SYSIF register values * @{ diff --git a/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_i2c.h b/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_i2c.h index f415bdf104..8c036114fa 100644 --- a/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_i2c.h +++ b/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_i2c.h @@ -25,7 +25,6 @@ extern "C" { #endif - /** * I2C registers */ @@ -102,7 +101,6 @@ typedef struct { */ #define MSTAT_IDLE 0x00000020 - /** * @brief Arbitration lost * @details 0: The I2C controller won arbitration. diff --git a/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_ioc.h b/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_ioc.h index 9da8b5a7a0..90a37042d7 100644 --- a/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_ioc.h +++ b/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_ioc.h @@ -31,7 +31,6 @@ extern "C" { #define MCU_IOC_BASE (0x40081000) /**< IOC (MCU) base address */ /** @} */ - /** * @brief obtain IOCFG-register for a DIO * diff --git a/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_wdt.h b/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_wdt.h index 16cbc210c5..2d9459e353 100644 --- a/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_wdt.h +++ b/cpu/cc26xx_cc13xx/include/cc26xx_cc13xx_wdt.h @@ -23,7 +23,6 @@ extern "C" { #endif - /** * WDT registers */ diff --git a/cpu/cc26xx_cc13xx/periph/uart.c b/cpu/cc26xx_cc13xx/periph/uart.c index 18965a68ad..3f7db1c410 100644 --- a/cpu/cc26xx_cc13xx/periph/uart.c +++ b/cpu/cc26xx_cc13xx/periph/uart.c @@ -132,7 +132,6 @@ int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg) return UART_OK; } - #ifdef MODULE_PERIPH_UART_MODECFG int uart_mode(uart_t uart, uart_data_bits_t data_bits, uart_parity_t parity, uart_stop_bits_t stop_bits) diff --git a/cpu/cortexm_common/include/atomic_utils_arch.h b/cpu/cortexm_common/include/atomic_utils_arch.h index de43004748..9f9f4eedbe 100644 --- a/cpu/cortexm_common/include/atomic_utils_arch.h +++ b/cpu/cortexm_common/include/atomic_utils_arch.h @@ -181,7 +181,6 @@ static inline void atomic_clear_bit_u64(atomic_bit_u64_t bit) _bit_barrier_post(); } - #endif /* CPU_HAS_BITBAND */ #ifdef __cplusplus diff --git a/cpu/cortexm_common/include/cpu_conf_common.h b/cpu/cortexm_common/include/cpu_conf_common.h index bdc7691829..18661942db 100644 --- a/cpu/cortexm_common/include/cpu_conf_common.h +++ b/cpu/cortexm_common/include/cpu_conf_common.h @@ -165,7 +165,6 @@ extern "C" { #define BACKUP_RAM_DATA __attribute__((section(".backup.data"))) #endif /* CPU_HAS_BACKUP_RAM */ - /** * @brief This arch uses the inlined irq API. */ diff --git a/cpu/cortexm_common/include/irq_arch.h b/cpu/cortexm_common/include/irq_arch.h index 6a1307da2a..ad8604ff9a 100644 --- a/cpu/cortexm_common/include/irq_arch.h +++ b/cpu/cortexm_common/include/irq_arch.h @@ -18,7 +18,6 @@ * @} */ - #ifndef IRQ_ARCH_H #define IRQ_ARCH_H diff --git a/cpu/cortexm_common/thread_arch.c b/cpu/cortexm_common/thread_arch.c index 043ac970bc..23af0bf701 100644 --- a/cpu/cortexm_common/thread_arch.c +++ b/cpu/cortexm_common/thread_arch.c @@ -116,8 +116,6 @@ extern uint32_t _sstack; #define CPU_CORE_CORTEXM_FULL_THUMB 1 #endif - - /** * @brief Noticeable marker marking the beginning of a stack segment * @@ -226,7 +224,6 @@ char *thread_stack_init(thread_task_func_t task_func, } #endif - /* The returned stack pointer will be aligned on a 32 bit boundary not on a * 64 bit boundary because of the odd number of registers above (8+9). * This is not a problem since the initial stack pointer upon process entry diff --git a/cpu/efm32/include/periph_cpu.h b/cpu/efm32/include/periph_cpu.h index 071a3982f6..e84d5ce563 100644 --- a/cpu/efm32/include/periph_cpu.h +++ b/cpu/efm32/include/periph_cpu.h @@ -385,7 +385,6 @@ typedef struct { } timer_conf_t; /** @} */ - /** * @brief Use LETIMER as the base timer for XTIMER */ @@ -393,7 +392,6 @@ typedef struct { #define CONFIG_EFM32_XTIMER_USE_LETIMER 0 #endif - /** * @brief UART device configuration. */ diff --git a/cpu/esp32/include/periph_cpu.h b/cpu/esp32/include/periph_cpu.h index d3825fbabd..a7f3773125 100644 --- a/cpu/esp32/include/periph_cpu.h +++ b/cpu/esp32/include/periph_cpu.h @@ -496,7 +496,6 @@ typedef struct { #define PERIPH_SPI_NEEDS_TRANSFER_REGS /**< requires function spi_transfer_regs */ /** @} */ - /** * @name Timer configuration depending on which implementation is used * diff --git a/cpu/esp32/periph/adc.c b/cpu/esp32/periph/adc.c index 9dfd8d71b3..1b88ac0560 100644 --- a/cpu/esp32/periph/adc.c +++ b/cpu/esp32/periph/adc.c @@ -148,7 +148,6 @@ int adc_init(adc_t line) return 0; } - int32_t adc_sample(adc_t line, adc_res_t res) { CHECK_PARAM_RET (line < ADC_NUMOF, -1) diff --git a/cpu/esp32/periph/gpio.c b/cpu/esp32/periph/gpio.c index d98908bbdb..b5f8bdb8d7 100644 --- a/cpu/esp32/periph/gpio.c +++ b/cpu/esp32/periph/gpio.c @@ -249,7 +249,6 @@ const char* _gpio_pin_usage_str[] = "GPIO", "ADC", "CAN", "DAC", "EMAC", "I2C", "PWM", "SPI", "SPI Flash", "UART", "N/A" }; - #define FUN_GPIO 2 /* the function number for all GPIOs */ #define GPIO_PIN_SET(b) if (b < 32) GPIO.out_w1ts = BIT(b); else GPIO.out1_w1ts.val = BIT(b-32) @@ -530,7 +529,6 @@ const char* gpio_get_pin_usage_str(gpio_t pin) return _gpio_pin_usage_str[_gpio_pin_usage[((pin < GPIO_PIN_NUMOF) ? pin : _NOT_EXIST)]]; } - void gpio_pullup_dis (gpio_t pin) { CHECK_PARAM(pin < GPIO_PIN_NUMOF); diff --git a/cpu/esp32/periph/timer.c b/cpu/esp32/periph/timer.c index ad26b29678..9401699e23 100644 --- a/cpu/esp32/periph/timer.c +++ b/cpu/esp32/periph/timer.c @@ -142,7 +142,6 @@ static const struct hw_timer_hw_t timers_hw[HW_TIMER_NUMOF] = } }; - /** Latches the current counter value and return only the low part */ static inline uint32_t timer_get_counter_lo(tim_t dev) { @@ -566,7 +565,6 @@ void IRAM timer_stop(tim_t dev) irq_restore (state); } - static void IRAM __timer_channel_start (struct hw_timer_t* timer, struct hw_channel_t* channel) { if (!timer->started || !channel->used) { diff --git a/cpu/esp8266/periph/adc.c b/cpu/esp8266/periph/adc.c index ff37598aef..3020b22dad 100644 --- a/cpu/esp8266/periph/adc.c +++ b/cpu/esp8266/periph/adc.c @@ -41,7 +41,6 @@ int adc_init(adc_t line) return 0; } - int32_t adc_sample(adc_t line, adc_res_t res) { CHECK_PARAM_RET (line < ADC_NUMOF, -1) diff --git a/cpu/esp8266/periph/timer.c b/cpu/esp8266/periph/timer.c index dbedaed413..b13ad73557 100644 --- a/cpu/esp8266/periph/timer.c +++ b/cpu/esp8266/periph/timer.c @@ -244,7 +244,6 @@ void IRAM timer_stop(tim_t dev) irq_restore (state); } - static void IRAM __timer_channel_start (struct hw_timer_t* timer, struct hw_channel_t* channel) { if (!timer->started || !channel->used) { @@ -506,7 +505,6 @@ void IRAM timer_stop(tim_t dev) irq_restore (state); } - static void IRAM __timer_channel_start (struct phy_timer_t* timer, struct phy_channel_t* channel) { if (!timer->started || !channel->used) { diff --git a/cpu/esp_common/freertos/queue.c b/cpu/esp_common/freertos/queue.c index bebb940e28..0f59db2d6a 100644 --- a/cpu/esp_common/freertos/queue.c +++ b/cpu/esp_common/freertos/queue.c @@ -243,7 +243,6 @@ BaseType_t IRAM_ATTR _queue_generic_recv (QueueHandle_t xQueue, queue->item_size); } - /* when only peeking leave the element in queue */ if (xJustPeeking == pdTRUE) { DEBUG("%s pid=%d queue=%p return pdPASS\n", __func__, diff --git a/cpu/esp_common/include/gpio_arch_common.h b/cpu/esp_common/include/gpio_arch_common.h index f4e27fa1e9..5da689d471 100644 --- a/cpu/esp_common/include/gpio_arch_common.h +++ b/cpu/esp_common/include/gpio_arch_common.h @@ -51,7 +51,6 @@ typedef enum _NOT_EXIST /**< pin cannot be used at all */ } gpio_pin_usage_t; - /** * @brief Set the usage type of the pin * @param pin GPIO pin diff --git a/cpu/esp_common/include/sys/types.h b/cpu/esp_common/include/sys/types.h index cff57fa2cf..3a7fc8b65c 100644 --- a/cpu/esp_common/include/sys/types.h +++ b/cpu/esp_common/include/sys/types.h @@ -20,7 +20,6 @@ * with pthread types from pthread module. */ - /* unified sys/types.h: start with sef's sysvi386 version. merge go32 version -- a few ifdefs. @@ -309,7 +308,6 @@ typedef struct _types_fd_set { #undef __MS_types__ #undef _ST_INT32 - #ifndef __clockid_t_defined typedef _CLOCKID_T_ clockid_t; #define __clockid_t_defined diff --git a/cpu/esp_common/periph/flash.c b/cpu/esp_common/periph/flash.c index 8170dbd258..17dae2db2f 100644 --- a/cpu/esp_common/periph/flash.c +++ b/cpu/esp_common/periph/flash.c @@ -491,7 +491,6 @@ esp_err_t esp_partition_erase_range(const esp_partition_t* part, return spi_flash_erase_range(part->address + addr, size); } - static int _flash_init (mtd_dev_t *dev) { DEBUG("%s dev=%p driver=%p\n", __func__, dev, &_flash_driver); diff --git a/cpu/esp_common/periph/i2c_sw.c b/cpu/esp_common/periph/i2c_sw.c index e4eaf52a5b..efb45e26f9 100644 --- a/cpu/esp_common/periph/i2c_sw.c +++ b/cpu/esp_common/periph/i2c_sw.c @@ -802,7 +802,6 @@ static IRAM_ATTR int _i2c_write_byte(_i2c_bus_t* bus, uint8_t byte) return !bit ? 0 : -EIO; } - static IRAM_ATTR int _i2c_read_byte(_i2c_bus_t* bus, uint8_t *byte, bool ack) { bool bit; diff --git a/cpu/fe310/periph/cpucycle.c b/cpu/fe310/periph/cpucycle.c index 74d591438f..f0bb3487b9 100644 --- a/cpu/fe310/periph/cpucycle.c +++ b/cpu/fe310/periph/cpucycle.c @@ -18,7 +18,6 @@ */ #include "cpucycle.h" - uint64_t get_cycle_count(void) { uint32_t lo, hi, hi2; diff --git a/cpu/fe310/periph/rtc.c b/cpu/fe310/periph/rtc.c index 58d395b869..b3dc04fa8a 100644 --- a/cpu/fe310/periph/rtc.c +++ b/cpu/fe310/periph/rtc.c @@ -26,7 +26,6 @@ #define ENABLE_DEBUG 0 #include "debug.h" - typedef struct { rtc_alarm_cb_t cb; /**< callback called from RTC interrupt */ }rtc_state_t; diff --git a/cpu/kinetis/dist/calc_spi_scalers/calc_spi_scalers.c b/cpu/kinetis/dist/calc_spi_scalers/calc_spi_scalers.c index 029a5de237..2b1c198832 100644 --- a/cpu/kinetis/dist/calc_spi_scalers/calc_spi_scalers.c +++ b/cpu/kinetis/dist/calc_spi_scalers/calc_spi_scalers.c @@ -174,7 +174,6 @@ static long find_closest_delay_scalers(const uint32_t module_clock, const long t return closest_frequency; } - int main(int argc, char **argv) { uint32_t modclk; @@ -194,7 +193,6 @@ int main(int argc, char **argv) printf("\nCalculating SPI clock scalers for a module clock of: %iHz\n\n", (int)modclk); - puts("static const uint32_t spi_clk_config[] = {"); for (i = 0; i < ARRAY_SIZE(targets); i++) { diff --git a/cpu/kinetis/include/cpu_conf_kinetis.h b/cpu/kinetis/include/cpu_conf_kinetis.h index 421b9e7408..fcf5d427d8 100644 --- a/cpu/kinetis/include/cpu_conf_kinetis.h +++ b/cpu/kinetis/include/cpu_conf_kinetis.h @@ -183,7 +183,6 @@ extern "C" #endif /* MK20D7_H_ */ /** @} */ - #ifdef __cplusplus } #endif diff --git a/cpu/kinetis/include/periph_cpu.h b/cpu/kinetis/include/periph_cpu.h index 02ac59b0ca..7b81bb9c35 100644 --- a/cpu/kinetis/include/periph_cpu.h +++ b/cpu/kinetis/include/periph_cpu.h @@ -511,7 +511,6 @@ enum { event may be lost. */ /** @} */ - /** * @brief UART hardware module types */ diff --git a/cpu/kinetis/periph/i2c.c b/cpu/kinetis/periph/i2c.c index 6da48d538b..12d503308a 100644 --- a/cpu/kinetis/periph/i2c.c +++ b/cpu/kinetis/periph/i2c.c @@ -104,7 +104,6 @@ typedef struct { int retval; /**< return value from ISR */ } i2c_state_t; - static i2c_state_t i2c_state[I2C_NUMOF]; int i2c_acquire(i2c_t dev) diff --git a/cpu/kinetis/periph/ics.c b/cpu/kinetis/periph/ics.c index 778aa14e49..7d43bf7e1d 100644 --- a/cpu/kinetis/periph/ics.c +++ b/cpu/kinetis/periph/ics.c @@ -87,8 +87,6 @@ #include #include "cpu.h" - - /* ---------------------------------------------------------------------------- -- Core clock ---------------------------------------------------------------------------- */ diff --git a/cpu/lm4f120/periph/gpio.c b/cpu/lm4f120/periph/gpio.c index a9b12e2abf..1970ea071e 100644 --- a/cpu/lm4f120/periph/gpio.c +++ b/cpu/lm4f120/periph/gpio.c @@ -19,7 +19,6 @@ * @} */ - #include #include "cpu.h" @@ -95,7 +94,6 @@ typedef struct { static gpio_state_t gpio_config[NUM_OF_PORT][NUM_OF_PINS]; #endif /* MODULE_PERIPH_GPIO_IRQ */ - int gpio_init(gpio_t pin, gpio_mode_t mode) { const uint8_t port_num = _port_num(pin); diff --git a/cpu/lpc23xx/mci/lpc23xx-mci.c b/cpu/lpc23xx/mci/lpc23xx-mci.c index 947d802e36..efbf591cc0 100644 --- a/cpu/lpc23xx/mci/lpc23xx-mci.c +++ b/cpu/lpc23xx/mci/lpc23xx-mci.c @@ -33,12 +33,10 @@ / occurred due to any interrupt by higher priority process or slow external memory, increasing / N_BUF or decreasing MCLK_RW will solve it. */ - /* ----- Port definitions ----- */ #define SOCKINS !(FIO0PIN2 & 0x20) /* Card detect switch */ #define SOCKWP (FIO0PIN2 & 0x04) /* Write protect switch */ - /* ----- MMC/SDC command ----- */ #define CMD0 (0) /* GO_IDLE_STATE */ #define CMD1 (1) /* SEND_OP_COND (MMC) */ @@ -72,7 +70,6 @@ #define CT_SDC (CT_SD1|CT_SD2) /* SD */ #define CT_BLOCK 0x08 /* Block addressing */ - /*-------------------------------------------------------------------------- Module Private Functions @@ -159,7 +156,6 @@ void Isr_GPDMA(void) VICVectAddr = 0; } - /*-----------------------------------------------------------------------*/ /* Ready for data reception */ /*-----------------------------------------------------------------------*/ @@ -211,7 +207,6 @@ static void ready_reception(unsigned int blks, unsigned int bs) MCI_DATA_CTRL = n | 0xB; /* Start to receive data blocks */ } - /*-----------------------------------------------------------------------*/ /* Start to transmit a data block */ /*-----------------------------------------------------------------------*/ @@ -225,7 +220,6 @@ static void start_transmission(unsigned char blks) unsigned int n; unsigned long dma_ctrl; - /* ------ Setting up GPDMA Ch-0 ------ */ GPDMA_CH0_CFG &= 0xFFF80420; /* Disable ch-0 */ @@ -263,9 +257,6 @@ static void start_transmission(unsigned char blks) } #endif /* _READONLY */ - - - /*-----------------------------------------------------------------------*/ /* Stop data transfer */ /*-----------------------------------------------------------------------*/ @@ -278,9 +269,6 @@ static void stop_transfer(void) GPDMA_CH0_CFG &= 0xFFF80420; /* Disable DMA ch-0 */ } - - - /*-----------------------------------------------------------------------*/ /* Power Control (Device dependent) */ /*-----------------------------------------------------------------------*/ @@ -290,7 +278,6 @@ static int power_status(void) return (MCI_POWER & 3) ? 1 : 0; } - static void power_on(void) { /* Enable MCI and GPDMA clock */ @@ -328,7 +315,6 @@ static void power_on(void) //RegisterIrq(GPDMA_INT, Isr_GPDMA, PRI_LOWEST-1); install_irq(GPDMA_INT, Isr_GPDMA, 5); - /* Power-on (VCC is always tied to the socket on this board) */ MCI_POWER = 0x01; /* Power on */ @@ -338,7 +324,6 @@ static void power_on(void) MCI_POWER = 0x03; /* Enable signals */ } - static void power_off(void) { MCI_MASK0 = 0; @@ -365,7 +350,6 @@ static void power_off(void) Stat |= DISKIO_STA_NOINIT; } - /*-----------------------------------------------------------------------*/ /* Send a command packet to the card and receive a response */ /*-----------------------------------------------------------------------*/ @@ -463,9 +447,6 @@ static int send_cmd(unsigned int idx, unsigned long arg, unsigned int rt, unsign return 1; /* Return with success */ } - - - /*-----------------------------------------------------------------------*/ /* Wait card ready */ /*-----------------------------------------------------------------------*/ @@ -500,7 +481,6 @@ static void bswap_cp(unsigned char *dst, const unsigned long *src) { unsigned long d; - d = *src; *dst++ = (unsigned char)(d >> 24); *dst++ = (unsigned char)(d >> 16); @@ -670,9 +650,6 @@ di_fail: return Stat; } - - - /*-----------------------------------------------------------------------*/ /* Get Disk Status */ /*-----------------------------------------------------------------------*/ @@ -682,9 +659,6 @@ diskio_sta_t mci_status(void) return Stat; } - - - /*-----------------------------------------------------------------------*/ /* Read Sector(s) */ /*-----------------------------------------------------------------------*/ @@ -754,7 +728,6 @@ diskio_result_t mci_read(unsigned char *buff, unsigned long sector, unsigned cha return count ? DISKIO_RES_ERROR : DISKIO_RES_OK; } - /*-----------------------------------------------------------------------*/ /* Write Sector(s) */ /*-----------------------------------------------------------------------*/ @@ -861,9 +834,6 @@ diskio_result_t mci_write(const unsigned char *buff, unsigned long sector, unsig } #endif /* _READONLY */ - - - /*-----------------------------------------------------------------------*/ /* Miscellaneous Functions */ /*-----------------------------------------------------------------------*/ @@ -877,7 +847,6 @@ diskio_result_t mci_ioctl( unsigned char *ptr = (unsigned char *)buff; unsigned long resp[4], d, *dp, st, ed; - if (Stat & DISKIO_STA_NOINIT) { return DISKIO_RES_NOTRDY; } diff --git a/cpu/mips32r2_common/cpu.c b/cpu/mips32r2_common/cpu.c index 059327591a..8cf94d6fec 100644 --- a/cpu/mips32r2_common/cpu.c +++ b/cpu/mips32r2_common/cpu.c @@ -25,7 +25,6 @@ #include "cpu.h" #include "board.h" - void mips_start(void); extern void _fini(void); @@ -61,7 +60,6 @@ void software_init_hook(void) exit(-1); } - void mips_start(void) { board_init(); diff --git a/cpu/mips32r2_common/irq_arch.c b/cpu/mips32r2_common/irq_arch.c index f7c67e294c..a1f4606503 100644 --- a/cpu/mips32r2_common/irq_arch.c +++ b/cpu/mips32r2_common/irq_arch.c @@ -9,7 +9,6 @@ #include #include "irq.h" - unsigned int irq_enable(void) { unsigned int status; diff --git a/cpu/mips32r2_common/thread_arch.c b/cpu/mips32r2_common/thread_arch.c index b574462fc1..1ec12456af 100644 --- a/cpu/mips32r2_common/thread_arch.c +++ b/cpu/mips32r2_common/thread_arch.c @@ -36,7 +36,6 @@ #define MM_SYSCALL (0x8B7C0000) #define MM_SYSCALL_MASK (0xfffffc00) - #ifdef MIPS_HARD_FLOAT /* pointer to the current and old fpu context for lazy context switching */ static struct fp64ctx *currentfpctx; /* fpu context of current running task */ @@ -166,7 +165,6 @@ mem_rw(const void *vaddr) return v; } - #ifdef MIPS_DSP extern int _dsp_save(struct dspctx *ctx); extern int _dsp_load(struct dspctx *ctx); diff --git a/cpu/mips_pic32_common/include/periph_cpu_common.h b/cpu/mips_pic32_common/include/periph_cpu_common.h index 585ab16a1c..2936f14371 100644 --- a/cpu/mips_pic32_common/include/periph_cpu_common.h +++ b/cpu/mips_pic32_common/include/periph_cpu_common.h @@ -78,7 +78,6 @@ enum { */ #define PERIPH_TIMER_PROVIDES_SET - /** * @brief Available MUX values for configuring a pin's alternate function */ diff --git a/cpu/mips_pic32_common/periph/timer.c b/cpu/mips_pic32_common/periph/timer.c index aaeb0f8113..9d2fa8dbb8 100644 --- a/cpu/mips_pic32_common/periph/timer.c +++ b/cpu/mips_pic32_common/periph/timer.c @@ -102,7 +102,6 @@ static void timer_isr(void) mips_setcompare(mips_getcount() + TICKS_PER_US * TIMER_ACCURACY); } - /* * The mips toolchain C library does not implement gettimeofday() * diff --git a/cpu/msp430_common/cpu.c b/cpu/msp430_common/cpu.c index b63e0058c3..fe9dfbd83a 100644 --- a/cpu/msp430_common/cpu.c +++ b/cpu/msp430_common/cpu.c @@ -78,7 +78,6 @@ void *thread_isr_stack_start(void) return (void *)-1; } - NORETURN void cpu_switch_context_exit(void) { sched_run(); diff --git a/cpu/msp430_common/include/irq_arch.h b/cpu/msp430_common/include/irq_arch.h index fee2996768..2e0f724060 100644 --- a/cpu/msp430_common/include/irq_arch.h +++ b/cpu/msp430_common/include/irq_arch.h @@ -35,7 +35,6 @@ extern "C" { * due to following AND. // Kaspar */ - extern volatile int __irq_is_in; #define _GENERAL_INTERRUPT_ENABLE (0x0008) diff --git a/cpu/msp430_common/msp430-main.c b/cpu/msp430_common/msp430-main.c index 8b8b63a6ef..fd4b46e9dd 100644 --- a/cpu/msp430_common/msp430-main.c +++ b/cpu/msp430_common/msp430-main.c @@ -113,7 +113,6 @@ void msp430_cpu_init(void) /*---------------------------------------------------------------------------*/ #define asmv(arg) __asm__ __volatile__(arg) - /*---------------------------------------------------------------------------*/ /* * Mask all interrupts that can be masked. diff --git a/cpu/msp430fxyz/periph/spi.c b/cpu/msp430fxyz/periph/spi.c index e36831982b..0ef6633cbb 100644 --- a/cpu/msp430fxyz/periph/spi.c +++ b/cpu/msp430fxyz/periph/spi.c @@ -33,7 +33,6 @@ */ static mutex_t spi_lock = MUTEX_INIT; - void spi_init(spi_t bus) { assert(bus <= SPI_NUMOF); diff --git a/cpu/msp430fxyz/periph/timer.c b/cpu/msp430fxyz/periph/timer.c index 589fd09e96..1e4b5444bd 100644 --- a/cpu/msp430fxyz/periph/timer.c +++ b/cpu/msp430fxyz/periph/timer.c @@ -40,7 +40,6 @@ static timer_cb_t isr_cb; */ static void *isr_arg; - int timer_init(tim_t dev, uint32_t freq, timer_cb_t cb, void *arg) { /* using fixed TIMER_BASE for now */ diff --git a/cpu/native/irq_cpu.c b/cpu/native/irq_cpu.c index cfd40ecafb..ae16a0c5e7 100644 --- a/cpu/native/irq_cpu.c +++ b/cpu/native/irq_cpu.c @@ -541,7 +541,6 @@ void native_interrupt_init(void) err(EXIT_FAILURE, "native_interrupt_init: sigaction"); } - puts("RIOT native interrupts/signals initialized."); } /** @} */ diff --git a/cpu/native/mtd/mtd_native.c b/cpu/native/mtd/mtd_native.c index aa549c12ef..1bf21bae3f 100644 --- a/cpu/native/mtd/mtd_native.c +++ b/cpu/native/mtd/mtd_native.c @@ -176,7 +176,6 @@ static int _power(mtd_dev_t *dev, enum mtd_power_state power) return -ENOTSUP; } - const mtd_desc_t native_flash_driver = { .read = _read, .power = _power, diff --git a/cpu/native/native_cpu.c b/cpu/native/native_cpu.c index ea8590f263..136908bd6b 100644 --- a/cpu/native/native_cpu.c +++ b/cpu/native/native_cpu.c @@ -29,7 +29,6 @@ #include #undef __USE_GNU - #include #include diff --git a/cpu/native/syscalls.c b/cpu/native/syscalls.c index ed85139acb..e0b5e4ec89 100644 --- a/cpu/native/syscalls.c +++ b/cpu/native/syscalls.c @@ -306,7 +306,6 @@ int printf(const char *format, ...) return r; } - int vprintf(const char *format, va_list argp) { return vfprintf(stdout, format, argp); @@ -338,7 +337,6 @@ int vfprintf(FILE *fp, const char *format, va_list argp) return r; } - void vwarn(const char *fmt, va_list args) { char *m, *e; diff --git a/cpu/native/vfs/native_vfs.c b/cpu/native/vfs/native_vfs.c index e9aa0678f9..2d701c8a9e 100644 --- a/cpu/native/vfs/native_vfs.c +++ b/cpu/native/vfs/native_vfs.c @@ -98,7 +98,6 @@ int fcntl(int fd, int cmd, ...) return res; } - off_t lseek(int fd, off_t off, int whence) { int res = vfs_lseek(fd, off, whence); diff --git a/cpu/nrf52/include/periph_cpu.h b/cpu/nrf52/include/periph_cpu.h index 7ef5f76509..25283d6b18 100644 --- a/cpu/nrf52/include/periph_cpu.h +++ b/cpu/nrf52/include/periph_cpu.h @@ -237,7 +237,6 @@ typedef struct { #endif } spi_conf_t; - /** * @brief Common SPI/I2C interrupt callback * diff --git a/cpu/nrf5x_common/include/nrfmin.h b/cpu/nrf5x_common/include/nrfmin.h index 3fa0867519..fcb8c5badd 100644 --- a/cpu/nrf5x_common/include/nrfmin.h +++ b/cpu/nrf5x_common/include/nrfmin.h @@ -217,8 +217,6 @@ int16_t nrfmin_get_txpower(void); */ void nrfmin_set_txpower(int16_t power); - - #ifdef __cplusplus } #endif diff --git a/cpu/nrf5x_common/radio/nrfmin/nrfmin.c b/cpu/nrf5x_common/radio/nrfmin/nrfmin.c index 1be5616d2b..7eed0e09a6 100644 --- a/cpu/nrf5x_common/radio/nrfmin/nrfmin.c +++ b/cpu/nrf5x_common/radio/nrfmin/nrfmin.c @@ -91,7 +91,6 @@ typedef enum { STATE_TX, /**< device is transmitting data */ } state_t; - /** * @brief Since there can only be 1 nrfmin device, we allocate it right here */ @@ -283,7 +282,6 @@ int nrfmin_set_state(netopt_state_t val) return sizeof(netopt_state_t); } - /** * @brief Radio interrupt routine */ diff --git a/cpu/qn908x/cpu.c b/cpu/qn908x/cpu.c index 587753e338..c938cc159b 100644 --- a/cpu/qn908x/cpu.c +++ b/cpu/qn908x/cpu.c @@ -71,7 +71,6 @@ void cpu_clock_init(void) #endif #endif /* CONFIG_BOARD_HAS_XTAL */ - /* Set up 32K clock source. */ #if CONFIG_CPU_CLK_32K_XTAL CLOCK_AttachClk(kXTAL32K_to_32K_CLK); /* Switch 32K_CLK to XTAL32K */ diff --git a/cpu/qn908x/include/periph_cpu.h b/cpu/qn908x/include/periph_cpu.h index d674c4615b..85c5937f93 100644 --- a/cpu/qn908x/include/periph_cpu.h +++ b/cpu/qn908x/include/periph_cpu.h @@ -209,7 +209,6 @@ typedef enum { /** @} */ #endif /* ifdef DOXYGEN */ - /** * @brief ADC channel pair configuration * diff --git a/cpu/qn908x/periph/adc.c b/cpu/qn908x/periph/adc.c index 1308d67b93..d8de1c886d 100644 --- a/cpu/qn908x/periph/adc.c +++ b/cpu/qn908x/periph/adc.c @@ -123,7 +123,6 @@ static uint32_t _adc_bandgap_calib_mv(void) { /* Mask to and against the adc_conf_t to get the channel enum value. */ #define ADC_CONF_T_CHANNEL_MASK (0x1fu << 9u) - int adc_init(adc_t line) { if (line >= ADC_NUMOF) { diff --git a/cpu/qn908x/periph/rtc.c b/cpu/qn908x/periph/rtc.c index 4ea0fdf271..a939fe3a57 100644 --- a/cpu/qn908x/periph/rtc.c +++ b/cpu/qn908x/periph/rtc.c @@ -20,7 +20,6 @@ * @} */ - #include #include "cpu.h" @@ -33,7 +32,6 @@ #define ENABLE_DEBUG 0 #include "debug.h" - /* Callback context. */ typedef struct { rtc_alarm_cb_t cb; diff --git a/cpu/qn908x/periph/timer.c b/cpu/qn908x/periph/timer.c index 22745e0792..586090e623 100644 --- a/cpu/qn908x/periph/timer.c +++ b/cpu/qn908x/periph/timer.c @@ -58,7 +58,6 @@ static IRQn_Type const ctimers_irqn[FSL_FEATURE_SOC_CTIMER_COUNT] = static const clock_ip_name_t ctimers_clocks[FSL_FEATURE_SOC_CTIMER_COUNT] = CTIMER_CLOCKS; - /** * @brief Check the board config to make sure we do not exceed max number of * timers diff --git a/cpu/riscv_common/context_frame.c b/cpu/riscv_common/context_frame.c index e819e3cd2b..2a7efa1c9d 100644 --- a/cpu/riscv_common/context_frame.c +++ b/cpu/riscv_common/context_frame.c @@ -23,7 +23,6 @@ #include "context_frame.h" #include "thread.h" - #define CHECK_OFFSET(member) \ _Static_assert(offsetof(struct context_switch_frame, \ member) == member ## _OFFSET, \ diff --git a/cpu/riscv_common/include/context_frame.h b/cpu/riscv_common/include/context_frame.h index 00e7933cbf..c0ff962c86 100644 --- a/cpu/riscv_common/include/context_frame.h +++ b/cpu/riscv_common/include/context_frame.h @@ -23,7 +23,6 @@ #include #endif /* __ASSEMBLER__ */ - #ifdef __cplusplus extern "C" { #endif @@ -76,7 +75,6 @@ struct context_switch_frame { #endif /* __ASSEMBLER__ */ - /** * @name Register offsets * @{ @@ -124,7 +122,6 @@ struct context_switch_frame { */ #define SP_OFFSET_IN_THREAD 0 - #ifdef __cplusplus } #endif diff --git a/cpu/riscv_common/include/cpucycle.h b/cpu/riscv_common/include/cpucycle.h index 63dc495e60..105995e370 100644 --- a/cpu/riscv_common/include/cpucycle.h +++ b/cpu/riscv_common/include/cpucycle.h @@ -21,7 +21,6 @@ #include - #ifdef __cplusplus extern "C" { #endif @@ -33,7 +32,6 @@ extern "C" { */ uint64_t get_cycle_count(void); - #ifdef __cplusplus } #endif diff --git a/cpu/riscv_common/periph/coretimer.c b/cpu/riscv_common/periph/coretimer.c index d3fa31a321..cf8347f597 100644 --- a/cpu/riscv_common/periph/coretimer.c +++ b/cpu/riscv_common/periph/coretimer.c @@ -66,7 +66,6 @@ int timer_init(tim_t dev, uint32_t freq, timer_cb_t cb, void *arg) isr_cb = cb; isr_arg = arg; - /* reset timer counter */ volatile uint64_t *mtime = (uint64_t *)(CLINT_BASE_ADDR + CLINT_MTIME); diff --git a/cpu/rpx0xx/include/cpu_conf.h b/cpu/rpx0xx/include/cpu_conf.h index 3f5e4b30e9..8b14d664c6 100644 --- a/cpu/rpx0xx/include/cpu_conf.h +++ b/cpu/rpx0xx/include/cpu_conf.h @@ -25,7 +25,6 @@ #include "cpu_conf_common.h" #include "vendor/RP2040.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/cpu/sam0_common/include/periph_cpu_common.h b/cpu/sam0_common/include/periph_cpu_common.h index 08254d8224..eb10d8c63b 100644 --- a/cpu/sam0_common/include/periph_cpu_common.h +++ b/cpu/sam0_common/include/periph_cpu_common.h @@ -207,7 +207,6 @@ typedef enum { #endif /* ndef DOXYGEN */ - /** * @brief Size of the UART TX buffer for non-blocking mode. */ @@ -837,7 +836,6 @@ typedef struct { #define NWDT_TIME_UPPER_LIMIT (16384U) /** @} */ - /** * @brief Watchdog can be stopped. */ diff --git a/cpu/sam0_common/periph/wdt.c b/cpu/sam0_common/periph/wdt.c index 6aa8243d3d..2c1da60ff9 100644 --- a/cpu/sam0_common/periph/wdt.c +++ b/cpu/sam0_common/periph/wdt.c @@ -41,7 +41,6 @@ #define WDT_CONFIG_PER_16K_Val WDT_CONFIG_PER_CYC16384_Val #endif - static inline void _set_enable(bool on) { /* work around strange watchdog behaviour if IDLE2 is used on samd21 */ diff --git a/cpu/sam3/periph/adc.c b/cpu/sam3/periph/adc.c index 76ffc119bc..ad74482c48 100644 --- a/cpu/sam3/periph/adc.c +++ b/cpu/sam3/periph/adc.c @@ -21,7 +21,6 @@ #include #include - #include "mutex.h" #include "periph/adc.h" @@ -35,7 +34,6 @@ #endif #define PRESCALER ((CLOCK_CORECLOCK / (2 * ADC_CLOCK_TARGET)) - 1) - static mutex_t lock = MUTEX_INIT; static inline void use(void) diff --git a/cpu/samd21/cpu.c b/cpu/samd21/cpu.c index 3c74ade60f..71aac9ddce 100644 --- a/cpu/samd21/cpu.c +++ b/cpu/samd21/cpu.c @@ -153,7 +153,6 @@ static void clk_init(void) | GCLK_GENCTRL_SRC_XOSC32K); #endif - #if CLOCK_USE_PLL /* setup generic clock 1 to feed DPLL with 1MHz */ GCLK->GENDIV.reg = (GCLK_GENDIV_DIV(8) | diff --git a/cpu/saml1x/cpu.c b/cpu/saml1x/cpu.c index 24c246bf6e..b8403f80a1 100644 --- a/cpu/saml1x/cpu.c +++ b/cpu/saml1x/cpu.c @@ -141,7 +141,6 @@ void cpu_init(void) #endif ; - /* Disable the RTC module to prevent synchronization issues during CPU init if the RTC was running from a previous boot (e.g wakeup from backup) as the module will be re-init during the boot process */ diff --git a/cpu/stm32/dist/clk_conf/clk_conf.c b/cpu/stm32/dist/clk_conf/clk_conf.c index f21da30647..d6ba46fb61 100644 --- a/cpu/stm32/dist/clk_conf/clk_conf.c +++ b/cpu/stm32/dist/clk_conf/clk_conf.c @@ -438,7 +438,6 @@ int main(int argc, char **argv) } } - /* Print constants */ fprintf(stderr, "==============================================================\n"); fprintf(stderr, "Please copy the following code into your board's periph_conf.h\n\n"); diff --git a/cpu/stm32/include/clk/mp1/cfg_clock_default.h b/cpu/stm32/include/clk/mp1/cfg_clock_default.h index e3a9807c03..369ad68cf8 100644 --- a/cpu/stm32/include/clk/mp1/cfg_clock_default.h +++ b/cpu/stm32/include/clk/mp1/cfg_clock_default.h @@ -6,7 +6,6 @@ * details. */ - /** * @ingroup cpu_stm32 * @{ diff --git a/cpu/stm32/periph/i2c_1.c b/cpu/stm32/periph/i2c_1.c index 80b365fb40..4af801fed6 100644 --- a/cpu/stm32/periph/i2c_1.c +++ b/cpu/stm32/periph/i2c_1.c @@ -300,7 +300,6 @@ static int _write(I2C_TypeDef *i2c, uint16_t addr, const void *data, return _wait_for_bus(i2c); } - static int _start(I2C_TypeDef *i2c, uint32_t cr2, uint8_t flags) { assert(i2c != NULL); diff --git a/cpu/stm32/periph/qdec.c b/cpu/stm32/periph/qdec.c index 1eaef36575..5deae8670e 100644 --- a/cpu/stm32/periph/qdec.c +++ b/cpu/stm32/periph/qdec.c @@ -190,7 +190,6 @@ static inline void irq_handler(qdec_t qdec) cortexm_isr_end(); } - #ifdef QDEC_0_ISR void QDEC_0_ISR(void) { diff --git a/cpu/stm32/periph/rtt_all.c b/cpu/stm32/periph/rtt_all.c index 5a02439634..7540b04281 100644 --- a/cpu/stm32/periph/rtt_all.c +++ b/cpu/stm32/periph/rtt_all.c @@ -50,7 +50,6 @@ #error "RTT config: RTT_FREQUENCY not configured or invalid for your board" #endif - #if defined(CPU_FAM_STM32F4) || defined(CPU_FAM_STM32F7) #define CLOCK_SRC_REG RCC->DCKCFGR2 #define CLOCK_SRC_MASK RCC_DCKCFGR2_LPTIM1SEL @@ -107,7 +106,6 @@ register. */ #define EXTI_PR_BIT EXTI_PR_PR23 #endif - /* allocate memory for overflow and alarm callbacks + args */ static rtt_cb_t ovf_cb = NULL; static void *ovf_arg; diff --git a/cpu/stm32/stmclk/stmclk_f0f1f3.c b/cpu/stm32/stmclk/stmclk_f0f1f3.c index be56c998b6..423bf074ff 100644 --- a/cpu/stm32/stmclk/stmclk_f0f1f3.c +++ b/cpu/stm32/stmclk/stmclk_f0f1f3.c @@ -223,7 +223,6 @@ #error "Cannot use a SYSCLK > 50MHz to output to MCO" #endif - /* Check whether PLL is required */ /* Check whether PLL must be enabled: - When PLLCLK is used as SYSCLK diff --git a/dist/tools/ethos/ethos.c b/dist/tools/ethos/ethos.c index 2ed9b90fbc..fc4f8c94ce 100644 --- a/dist/tools/ethos/ethos.c +++ b/dist/tools/ethos/ethos.c @@ -521,7 +521,6 @@ int main(int argc, char *argv[]) return 1; } - int serial_fd = _open_connection(argv[2], serial_option); if (serial_fd < 0) { fprintf(stderr, "Error opening serial device %s\n", argv[2]); diff --git a/dist/tools/tunslip/tapslip6.c b/dist/tools/tunslip/tapslip6.c index 0ae6605e27..93f1f669ed 100644 --- a/dist/tools/tunslip/tapslip6.c +++ b/dist/tools/tunslip/tapslip6.c @@ -128,8 +128,6 @@ is_sensible_string(const unsigned char *s, int len) return 1; } - - /* * Read from serial, when we have a packet write it to tun. No output * buffering, input buffered by stdio. @@ -254,7 +252,6 @@ after_fread: unsigned char slip_buf[2000]; int slip_end, slip_begin; - void slip_send(int fd, unsigned char c) { @@ -335,7 +332,6 @@ write_to_serial(int outfd, void *inbuf, int len) PROGRESS("t"); } - /* * Read from tun, write to slip. */ @@ -629,7 +625,6 @@ main(int argc, char **argv) break; } - if (siodev != NULL) { slipfd = devopen(siodev, O_RDWR | O_NONBLOCK); diff --git a/dist/tools/tunslip/tunslip.c b/dist/tools/tunslip/tunslip.c index 651e2c2c7d..feafd2919e 100644 --- a/dist/tools/tunslip/tunslip.c +++ b/dist/tools/tunslip/tunslip.c @@ -761,7 +761,6 @@ write_to_serial(int outfd, void *inbuf, int len) PROGRESS("t"); } - /* * Read from tun, write to slip. */ diff --git a/dist/tools/tunslip/tunslip6.c b/dist/tools/tunslip/tunslip6.c index 19c9074273..1c2658a080 100644 --- a/dist/tools/tunslip/tunslip6.c +++ b/dist/tools/tunslip/tunslip6.c @@ -100,7 +100,6 @@ ssystem(const char *fmt, ...) #define SLIP_ESC_END 0334 #define SLIP_ESC_ESC 0335 - /* get sockaddr, IPv4 or IPv6: */ void * get_in_addr(struct sockaddr *sa) @@ -555,7 +554,6 @@ write_to_serial(int outfd, void *inbuf, int len) PROGRESS("t"); } - /* * Read from tun, write to slip. */ diff --git a/drivers/ad7746/include/ad7746_params.h b/drivers/ad7746/include/ad7746_params.h index df194b9dab..1d773568dd 100644 --- a/drivers/ad7746/include/ad7746_params.h +++ b/drivers/ad7746/include/ad7746_params.h @@ -84,7 +84,6 @@ static const ad7746_params_t ad7746_params[] = AD7746_PARAMS }; - /** * @brief Additional meta information to keep in the SAUL registry */ diff --git a/drivers/adcxx1c/include/adcxx1c_params.h b/drivers/adcxx1c/include/adcxx1c_params.h index b4680ff5f0..a4710365b1 100644 --- a/drivers/adcxx1c/include/adcxx1c_params.h +++ b/drivers/adcxx1c/include/adcxx1c_params.h @@ -105,7 +105,6 @@ static const adcxx1c_params_t adcxx1c_params[] = ADCXX1C_PARAMS }; - /** * @brief Additional meta information to keep in the SAUL registry */ diff --git a/drivers/aip31068/include/aip31068_regs.h b/drivers/aip31068/include/aip31068_regs.h index c5f0f67f93..1d7776277d 100644 --- a/drivers/aip31068/include/aip31068_regs.h +++ b/drivers/aip31068/include/aip31068_regs.h @@ -71,8 +71,6 @@ extern "C" */ #define AIP31068_CMD_SET_DDRAM_ADDR 0x80 - - /* Bits for AIP31068_CMD_ENTRY_MODE_SET (page 16, section 3) */ /** @@ -87,8 +85,6 @@ extern "C" */ #define AIP31068_BIT_ENTRY_MODE_AUTOINCREMENT BIT0 - - /* Bits for AIP31068_CMD_DISPLAY_CONTROL (page 16, section 4) */ /** @@ -109,8 +105,6 @@ extern "C" */ #define AIP31068_BIT_DISPLAY_CONTROL_CURSOR_BLINKING BIT0 - - /* Bits for AIP31068_CMD_CURSOR_DISPLAY_SHIFT (page 17, section 5) */ /** @@ -125,8 +119,6 @@ extern "C" */ #define AIP31068_BIT_CURSOR_DISPLAY_SHIFT_DIRECTION BIT2 - - /* Bits for AIP31068_CMD_FUNCTION_SET (page 17, section 6) */ /** @@ -147,8 +139,6 @@ extern "C" */ #define AIP31068_BIT_FUNCTION_SET_FONTSIZE BIT2 - - /* Bits for control byte (page 12) */ /** diff --git a/drivers/apa102/apa102.c b/drivers/apa102/apa102.c index d47e067cc1..92756f7f0c 100644 --- a/drivers/apa102/apa102.c +++ b/drivers/apa102/apa102.c @@ -35,7 +35,6 @@ #define BLUE_SHIFT (16U) #define GREEN_SHIFT (8U) - static inline void shift(const apa102_t *dev, uint32_t data) { for (int i = 31; i >= 0; i--) { diff --git a/drivers/at30tse75x/at30tse75x.c b/drivers/at30tse75x/at30tse75x.c index be4178b4cd..bceaf6f786 100644 --- a/drivers/at30tse75x/at30tse75x.c +++ b/drivers/at30tse75x/at30tse75x.c @@ -14,7 +14,6 @@ * @author Daniel Krebs */ - #include "periph/i2c.h" #include "xtimer.h" diff --git a/drivers/at86rf2xx/include/at86rf2xx_internal.h b/drivers/at86rf2xx/include/at86rf2xx_internal.h index fa0ef073d9..59e4dd94f6 100644 --- a/drivers/at86rf2xx/include/at86rf2xx_internal.h +++ b/drivers/at86rf2xx/include/at86rf2xx_internal.h @@ -33,7 +33,6 @@ #include "at86rf2xx_registers.h" #endif - #ifdef __cplusplus extern "C" { #endif @@ -217,7 +216,6 @@ void at86rf2xx_assert_awake(at86rf2xx_t *dev); */ void at86rf2xx_hardware_reset(at86rf2xx_t *dev); - /** * @brief Set PHY parameters based on channel and page number * diff --git a/drivers/bh1750fvi/include/bh1750fvi_internal.h b/drivers/bh1750fvi/include/bh1750fvi_internal.h index 48c4d1c9d2..cb8faf95b3 100644 --- a/drivers/bh1750fvi/include/bh1750fvi_internal.h +++ b/drivers/bh1750fvi/include/bh1750fvi_internal.h @@ -19,7 +19,6 @@ #ifndef BH1750FVI_INTERNAL_H #define BH1750FVI_INTERNAL_H - #ifdef __cplusplus extern "C" { #endif @@ -58,7 +57,6 @@ extern "C" { #define DELAY_LMODE (16000) /**< typ. 16ms in L-mode */ /** @} */ - #ifdef __cplusplus } #endif diff --git a/drivers/bmx280/bmx280.c b/drivers/bmx280/bmx280.c index 389e7b5169..0ce3e9a6a5 100644 --- a/drivers/bmx280/bmx280.c +++ b/drivers/bmx280/bmx280.c @@ -236,7 +236,6 @@ int bmx280_init(bmx280_t *dev, const bmx280_params_t *params) dev->params = *params; uint8_t reg; - #ifdef BMX280_USE_SPI /* configure the chip-select pin */ if (spi_init_cs(BUS, CS) != SPI_OK) { diff --git a/drivers/cc110x/cc110x_netdev.c b/drivers/cc110x/cc110x_netdev.c index ae9949516e..d6d8fd11cb 100644 --- a/drivers/cc110x/cc110x_netdev.c +++ b/drivers/cc110x/cc110x_netdev.c @@ -327,7 +327,6 @@ static int cc110x_init(netdev_t *netdev) dev->state = CC110X_STATE_IDLE; cc110x_release(dev); - int retval; /*< Store return value to be able to pass through error code */ /* Apply configuration (if non-NULL) and channel map, which also calls * cc110x_full_calibration diff --git a/drivers/cc110x/include/cc110x_constants.h b/drivers/cc110x/include/cc110x_constants.h index ce4a49062c..594740aaf1 100644 --- a/drivers/cc110x/include/cc110x_constants.h +++ b/drivers/cc110x/include/cc110x_constants.h @@ -458,7 +458,6 @@ extern "C" { */ #define CC110X_GDO_ON_PLL_IN_LOCK 0x0A - /** * @brief GDOx remains constantly LOW */ diff --git a/drivers/cc110x/include/cc110x_settings.h b/drivers/cc110x/include/cc110x_settings.h index 704d25db6a..5826135782 100644 --- a/drivers/cc110x/include/cc110x_settings.h +++ b/drivers/cc110x/include/cc110x_settings.h @@ -94,7 +94,6 @@ extern const cc110x_patable_t cc110x_patable_868mhz; extern const cc110x_patable_t cc110x_patable_915mhz; /** @} */ - /** * @name Channel mappings for CC110x transceivers * diff --git a/drivers/cc1xxx_common/gnrc_netif_cc1xxx.c b/drivers/cc1xxx_common/gnrc_netif_cc1xxx.c index f2b6d12f76..4a328978a2 100644 --- a/drivers/cc1xxx_common/gnrc_netif_cc1xxx.c +++ b/drivers/cc1xxx_common/gnrc_netif_cc1xxx.c @@ -123,7 +123,6 @@ static int cc1xxx_adpt_send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) DEBUG("[cc1xxx-gnrc] send: payload of packet is %i\n", (int)size); netif_hdr = (gnrc_netif_hdr_t *)pkt->data; - l2hdr.src_addr = cc1xxx_dev->addr; if (netif_hdr->flags & BCAST) { l2hdr.dest_addr = CC1XXX_BCAST_ADDR; diff --git a/drivers/cc2420/cc2420_internal.c b/drivers/cc2420/cc2420_internal.c index dea3f04818..85a6be1f1c 100644 --- a/drivers/cc2420/cc2420_internal.c +++ b/drivers/cc2420/cc2420_internal.c @@ -32,7 +32,6 @@ #define SPI_MODE (SPI_MODE_0) #define SPI_CLK (dev->params.spi_clk) - uint8_t cc2420_strobe(const cc2420_t *dev, const uint8_t command) { uint8_t res; diff --git a/drivers/cc2420/include/cc2420_internal.h b/drivers/cc2420/include/cc2420_internal.h index 3fc61813d0..d5c8cb830f 100644 --- a/drivers/cc2420/include/cc2420_internal.h +++ b/drivers/cc2420/include/cc2420_internal.h @@ -39,10 +39,8 @@ extern "C" { #define CC2420_RESET_DELAY (500U) #define CC2420_XOSCON_DELAY (2000U) - uint8_t cc2420_strobe(const cc2420_t *dev, const uint8_t command); - /** * @brief Read from a register at address `addr` from device `dev`. * diff --git a/drivers/cc2420/include/cc2420_registers.h b/drivers/cc2420/include/cc2420_registers.h index 83708c9408..1e204e790f 100644 --- a/drivers/cc2420/include/cc2420_registers.h +++ b/drivers/cc2420/include/cc2420_registers.h @@ -71,7 +71,6 @@ enum { #define CC2420_FIFO_WRITE (CC2420_REG_TXFIFO | CC2420_REG_WRITE) /** @} */ - /** * @name CC2420 strobe commands * @see Datasheet section 37, pages 61--62 @@ -236,7 +235,6 @@ enum { #define CC2420_MANFIDH_VAL (0x3000) /** @} */ - #ifdef __cplusplus } #endif diff --git a/drivers/ccs811/ccs811.c b/drivers/ccs811/ccs811.c index 03e2024718..e6d947e5fd 100644 --- a/drivers/ccs811/ccs811.c +++ b/drivers/ccs811/ccs811.c @@ -164,7 +164,6 @@ int ccs811_init(ccs811_t *dev, const ccs811_params_t *params) return ccs811_set_mode(dev, dev->params.mode); } - int ccs811_set_mode(ccs811_t *dev, ccs811_mode_t mode) { ASSERT_PARAM(dev != NULL); diff --git a/drivers/dcf77/include/dcf77_internal.h b/drivers/dcf77/include/dcf77_internal.h index 99239fdc2d..1cec10eb83 100644 --- a/drivers/dcf77/include/dcf77_internal.h +++ b/drivers/dcf77/include/dcf77_internal.h @@ -57,7 +57,6 @@ typedef union { uint64_t bits; /**< Value of Bits in a received cycle */ } dcf77_bits_t; /**< Union which contains the Bitfields struct */ - /** * @brief device internal states */ @@ -67,7 +66,6 @@ enum { DCF77_STATE_RX, /**< Device is in RX mode */ }; - #ifdef __cplusplus } #endif diff --git a/drivers/dfplayer/include/dfplayer_constants.h b/drivers/dfplayer/include/dfplayer_constants.h index 98b0a96e6b..1b5ed0b3ed 100644 --- a/drivers/dfplayer/include/dfplayer_constants.h +++ b/drivers/dfplayer/include/dfplayer_constants.h @@ -197,7 +197,6 @@ extern "C" { #define DFPLAYER_MAX_ADVERT_FILE (9999) /**< Highest supported file number in the `"ADVERT"` folder */ #define DFPLAYER_LOWEST_QUERY (0x40) /**< Query commands are 0x40 or higher */ - #ifdef __cplusplus } #endif diff --git a/drivers/ds1307/include/ds1307_internal.h b/drivers/ds1307/include/ds1307_internal.h index 31b065f3c4..9561a948bf 100644 --- a/drivers/ds1307/include/ds1307_internal.h +++ b/drivers/ds1307/include/ds1307_internal.h @@ -64,7 +64,6 @@ extern "C" { #define DS1307_YEAR_OFFSET (-100) /**< offset in years from 1900 */ /** @} */ - #ifdef __cplusplus } #endif diff --git a/drivers/ds3234/ds3234.c b/drivers/ds3234/ds3234.c index c3ecb633fd..37e0f657fc 100644 --- a/drivers/ds3234/ds3234.c +++ b/drivers/ds3234/ds3234.c @@ -31,7 +31,6 @@ #define DS3234_CMD_READ (0x00) #define DS3234_CMD_WRITE (0x80) - /** * @brief Read one or more registers from the sensor * diff --git a/drivers/dynamixel/include/dynamixel_reader.h b/drivers/dynamixel/include/dynamixel_reader.h index b7469a5ff6..74074f6670 100644 --- a/drivers/dynamixel/include/dynamixel_reader.h +++ b/drivers/dynamixel/include/dynamixel_reader.h @@ -55,7 +55,6 @@ static inline void dynamixel_reader_init(dynamixel_reader_t *reader, const uint8 reader->size = size; } - /** * @brief Check if the packet is valid * diff --git a/drivers/enc28j60/include/enc28j60_regs.h b/drivers/enc28j60/include/enc28j60_regs.h index 3ba84f17f8..387a8ac1d1 100644 --- a/drivers/enc28j60/include/enc28j60_regs.h +++ b/drivers/enc28j60/include/enc28j60_regs.h @@ -329,7 +329,6 @@ extern "C" { #define EFLOCON_FCEN_MASK 0x03 /** @} */ - /** * @name PHCON1 bitfields * @{ diff --git a/drivers/encx24j600/encx24j600.c b/drivers/encx24j600/encx24j600.c index 2dcc925676..3f1f8252e7 100644 --- a/drivers/encx24j600/encx24j600.c +++ b/drivers/encx24j600/encx24j600.c @@ -351,7 +351,6 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info) /* hdr.frame_len given by device contains 4 bytes checksum */ size_t payload_len = hdr.frame_len - 4; - if (buf) { if (payload_len > len) { /* payload exceeds buffer size */ diff --git a/drivers/feetech/include/feetech_reader.h b/drivers/feetech/include/feetech_reader.h index d23365774b..ece755b6bf 100644 --- a/drivers/feetech/include/feetech_reader.h +++ b/drivers/feetech/include/feetech_reader.h @@ -76,7 +76,6 @@ static inline bool feetech_reader_check_minsize(const feetech_reader_t *reader) return 5 < reader->size; } - /** * @brief Check if the packet begins with 2 FEETECH_START bits * diff --git a/drivers/feetech/writer.c b/drivers/feetech/writer.c index c8b14db8ed..444f3a68e5 100644 --- a/drivers/feetech/writer.c +++ b/drivers/feetech/writer.c @@ -62,7 +62,6 @@ void feetech_writer_response_make(feetech_writer_t *writer, uint8_t id, const ui } } - void feetech_writer_ack_make(feetech_writer_t *writer, uint8_t id) { const size_t len = 2; diff --git a/drivers/fxos8700/fxos8700.c b/drivers/fxos8700/fxos8700.c index 8095f659bf..b738517d76 100644 --- a/drivers/fxos8700/fxos8700.c +++ b/drivers/fxos8700/fxos8700.c @@ -14,7 +14,6 @@ * @author Hyung-Sin Kim */ - #include "periph/i2c.h" #include "xtimer.h" #include "fxos8700.h" @@ -115,7 +114,6 @@ int fxos8700_init(fxos8700_t* dev, const fxos8700_params_t *params) return FXOS8700_OK; } - int fxos8700_set_active(const fxos8700_t* dev) { uint8_t config = dev->config | FXOS8700_REG_CTRL_REG1_MASK__ACTIVE; diff --git a/drivers/hdc1000/hdc1000.c b/drivers/hdc1000/hdc1000.c index 2abca6dd14..4d0e338c28 100644 --- a/drivers/hdc1000/hdc1000.c +++ b/drivers/hdc1000/hdc1000.c @@ -134,7 +134,6 @@ int hdc1000_read(const hdc1000_t *dev, int16_t *temp, int16_t *hum) return hdc1000_get_results(dev, temp, hum); } - int hdc1000_read_cached(const hdc1000_t *dev, int16_t *temp, int16_t *hum) { uint32_t now = xtimer_now_usec(); diff --git a/drivers/ili9341/ili9341.c b/drivers/ili9341/ili9341.c index 455c3faffb..e6f6206737 100644 --- a/drivers/ili9341/ili9341.c +++ b/drivers/ili9341/ili9341.c @@ -151,7 +151,6 @@ int ili9341_init(ili9341_t *dev, const ili9341_params_t *params) command_params[0] = 0x55; /* 16 bit mode */ _write_cmd(dev, ILI9341_CMD_PIXSET, command_params, 1); - command_params[0] = 0x01; _write_cmd(dev, ILI9341_CMD_GAMSET, command_params, 1); @@ -231,7 +230,6 @@ void ili9341_read_cmd(const ili9341_t *dev, uint8_t cmd, uint8_t *data, size_t l spi_release(dev->params->spi); } - void ili9341_fill(const ili9341_t *dev, uint16_t x1, uint16_t x2, uint16_t y1, uint16_t y2, uint16_t color) { diff --git a/drivers/ina2xx/ina2xx.c b/drivers/ina2xx/ina2xx.c index 84ec512f71..fb8a2383b4 100644 --- a/drivers/ina2xx/ina2xx.c +++ b/drivers/ina2xx/ina2xx.c @@ -88,7 +88,6 @@ static int ina2xx_write_reg(const ina2xx_t *dev, uint8_t reg, uint16_t in) return 0; } - int ina2xx_init(ina2xx_t *dev, const ina2xx_params_t *params) { uint16_t config; diff --git a/drivers/ina2xx/include/ina2xx_defines.h b/drivers/ina2xx/include/ina2xx_defines.h index 88289f567e..f0cb24733f 100644 --- a/drivers/ina2xx/include/ina2xx_defines.h +++ b/drivers/ina2xx/include/ina2xx_defines.h @@ -22,12 +22,10 @@ #ifndef INA2XX_DEFINES_H #define INA2XX_DEFINES_H - #ifdef __cplusplus extern "C" { #endif - /** * @brief INA2XX register addresses * diff --git a/drivers/include/at30tse75x.h b/drivers/include/at30tse75x.h index 2129949375..1b437ba176 100644 --- a/drivers/include/at30tse75x.h +++ b/drivers/include/at30tse75x.h @@ -64,7 +64,6 @@ extern "C" { #define AT30TSE75X_FRACTIONAL_BASE (0.0625f) /** @} */ - /** * @name AT30TSE75x configuration register * diff --git a/drivers/include/can/can_trx.h b/drivers/include/can/can_trx.h index c7385c1279..e70cf0317f 100644 --- a/drivers/include/can/can_trx.h +++ b/drivers/include/can/can_trx.h @@ -97,7 +97,6 @@ int can_trx_init(can_trx_t *dev); */ int can_trx_set_mode(can_trx_t *dev, can_trx_mode_t mode); - #ifdef __cplusplus } #endif diff --git a/drivers/include/can/candev.h b/drivers/include/can/candev.h index ca0cea5298..eaaff29fce 100644 --- a/drivers/include/can/candev.h +++ b/drivers/include/can/candev.h @@ -35,7 +35,6 @@ extern "C" { #include "can/common.h" #include "mutex.h" - /** * @brief Possible event types that are sent from the device driver to the * upper layer diff --git a/drivers/include/dcf77.h b/drivers/include/dcf77.h index 4b5a93865a..d736316e22 100644 --- a/drivers/include/dcf77.h +++ b/drivers/include/dcf77.h @@ -64,7 +64,6 @@ typedef struct { * without pull resistor */ } dcf77_params_t; - /** * @brief Device descriptor for DCF77 sensor devices */ diff --git a/drivers/include/diskio.h b/drivers/include/diskio.h index 5f48ede2c1..a3dd17c3b5 100644 --- a/drivers/include/diskio.h +++ b/drivers/include/diskio.h @@ -48,7 +48,6 @@ void copy_al2un(unsigned char *dst, const unsigned long *src, int count); */ void copy_un2al(unsigned long *dst, const unsigned char *src, int count); - /** Results of Disk Functions */ typedef enum { DISKIO_RES_OK = 0, /**< 0: Successful */ @@ -105,7 +104,6 @@ typedef enum { /** @} */ - /** * @brief Initialize media control interface (MCI) * diff --git a/drivers/include/dose.h b/drivers/include/dose.h index 7a3479d29b..50052fafdb 100644 --- a/drivers/include/dose.h +++ b/drivers/include/dose.h @@ -90,7 +90,6 @@ typedef enum { DOSE_STATE_ANY = 0x0F /**< Special state filter used internally to observe any state transition */ } dose_state_t; - /** * @name Signal definitions * @brief A signal controls the state machine and may cause a state transition @@ -105,8 +104,6 @@ typedef enum { DOSE_SIGNAL_END = 0x60 /**< Leave send state */ } dose_signal_t; - - /** * @name Flag definitions * @brief Hold in dose_t.flags diff --git a/drivers/include/ds18.h b/drivers/include/ds18.h index c38ca0df9c..1f85c7e68e 100644 --- a/drivers/include/ds18.h +++ b/drivers/include/ds18.h @@ -52,7 +52,6 @@ extern "C" { #define DS18_ERROR (-1) /** @} */ - /** * @brief Device initialization parameters */ diff --git a/drivers/include/hsc.h b/drivers/include/hsc.h index de7d800e1f..2992d764f5 100644 --- a/drivers/include/hsc.h +++ b/drivers/include/hsc.h @@ -31,8 +31,6 @@ extern "C" { #endif - - /** * @brief Device initialization parameters */ diff --git a/drivers/include/ili9341.h b/drivers/include/ili9341.h index 06e8ae7876..561c73f6ed 100644 --- a/drivers/include/ili9341.h +++ b/drivers/include/ili9341.h @@ -29,7 +29,6 @@ * transfer. */ - #ifndef ILI9341_H #define ILI9341_H @@ -120,7 +119,6 @@ typedef struct { const ili9341_params_t *params; /**< Device initialization parameters */ } ili9341_t; - /** * @brief Setup an ili9341 display device * diff --git a/drivers/include/jc42.h b/drivers/include/jc42.h index 4b6097a3b9..ace8643baf 100644 --- a/drivers/include/jc42.h +++ b/drivers/include/jc42.h @@ -36,7 +36,6 @@ #include "periph/i2c.h" #include "saul.h" - #ifdef __cplusplus extern "C" { #endif @@ -50,7 +49,6 @@ extern "C" { #define JC42_NODEV (-2) /** @} */ - /** * @brief Device descriptor for a jc42 device */ @@ -107,7 +105,6 @@ int jc42_get_config(const jc42_t* dev, uint16_t* data); */ int jc42_set_config(const jc42_t* dev, uint16_t data); - /** * @brief Get measured temperature * diff --git a/drivers/include/lis3mdl.h b/drivers/include/lis3mdl.h index 2708c62075..aa098e9a93 100644 --- a/drivers/include/lis3mdl.h +++ b/drivers/include/lis3mdl.h @@ -106,7 +106,6 @@ typedef struct { lis3mdl_op_t op_mode; /**< Operation mode */ } lis3mdl_params_t; - /** * @brief Device descriptor for LIS3MDL sensor */ diff --git a/drivers/include/mma7660.h b/drivers/include/mma7660.h index c9ef872116..b9aaac953e 100644 --- a/drivers/include/mma7660.h +++ b/drivers/include/mma7660.h @@ -128,7 +128,6 @@ typedef struct { */ int mma7660_init(mma7660_t *dev, const mma7660_params_t *params); - /** * @brief Set the mode register * diff --git a/drivers/include/mrf24j40.h b/drivers/include/mrf24j40.h index 6a65044ab0..7187af0d0f 100644 --- a/drivers/include/mrf24j40.h +++ b/drivers/include/mrf24j40.h @@ -98,7 +98,6 @@ extern "C" { #define MRF24J40_OPT_PRELOADING (0x0400) /**< preloading enabled */ /** @} */ - #define MRF24J40_TASK_TX_DONE (0x01) /**< TX operation is done */ #define MRF24J40_TASK_TX_READY (0x02) /**< TX operation results ready for processing */ #define MRF24J40_TASK_RX_READY (0x04) /**< RX processing needed */ diff --git a/drivers/include/net/netdev/ieee802154.h b/drivers/include/net/netdev/ieee802154.h index 5b06d025c1..80409e041c 100644 --- a/drivers/include/net/netdev/ieee802154.h +++ b/drivers/include/net/netdev/ieee802154.h @@ -155,7 +155,6 @@ typedef struct netdev_ieee802154_rx_info { */ void netdev_ieee802154_reset(netdev_ieee802154_t *dev); - /** * @brief Fallback function for netdev IEEE 802.15.4 devices' _get function * diff --git a/drivers/include/net/netdev/lora.h b/drivers/include/net/netdev/lora.h index fa9cb2b027..fc89a2ce24 100644 --- a/drivers/include/net/netdev/lora.h +++ b/drivers/include/net/netdev/lora.h @@ -17,7 +17,6 @@ * @author José Ignacio Alamos */ - #ifndef NET_NETDEV_LORA_H #define NET_NETDEV_LORA_H @@ -37,7 +36,6 @@ typedef struct { int8_t snr; /**< S/N ratio */ } netdev_lora_rx_info_t; - #ifdef __cplusplus } #endif diff --git a/drivers/include/nrf24l01p.h b/drivers/include/nrf24l01p.h index 3dfb2294bf..219136f742 100644 --- a/drivers/include/nrf24l01p.h +++ b/drivers/include/nrf24l01p.h @@ -52,7 +52,6 @@ typedef enum { NRF24L01P_AW_5BYTE /**< address width is 5 Byte */ } nrf24l01p_aw_t; - /** * @brief Defines the RF datarate. */ @@ -122,7 +121,6 @@ typedef enum { RCV_PKT_NRF24L01P = 0, /**< transceiver received data */ } nrf24l01p_rx_event_t ; - /** * @brief Read one register of the nrf24l01+ transceiver. * diff --git a/drivers/include/opt3001.h b/drivers/include/opt3001.h index 3c5fbc653c..dfa9b583a7 100644 --- a/drivers/include/opt3001.h +++ b/drivers/include/opt3001.h @@ -50,7 +50,6 @@ extern "C" { #endif - /** * @name Conversion time * @{ diff --git a/drivers/include/periph/dac.h b/drivers/include/periph/dac.h index c0f2418a07..ecd49da240 100644 --- a/drivers/include/periph/dac.h +++ b/drivers/include/periph/dac.h @@ -129,7 +129,6 @@ void dac_poweron(dac_t line); */ void dac_poweroff(dac_t line); - #ifdef __cplusplus } #endif diff --git a/drivers/include/periph/i2c.h b/drivers/include/periph/i2c.h index 10c2d78909..5267445cff 100644 --- a/drivers/include/periph/i2c.h +++ b/drivers/include/periph/i2c.h @@ -491,7 +491,6 @@ int i2c_write_reg(i2c_t dev, uint16_t addr, uint16_t reg, int i2c_write_regs(i2c_t dev, uint16_t addr, uint16_t reg, const void *data, size_t len, uint8_t flags); - #ifdef __cplusplus } #endif diff --git a/drivers/include/pir.h b/drivers/include/pir.h index b46989c1af..a665ef3517 100644 --- a/drivers/include/pir.h +++ b/drivers/include/pir.h @@ -48,7 +48,6 @@ typedef struct { bool active_high; /**< Active when GPIO pin is high or not */ } pir_params_t; - /** * @brief device descriptor for a PIR sensor */ diff --git a/drivers/include/pn532.h b/drivers/include/pn532.h index 533812abcc..94eb10c3e5 100644 --- a/drivers/include/pn532.h +++ b/drivers/include/pn532.h @@ -185,7 +185,6 @@ void pn532_reset(const pn532_t *dev); */ int pn532_init(pn532_t *dev, const pn532_params_t *params, pn532_mode_t mode); - #if IS_USED(MODULE_PN532_I2C) || DOXYGEN /** * @brief Initialization of PN532 using i2c diff --git a/drivers/include/rgbled.h b/drivers/include/rgbled.h index 145e225d3f..5995a7716b 100644 --- a/drivers/include/rgbled.h +++ b/drivers/include/rgbled.h @@ -38,7 +38,6 @@ typedef struct { int channel_b; /**< set the B value in RGB */ } rgbled_t; - /** * @brief Initialize the RGB LED by assigning PWM channels to colors * diff --git a/drivers/include/saul/periph.h b/drivers/include/saul/periph.h index 51d7a34be0..e1233af9f9 100644 --- a/drivers/include/saul/periph.h +++ b/drivers/include/saul/periph.h @@ -173,7 +173,6 @@ typedef struct { PWM values are dark or bright*/ } saul_pwm_rgb_params_t; - #endif /* MODULE_SAUL_PWM */ #ifdef __cplusplus diff --git a/drivers/include/sht3x.h b/drivers/include/sht3x.h index fbc7491b1b..99eba8d190 100644 --- a/drivers/include/sht3x.h +++ b/drivers/include/sht3x.h @@ -53,7 +53,6 @@ typedef enum { SHT3X_PERIODIC_10_MPS /**< periodic with 10 measurements per second (mps) */ } sht3x_mode_t; - /** * @brief SHT3x repeatability levels * @@ -78,7 +77,6 @@ typedef enum { SHT3X_LOW /**< low repeatability */ } sht3x_repeat_t; - /** * @brief SHT3x device initialization parameters */ @@ -106,7 +104,6 @@ typedef struct { current measurement become available */ } sht3x_dev_t; - /** * @brief Initialize the SHT3x sensor device * diff --git a/drivers/include/si114x.h b/drivers/include/si114x.h index 9a86cf1f74..c0bbf36811 100644 --- a/drivers/include/si114x.h +++ b/drivers/include/si114x.h @@ -70,7 +70,6 @@ typedef struct { si114x_led_current_t led_current; /**< Proximity LED current */ } si114x_params_t; - /** * @brief Device descriptor for the Si114x sensor */ diff --git a/drivers/jc42/jc42.c b/drivers/jc42/jc42.c index e89668fab0..252f128d4d 100644 --- a/drivers/jc42/jc42.c +++ b/drivers/jc42/jc42.c @@ -18,7 +18,6 @@ * @} */ - #include "periph/i2c.h" #include "byteorder.h" diff --git a/drivers/jc42/jc42_saul.c b/drivers/jc42/jc42_saul.c index 391cee5b34..1071d844f2 100644 --- a/drivers/jc42/jc42_saul.c +++ b/drivers/jc42/jc42_saul.c @@ -23,8 +23,6 @@ #include "saul.h" #include "jc42.h" - - static int read_temperature(const void *dev, phydat_t *res) { int16_t temperature; diff --git a/drivers/kw2xrf/include/kw2xrf_reg.h b/drivers/kw2xrf/include/kw2xrf_reg.h index 97a10ae350..5e1748b740 100644 --- a/drivers/kw2xrf/include/kw2xrf_reg.h +++ b/drivers/kw2xrf/include/kw2xrf_reg.h @@ -559,7 +559,6 @@ enum mkw2xdrf_iregister { #define MKW2XDMI_TX_MODE_CTRL_DTS0 (1 << 0) #define MKW2XDMI_TX_MODE_CTRL_DTS_MASK 7 - #ifdef __cplusplus } #endif diff --git a/drivers/kw2xrf/include/overwrites.h b/drivers/kw2xrf/include/overwrites.h index c81426ce21..7ad1d8da9b 100644 --- a/drivers/kw2xrf/include/overwrites.h +++ b/drivers/kw2xrf/include/overwrites.h @@ -43,7 +43,6 @@ typedef struct overwrites_tag { uint8_t data; } overwrites_t; - /*****************************************************************************************************************/ // This file is created exclusively for use with the transceiver 2.0 silicon // and is provided for the world to use. It contains a list of all @@ -103,7 +102,6 @@ overwrites_t const overwrites_indirect[] ={ {0x39, 0x3D} //ACKDELAY new value targeting a delay of 198us (23 May, 2013, Larry Roshak) }; - /* begin of deprecated versions ==VERSION 1== @@ -210,7 +208,6 @@ overwrites_t const overwrites_indirect[] ={ {0x69, 0x65} //RSSI_SLOPE }; - ==VERSION 8== overwrites_t const overwrites_direct[] ={ {0x3B, 0x08} //version 08: updated registers for ED/RSSI @@ -242,7 +239,6 @@ overwrites_t const overwrites_indirect[] ={ {0x78, 0x03} //CHF_PMAGAIN }; - ==VERSION 9== overwrites_t const overwrites_direct[] ={ {0x3B, 0x09} //version 09: updated registers for ED/RSSI and PowerStep diff --git a/drivers/kw2xrf/kw2xrf_netdev.c b/drivers/kw2xrf/kw2xrf_netdev.c index 7e82c53992..2660629fd0 100644 --- a/drivers/kw2xrf/kw2xrf_netdev.c +++ b/drivers/kw2xrf/kw2xrf_netdev.c @@ -283,7 +283,6 @@ int _get(netdev_t *netdev, netopt_t opt, void *value, size_t len) } return sizeof(netopt_enable_t); - case NETOPT_PRELOADING: if (dev->netdev.flags & KW2XRF_OPT_PRELOADING) { *((netopt_enable_t *)value) = NETOPT_ENABLE; diff --git a/drivers/kw2xrf/kw2xrf_spi.c b/drivers/kw2xrf/kw2xrf_spi.c index 223adef247..8cb8ada503 100644 --- a/drivers/kw2xrf/kw2xrf_spi.c +++ b/drivers/kw2xrf/kw2xrf_spi.c @@ -130,7 +130,6 @@ void kw2xrf_read_dregs(kw2xrf_t *dev, uint8_t addr, uint8_t *buf, uint8_t length kw2xrf_spi_transfer_tail(dev); } - void kw2xrf_write_iregs(kw2xrf_t *dev, uint8_t addr, uint8_t *buf, uint8_t length) { if (length > (KW2XRF_IBUF_LENGTH - 1)) { diff --git a/drivers/l3g4200d/include/l3g4200d-regs.h b/drivers/l3g4200d/include/l3g4200d-regs.h index c31914f771..3db5b8f18c 100644 --- a/drivers/l3g4200d/include/l3g4200d-regs.h +++ b/drivers/l3g4200d/include/l3g4200d-regs.h @@ -19,7 +19,6 @@ #ifndef L3G4200D_REGS_H #define L3G4200D_REGS_H - #ifdef __cplusplus extern "C" { #endif diff --git a/drivers/lc709203f/lc709203f.c b/drivers/lc709203f/lc709203f.c index 0ad21a5ef6..6591ed0812 100644 --- a/drivers/lc709203f/lc709203f.c +++ b/drivers/lc709203f/lc709203f.c @@ -47,7 +47,6 @@ static uint8_t _get_crc(uint8_t *rec_values, uint8_t len) return crc; } - int lc709203f_init(lc709203f_t *dev, const lc709203f_params_t *params) { assert(dev && params); diff --git a/drivers/lis3dh/lis3dh.c b/drivers/lis3dh/lis3dh.c index 9ba8226ede..e2d7d5adeb 100644 --- a/drivers/lis3dh/lis3dh.c +++ b/drivers/lis3dh/lis3dh.c @@ -216,7 +216,6 @@ int lis3dh_get_fifo_level(const lis3dh_t *dev) return level; } - /** * @brief Read sequential registers from the LIS3DH. * diff --git a/drivers/lpsxxx/lpsxxx.c b/drivers/lpsxxx/lpsxxx.c index f2d56eefc3..affb175373 100644 --- a/drivers/lpsxxx/lpsxxx.c +++ b/drivers/lpsxxx/lpsxxx.c @@ -214,7 +214,6 @@ int lpsxxx_enable(const lpsxxx_t *dev) LPSXXX_CTRL_REG1_BDU | (DEV_RATE << LPSXXX_CTRL_REG1_ODR_POS); #endif - DEBUG("[lpsxxx] enable: update reg1 with %02X\n", tmp); if (i2c_write_reg(DEV_I2C, DEV_ADDR, LPSXXX_REG_CTRL_REG1, tmp, 0) < 0) { diff --git a/drivers/mcp2515/mcp2515.c b/drivers/mcp2515/mcp2515.c index eefac402db..8adda98c6c 100644 --- a/drivers/mcp2515/mcp2515.c +++ b/drivers/mcp2515/mcp2515.c @@ -312,7 +312,6 @@ int mcp2515_configure_bittiming(candev_mcp2515_t *dev) c = ((tim->brp - 1) & 0x3F) | ((tim->sjw - 1) << 6); mcp2515_spi_write(dev, MCP2515_CNF1, &c, 1); - mcp2515_spi_bitmod(dev, MCP2515_CNF2, MCP2515_CNF2_PRSEG_MASK | MCP2515_CNF2_PHSEG_MASK | MCP2515_CNF2_BTLMODE, MCP2515_CNF2_BTLMODE | (tim->prop_seg - 1) | diff --git a/drivers/mpu9x50/include/mpu9x50_regs.h b/drivers/mpu9x50/include/mpu9x50_regs.h index 4b9585ca99..008d661b14 100644 --- a/drivers/mpu9x50/include/mpu9x50_regs.h +++ b/drivers/mpu9x50/include/mpu9x50_regs.h @@ -21,7 +21,6 @@ #ifndef MPU9X50_REGS_H #define MPU9X50_REGS_H - #ifdef __cplusplus extern "C" { #endif diff --git a/drivers/mrf24j40/include/mrf24j40_internal.h b/drivers/mrf24j40/include/mrf24j40_internal.h index 16988b890d..81bc299e3c 100644 --- a/drivers/mrf24j40/include/mrf24j40_internal.h +++ b/drivers/mrf24j40/include/mrf24j40_internal.h @@ -30,7 +30,6 @@ extern "C" { #endif - /** * @brief initialization as described in datasheet * diff --git a/drivers/mrf24j40/include/mrf24j40_netdev.h b/drivers/mrf24j40/include/mrf24j40_netdev.h index 0769604558..a01005a555 100644 --- a/drivers/mrf24j40/include/mrf24j40_netdev.h +++ b/drivers/mrf24j40/include/mrf24j40_netdev.h @@ -32,7 +32,6 @@ extern "C" { */ extern const netdev_driver_t mrf24j40_driver; - #ifdef __cplusplus } #endif diff --git a/drivers/mrf24j40/include/mrf24j40_registers.h b/drivers/mrf24j40/include/mrf24j40_registers.h index fadca9fa3a..eee56615d9 100644 --- a/drivers/mrf24j40/include/mrf24j40_registers.h +++ b/drivers/mrf24j40/include/mrf24j40_registers.h @@ -25,7 +25,6 @@ extern "C" { #endif - /** * @name SPI access specifiers * @{ diff --git a/drivers/mrf24j40/mrf24j40_getset.c b/drivers/mrf24j40/mrf24j40_getset.c index da9d73eeff..b890be2512 100644 --- a/drivers/mrf24j40/mrf24j40_getset.c +++ b/drivers/mrf24j40/mrf24j40_getset.c @@ -120,7 +120,6 @@ static const uint8_t RSSI_value[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x25, 0x20, 0x1b, 0x17, 0x12, 0x0d, 0x09, 0x05, 0x02, 0x01, \ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; - static void mrf24j40_baseband_reset(mrf24j40_t *dev) { uint8_t softrst; @@ -176,7 +175,6 @@ uint8_t mrf24j40_get_chan(mrf24j40_t *dev) return dev->netdev.chan; } - void mrf24j40_set_chan(mrf24j40_t *dev, uint8_t channel) { uint8_t channel_value; @@ -267,7 +265,6 @@ void mrf24j40_set_pan(mrf24j40_t *dev, uint16_t pan) mrf24j40_reg_write_short(dev, MRF24J40_REG_PANIDH, le_pan.u8[1]); } - int16_t mrf24j40_get_txpower(mrf24j40_t *dev) { uint8_t txpower; @@ -442,7 +439,6 @@ void mrf24j40_set_state(mrf24j40_t *dev, uint8_t state) old_state = dev->state; - if (state == old_state) { return; } diff --git a/drivers/mrf24j40/mrf24j40_internal.c b/drivers/mrf24j40/mrf24j40_internal.c index 300e031433..e3eec52332 100644 --- a/drivers/mrf24j40/mrf24j40_internal.c +++ b/drivers/mrf24j40/mrf24j40_internal.c @@ -283,7 +283,6 @@ void mrf24j40_update_tasks(mrf24j40_t *dev) } } - void mrf24j40_hardware_reset(mrf24j40_t *dev) { /* wake up from sleep in case radio is sleeping */ diff --git a/drivers/nrf24l01p/nrf24l01p.c b/drivers/nrf24l01p/nrf24l01p.c index dc72fde786..3a4a05b464 100644 --- a/drivers/nrf24l01p/nrf24l01p.c +++ b/drivers/nrf24l01p/nrf24l01p.c @@ -23,7 +23,6 @@ #include "thread.h" #include "msg.h" - #define ENABLE_DEBUG 0 #include "debug.h" @@ -61,7 +60,6 @@ int nrf24l01p_write_reg(const nrf24l01p_t *dev, char reg, char write) return 0; } - int nrf24l01p_init(nrf24l01p_t *dev, spi_t spi, gpio_t ce, gpio_t cs, gpio_t irq) { int status; @@ -280,7 +278,6 @@ int nrf24l01p_preload(const nrf24l01p_t *dev, char *data, unsigned int size) return 0; } - int nrf24l01p_set_channel(const nrf24l01p_t *dev, uint8_t chan) { if (chan > 125) { @@ -361,8 +358,6 @@ int nrf24l01p_set_payload_width(const nrf24l01p_t *dev, return nrf24l01p_write_reg(dev, pipe_pw_address, width); } - - int nrf24l01p_set_tx_address(const nrf24l01p_t *dev, const uint8_t *saddr, unsigned int length) { /* Acquire exclusive access to the bus. */ @@ -426,7 +421,6 @@ uint64_t nrf24l01p_get_tx_address_long(const nrf24l01p_t *dev) return saddr_64; } - int nrf24l01p_set_rx_address(const nrf24l01p_t *dev, nrf24l01p_rx_pipe_t pipe, const uint8_t *saddr, unsigned int length) { char pipe_addr; @@ -492,7 +486,6 @@ int nrf24l01p_set_rx_address_long(const nrf24l01p_t *dev, nrf24l01p_rx_pipe_t pi return nrf24l01p_set_rx_address(dev, pipe, buf, length); } - uint64_t nrf24l01p_get_rx_address_long(const nrf24l01p_t *dev, nrf24l01p_rx_pipe_t pipe) { char pipe_addr; @@ -546,7 +539,6 @@ uint64_t nrf24l01p_get_rx_address_long(const nrf24l01p_t *dev, nrf24l01p_rx_pipe return saddr_64; } - int nrf24l01p_set_datarate(const nrf24l01p_t *dev, nrf24l01p_dr_t dr) { char rf_setup; @@ -627,7 +619,6 @@ int nrf24l01p_get_power(const nrf24l01p_t *dev) return _nrf24l01p_power_map[(rf_setup & 0x6) >> 1]; } - int nrf24l01p_set_txmode(const nrf24l01p_t *dev) { char conf; @@ -669,7 +660,6 @@ int nrf24l01p_set_rxmode(const nrf24l01p_t *dev) return status; } - int nrf24l01p_reset_interrupts(const nrf24l01p_t *dev, char intrs) { return nrf24l01p_write_reg(dev, REG_STATUS, intrs); @@ -896,7 +886,6 @@ int nrf24l01p_disable_all_auto_ack(const nrf24l01p_t *dev) return nrf24l01p_write_reg(dev, REG_EN_AA, 0x00); } - int nrf24l01p_flush_tx_fifo(const nrf24l01p_t *dev) { /* Acquire exclusive access to the bus. */ diff --git a/drivers/nvram_spi/nvram-spi.c b/drivers/nvram_spi/nvram-spi.c index 4b0e727122..3ecd0a18d6 100644 --- a/drivers/nvram_spi/nvram-spi.c +++ b/drivers/nvram_spi/nvram-spi.c @@ -181,7 +181,6 @@ static int nvram_spi_read(nvram_t *dev, uint8_t *dst, uint32_t src, size_t len) return (int)len; } - static int nvram_spi_write_9bit_addr(nvram_t *dev, const uint8_t *src, uint32_t dst, size_t len) { nvram_spi_params_t *spi_dev = (nvram_spi_params_t *) dev->extra; diff --git a/drivers/opt3001/include/opt3001_regs.h b/drivers/opt3001/include/opt3001_regs.h index ad4d3b32c4..6416d85a51 100644 --- a/drivers/opt3001/include/opt3001_regs.h +++ b/drivers/opt3001/include/opt3001_regs.h @@ -19,7 +19,6 @@ #ifndef OPT3001_REGS_H #define OPT3001_REGS_H - #ifdef __cplusplus extern "C" { #endif diff --git a/drivers/pca9633/include/pca9633_regs.h b/drivers/pca9633/include/pca9633_regs.h index da66a15b22..9ed05c20cc 100644 --- a/drivers/pca9633/include/pca9633_regs.h +++ b/drivers/pca9633/include/pca9633_regs.h @@ -91,8 +91,6 @@ extern "C" */ #define PCA9633_REG_ALLCALLADR 0x0C - - /* Bits in REG_MODE1 (page 12, table 8) */ /** @@ -142,8 +140,6 @@ extern "C" */ #define PCA9633_BIT_ALLCALL BIT0 - - /* Bits in REG_MODE2 (page 12-13, table 9) */ /** @@ -179,8 +175,6 @@ extern "C" */ #define PCA9633_BITMASK_OUTNE 0x03 - - /* Bits in REG_LEDOUT (page 14, table 13) */ /** diff --git a/drivers/ph_oem/include/ph_oem_regs.h b/drivers/ph_oem/include/ph_oem_regs.h index da68815a9f..4de4a017b7 100644 --- a/drivers/ph_oem/include/ph_oem_regs.h +++ b/drivers/ph_oem/include/ph_oem_regs.h @@ -47,7 +47,6 @@ typedef enum ph_oem_reg { } ph_oem_reg_t; - /** * @brief Device ID of the @ref PH_OEM_REG_DEVICE_TYPE register of a pH OEM sensor */ diff --git a/drivers/qmc5883l/qmc5883l_saul.c b/drivers/qmc5883l/qmc5883l_saul.c index 3b6236c310..d70638227c 100644 --- a/drivers/qmc5883l/qmc5883l_saul.c +++ b/drivers/qmc5883l/qmc5883l_saul.c @@ -18,7 +18,6 @@ * @} */ - #include #include "saul.h" diff --git a/drivers/rgbled/rgbled.c b/drivers/rgbled/rgbled.c index 945134a9a1..8fbbd41c37 100644 --- a/drivers/rgbled/rgbled.c +++ b/drivers/rgbled/rgbled.c @@ -20,7 +20,6 @@ #include "rgbled.h" - /** * @name Drive the RGB-LED by default with 500Hz */ @@ -31,7 +30,6 @@ */ #define PWM_RES (256) - void rgbled_init(rgbled_t *led, pwm_t pwm, int channel_r, int channel_g, int channel_b) { led->device = pwm; diff --git a/drivers/saul/adc_saul.c b/drivers/saul/adc_saul.c index 5acbae45d8..168f4cbabd 100644 --- a/drivers/saul/adc_saul.c +++ b/drivers/saul/adc_saul.c @@ -25,7 +25,6 @@ #include "phydat.h" #include "periph/adc.h" - static int read_adc(const void *dev, phydat_t *res) { const saul_adc_params_t *params = *((const saul_adc_params_t **)dev); diff --git a/drivers/saul/gpio_saul.c b/drivers/saul/gpio_saul.c index 1934597822..fbefe62e6c 100644 --- a/drivers/saul/gpio_saul.c +++ b/drivers/saul/gpio_saul.c @@ -25,7 +25,6 @@ #include "periph/gpio.h" #include "saul/periph.h" - static int read(const void *dev, phydat_t *res) { const saul_gpio_params_t *p = (const saul_gpio_params_t *)dev; diff --git a/drivers/saul/init_devs/auto_init_fxos8700.c b/drivers/saul/init_devs/auto_init_fxos8700.c index 2bfb75fc88..ab93932c48 100644 --- a/drivers/saul/init_devs/auto_init_fxos8700.c +++ b/drivers/saul/init_devs/auto_init_fxos8700.c @@ -46,7 +46,6 @@ extern saul_driver_t fxos8700_saul_acc_driver; extern saul_driver_t fxos8700_saul_mag_driver; /** @} */ - void auto_init_fxos8700(void) { for (unsigned i = 0; i < FXOS8700_NUM; i++) { diff --git a/drivers/saul/init_devs/auto_init_hdc1000.c b/drivers/saul/init_devs/auto_init_hdc1000.c index 8cab7f8197..b95a0809e1 100644 --- a/drivers/saul/init_devs/auto_init_hdc1000.c +++ b/drivers/saul/init_devs/auto_init_hdc1000.c @@ -53,7 +53,6 @@ extern saul_driver_t hdc1000_saul_temp_driver; extern saul_driver_t hdc1000_saul_hum_driver; /** @} */ - void auto_init_hdc1000(void) { assert(HDC1000_NUM == HDC1000_INFO_NUM); diff --git a/drivers/saul/init_devs/auto_init_hmc5883l.c b/drivers/saul/init_devs/auto_init_hmc5883l.c index dbae505962..ef9ffeca6d 100644 --- a/drivers/saul/init_devs/auto_init_hmc5883l.c +++ b/drivers/saul/init_devs/auto_init_hmc5883l.c @@ -45,7 +45,6 @@ static saul_reg_t saul_entries[HMC5883L_NUM]; */ extern saul_driver_t hmc5883l_saul_driver; - void auto_init_hmc5883l(void) { assert(HMC5883L_NUM == HMC5883L_INFO_NUM); diff --git a/drivers/saul/init_devs/auto_init_hts221.c b/drivers/saul/init_devs/auto_init_hts221.c index 1c7722e73c..1ae7f11ed8 100644 --- a/drivers/saul/init_devs/auto_init_hts221.c +++ b/drivers/saul/init_devs/auto_init_hts221.c @@ -49,7 +49,6 @@ extern saul_driver_t hts221_saul_temp_driver; extern saul_driver_t hts221_saul_hum_driver; /** @} */ - void auto_init_hts221(void) { assert(HTS221_NUM == HTS221_SAUL_NUM); diff --git a/drivers/saul/init_devs/auto_init_isl29020.c b/drivers/saul/init_devs/auto_init_isl29020.c index 3e15b90f50..2a81ac9b89 100644 --- a/drivers/saul/init_devs/auto_init_isl29020.c +++ b/drivers/saul/init_devs/auto_init_isl29020.c @@ -50,7 +50,6 @@ static saul_reg_t saul_entries[ISL29020_NUM]; */ extern saul_driver_t isl29020_saul_driver; - void auto_init_isl29020(void) { assert(ISL29020_NUM == ISL29020_INFO_NUM); diff --git a/drivers/saul/init_devs/auto_init_l3g4200d.c b/drivers/saul/init_devs/auto_init_l3g4200d.c index 64442664cc..65ec31e96e 100644 --- a/drivers/saul/init_devs/auto_init_l3g4200d.c +++ b/drivers/saul/init_devs/auto_init_l3g4200d.c @@ -50,7 +50,6 @@ static saul_reg_t saul_entries[L3G4200D_NUM]; */ extern saul_driver_t l3g4200d_saul_driver; - void auto_init_l3g4200d(void) { assert(L3G4200D_NUM == L3G4200D_INFO_NUM); diff --git a/drivers/saul/init_devs/auto_init_lis3dh.c b/drivers/saul/init_devs/auto_init_lis3dh.c index 6a956967c5..28d9b1af06 100644 --- a/drivers/saul/init_devs/auto_init_lis3dh.c +++ b/drivers/saul/init_devs/auto_init_lis3dh.c @@ -50,7 +50,6 @@ static saul_reg_t saul_entries[LIS3DH_NUM]; */ extern saul_driver_t lis3dh_saul_driver; - void auto_init_lis3dh(void) { assert(LIS3DH_NUM == LIS3DH_INFO_NUM); diff --git a/drivers/saul/init_devs/auto_init_lpsxxx.c b/drivers/saul/init_devs/auto_init_lpsxxx.c index 64380102ff..26c981141e 100644 --- a/drivers/saul/init_devs/auto_init_lpsxxx.c +++ b/drivers/saul/init_devs/auto_init_lpsxxx.c @@ -51,7 +51,6 @@ static saul_reg_t saul_entries[LPSXXX_NUM * 2]; extern saul_driver_t lpsxxx_saul_pres_driver; extern saul_driver_t lpsxxx_saul_temp_driver; - void auto_init_lpsxxx(void) { assert(LPSXXX_NUM == LPSXXX_INFO_NUM); diff --git a/drivers/saul/init_devs/auto_init_lsm6dsl.c b/drivers/saul/init_devs/auto_init_lsm6dsl.c index 8755bc46e6..eafb7e8ebc 100644 --- a/drivers/saul/init_devs/auto_init_lsm6dsl.c +++ b/drivers/saul/init_devs/auto_init_lsm6dsl.c @@ -54,7 +54,6 @@ extern saul_driver_t lsm6dsl_saul_gyro_driver; extern saul_driver_t lsm6dsl_saul_temp_driver; /** @} */ - void auto_init_lsm6dsl(void) { assert(LSM6DSL_NUM == LSM6DSL_INFO_NUM); diff --git a/drivers/saul/init_devs/auto_init_pir.c b/drivers/saul/init_devs/auto_init_pir.c index 48fc1c451b..f935c05d7c 100644 --- a/drivers/saul/init_devs/auto_init_pir.c +++ b/drivers/saul/init_devs/auto_init_pir.c @@ -45,7 +45,6 @@ static saul_reg_t saul_entries[PIR_NUM]; extern saul_driver_t pir_saul_occup_driver; /** @} */ - void auto_init_pir(void) { for (unsigned i = 0; i < PIR_NUM; i++) { diff --git a/drivers/saul/init_devs/auto_init_qmc5883l.c b/drivers/saul/init_devs/auto_init_qmc5883l.c index c86411b7d0..6d9f636c8b 100644 --- a/drivers/saul/init_devs/auto_init_qmc5883l.c +++ b/drivers/saul/init_devs/auto_init_qmc5883l.c @@ -50,7 +50,6 @@ static saul_reg_t saul_entries[QMC5883L_NUM]; */ extern saul_driver_t qmc5883l_saul_driver; - void auto_init_qmc5883l(void) { assert(QMC5883L_NUM == QMC5883L_INFO_NUM); diff --git a/drivers/saul/init_devs/auto_init_saul_gpio.c b/drivers/saul/init_devs/auto_init_saul_gpio.c index ff4c502d02..541a3ff453 100644 --- a/drivers/saul/init_devs/auto_init_saul_gpio.c +++ b/drivers/saul/init_devs/auto_init_saul_gpio.c @@ -38,7 +38,6 @@ void auto_init_gpio(void) #else #define SAUL_GPIO_NUMOF ARRAY_SIZE(saul_gpio_params) - /** * @brief Memory for the registry entries */ @@ -54,7 +53,6 @@ extern saul_driver_t gpio_in_saul_driver; */ extern saul_driver_t gpio_out_saul_driver; - void auto_init_gpio(void) { for (unsigned int i = 0; i < SAUL_GPIO_NUMOF; i++) { diff --git a/drivers/saul/init_devs/auto_init_seesaw_soil.c b/drivers/saul/init_devs/auto_init_seesaw_soil.c index e7dc50cafe..83a0d3303a 100644 --- a/drivers/saul/init_devs/auto_init_seesaw_soil.c +++ b/drivers/saul/init_devs/auto_init_seesaw_soil.c @@ -52,7 +52,6 @@ static saul_reg_t saul_entries[SEESAW_SOIL_NUM]; extern saul_driver_t seesaw_soil_saul_temp_driver; /** @} */ - void auto_init_seesaw_soil(void) { assert(SEESAW_SOIL_NUM == SEESAW_SOIL_INFO_NUM); diff --git a/drivers/sdcard_spi/include/sdcard_spi_internal.h b/drivers/sdcard_spi/include/sdcard_spi_internal.h index 65e547c857..afe0a34c4f 100644 --- a/drivers/sdcard_spi/include/sdcard_spi_internal.h +++ b/drivers/sdcard_spi/include/sdcard_spi_internal.h @@ -33,7 +33,6 @@ extern "C" { #include "stdbool.h" #include "sdcard_spi.h" - /* number of clocks that should be applied to the card on init before taking further actions (see sd spec. 6.4.1.1 Power Up Time of Card) */ #define SD_POWERSEQUENCE_CLOCK_COUNT 74 @@ -81,7 +80,6 @@ extern "C" { define this according to your actual interface/wiring with the sd-card */ #define SYSTEM_VOLTAGE (OCR_VOLTAGE_3_2_TO_3_3 | OCR_VOLTAGE_3_2_TO_3_3) - /* see sd spec. 7.3.1.3 Detailed Command Description */ #define SD_CMD_PREFIX_MASK (1<<6) @@ -285,7 +283,6 @@ uint32_t sdcard_spi_get_au_size(sdcard_spi_t *card); */ sd_rw_response_t sdcard_spi_read_sds(sdcard_spi_t *card, sd_status_t *sd_status); - #ifdef __cplusplus } #endif diff --git a/drivers/sht3x/sht3x.c b/drivers/sht3x/sht3x.c index 7a9bcc5cce..addb455cf4 100644 --- a/drivers/sht3x/sht3x.c +++ b/drivers/sht3x/sht3x.c @@ -204,7 +204,6 @@ static int _start_measurement (sht3x_dev_t* dev) return SHT3X_OK; } - static int _get_raw_data(sht3x_dev_t* dev, uint8_t* raw_data) { int res = SHT3X_OK; @@ -260,7 +259,6 @@ static int _get_raw_data(sht3x_dev_t* dev, uint8_t* raw_data) return SHT3X_OK; } - static int _compute_values (uint8_t* raw_data, int16_t* temp, int16_t* hum) { if (temp) { @@ -281,7 +279,6 @@ static int _compute_values (uint8_t* raw_data, int16_t* temp, int16_t* hum) return SHT3X_OK; } - static int _send_command(sht3x_dev_t* dev, uint16_t cmd) { ASSERT_PARAM (dev != NULL); @@ -308,7 +305,6 @@ static int _send_command(sht3x_dev_t* dev, uint16_t cmd) return SHT3X_OK; } - static int _read_data(sht3x_dev_t* dev, uint8_t *data, uint8_t len) { int res = SHT3X_OK; @@ -391,7 +387,6 @@ static int _reset (sht3x_dev_t* dev) return res; } - static int _status (sht3x_dev_t* dev, uint16_t* status) { ASSERT_PARAM (dev != NULL); diff --git a/drivers/si114x/si114x.c b/drivers/si114x/si114x.c index dcd5568a6a..bf4e1f41f9 100644 --- a/drivers/si114x/si114x.c +++ b/drivers/si114x/si114x.c @@ -186,7 +186,6 @@ void _reset(si114x_t *dev) xtimer_usleep(SI114X_WAIT_10MS); } - void _initialize(si114x_t *dev) { DEBUG("Initializing sensor.\n"); diff --git a/drivers/srf02/srf02.c b/drivers/srf02/srf02.c index 1627008a1b..27fcac6d3f 100644 --- a/drivers/srf02/srf02.c +++ b/drivers/srf02/srf02.c @@ -52,7 +52,6 @@ #define CMD_ADDR_SEQ3 (0xa5) /** @} */ - int srf02_init(srf02_t *dev, i2c_t i2c, uint8_t addr) { dev->i2c = i2c; diff --git a/drivers/srf08/srf08.c b/drivers/srf08/srf08.c index 30f508cc8b..90c203f478 100644 --- a/drivers/srf08/srf08.c +++ b/drivers/srf08/srf08.c @@ -54,7 +54,6 @@ int srf08_init(srf08_t *dev, const srf08_params_t *params) return 0; } - int srf08_set_max_range(const srf08_t *dev, uint8_t max_range) { int status; @@ -68,7 +67,6 @@ int srf08_set_max_range(const srf08_t *dev, uint8_t max_range) return status; } - int srf08_set_max_gain(const srf08_t *dev, uint8_t gain) { int status; @@ -82,7 +80,6 @@ int srf08_set_max_gain(const srf08_t *dev, uint8_t gain) return status; } - int srf08_get_distances(const srf08_t *dev, uint16_t *range_array, int num_echos, srf08_mode_t ranging_mode) { diff --git a/drivers/sx127x/include/sx127x_registers.h b/drivers/sx127x/include/sx127x_registers.h index b37a878d9b..82fe55e44e 100644 --- a/drivers/sx127x/include/sx127x_registers.h +++ b/drivers/sx127x/include/sx127x_registers.h @@ -464,7 +464,6 @@ extern "C" { #define RF_PLL_BANDWIDTH_300 (0xC0) /* Default */ /** @} */ - /* FSK modem definitions */ /** diff --git a/drivers/sx127x/sx127x_getset.c b/drivers/sx127x/sx127x_getset.c index 9ec4bcd8c3..feba720ec0 100644 --- a/drivers/sx127x/sx127x_getset.c +++ b/drivers/sx127x/sx127x_getset.c @@ -332,7 +332,6 @@ void sx127x_set_rx(sx127x_t *dev) ztimer_set(ZTIMER_MSEC, &(dev->_internal.rx_timeout_timer), dev->settings.lora.rx_timeout); } - if (dev->settings.lora.flags & SX127X_RX_CONTINUOUS_FLAG) { sx127x_set_op_mode(dev, SX127X_RF_LORA_OPMODE_RECEIVER); } diff --git a/drivers/sx127x/sx127x_internal.c b/drivers/sx127x/sx127x_internal.c index 8baed8810e..e5323feb5e 100644 --- a/drivers/sx127x/sx127x_internal.c +++ b/drivers/sx127x/sx127x_internal.c @@ -37,11 +37,9 @@ #define ENABLE_DEBUG 0 #include "debug.h" - #define SX127X_SPI_SPEED (SPI_CLK_1MHZ) #define SX127X_SPI_MODE (SPI_MODE_0) - int sx127x_check_version(const sx127x_t *dev) { /* Read version number and compare with sx127x assigned revision */ diff --git a/drivers/tsl2561/tsl2561.c b/drivers/tsl2561/tsl2561.c index 546ba05331..df7528cbc4 100644 --- a/drivers/tsl2561/tsl2561.c +++ b/drivers/tsl2561/tsl2561.c @@ -181,7 +181,6 @@ uint16_t tsl2561_read_illuminance(const tsl2561_t *dev) return (uint16_t)(illuminance >> TSL2561_LUXSCALE); } - static void _enable(const tsl2561_t *dev) { /* enabling device */ @@ -197,7 +196,6 @@ static void _enable(const tsl2561_t *dev) } } - static void _disable(const tsl2561_t *dev) { /* disabling device */ diff --git a/drivers/ws281x/esp32.c b/drivers/ws281x/esp32.c index 3f8140e7d3..990de387f9 100644 --- a/drivers/ws281x/esp32.c +++ b/drivers/ws281x/esp32.c @@ -34,7 +34,6 @@ #define ENABLE_DEBUG 0 #include "debug.h" - static inline __attribute__((always_inline)) uint32_t get_cycle_count(void) { uint32_t ccount; __asm__ __volatile__("rsr %0,ccount":"=a" (ccount)); diff --git a/drivers/xbee/xbee.c b/drivers/xbee/xbee.c index 52a75c3ffb..e4f90dff3e 100644 --- a/drivers/xbee/xbee.c +++ b/drivers/xbee/xbee.c @@ -93,7 +93,6 @@ typedef struct { uint8_t data_len; /**< number ob bytes written to @p data */ } resp_t; - /* * Driver's internal utility functions */ diff --git a/examples/dtls-echo/dtls-client.c b/examples/dtls-echo/dtls-client.c index e9668b9020..37a2ef8db9 100644 --- a/examples/dtls-echo/dtls-client.c +++ b/examples/dtls-echo/dtls-client.c @@ -103,7 +103,6 @@ static int dtls_handle_read(dtls_context_t *ctx) sock_udp_t *sock; sock = (sock_udp_t *)dtls_get_app_data(ctx); - if (sock_udp_get_remote(sock, &remote) == -ENOTCONN) { DEBUG("%s: Unable to retrieve remote!\n", __func__); return 0; diff --git a/examples/dtls-echo/main.c b/examples/dtls-echo/main.c index 89c13583cf..3dc06ca90d 100644 --- a/examples/dtls-echo/main.c +++ b/examples/dtls-echo/main.c @@ -7,7 +7,6 @@ * directory for more details. */ - /** * @ingroup examples * @{ diff --git a/examples/dtls-wolfssl/main.c b/examples/dtls-wolfssl/main.c index 9a8059c3bb..c6bc93342e 100644 --- a/examples/dtls-wolfssl/main.c +++ b/examples/dtls-wolfssl/main.c @@ -7,7 +7,6 @@ * directory for more details. */ - /** * @ingroup examples * @{ @@ -26,7 +25,6 @@ #include "msg.h" #include "log.h" - #ifdef WITH_RIOT_SOCKETS #error RIOT-OS is set to use sockets but this DTLS app is configured for socks. #endif diff --git a/examples/gnrc_networking_mac/udp.c b/examples/gnrc_networking_mac/udp.c index 5dde33ebed..789af2e3b1 100644 --- a/examples/gnrc_networking_mac/udp.c +++ b/examples/gnrc_networking_mac/udp.c @@ -35,7 +35,6 @@ static gnrc_netreg_entry_t server = GNRC_NETREG_ENTRY_INIT_PID(GNRC_NETREG_DEMUX_CTX_ALL, KERNEL_PID_UNDEF); - static void send(char *addr_str, char *port_str, char *data, unsigned int num, unsigned int delay) { diff --git a/examples/lua_REPL/main.c b/examples/lua_REPL/main.c index c24eaa8b5f..1632cf2d99 100644 --- a/examples/lua_REPL/main.c +++ b/examples/lua_REPL/main.c @@ -38,7 +38,6 @@ const struct lua_riot_builtin_lua _lua_riot_builtin_lua_table[] = { { "repl", repl_lua, sizeof(repl_lua) } }; - const struct lua_riot_builtin_lua *const lua_riot_builtin_lua_table = _lua_riot_builtin_lua_table; const size_t lua_riot_builtin_lua_table_len = 1; diff --git a/examples/nanocoap_server/coap_handler.c b/examples/nanocoap_server/coap_handler.c index 6b5c3c6d02..9a916e12a5 100644 --- a/examples/nanocoap_server/coap_handler.c +++ b/examples/nanocoap_server/coap_handler.c @@ -71,7 +71,6 @@ static ssize_t _riot_block2_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len, v bufpos += coap_blockwise_put_char(&slicer, bufpos, 'U'); bufpos += coap_blockwise_put_char(&slicer, bufpos, '.'); - unsigned payload_len = bufpos - payload; return coap_block2_build_reply(pkt, COAP_CODE_205, buf, len, payload_len, &slicer); diff --git a/examples/riot_and_cpp/c_functions.h b/examples/riot_and_cpp/c_functions.h index 837b847e1d..4ab7eaed84 100644 --- a/examples/riot_and_cpp/c_functions.h +++ b/examples/riot_and_cpp/c_functions.h @@ -22,7 +22,6 @@ #ifndef C_FUNCTIONS_H #define C_FUNCTIONS_H - /* * all headers defining c functions must be marked as extern "C" when included * into c++ sources diff --git a/examples/skald_eddystone/main.c b/examples/skald_eddystone/main.c index 2892cc85bd..826eebbf31 100644 --- a/examples/skald_eddystone/main.c +++ b/examples/skald_eddystone/main.c @@ -34,7 +34,6 @@ /* calibrated TX power value */ #define TX_PWR (0U) - /* allocate two advertising contexts, one for Eddystone-URL and one for * Eddystone-URI */ static skald_ctx_t _ctx_uid; diff --git a/examples/suit_update/main.c b/examples/suit_update/main.c index 27ff9a9cdd..2263b43aba 100644 --- a/examples/suit_update/main.c +++ b/examples/suit_update/main.c @@ -177,7 +177,6 @@ static const shell_command_t shell_commands[] = { { NULL, NULL, NULL } }; - int main(void) { puts("RIOT SUIT update example application"); diff --git a/examples/twr_aloha/control.h b/examples/twr_aloha/control.h index 1d5557b4a3..1f4f8f081a 100644 --- a/examples/twr_aloha/control.h +++ b/examples/twr_aloha/control.h @@ -17,7 +17,6 @@ * @} */ - #ifndef CONTROL_H #define CONTROL_H diff --git a/pkg/cryptoauthlib/contrib/atca.c b/pkg/cryptoauthlib/contrib/atca.c index e0de707b97..0f9eb6486e 100644 --- a/pkg/cryptoauthlib/contrib/atca.c +++ b/pkg/cryptoauthlib/contrib/atca.c @@ -26,7 +26,6 @@ #include "atca.h" #include "atca_params.h" - /* Timer functions */ void atca_delay_us(uint32_t delay) { diff --git a/pkg/fatfs/fatfs_vfs/fatfs_vfs.c b/pkg/fatfs/fatfs_vfs/fatfs_vfs.c index 842ebdae69..1954d77498 100644 --- a/pkg/fatfs/fatfs_vfs/fatfs_vfs.c +++ b/pkg/fatfs/fatfs_vfs/fatfs_vfs.c @@ -18,7 +18,6 @@ * @} */ - #include #include #include @@ -219,7 +218,6 @@ static ssize_t _read(vfs_file_t *filp, void *dest, size_t nbytes) FRESULT res = f_read(&fd->file, dest, nbytes, &br); - if (res != FR_OK) { return fatfs_err_to_errno(res); } diff --git a/pkg/littlefs/fs/littlefs_fs.c b/pkg/littlefs/fs/littlefs_fs.c index b7ccabe3d0..92aab28920 100644 --- a/pkg/littlefs/fs/littlefs_fs.c +++ b/pkg/littlefs/fs/littlefs_fs.c @@ -18,7 +18,6 @@ * @} */ - #include #include #include diff --git a/pkg/littlefs2/fs/littlefs2_fs.c b/pkg/littlefs2/fs/littlefs2_fs.c index ae68d9fbd3..1ba4a6a190 100644 --- a/pkg/littlefs2/fs/littlefs2_fs.c +++ b/pkg/littlefs2/fs/littlefs2_fs.c @@ -18,7 +18,6 @@ * @} */ - #include #include #include diff --git a/pkg/lua/contrib/binsearch.h b/pkg/lua/contrib/binsearch.h index 12cf2e426c..10c6bf48cf 100644 --- a/pkg/lua/contrib/binsearch.h +++ b/pkg/lua/contrib/binsearch.h @@ -129,7 +129,6 @@ int binsearch_str(const void *start, size_t offset, size_t stride, size_t nmemb, const void *binsearch_str_p(const void *start, size_t offset, size_t stride, size_t nmemb, const char *str, size_t n); - #ifdef __cplusplus } #endif diff --git a/pkg/lua/contrib/lua_loadlib.c b/pkg/lua/contrib/lua_loadlib.c index 8e9e6a7cf8..e7894baebb 100644 --- a/pkg/lua/contrib/lua_loadlib.c +++ b/pkg/lua/contrib/lua_loadlib.c @@ -225,7 +225,6 @@ static const luaL_Reg pk_funcs[] = { { NULL, NULL } }; - static const luaL_Reg ll_funcs[] = { { "require", ll_require }, { NULL, NULL } @@ -258,7 +257,6 @@ LUAMOD_API int luaopen_package(lua_State *L) luaL_getsubtable(L, LUA_REGISTRYINDEX, LUA_PRELOAD_TABLE); lua_setfield(L, -2, "preload"); - lua_pushglobaltable(L); lua_pushvalue(L, -2); /* set 'package' as upvalue for next lib */ luaL_setfuncs(L, ll_funcs, 1); /* open lib into global table */ diff --git a/pkg/lua/contrib/lua_run.c b/pkg/lua/contrib/lua_run.c index f747b53d30..dbaf27e418 100644 --- a/pkg/lua/contrib/lua_run.c +++ b/pkg/lua/contrib/lua_run.c @@ -257,7 +257,6 @@ lua_riot_do_error: return status; } - LUALIB_API int lua_riot_do_module(const char *modname, void *memory, size_t mem_size, uint16_t modmask, int *retval) { diff --git a/pkg/lvgl/contrib/lvgl.c b/pkg/lvgl/contrib/lvgl.c index 90e1a2f454..a3a13678f1 100644 --- a/pkg/lvgl/contrib/lvgl.c +++ b/pkg/lvgl/contrib/lvgl.c @@ -53,7 +53,6 @@ static lv_color_t buf[LVGL_COLOR_BUF_SIZE]; static screen_dev_t *_screen_dev = NULL; - static void _disp_map(lv_disp_drv_t *drv, const lv_area_t *area, lv_color_t *color_p) { if (!_screen_dev->display) { diff --git a/pkg/lvgl/include/lv_conf.h b/pkg/lvgl/include/lv_conf.h index 1feedb8482..32990056b0 100644 --- a/pkg/lvgl/include/lv_conf.h +++ b/pkg/lvgl/include/lv_conf.h @@ -359,7 +359,6 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in the i #endif /*LV_USE_DEBUG*/ - /*================== * FONT USAGE *===================*/ diff --git a/pkg/mynewt-core/contrib/nrf5x_isr.c b/pkg/mynewt-core/contrib/nrf5x_isr.c index 23260f19a5..2731e01fba 100644 --- a/pkg/mynewt-core/contrib/nrf5x_isr.c +++ b/pkg/mynewt-core/contrib/nrf5x_isr.c @@ -17,7 +17,6 @@ * @} */ - #include "mcu/mcu.h" #include "cpu.h" diff --git a/pkg/nimble/netif/include/nimble_netif_conn.h b/pkg/nimble/netif/include/nimble_netif_conn.h index 02ad46d42f..51f2966d6e 100644 --- a/pkg/nimble/netif/include/nimble_netif_conn.h +++ b/pkg/nimble/netif/include/nimble_netif_conn.h @@ -114,7 +114,6 @@ int nimble_netif_conn_get_by_addr(const uint8_t *addr); */ int nimble_netif_conn_get_by_gaphandle(uint16_t gaphandle); - /** * @brief Iterate over all connection contexts that match the filter condition * diff --git a/pkg/nimble/scanlist/include/nimble_scanlist.h b/pkg/nimble/scanlist/include/nimble_scanlist.h index 0a5424e387..9ff872f615 100644 --- a/pkg/nimble/scanlist/include/nimble_scanlist.h +++ b/pkg/nimble/scanlist/include/nimble_scanlist.h @@ -112,7 +112,6 @@ void nimble_scanlist_print(void); */ void nimble_scanlist_print_entry(nimble_scanlist_entry_t *e); - #ifdef __cplusplus } #endif diff --git a/pkg/nimble/statconn/nimble_statconn.c b/pkg/nimble/statconn/nimble_statconn.c index e57fe0f6b9..1826e0a2f3 100644 --- a/pkg/nimble/statconn/nimble_statconn.c +++ b/pkg/nimble/statconn/nimble_statconn.c @@ -57,7 +57,6 @@ static uint32_t _conn_timeout; static nimble_netif_eventcb_t _eventcb = NULL; - static slot_t *_get_addr(const uint8_t *addr) { for (unsigned i = 0; i < ARRAY_SIZE(_slots); i++) { diff --git a/pkg/openthread/contrib/platform_functions_wrapper.c b/pkg/openthread/contrib/platform_functions_wrapper.c index 4d4ef5e8a3..a47381495c 100644 --- a/pkg/openthread/contrib/platform_functions_wrapper.c +++ b/pkg/openthread/contrib/platform_functions_wrapper.c @@ -107,7 +107,6 @@ uint8_t ot_call_command(char* command, void *arg, void* answer) return job.status; } - void output_bytes(const char* name, const uint8_t *aBytes, uint8_t aLength) { if (IS_ACTIVE(ENABLE_DEBUG)) { @@ -146,7 +145,6 @@ OT_COMMAND ot_eui64(otInstance* ot_instance, void* arg, void* answer) { return 0; } - OT_COMMAND ot_extaddr(otInstance* ot_instance, void* arg, void* answer) { (void)arg; @@ -235,7 +233,6 @@ OT_COMMAND ot_networkname(otInstance* ot_instance, void* arg, void* answer) { return 0; } - OT_COMMAND ot_panid(otInstance* ot_instance, void* arg, void* answer) { if (answer != NULL) { *((uint16_t *) answer) = otLinkGetPanId(ot_instance); diff --git a/pkg/openthread/contrib/platform_misc.c b/pkg/openthread/contrib/platform_misc.c index e62338b456..9bb55af131 100644 --- a/pkg/openthread/contrib/platform_misc.c +++ b/pkg/openthread/contrib/platform_misc.c @@ -16,7 +16,6 @@ * @} */ - #include "openthread/platform/misc.h" #include "periph/pm.h" #include "ot.h" diff --git a/pkg/openthread/include/ot.h b/pkg/openthread/include/ot.h index 1fe08deff8..904f8c9d2e 100644 --- a/pkg/openthread/include/ot.h +++ b/pkg/openthread/include/ot.h @@ -160,7 +160,6 @@ void openthread_bootstrap(void); */ void openthread_radio_init(netdev_t *dev, uint8_t *tb, uint8_t *rb); - /** * @brief Starts OpenThread thread. * diff --git a/pkg/openthread/include/platform_config.h b/pkg/openthread/include/platform_config.h index 46527a4e72..c1e1b81d11 100644 --- a/pkg/openthread/include/platform_config.h +++ b/pkg/openthread/include/platform_config.h @@ -34,7 +34,6 @@ extern "C" { #define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS (10U) #endif - /** * @def OPENTHREAD_CONFIG_LOG_LEVEL * diff --git a/pkg/openwsn/include/board_info.h b/pkg/openwsn/include/board_info.h index d4f5a9145a..805ff39549 100644 --- a/pkg/openwsn/include/board_info.h +++ b/pkg/openwsn/include/board_info.h @@ -52,7 +52,6 @@ extern "C" { #define SCHEDULER_ENABLE_INTERRUPT() /* unused by RIOT */ /** @} */ - /** * @name OpenWSN platform dependent definitions * @{ diff --git a/pkg/spiffs/fs/spiffs_fs.c b/pkg/spiffs/fs/spiffs_fs.c index 99e962622c..f9d3d60bdf 100644 --- a/pkg/spiffs/fs/spiffs_fs.c +++ b/pkg/spiffs/fs/spiffs_fs.c @@ -18,7 +18,6 @@ * @} */ - #include #include #include diff --git a/pkg/tlsf/contrib/include/tlsf-malloc.h b/pkg/tlsf/contrib/include/tlsf-malloc.h index 46118ce5ca..e6fd4fd5ad 100644 --- a/pkg/tlsf/contrib/include/tlsf-malloc.h +++ b/pkg/tlsf/contrib/include/tlsf-malloc.h @@ -89,7 +89,6 @@ int tlsf_add_global_pool(void *mem, size_t bytes); */ tlsf_t _tlsf_get_global_control(void); - #ifdef __cplusplus } #endif diff --git a/pkg/tlsf/contrib/native.c b/pkg/tlsf/contrib/native.c index 9bf7421b4a..dc337c69cf 100644 --- a/pkg/tlsf/contrib/native.c +++ b/pkg/tlsf/contrib/native.c @@ -110,7 +110,6 @@ ATTR_REALLOC void *realloc(void *ptr, size_t size) return result; } - /** * Deallocate a block of data. */ diff --git a/pkg/tlsf/contrib/newlib.c b/pkg/tlsf/contrib/newlib.c index fecb034e1d..3e70601f1d 100644 --- a/pkg/tlsf/contrib/newlib.c +++ b/pkg/tlsf/contrib/newlib.c @@ -30,7 +30,6 @@ #include "tlsf-malloc.h" #include "tlsf-malloc-internal.h" - /* TODO: Add defines for other compilers */ #if defined(__GNUC__) && !defined(__clang__) /* Clang supports __GNUC__ but * not the alloc_size() diff --git a/pkg/uwb-dw1000/hal/uwb_dw1000.c b/pkg/uwb-dw1000/hal/uwb_dw1000.c index db6e5e64d2..b4eb0372c7 100644 --- a/pkg/uwb-dw1000/hal/uwb_dw1000.c +++ b/pkg/uwb-dw1000/hal/uwb_dw1000.c @@ -34,7 +34,6 @@ #endif #include "log.h" - #ifndef DW1000_THREAD_PRIORITY #define DW1000_THREAD_PRIORITY MYNEWT_VAL_UWB_DEV_TASK_PRIO #endif diff --git a/pkg/uwb-dw1000/include/uwb_dw1000_config.h b/pkg/uwb-dw1000/include/uwb_dw1000_config.h index 40b1f01d9b..b5dcfdd693 100644 --- a/pkg/uwb-dw1000/include/uwb_dw1000_config.h +++ b/pkg/uwb-dw1000/include/uwb_dw1000_config.h @@ -60,7 +60,6 @@ extern "C" { #define DW1000_NPHR_DEFAULT 21 #endif - /** * @brief Default channel */ @@ -167,7 +166,6 @@ extern "C" { #define DW1000_RX_DIAGNOSTIC 0 #endif - /** * @brief Default UWB RX Antenna separation distance in m */ diff --git a/pkg/wakaama/contrib/lwm2m_client.c b/pkg/wakaama/contrib/lwm2m_client.c index f0863e10e7..a062ed71b5 100644 --- a/pkg/wakaama/contrib/lwm2m_client.c +++ b/pkg/wakaama/contrib/lwm2m_client.c @@ -51,7 +51,6 @@ bool lwm2m_device_reboot_requested(void); */ static void *_lwm2m_client_run(void *arg); - static char _lwm2m_client_stack[THREAD_STACKSIZE_MAIN + THREAD_EXTRA_STACKSIZE_PRINTF]; static lwm2m_client_data_t *_client_data; diff --git a/pkg/wakaama/include/lwm2m_client_objects.h b/pkg/wakaama/include/lwm2m_client_objects.h index 20aec5f481..0cd28d03d4 100644 --- a/pkg/wakaama/include/lwm2m_client_objects.h +++ b/pkg/wakaama/include/lwm2m_client_objects.h @@ -86,7 +86,6 @@ lwm2m_object_t *lwm2m_client_get_device_object( lwm2m_object_t *lwm2m_client_get_acc_ctrl_object( lwm2m_client_data_t *client_data); - #ifdef __cplusplus } #endif diff --git a/pkg/wakaama/include/objects/device.h b/pkg/wakaama/include/objects/device.h index 2b2be1629b..fd5feb26cd 100644 --- a/pkg/wakaama/include/objects/device.h +++ b/pkg/wakaama/include/objects/device.h @@ -96,7 +96,6 @@ void lwm2m_free_object_device(lwm2m_object_t *obj); */ bool lwm2m_device_reboot_requested(void); - #ifdef __cplusplus } #endif diff --git a/pkg/wolfssl/include/user_settings.h b/pkg/wolfssl/include/user_settings.h index 1ef6a10db7..0bfbab6d4f 100644 --- a/pkg/wolfssl/include/user_settings.h +++ b/pkg/wolfssl/include/user_settings.h @@ -32,8 +32,6 @@ extern "C" { #define SP_WORD_SIZE 32 #define WOLFSSL_SP - - /* GNRC support enabled if not * using sockets */ diff --git a/pkg/wolfssl/sock_tls/sock_tls.c b/pkg/wolfssl/sock_tls/sock_tls.c index 199326b139..068cc0826f 100644 --- a/pkg/wolfssl/sock_tls/sock_tls.c +++ b/pkg/wolfssl/sock_tls/sock_tls.c @@ -80,13 +80,10 @@ void sock_dtls_session_destroy(sock_tls_t *sk) tls_session_destroy(sk); } - #ifdef MODULE_SOCK_TCP /* TODO */ #endif - - #ifndef __mips__ #include int strncasecmp(const char *s1, const char * s2, unsigned int sz) diff --git a/pkg/wolfssl/sock_tls/sock_tls.h b/pkg/wolfssl/sock_tls/sock_tls.h index 4982cf8626..e1c5b9a5cf 100644 --- a/pkg/wolfssl/sock_tls/sock_tls.h +++ b/pkg/wolfssl/sock_tls/sock_tls.h @@ -220,8 +220,6 @@ * */ - - #include #include #include @@ -332,7 +330,6 @@ void sock_dtls_session_destroy(sock_tls_t *sk); */ void sock_dtls_close(sock_tls_t *sk); - #ifdef MODULE_SOCK_TCP # error Only support for UDP/IP provided via GNRC stack. #endif diff --git a/sys/can/conn/raw.c b/sys/can/conn/raw.c index 0ba60c2c25..5fae7f6652 100644 --- a/sys/can/conn/raw.c +++ b/sys/can/conn/raw.c @@ -71,7 +71,6 @@ int conn_can_raw_create(conn_can_raw_t *conn, struct can_filter *filter, size_t return conn_can_raw_set_filter(conn, filter, count); } - int conn_can_raw_set_filter(conn_can_raw_t *conn, struct can_filter *filter, size_t count) { assert(conn != NULL); diff --git a/sys/can/device.c b/sys/can/device.c index 713356dab5..6b516c25e3 100644 --- a/sys/can/device.c +++ b/sys/can/device.c @@ -372,7 +372,6 @@ kernel_pid_t can_device_init(char *stack, int stacksize, char priority, return res; } - #define SJW 2 #define CAN_SYNC_SEG 1 diff --git a/sys/crypto/ciphers.c b/sys/crypto/ciphers.c index 1b8afa60de..99af731d97 100644 --- a/sys/crypto/ciphers.c +++ b/sys/crypto/ciphers.c @@ -18,7 +18,6 @@ #include #include "crypto/ciphers.h" - int cipher_init(cipher_t *cipher, cipher_id_t cipher_id, const uint8_t *key, uint8_t key_size) { @@ -26,21 +25,18 @@ int cipher_init(cipher_t *cipher, cipher_id_t cipher_id, const uint8_t *key, return cipher->interface->init(&cipher->context, key, key_size); } - int cipher_encrypt(const cipher_t *cipher, const uint8_t *input, uint8_t *output) { return cipher->interface->encrypt(&cipher->context, input, output); } - int cipher_decrypt(const cipher_t *cipher, const uint8_t *input, uint8_t *output) { return cipher->interface->decrypt(&cipher->context, input, output); } - int cipher_get_block_size(const cipher_t *cipher) { return cipher->interface->block_size; diff --git a/sys/crypto/modes/cbc.c b/sys/crypto/modes/cbc.c index df3c59abc3..477357c445 100644 --- a/sys/crypto/modes/cbc.c +++ b/sys/crypto/modes/cbc.c @@ -18,7 +18,6 @@ * @} */ - #include #include "crypto/modes/cbc.h" @@ -53,7 +52,6 @@ int cipher_encrypt_cbc(const cipher_t *cipher, uint8_t iv[16], return offset; } - int cipher_decrypt_cbc(const cipher_t *cipher, uint8_t iv[16], const uint8_t *input, size_t length, uint8_t *output) { @@ -61,7 +59,6 @@ int cipher_decrypt_cbc(const cipher_t *cipher, uint8_t iv[16], const uint8_t *input_block, *input_block_last; uint8_t block_size; - block_size = cipher_get_block_size(cipher); if (length % block_size != 0) { return CIPHER_ERR_INVALID_LENGTH; diff --git a/sys/crypto/modes/ccm.c b/sys/crypto/modes/ccm.c index 82b3468ec6..263446a8e7 100644 --- a/sys/crypto/modes/ccm.c +++ b/sys/crypto/modes/ccm.c @@ -70,7 +70,6 @@ static int ccm_compute_cbc_mac(const cipher_t *cipher, const uint8_t iv[16], return offset; } - static int ccm_create_mac_iv(const cipher_t *cipher, uint8_t auth_data_len, uint8_t M, uint8_t L, const uint8_t *nonce, uint8_t nonce_len, size_t plaintext_len, uint8_t X1[16]) @@ -162,7 +161,6 @@ static int ccm_compute_adata_mac(const cipher_t *cipher, const uint8_t *auth_dat return 0; } - /* Check if 'value' can be stored in 'num_bytes' */ static inline int _fits_in_nbytes(size_t value, uint8_t num_bytes) { @@ -174,7 +172,6 @@ static inline int _fits_in_nbytes(size_t value, uint8_t num_bytes) return (value >> shift) <= 1; } - int cipher_encrypt_ccm(const cipher_t *cipher, const uint8_t *auth_data, uint32_t auth_data_len, uint8_t mac_length, uint8_t length_encoding, @@ -240,7 +237,6 @@ int cipher_encrypt_ccm(const cipher_t *cipher, return len + mac_length; } - int cipher_decrypt_ccm(const cipher_t *cipher, const uint8_t *auth_data, uint32_t auth_data_len, uint8_t mac_length, uint8_t length_encoding, diff --git a/sys/ecc/hamming256.c b/sys/ecc/hamming256.c index 56b57c8e6f..f92e404836 100644 --- a/sys/ecc/hamming256.c +++ b/sys/ecc/hamming256.c @@ -33,7 +33,6 @@ * */ - /*---------------------------------------------------------------------------- * Headers *----------------------------------------------------------------------------*/ diff --git a/sys/fs/constfs/constfs.c b/sys/fs/constfs/constfs.c index 4048d196fb..7a9bbfa886 100644 --- a/sys/fs/constfs/constfs.c +++ b/sys/fs/constfs/constfs.c @@ -75,7 +75,6 @@ static const vfs_dir_ops_t constfs_dir_ops = { .closedir = constfs_closedir, }; - const vfs_file_system_t constfs_file_system = { .f_op = &constfs_file_ops, .fs_op = &constfs_fs_ops, diff --git a/sys/hashes/md5.c b/sys/hashes/md5.c index ff6ad30b5d..3ccab4bf91 100644 --- a/sys/hashes/md5.c +++ b/sys/hashes/md5.c @@ -90,7 +90,6 @@ static const uint32_t T[4][16] = { 0xf7537e82, 0xbd3af235, 0x2ad7d2bb, 0xeb86d391 }, }; - /** * @brief md5F(), md5G(), md5H(), and md5I() are described in RFC 1321 * @@ -251,7 +250,6 @@ void md5_update(md5_ctx_t *ctx, const void *data, size_t len) } } - void md5_final(md5_ctx_t *ctx, void *digest) { uint32_t l; diff --git a/sys/hashes/sha256.c b/sys/hashes/sha256.c index 4109911bfe..124db252ff 100644 --- a/sys/hashes/sha256.c +++ b/sys/hashes/sha256.c @@ -51,7 +51,6 @@ #include "hashes/sha256.h" #include "hashes/sha2xx_common.h" - /* SHA-256 initialization. Begins a SHA-256 operation. */ void sha256_init(sha256_context_t *ctx) { @@ -85,7 +84,6 @@ void *sha256(const void *data, size_t len, void *digest) return digest; } - void hmac_sha256_init(hmac_context_t *ctx, const void *key, size_t key_length) { unsigned char k[SHA256_INTERNAL_BLOCK_SIZE]; diff --git a/sys/hashes/sha2xx_common.c b/sys/hashes/sha2xx_common.c index ddcd2942a0..ae8b99d443 100644 --- a/sys/hashes/sha2xx_common.c +++ b/sys/hashes/sha2xx_common.c @@ -51,7 +51,6 @@ #include "hashes/sha2xx_common.h" - #ifdef __BIG_ENDIAN__ /* Copy a vector of big-endian uint32_t into a vector of bytes */ #define be32enc_vect memcpy diff --git a/sys/hashes/sha3.c b/sys/hashes/sha3.c index a7af5182c6..aecdbe2e01 100644 --- a/sys/hashes/sha3.c +++ b/sys/hashes/sha3.c @@ -116,7 +116,6 @@ void sha3_256_final(keccak_state_t *ctx, void *digest) Keccak_final(ctx, digest, SHA3_256_DIGEST_LENGTH); } - /** * Function to compute SHA3-384 on the input message. The output length is fixed to 48 bytes. */ diff --git a/sys/include/app_metadata.h b/sys/include/app_metadata.h index 555bbea74d..9c128aa538 100644 --- a/sys/include/app_metadata.h +++ b/sys/include/app_metadata.h @@ -6,7 +6,6 @@ * directory for more details. */ - /** * @defgroup sys_app_metadata app_metadata * @ingroup sys diff --git a/sys/include/byteorder.h b/sys/include/byteorder.h index bafc20b624..4683bc7e89 100644 --- a/sys/include/byteorder.h +++ b/sys/include/byteorder.h @@ -33,7 +33,6 @@ extern "C" { /* ******************************* INTERFACE ******************************* */ - /** * @brief A 16 bit integer in little endian. * @details This is a wrapper around an uint16_t to catch missing conversions @@ -391,7 +390,6 @@ static inline uint32_t ntohl(uint32_t v); */ static inline uint64_t ntohll(uint64_t v); - /* **************************** IMPLEMENTATION ***************************** */ #ifdef HAVE_NO_BUILTIN_BSWAP16 diff --git a/sys/include/can/conn/raw.h b/sys/include/can/conn/raw.h index 91371adbbb..0a6673b038 100644 --- a/sys/include/can/conn/raw.h +++ b/sys/include/can/conn/raw.h @@ -134,7 +134,6 @@ int conn_can_raw_send(conn_can_raw_t *conn, const struct can_frame *frame, int f */ int conn_can_raw_set_filter(conn_can_raw_t *conn, struct can_filter *filter, size_t count); - #ifdef __cplusplus } #endif diff --git a/sys/include/checksum/crc16_ccitt.h b/sys/include/checksum/crc16_ccitt.h index 5d6279ea7d..3aa97b1ebb 100644 --- a/sys/include/checksum/crc16_ccitt.h +++ b/sys/include/checksum/crc16_ccitt.h @@ -61,7 +61,6 @@ uint16_t crc16_ccitt_update(uint16_t crc, const unsigned char *buf, size_t len); */ uint16_t crc16_ccitt_calc(const unsigned char *buf, size_t len); - #ifdef __cplusplus } #endif diff --git a/sys/include/checksum/fletcher16.h b/sys/include/checksum/fletcher16.h index 200a9e670a..0cbf37bf2b 100644 --- a/sys/include/checksum/fletcher16.h +++ b/sys/include/checksum/fletcher16.h @@ -77,8 +77,6 @@ void fletcher16_update(fletcher16_ctx_t *ctx, const uint8_t *data, size_t len); */ uint16_t fletcher16_finish(fletcher16_ctx_t *ctx); - - #ifdef __cplusplus } #endif diff --git a/sys/include/crypto/ciphers.h b/sys/include/crypto/ciphers.h index 152dc2b662..f1f6df0597 100644 --- a/sys/include/crypto/ciphers.h +++ b/sys/include/crypto/ciphers.h @@ -80,7 +80,6 @@ typedef struct { uint8_t context[CIPHER_MAX_CONTEXT_SIZE]; /**< buffer for cipher operations */ } cipher_context_t; - /** * @brief BlockCipher-Interface for the Cipher-Algorithms */ @@ -105,7 +104,6 @@ typedef struct cipher_interface_st { uint8_t *plain_block); } cipher_interface_t; - typedef const cipher_interface_t *cipher_id_t; /** @@ -132,7 +130,6 @@ typedef struct { for the algorithm */ } cipher_t; - /** * @brief Initialize new cipher state * @@ -151,7 +148,6 @@ typedef struct { int cipher_init(cipher_t *cipher, cipher_id_t cipher_id, const uint8_t *key, uint8_t key_size); - /** * @brief Encrypt data of BLOCK_SIZE length * * @@ -168,7 +164,6 @@ int cipher_init(cipher_t *cipher, cipher_id_t cipher_id, const uint8_t *key, int cipher_encrypt(const cipher_t *cipher, const uint8_t *input, uint8_t *output); - /** * @brief Decrypt data of BLOCK_SIZE length * * @@ -185,7 +180,6 @@ int cipher_encrypt(const cipher_t *cipher, const uint8_t *input, int cipher_decrypt(const cipher_t *cipher, const uint8_t *input, uint8_t *output); - /** * @brief Get block size of cipher * * @@ -196,7 +190,6 @@ int cipher_decrypt(const cipher_t *cipher, const uint8_t *input, */ int cipher_get_block_size(const cipher_t *cipher); - #ifdef __cplusplus } #endif diff --git a/sys/include/crypto/helper.h b/sys/include/crypto/helper.h index 569813c547..246574238c 100644 --- a/sys/include/crypto/helper.h +++ b/sys/include/crypto/helper.h @@ -37,7 +37,6 @@ extern "C" { */ void crypto_block_inc_ctr(uint8_t block[16], int L); - /** * @brief Compares two blocks of same size in deterministic time. * diff --git a/sys/include/crypto/modes/cbc.h b/sys/include/crypto/modes/cbc.h index f37cbdf530..914016f0f3 100644 --- a/sys/include/crypto/modes/cbc.h +++ b/sys/include/crypto/modes/cbc.h @@ -46,7 +46,6 @@ extern "C" { int cipher_encrypt_cbc(const cipher_t *cipher, uint8_t iv[16], const uint8_t *input, size_t input_len, uint8_t *output); - /** * @brief Decrypt encrypted data in cipher block chaining mode. * diff --git a/sys/include/crypto/modes/ccm.h b/sys/include/crypto/modes/ccm.h index 68d7c4c542..d8e11345c5 100644 --- a/sys/include/crypto/modes/ccm.h +++ b/sys/include/crypto/modes/ccm.h @@ -76,7 +76,6 @@ int cipher_encrypt_ccm(const cipher_t *cipher, const uint8_t *input, size_t input_len, uint8_t *output); - /** * @brief Decrypt data of arbitrary length in ccm mode. * diff --git a/sys/include/crypto/modes/ctr.h b/sys/include/crypto/modes/ctr.h index 336b36d9c0..7f65b44ab4 100644 --- a/sys/include/crypto/modes/ctr.h +++ b/sys/include/crypto/modes/ctr.h @@ -48,7 +48,6 @@ int cipher_encrypt_ctr(const cipher_t *cipher, uint8_t nonce_counter[16], uint8_t nonce_len, const uint8_t *input, size_t length, uint8_t *output); - /** * @brief Decrypt data of arbitrary length in counter mode. Encryption and * decryption in ctr mode are basically the same. diff --git a/sys/include/crypto/modes/ecb.h b/sys/include/crypto/modes/ecb.h index b07c21013b..45f03c065c 100644 --- a/sys/include/crypto/modes/ecb.h +++ b/sys/include/crypto/modes/ecb.h @@ -45,7 +45,6 @@ extern "C" { int cipher_encrypt_ecb(const cipher_t *cipher, const uint8_t *input, size_t length, uint8_t *output); - /** * @brief Decrypts data of arbitrary length in ecb mode. * diff --git a/sys/include/dbgpin.h b/sys/include/dbgpin.h index c5e11ddb98..72aae108c0 100644 --- a/sys/include/dbgpin.h +++ b/sys/include/dbgpin.h @@ -108,7 +108,6 @@ static inline size_t dbgpin_count(void) return ARRAY_SIZE(dbgpin_pins); } - /** * @brief Initialize the configured input pins */ diff --git a/sys/include/ecc/hamming256.h b/sys/include/ecc/hamming256.h index 4852505396..3d852fa893 100644 --- a/sys/include/ecc/hamming256.h +++ b/sys/include/ecc/hamming256.h @@ -24,7 +24,6 @@ extern "C" { #endif - /** No bit errors were detected in the message */ #define Hamming_ERROR_NONE 0 @@ -37,7 +36,6 @@ extern "C" { /** Multiple bits are incorrect in the data and they cannot be corrected. */ #define Hamming_ERROR_MULTIPLEBITS 3 - /** * @brief Computes 3-bytes hamming codes for a data block whose size is multiple of * 256 bytes. Each 256 bytes block gets its own code. @@ -48,7 +46,6 @@ extern "C" { */ void hamming_compute256x( const uint8_t *data, uint32_t size, uint8_t *code ); - /** * @brief Verifies 3-bytes hamming codes for a data block whose size is multiple of * 256 bytes. Each 256-bytes block is verified with its own code. @@ -63,7 +60,6 @@ void hamming_compute256x( const uint8_t *data, uint32_t size, uint8_t *code ); */ uint8_t hamming_verify256x( uint8_t *data, uint32_t size, const uint8_t *code ); - #ifdef __cplusplus } #endif diff --git a/sys/include/embUnit/Outputter.h b/sys/include/embUnit/Outputter.h index 6ea9048c02..5644cadb38 100644 --- a/sys/include/embUnit/Outputter.h +++ b/sys/include/embUnit/Outputter.h @@ -51,7 +51,6 @@ typedef void(*OutputterPrintSuccessfulFunction)(void*,TestRef,int); typedef void(*OutputterPrintFailureFunction)(void*,TestRef,char*,int,char*,int); typedef void(*OutputterPrintStatisticsFunction)(void*,TestResultRef); - struct __OutputterImplement { OutputterPrintHeaderFunction printHeader; OutputterPrintStartTestFunction printStartTest; diff --git a/sys/include/hashes.h b/sys/include/hashes.h index 2c3725d2f1..34d0b38ea0 100644 --- a/sys/include/hashes.h +++ b/sys/include/hashes.h @@ -142,7 +142,6 @@ uint32_t dek_hash(const uint8_t *buf, size_t len); */ uint32_t fnv_hash(const uint8_t *buf, size_t len); - /** * @defgroup sys_hashes_rotating Rotating * @ingroup sys_hashes_non_crypto diff --git a/sys/include/hashes/sha1.h b/sys/include/hashes/sha1.h index f9b791c47c..f157f4fb75 100644 --- a/sys/include/hashes/sha1.h +++ b/sys/include/hashes/sha1.h @@ -62,7 +62,6 @@ typedef struct { uint8_t inner_hash[SHA1_DIGEST_LENGTH]; } sha1_context; - /** * @brief Initialize SHA-1 message digest context * diff --git a/sys/include/hashes/sha224.h b/sys/include/hashes/sha224.h index 13d2692b40..ecfb1fc64c 100644 --- a/sys/include/hashes/sha224.h +++ b/sys/include/hashes/sha224.h @@ -30,7 +30,6 @@ * $FreeBSD: src/lib/libmd/sha256.h,v 1.1.2.1 2005/06/24 13:32:25 cperciva Exp $ */ - /** * @defgroup sys_hashes_sha224 SHA-224 * @ingroup sys_hashes_unkeyed diff --git a/sys/include/hashes/sha256.h b/sys/include/hashes/sha256.h index 800fb8b0ce..4fd83a5772 100644 --- a/sys/include/hashes/sha256.h +++ b/sys/include/hashes/sha256.h @@ -29,7 +29,6 @@ * $FreeBSD: src/lib/libmd/sha256.h,v 1.1.2.1 2005/06/24 13:32:25 cperciva Exp $ */ - /** * @defgroup sys_hashes_sha256 SHA-256 * @ingroup sys_hashes_unkeyed diff --git a/sys/include/hashes/sha2xx_common.h b/sys/include/hashes/sha2xx_common.h index 28e59e6522..1f676dda86 100644 --- a/sys/include/hashes/sha2xx_common.h +++ b/sys/include/hashes/sha2xx_common.h @@ -30,7 +30,6 @@ * $FreeBSD: src/lib/libmd/sha256.h,v 1.1.2.1 2005/06/24 13:32:25 cperciva Exp $ */ - /** * @defgroup sys_hashes_sha2xx_common SHA-2xx common * @ingroup sys_hashes_unkeyed diff --git a/sys/include/net/af.h b/sys/include/net/af.h index 1e4780ab33..a1fd0b566d 100644 --- a/sys/include/net/af.h +++ b/sys/include/net/af.h @@ -20,8 +20,6 @@ #ifndef NET_AF_H #define NET_AF_H - - #ifdef __cplusplus extern "C" { #endif diff --git a/sys/include/net/csma_sender.h b/sys/include/net/csma_sender.h index 524de9d801..7bf5763519 100644 --- a/sys/include/net/csma_sender.h +++ b/sys/include/net/csma_sender.h @@ -29,7 +29,6 @@ #include "net/netdev.h" - #ifdef __cplusplus extern "C" { #endif @@ -139,7 +138,6 @@ int csma_sender_csma_ca_send(netdev_t *dev, iolist_t *iolist, */ int csma_sender_cca_send(netdev_t *dev, iolist_t *iolist); - #ifdef __cplusplus } #endif diff --git a/sys/include/net/ethernet.h b/sys/include/net/ethernet.h index ac79d314f3..753f67450a 100644 --- a/sys/include/net/ethernet.h +++ b/sys/include/net/ethernet.h @@ -18,7 +18,6 @@ * @author Martine Lenders */ - #ifndef NET_ETHERNET_H #define NET_ETHERNET_H diff --git a/sys/include/net/ethernet/hdr.h b/sys/include/net/ethernet/hdr.h index 2742124ffe..6f4bf4951a 100644 --- a/sys/include/net/ethernet/hdr.h +++ b/sys/include/net/ethernet/hdr.h @@ -18,7 +18,6 @@ * @author Martine Lenders */ - #ifndef NET_ETHERNET_HDR_H #define NET_ETHERNET_HDR_H diff --git a/sys/include/net/ethertype.h b/sys/include/net/ethertype.h index b35fb0152b..5f132acc35 100644 --- a/sys/include/net/ethertype.h +++ b/sys/include/net/ethertype.h @@ -22,7 +22,6 @@ * @author Martine Lenders */ - #ifndef NET_ETHERTYPE_H #define NET_ETHERTYPE_H diff --git a/sys/include/net/fib.h b/sys/include/net/fib.h index 6e73cb39eb..42fe26295a 100644 --- a/sys/include/net/fib.h +++ b/sys/include/net/fib.h @@ -423,7 +423,6 @@ int fib_sr_entry_overwrite(fib_table_t *table, fib_sr_t *fib_sr, int fib_sr_entry_get_address(fib_table_t *table, fib_sr_t *fib_sr, fib_sr_entry_t *sr_path_entry, uint8_t *addr, size_t *addr_size); - /** * @brief copies a source route to the given destination * diff --git a/sys/include/net/gnrc/gomach/hdr.h b/sys/include/net/gnrc/gomach/hdr.h index 21d5532338..1113b6acad 100644 --- a/sys/include/net/gnrc/gomach/hdr.h +++ b/sys/include/net/gnrc/gomach/hdr.h @@ -117,7 +117,6 @@ typedef struct __attribute__((packed)) { gnrc_gomach_l2_addr_t dst_addr; /**< Address of this node. */ } gnrc_gomach_frame_preamble_t; - /** * @brief GoMacH preamble_ack frame. */ diff --git a/sys/include/net/gnrc/ipv6.h b/sys/include/net/gnrc/ipv6.h index 65dc661b70..7b7ac466ac 100644 --- a/sys/include/net/gnrc/ipv6.h +++ b/sys/include/net/gnrc/ipv6.h @@ -95,7 +95,6 @@ * @author Oliver Hahm */ - #ifndef NET_GNRC_IPV6_H #define NET_GNRC_IPV6_H @@ -116,7 +115,6 @@ extern "C" { #endif - /** * @defgroup net_gnrc_ipv6_conf GNRC IPv6 compile configurations * @ingroup net_gnrc_ipv6 diff --git a/sys/include/net/gnrc/ipv6/ext.h b/sys/include/net/gnrc/ipv6/ext.h index f7118cbcca..6280327b67 100644 --- a/sys/include/net/gnrc/ipv6/ext.h +++ b/sys/include/net/gnrc/ipv6/ext.h @@ -19,7 +19,6 @@ * @author Martine Lenders */ - #ifndef NET_GNRC_IPV6_EXT_H #define NET_GNRC_IPV6_EXT_H diff --git a/sys/include/net/gnrc/ipv6/nib/ft.h b/sys/include/net/gnrc/ipv6/nib/ft.h index 64f99328d1..c9a7ece23a 100644 --- a/sys/include/net/gnrc/ipv6/nib/ft.h +++ b/sys/include/net/gnrc/ipv6/nib/ft.h @@ -139,7 +139,6 @@ void gnrc_ipv6_nib_ft_del(const ipv6_addr_t *dst, unsigned dst_len); bool gnrc_ipv6_nib_ft_iter(const ipv6_addr_t *next_hop, unsigned iface, void **state, gnrc_ipv6_nib_ft_t *fte); - /** * @brief Prints a forwarding table entry * diff --git a/sys/include/net/gnrc/netapi.h b/sys/include/net/gnrc/netapi.h index b25344ed52..60c57e3dd0 100644 --- a/sys/include/net/gnrc/netapi.h +++ b/sys/include/net/gnrc/netapi.h @@ -141,7 +141,6 @@ int _gnrc_netapi_send_recv(kernel_pid_t pid, gnrc_pktsnip_t *pkt, uint16_t type) int _gnrc_netapi_get_set(kernel_pid_t pid, netopt_t opt, uint16_t context, void *data, size_t data_len, uint16_t type); - /** * @brief Shortcut function for sending @ref GNRC_NETAPI_MSG_TYPE_SND messages * diff --git a/sys/include/net/gnrc/netif/hdr.h b/sys/include/net/gnrc/netif/hdr.h index 396ad472a6..cb6489bf8f 100644 --- a/sys/include/net/gnrc/netif/hdr.h +++ b/sys/include/net/gnrc/netif/hdr.h @@ -217,7 +217,6 @@ static inline void gnrc_netif_hdr_set_src_addr(gnrc_netif_hdr_t *hdr, memcpy(((uint8_t *)(hdr + 1)), addr, addr_len); } - /** * @brief Get the destination address from the given header * diff --git a/sys/include/net/gnrc/netif/internal.h b/sys/include/net/gnrc/netif/internal.h index 4f26fad810..e56c6b9716 100644 --- a/sys/include/net/gnrc/netif/internal.h +++ b/sys/include/net/gnrc/netif/internal.h @@ -116,7 +116,6 @@ int gnrc_netif_ipv6_addr_add_internal(gnrc_netif_t *netif, void gnrc_netif_ipv6_addr_remove_internal(gnrc_netif_t *netif, const ipv6_addr_t *addr); - /** * @brief Returns the index of @p addr in gnrc_netif_t::ipv6_addrs of @p * netif diff --git a/sys/include/net/gnrc/pkt.h b/sys/include/net/gnrc/pkt.h index 6f8b371d8a..6e58e3a936 100644 --- a/sys/include/net/gnrc/pkt.h +++ b/sys/include/net/gnrc/pkt.h @@ -216,7 +216,6 @@ static inline gnrc_pktsnip_t *gnrc_pkt_delete(gnrc_pktsnip_t *pkt, return (gnrc_pktsnip_t *)list.next; } - /** * @brief Calculates length of a packet in byte up to (including) a snip with the given type. * diff --git a/sys/include/net/gnrc/rpl.h b/sys/include/net/gnrc/rpl.h index e5fb179075..06b7dd3863 100644 --- a/sys/include/net/gnrc/rpl.h +++ b/sys/include/net/gnrc/rpl.h @@ -433,7 +433,6 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B) #define GNRC_RPL_LEAF_NODE (2) /** @} */ - /** * @name RPL Control Message Options * @see diff --git a/sys/include/net/gnrc/sixlowpan/frag/stats.h b/sys/include/net/gnrc/sixlowpan/frag/stats.h index 7ca9636c36..164624dfff 100644 --- a/sys/include/net/gnrc/sixlowpan/frag/stats.h +++ b/sys/include/net/gnrc/sixlowpan/frag/stats.h @@ -24,7 +24,6 @@ extern "C" { #endif - /** * @brief Statistics on fragmentation and reassembly * @@ -50,7 +49,6 @@ typedef struct { */ gnrc_sixlowpan_frag_stats_t *gnrc_sixlowpan_frag_stats_get(void); - #ifdef __cplusplus } #endif diff --git a/sys/include/net/gnrc/sixlowpan/internal.h b/sys/include/net/gnrc/sixlowpan/internal.h index bf95d81caf..8c7bc5838f 100644 --- a/sys/include/net/gnrc/sixlowpan/internal.h +++ b/sys/include/net/gnrc/sixlowpan/internal.h @@ -55,7 +55,6 @@ void gnrc_sixlowpan_dispatch_recv(gnrc_pktsnip_t *pkt, void *context, void gnrc_sixlowpan_dispatch_send(gnrc_pktsnip_t *pkt, void *context, unsigned page); - /** * @brief Checks if packet fits over interface (and fragments if @ref * net_gnrc_sixlowpan_frag is available and required) diff --git a/sys/include/net/icmp.h b/sys/include/net/icmp.h index 0fc5eac991..a7645ac047 100644 --- a/sys/include/net/icmp.h +++ b/sys/include/net/icmp.h @@ -29,7 +29,6 @@ extern "C" { #endif - /** * @brief Echo request and response message format. * @@ -45,7 +44,6 @@ typedef struct __attribute__((packed)){ network_uint16_t sn; /**< sequence number */ } icmp_echo_t; - #ifdef __cplusplus } #endif diff --git a/sys/include/net/ipv4.h b/sys/include/net/ipv4.h index 55d37c36a9..ebbd588af0 100644 --- a/sys/include/net/ipv4.h +++ b/sys/include/net/ipv4.h @@ -26,7 +26,6 @@ extern "C" { #endif - #ifdef __cplusplus } #endif diff --git a/sys/include/net/ipv4/hdr.h b/sys/include/net/ipv4/hdr.h index f7b5a393eb..a9ac5fe352 100644 --- a/sys/include/net/ipv4/hdr.h +++ b/sys/include/net/ipv4/hdr.h @@ -90,7 +90,6 @@ typedef struct __attribute__((packed)) { ipv4_addr_t dst; /**< destination address of this packet */ } ipv4_hdr_t; - /** * @brief Sets the version field of @p hdr to 6 * diff --git a/sys/include/net/ipv6.h b/sys/include/net/ipv6.h index 90a7dd5289..58c37ccaec 100644 --- a/sys/include/net/ipv6.h +++ b/sys/include/net/ipv6.h @@ -41,6 +41,5 @@ extern "C" { } #endif - #endif /* NET_IPV6_H */ /** @} */ diff --git a/sys/include/net/ipv6/addr.h b/sys/include/net/ipv6/addr.h index 13b30e6f73..80cd7e4439 100644 --- a/sys/include/net/ipv6/addr.h +++ b/sys/include/net/ipv6/addr.h @@ -23,7 +23,6 @@ * @author Martine Lenders */ - #ifndef NET_IPV6_ADDR_H #define NET_IPV6_ADDR_H @@ -54,7 +53,6 @@ extern "C" { #define IPV6_ADDR_MAX_STR_LEN (sizeof("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff")) #endif - /** * @brief The first 10 bits of a site-local IPv6 unicast address * @@ -165,7 +163,6 @@ typedef union { 0x00, 0x00, 0x00, 0x00, \ 0x00, 0x00, 0x00, 0x02 }} - /** * @brief Static initializer for the site-local all routers multicast IPv6 * address (ff05::2) @@ -483,7 +480,6 @@ static inline bool ipv6_addr_is_global(const ipv6_addr_t *addr) } } - /** * @brief Check if @p addr is solicited-node multicast address. * @@ -502,7 +498,6 @@ static inline bool ipv6_addr_is_solicited_node(const ipv6_addr_t *addr) sizeof(ipv6_addr_t) - 3) == 0); } - /** * @brief Checks if two IPv6 addresses are equal. * diff --git a/sys/include/net/ipv6/hdr.h b/sys/include/net/ipv6/hdr.h index 771a0b9eaa..f240a54b35 100644 --- a/sys/include/net/ipv6/hdr.h +++ b/sys/include/net/ipv6/hdr.h @@ -217,7 +217,6 @@ static inline uint8_t ipv6_hdr_get_tc_ecn(const ipv6_hdr_t *hdr) return (((hdr->v_tc_fl.u8[0]) & 0x0c) >> 2); } - /** * @brief Gets the value of the Differentiated Service Codepoint (DSCP) part * of the traffic class field of @p hdr diff --git a/sys/include/net/l2util.h b/sys/include/net/l2util.h index bf27531919..1d08bbb7aa 100644 --- a/sys/include/net/l2util.h +++ b/sys/include/net/l2util.h @@ -133,7 +133,6 @@ int l2util_ipv6_iid_to_addr(int dev_type, const eui64_t *iid, uint8_t *addr); int l2util_ndp_addr_len_from_l2ao(int dev_type, const ndp_opt_t *opt); - /** * @brief Converts an IPv6 multicast address to a multicast address * of the respective link layer. diff --git a/sys/include/net/nanocoap.h b/sys/include/net/nanocoap.h index 79af57f1fe..dcefeb7617 100644 --- a/sys/include/net/nanocoap.h +++ b/sys/include/net/nanocoap.h @@ -258,7 +258,6 @@ extern const coap_resource_t coap_resources[]; */ extern const unsigned coap_resources_numof; - /** * @name Functions -- Header Read/Write * @@ -430,7 +429,6 @@ static inline void coap_hdr_set_type(coap_hdr_t *hdr, unsigned type) } /**@}*/ - /** * @name Functions -- Options Read * @@ -846,7 +844,6 @@ static inline unsigned coap_szx2size(unsigned szx) } /**@}*/ - /** * @name Functions -- Options Write Packet API * @@ -1190,7 +1187,6 @@ static inline ssize_t coap_opt_add_uri_path_buffer(coap_pkt_t *pkt, ssize_t coap_opt_finish(coap_pkt_t *pkt, uint16_t flags); /**@}*/ - /** * @name Functions -- Options Write Buffer API * @@ -1448,7 +1444,6 @@ static inline size_t coap_opt_put_proxy_uri(uint8_t *buf, uint16_t lastonum, return coap_opt_put_string(buf, lastonum, COAP_OPT_PROXY_URI, uri, '\0'); } - /** * @brief Insert block1 option into buffer (from coap_block1_t) * @@ -1522,7 +1517,6 @@ static inline size_t coap_put_option_ct(uint8_t *buf, uint16_t lastonum, } /**@}*/ - /** * @name Functions -- Messaging * @@ -1763,7 +1757,6 @@ extern ssize_t coap_well_known_core_default_handler(coap_pkt_t *pkt, \ void *context); /**@}*/ - /** * @brief Checks if a CoAP resource path matches a given URI * diff --git a/sys/include/net/netif.h b/sys/include/net/netif.h index 1d335f7f3c..e85272a4ee 100644 --- a/sys/include/net/netif.h +++ b/sys/include/net/netif.h @@ -188,7 +188,6 @@ int netif_get_opt(netif_t *netif, netopt_t opt, uint16_t context, int netif_set_opt(netif_t *netif, netopt_t opt, uint16_t context, void *value, size_t value_len); - /** * @brief Registers a network interface in the global interface list. * diff --git a/sys/include/net/ppp/hdr.h b/sys/include/net/ppp/hdr.h index 679f15ec10..9e0f74cb1f 100644 --- a/sys/include/net/ppp/hdr.h +++ b/sys/include/net/ppp/hdr.h @@ -29,7 +29,6 @@ extern "C" { #endif - /** * @brief Header of a PPP packet * @details A PPP packet is transmitted as a payload of an HDLC packet. PPP packets only carry information about control protocol diff --git a/sys/include/net/ppptype.h b/sys/include/net/ppptype.h index 067baa283c..d47bab9087 100644 --- a/sys/include/net/ppptype.h +++ b/sys/include/net/ppptype.h @@ -23,7 +23,6 @@ * */ - #ifndef NET_PPPTYPE_H #define NET_PPPTYPE_H @@ -31,7 +30,6 @@ extern "C" { #endif - #define PPPTYPE_IPV6 (0x0057) /**< IPv6 packet in PPP*/ #define PPPTYPE_IPV4 (0x0021) /**< IPv4 packet in PPP */ #define PPPTYPE_NCP_IPV6 (0x8057) /**< NCP packet for IPV6*/ diff --git a/sys/include/net/protnum.h b/sys/include/net/protnum.h index fd3800c2b2..54b48d7be6 100644 --- a/sys/include/net/protnum.h +++ b/sys/include/net/protnum.h @@ -26,7 +26,6 @@ #ifndef NET_PROTNUM_H #define NET_PROTNUM_H - #ifdef __cplusplus extern "C" { #endif diff --git a/sys/include/net/sock.h b/sys/include/net/sock.h index 6fb24f227b..7845a4d577 100644 --- a/sys/include/net/sock.h +++ b/sys/include/net/sock.h @@ -144,7 +144,6 @@ extern "C" { #define SOCK_FLAGS_REUSE_EP (0x0001) /**< allow to reuse end point on bind */ /** @} */ - /** * @brief Special netif ID for "any interface" * @todo Use an equivalent definition from PR #5511 diff --git a/sys/include/ps.h b/sys/include/ps.h index fe971a578c..78f2871c48 100644 --- a/sys/include/ps.h +++ b/sys/include/ps.h @@ -6,7 +6,6 @@ * directory for more details. */ - /** * @defgroup sys_ps PS * @ingroup sys diff --git a/sys/include/puf_sram.h b/sys/include/puf_sram.h index e7044cc7e6..33c4a9fd0d 100644 --- a/sys/include/puf_sram.h +++ b/sys/include/puf_sram.h @@ -124,7 +124,6 @@ void puf_sram_generate(const uint8_t *ram, size_t len); */ bool puf_sram_softreset(void); - #ifdef __cplusplus } #endif diff --git a/sys/include/random.h b/sys/include/random.h index 5bf23185eb..9e920b0b1f 100644 --- a/sys/include/random.h +++ b/sys/include/random.h @@ -6,7 +6,6 @@ * directory for more details. */ - /** * @defgroup sys_random Random * @ingroup sys diff --git a/sys/include/test_utils/interactive_sync.h b/sys/include/test_utils/interactive_sync.h index d5bd8aa015..25193ad2b0 100644 --- a/sys/include/test_utils/interactive_sync.h +++ b/sys/include/test_utils/interactive_sync.h @@ -21,7 +21,6 @@ #ifndef TEST_UTILS_INTERACTIVE_SYNC_H #define TEST_UTILS_INTERACTIVE_SYNC_H - #ifdef __cplusplus extern "C" { #endif @@ -38,7 +37,6 @@ void test_utils_interactive_sync(void); static inline void test_utils_interactive_sync(void) {} #endif - #ifdef __cplusplus } #endif diff --git a/sys/include/timex.h b/sys/include/timex.h index caf3d4594d..c88fe486b8 100644 --- a/sys/include/timex.h +++ b/sys/include/timex.h @@ -7,7 +7,6 @@ * directory for more details. */ - /** * @defgroup sys_timex Timex * @brief Timestamp representation, computation, and conversion diff --git a/sys/include/trickle.h b/sys/include/trickle.h index 994af9d73c..95cf220872 100644 --- a/sys/include/trickle.h +++ b/sys/include/trickle.h @@ -39,7 +39,6 @@ #include "xtimer.h" #endif - /** * @brief Trickle callback function with arguments */ diff --git a/sys/include/tsrb.h b/sys/include/tsrb.h index 8095d8adc7..9d766242b8 100644 --- a/sys/include/tsrb.h +++ b/sys/include/tsrb.h @@ -81,7 +81,6 @@ static inline int tsrb_empty(const tsrb_t *rb) return retval; } - /** * @brief Get number of bytes available for reading * @param[in] rb Ringbuffer to operate on diff --git a/sys/include/universal_address.h b/sys/include/universal_address.h index 9f6c4bcdc5..9e0b13198b 100644 --- a/sys/include/universal_address.h +++ b/sys/include/universal_address.h @@ -128,7 +128,6 @@ uint8_t* universal_address_get_address(universal_address_container_t *entry, int universal_address_compare(universal_address_container_t *entry, uint8_t *addr, size_t *addr_size_in_bits); - /** * @brief Determine if the entry equals the provided prefix * This function requires to be provided with the full size of the used diff --git a/sys/include/usb/cdc.h b/sys/include/usb/cdc.h index 7b7250107a..de375a75af 100644 --- a/sys/include/usb/cdc.h +++ b/sys/include/usb/cdc.h @@ -296,7 +296,6 @@ typedef struct __attribute__((packed)) { #define USB_CDC_ACM_CODING_PARITY_SPACE 4 /**< Space parity */ /** @} */ - /** @} */ #ifdef __cplusplus diff --git a/sys/include/usb/usbopt.h b/sys/include/usb/usbopt.h index 672fb280d2..71e6ba57d3 100644 --- a/sys/include/usb/usbopt.h +++ b/sys/include/usb/usbopt.h @@ -113,7 +113,6 @@ typedef enum USBOPT_ENABLE = 1, /**< enable a given option */ } usbopt_enable_t; - #ifdef __cplusplus } #endif diff --git a/sys/include/usb/usbus.h b/sys/include/usb/usbus.h index 9af1c5a644..b4e43f0e3e 100644 --- a/sys/include/usb/usbus.h +++ b/sys/include/usb/usbus.h @@ -606,7 +606,6 @@ static inline bool usbus_handler_isset_flag(usbus_handler_t *handler, return handler->flags & flag; } - #ifdef __cplusplus } #endif diff --git a/sys/include/usb/usbus/control.h b/sys/include/usb/usbus/control.h index ed4ea56221..068e85766f 100644 --- a/sys/include/usb/usbus/control.h +++ b/sys/include/usb/usbus/control.h @@ -27,7 +27,6 @@ extern "C" { #endif - /** * @brief helper struct to divide control messages in multiple parts */ diff --git a/sys/include/utlist.h b/sys/include/utlist.h index 71b9694d65..66b7f165db 100644 --- a/sys/include/utlist.h +++ b/sys/include/utlist.h @@ -192,7 +192,6 @@ do { } \ } while (0) - #define DL_SORT(list, cmp) \ DL_SORT2(list, cmp, prev, next) @@ -732,7 +731,6 @@ do { } while (0) /** @} */ - /** * @name Circular doubly linked list macros * @{ diff --git a/sys/include/uuid.h b/sys/include/uuid.h index 65063c9fb8..92c35e0382 100644 --- a/sys/include/uuid.h +++ b/sys/include/uuid.h @@ -72,7 +72,6 @@ typedef struct __attribute__((packed)) { uint8_t node[UUID_NODE_LEN]; /**< The spatially unique node identifier */ } uuid_t; - /** * @name Namespace IDs from RFC4122 * @@ -97,7 +96,6 @@ extern const uuid_t uuid_namespace_x500; /**< X.500 DN namespace UUID */ */ void uuid_v3(uuid_t *uuid, const uuid_t *ns, const uint8_t *name, size_t len); - /** * Generate a version 4(Full random) UUID * diff --git a/sys/include/xtimer/implementation.h b/sys/include/xtimer/implementation.h index 56eec32948..6c9c185fda 100644 --- a/sys/include/xtimer/implementation.h +++ b/sys/include/xtimer/implementation.h @@ -35,7 +35,6 @@ #include "irq.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/sys/isrpipe/read_timeout/read_timeout.c b/sys/isrpipe/read_timeout/read_timeout.c index d009131ffc..95f9c83f2e 100644 --- a/sys/isrpipe/read_timeout/read_timeout.c +++ b/sys/isrpipe/read_timeout/read_timeout.c @@ -56,7 +56,6 @@ int isrpipe_read_timeout(isrpipe_t *isrpipe, uint8_t *buffer, size_t count, uint return res; } - int isrpipe_read_all_timeout(isrpipe_t *isrpipe, uint8_t *buffer, size_t count, uint32_t timeout) { uint8_t *pos = buffer; diff --git a/sys/net/application_layer/asymcute/asymcute.c b/sys/net/application_layer/asymcute/asymcute.c index b2d9b67b4d..cf6a4cab32 100644 --- a/sys/net/application_layer/asymcute/asymcute.c +++ b/sys/net/application_layer/asymcute/asymcute.c @@ -161,7 +161,6 @@ static void _compile_sub_unsub(asymcute_req_t *req, asymcute_con_t *con, size_t topic_len = strlen(sub->topic->name); size_t pos = _len_set(req->data, (topic_len + 4)); - req->msg_id = _msg_id_next(con); req->data[pos] = type; req->data[pos + 1] = sub->topic->flags; @@ -631,7 +630,6 @@ int asymcute_topic_init(asymcute_topic_t *topic, const char *topic_name, { assert(topic); - size_t len = 0; if (asymcute_topic_is_reg(topic)) { diff --git a/sys/net/application_layer/cord/common/cord_common.c b/sys/net/application_layer/cord/common/cord_common.c index 19c3900ae9..73815f5e28 100644 --- a/sys/net/application_layer/cord/common/cord_common.c +++ b/sys/net/application_layer/cord/common/cord_common.c @@ -27,7 +27,6 @@ #define ENABLE_DEBUG 0 #include "debug.h" - #ifdef CONFIG_CORD_EP #define BUFSIZE (sizeof(CONFIG_CORD_EP)) /* contains \0 termination char */ #else diff --git a/sys/net/application_layer/gcoap/gcoap.c b/sys/net/application_layer/gcoap/gcoap.c index d98c24275b..20fab4bba6 100644 --- a/sys/net/application_layer/gcoap/gcoap.c +++ b/sys/net/application_layer/gcoap/gcoap.c @@ -980,7 +980,6 @@ static ssize_t _tl_authenticate(gcoap_socket_t *sock, const sock_udp_ep_t *remot #endif } - /* * gcoap interface functions */ diff --git a/sys/net/gnrc/link_layer/mac/timeout.c b/sys/net/gnrc/link_layer/mac/timeout.c index adac2d0761..426ded41c4 100644 --- a/sys/net/gnrc/link_layer/mac/timeout.c +++ b/sys/net/gnrc/link_layer/mac/timeout.c @@ -46,7 +46,6 @@ void gnrc_mac_init_timeouts(gnrc_mac_timeout_t *mac_timeout, evtimer_init_msg(&mac_timeout->evtimer); } - int gnrc_mac_find_timeout(gnrc_mac_timeout_t *mac_timeout, gnrc_mac_timeout_type_t type) { assert(mac_timeout); diff --git a/sys/net/gnrc/netif/gnrc_netif_raw.c b/sys/net/gnrc/netif/gnrc_netif_raw.c index 2a6d5188d2..bf6dbeaf02 100644 --- a/sys/net/gnrc/netif/gnrc_netif_raw.c +++ b/sys/net/gnrc/netif/gnrc_netif_raw.c @@ -24,7 +24,6 @@ #define IP_VERSION4 (0x40U) #define IP_VERSION6 (0x60U) - static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt); static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif); diff --git a/sys/net/gnrc/netif/hdr/gnrc_netif_hdr_print.c b/sys/net/gnrc/netif/hdr/gnrc_netif_hdr_print.c index 275ea31705..fa382fd935 100644 --- a/sys/net/gnrc/netif/hdr/gnrc_netif_hdr_print.c +++ b/sys/net/gnrc/netif/hdr/gnrc_netif_hdr_print.c @@ -41,7 +41,6 @@ void gnrc_netif_hdr_print(gnrc_netif_hdr_t *hdr) puts("0x0"); } - if (hdr->src_l2addr_len > 0) { printf("src_l2addr: %s\n", gnrc_netif_addr_to_str(gnrc_netif_hdr_get_src_addr(hdr), diff --git a/sys/net/gnrc/netif/init_devs/auto_init_enc28j60.c b/sys/net/gnrc/netif/init_devs/auto_init_enc28j60.c index 691acd8e5e..f3fb0e9ee6 100644 --- a/sys/net/gnrc/netif/init_devs/auto_init_enc28j60.c +++ b/sys/net/gnrc/netif/init_devs/auto_init_enc28j60.c @@ -53,7 +53,6 @@ static gnrc_netif_t _netif[ENC28J60_NUM]; */ static char stack[ENC28J60_NUM][ENC28J60_MAC_STACKSIZE]; - void auto_init_enc28j60(void) { for (unsigned i = 0; i < ENC28J60_NUM; i++) { diff --git a/sys/net/gnrc/netif/init_devs/auto_init_w5100.c b/sys/net/gnrc/netif/init_devs/auto_init_w5100.c index 983d142f4b..805142ef6f 100644 --- a/sys/net/gnrc/netif/init_devs/auto_init_w5100.c +++ b/sys/net/gnrc/netif/init_devs/auto_init_w5100.c @@ -49,7 +49,6 @@ static gnrc_netif_t _netif[W5100_NUM]; */ static char stack[W5100_NUM][MAC_STACKSIZE]; - void auto_init_w5100(void) { for (unsigned i = 0; i < W5100_NUM; i++) { diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.c b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.c index c2a209cfdb..290c3b2314 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.c +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.c @@ -315,5 +315,4 @@ uint32_t _handle_6co(const icmpv6_hdr_t *icmpv6, typedef int dont_be_pedantic; #endif /* CONFIG_GNRC_IPV6_NIB_6LN */ - /** @} */ diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.h index dca4eee612..677c70b162 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6ln.h @@ -150,7 +150,6 @@ uint32_t _handle_6co(const icmpv6_hdr_t *icmpv6, #endif /* CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C || defined(DOXYGEN) */ #endif /* CONFIG_GNRC_IPV6_NIB_6LN || defined(DOXYGEN) */ - #ifdef __cplusplus } #endif diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h index 44dd896bae..fcdbf61dc0 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-6lr.h @@ -97,7 +97,6 @@ uint8_t _reg_addr_upstream(gnrc_netif_t *netif, const ipv6_hdr_t *ipv6, const sixlowpan_nd_opt_ar_t *aro, const ndp_opt_t *sl2ao, _nib_onl_entry_t *nce); - /** * @brief Handles and copies ARO from NS to NA * diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.h index c1da3916f7..2fac219135 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-arsm.h @@ -163,7 +163,6 @@ void _probe_nbr(_nib_onl_entry_t *nbr, bool reset); void _handle_adv_l2(gnrc_netif_t *netif, _nib_onl_entry_t *nce, const icmpv6_hdr_t *icmpv6, const ndp_opt_t *tl2ao); - /** * @brief Recalculates the (randomized) reachable time of on a network * interface. diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/gnrc_sixlowpan_frag_vrb.c b/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/gnrc_sixlowpan_frag_vrb.c index 1e6c7797fb..1ceacbdac6 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/gnrc_sixlowpan_frag_vrb.c +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/gnrc_sixlowpan_frag_vrb.c @@ -46,7 +46,6 @@ static inline bool _equal_index(const gnrc_sixlowpan_frag_vrb_t *vrbe, (memcmp(vrbe->super.src, src, src_len) == 0)); } - gnrc_sixlowpan_frag_vrb_t *gnrc_sixlowpan_frag_vrb_add( const gnrc_sixlowpan_frag_rb_base_t *base, gnrc_netif_t *out_netif, const uint8_t *out_dst, size_t out_dst_len) diff --git a/sys/net/gnrc/routing/rpl/gnrc_rpl_of_manager.c b/sys/net/gnrc/routing/rpl/gnrc_rpl_of_manager.c index 1d1fa8db72..ffb4602835 100644 --- a/sys/net/gnrc/routing/rpl/gnrc_rpl_of_manager.c +++ b/sys/net/gnrc/routing/rpl/gnrc_rpl_of_manager.c @@ -18,8 +18,6 @@ * @} */ - - #include "net/gnrc/rpl.h" #include "net/gnrc/rpl/of_manager.h" #include "of0.h" diff --git a/sys/net/gnrc/sock/include/gnrc_sock_internal.h b/sys/net/gnrc/sock/include/gnrc_sock_internal.h index 80dff66be3..9392315a35 100644 --- a/sys/net/gnrc/sock/include/gnrc_sock_internal.h +++ b/sys/net/gnrc/sock/include/gnrc_sock_internal.h @@ -158,7 +158,6 @@ ssize_t gnrc_sock_send(gnrc_pktsnip_t *payload, sock_ip_ep_t *local, * @} */ - #ifdef __cplusplus } #endif diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c index 674ce9db9c..551fd454c7 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c @@ -125,7 +125,6 @@ static void _close(gnrc_tcp_tcb_t *tcb) TCP_DEBUG_LEAVE; } - static void _abort(gnrc_tcp_tcb_t *tcb) { TCP_DEBUG_ENTER; diff --git a/sys/net/link_layer/csma_sender/csma_sender.c b/sys/net/link_layer/csma_sender/csma_sender.c index 33b50875c5..e9eedfe42b 100644 --- a/sys/net/link_layer/csma_sender/csma_sender.c +++ b/sys/net/link_layer/csma_sender/csma_sender.c @@ -69,7 +69,6 @@ static inline uint32_t choose_backoff_period(int be, return period; } - /** * @brief Perform a CCA and send the given packet if medium is available * @@ -189,7 +188,6 @@ int csma_sender_csma_ca_send(netdev_t *dev, iolist_t *iolist, return -EBUSY; } - int csma_sender_cca_send(netdev_t *dev, iolist_t *iolist) { netopt_enable_t hwfeat; diff --git a/sys/net/link_layer/eui_provider/include/eui48_provider_params.h b/sys/net/link_layer/eui_provider/include/eui48_provider_params.h index fc1bc946c2..a7b64363c2 100644 --- a/sys/net/link_layer/eui_provider/include/eui48_provider_params.h +++ b/sys/net/link_layer/eui_provider/include/eui48_provider_params.h @@ -66,7 +66,6 @@ extern "C" { }, #endif - /** * @name EUI-48 sources on the board * diff --git a/sys/net/link_layer/eui_provider/include/eui64_provider_params.h b/sys/net/link_layer/eui_provider/include/eui64_provider_params.h index d685694758..32b159c7f8 100644 --- a/sys/net/link_layer/eui_provider/include/eui64_provider_params.h +++ b/sys/net/link_layer/eui_provider/include/eui64_provider_params.h @@ -66,7 +66,6 @@ extern "C" { }, #endif - /** * @name EUI-64 sources on the board * diff --git a/sys/net/network_layer/ipv4/addr/ipv4_addr_from_str.c b/sys/net/network_layer/ipv4/addr/ipv4_addr_from_str.c index 7d76b78daf..5182f03287 100644 --- a/sys/net/network_layer/ipv4/addr/ipv4_addr_from_str.c +++ b/sys/net/network_layer/ipv4/addr/ipv4_addr_from_str.c @@ -88,5 +88,4 @@ ipv4_addr_t *ipv4_addr_from_str(ipv4_addr_t *result, const char *addr) return ipv4_addr_from_buf(result, addr, strlen(addr)); } - /** @} */ diff --git a/sys/net/sock/async/event/sock_async_ctx.h b/sys/net/sock/async/event/sock_async_ctx.h index 44c607eea1..6da0ddbdd9 100644 --- a/sys/net/sock/async/event/sock_async_ctx.h +++ b/sys/net/sock/async/event/sock_async_ctx.h @@ -66,7 +66,6 @@ typedef struct { event_queue_t *queue; /**< event queue to post socket events to */ } sock_async_ctx_t; - #ifdef __cplusplus } #endif diff --git a/sys/posix/include/sys/socket.h b/sys/posix/include/sys/socket.h index a95b591305..3514b160a7 100644 --- a/sys/posix/include/sys/socket.h +++ b/sys/posix/include/sys/socket.h @@ -135,7 +135,6 @@ struct sockaddr_storage { uint8_t ss_data[SOCKADDR_MAX_DATA_LEN]; /**< Socket address */ }; - /** * @brief Accept a new connection on a socket * @details The accept() function shall extract the first connection on the diff --git a/sys/posix/sockets/posix_sockets.c b/sys/posix/sockets/posix_sockets.c index 5901a7559f..78175d5723 100644 --- a/sys/posix/sockets/posix_sockets.c +++ b/sys/posix/sockets/posix_sockets.c @@ -483,7 +483,6 @@ int socket(int domain, int type, int protocol) return res; } - int accept(int socket, struct sockaddr *restrict address, socklen_t *restrict address_len) { diff --git a/sys/random/fortuna/fortuna.h b/sys/random/fortuna/fortuna.h index 06318dfcb0..2283ebd16d 100644 --- a/sys/random/fortuna/fortuna.h +++ b/sys/random/fortuna/fortuna.h @@ -55,7 +55,6 @@ extern "C" { #define FORTUNA_MIN_POOL_SIZE (64U) #endif - /** * @brief Definition of the seed file size used to initialize the PRNG. The * default value of 64 bytes is suggested by section 9.6.1. diff --git a/sys/random/mersenne.c b/sys/random/mersenne.c index 042539835c..2d3afda92e 100644 --- a/sys/random/mersenne.c +++ b/sys/random/mersenne.c @@ -35,7 +35,6 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - Any feedback is very welcome. http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space) diff --git a/sys/riotboot/flashwrite.c b/sys/riotboot/flashwrite.c index b468cb013b..c327847f9b 100644 --- a/sys/riotboot/flashwrite.c +++ b/sys/riotboot/flashwrite.c @@ -56,7 +56,6 @@ int riotboot_flashwrite_init_raw(riotboot_flashwrite_t *state, int target_slot, "Flashpage buffer must be a multiple of write block size."); #endif - LOG_INFO(LOG_PREFIX "initializing update to target slot %i\n", target_slot); @@ -140,7 +139,6 @@ int riotboot_flashwrite_putbytes(riotboot_flashwrite_t *state, memcpy(state->flashpage_buf + flashwrite_buffer_pos, bytes, to_copy); flashpage_avail -= to_copy; - state->offset += to_copy; bytes += to_copy; len -= to_copy; diff --git a/sys/saul_reg/saul_reg.c b/sys/saul_reg/saul_reg.c index 01abe99cb4..06fa19bbe9 100644 --- a/sys/saul_reg/saul_reg.c +++ b/sys/saul_reg/saul_reg.c @@ -30,7 +30,6 @@ */ saul_reg_t *saul_reg = NULL; - int saul_reg_add(saul_reg_t *dev) { saul_reg_t *tmp = saul_reg; diff --git a/sys/shell/commands/sc_can.c b/sys/shell/commands/sc_can.c index 8628b0284a..d1986a7fbf 100644 --- a/sys/shell/commands/sc_can.c +++ b/sys/shell/commands/sc_can.c @@ -18,7 +18,6 @@ * @} */ - #include #include #include diff --git a/sys/shell/commands/sc_ccnl.c b/sys/shell/commands/sc_ccnl.c index e8e78468a7..a00cda8b03 100644 --- a/sys/shell/commands/sc_ccnl.c +++ b/sys/shell/commands/sc_ccnl.c @@ -73,7 +73,6 @@ int _ccnl_open(int argc, char **argv) return 0; } - static void _content_usage(char *argv) { printf("usage: %s [URI] [content]\n" diff --git a/sys/shell/commands/sc_gnrc_ipv6_frag_stats.c b/sys/shell/commands/sc_gnrc_ipv6_frag_stats.c index 388bc99c19..56c8ed19cc 100644 --- a/sys/shell/commands/sc_gnrc_ipv6_frag_stats.c +++ b/sys/shell/commands/sc_gnrc_ipv6_frag_stats.c @@ -31,5 +31,4 @@ int _gnrc_ipv6_frag_stats(int argc, char **argv) return 0; } - /** @} */ diff --git a/sys/shell/commands/sc_rtc.c b/sys/shell/commands/sc_rtc.c index 675b4b381c..22bbd92089 100644 --- a/sys/shell/commands/sc_rtc.c +++ b/sys/shell/commands/sc_rtc.c @@ -42,7 +42,6 @@ static int dow(int year, int month, int day) return (year + year/4 - year/100 + year/400 + t[month-1] + day) % 7; } - static int _parse_time(char **argv, struct tm *time) { short i; diff --git a/sys/shell/commands/sc_suit.c b/sys/shell/commands/sc_suit.c index 89e0320f09..0539ba5e77 100644 --- a/sys/shell/commands/sc_suit.c +++ b/sys/shell/commands/sc_suit.c @@ -24,7 +24,6 @@ #include "suit/transport/coap.h" - int _suit_handler(int argc, char **argv) { if (argc != 2) { diff --git a/sys/stdio_rtt/stdio_rtt.c b/sys/stdio_rtt/stdio_rtt.c index 1802da4830..fe846eb615 100644 --- a/sys/stdio_rtt/stdio_rtt.c +++ b/sys/stdio_rtt/stdio_rtt.c @@ -59,7 +59,6 @@ * * **********************************************************************/ - /** * @ingroup sys * @{ @@ -166,7 +165,6 @@ typedef struct { down from host via debug probe to target */ } segger_rtt_cb_t; - /** * @brief The SEGGER Real-Time-Terminal control block (CB) */ @@ -178,7 +176,6 @@ static segger_rtt_cb_t rtt_cb = { {{ "Terminal", &down_buffer[0], sizeof(down_buffer), 0, 0, 0 }}, }; - /** * @brief read bytes from the down buffer. This function does not block. * The logic here is unmodified from SEGGER's reference, it is just diff --git a/sys/suit/handlers_envelope.c b/sys/suit/handlers_envelope.c index 0b955d73a5..4a1df3087d 100644 --- a/sys/suit/handlers_envelope.c +++ b/sys/suit/handlers_envelope.c @@ -100,7 +100,6 @@ static int _auth_handler(suit_manifest_t *manifest, int key, } } - return res; } diff --git a/sys/usb/usbus/usbus.c b/sys/usb/usbus/usbus.c index e8b5af3dc4..94f344cbdc 100644 --- a/sys/usb/usbus/usbus.c +++ b/sys/usb/usbus/usbus.c @@ -347,7 +347,6 @@ static void _event_cb(usbdev_t *usbdev, usbdev_event_t event) } } - /* USB generic endpoint callback */ static void _event_ep_cb(usbdev_ep_t *ep, usbdev_event_t event) { diff --git a/sys/vfs/vfs.c b/sys/vfs/vfs.c index a312e98474..caee0db189 100644 --- a/sys/vfs/vfs.c +++ b/sys/vfs/vfs.c @@ -311,7 +311,6 @@ ssize_t vfs_read(int fd, void *dest, size_t count) return filp->f_op->read(filp, dest, count); } - ssize_t vfs_write(int fd, const void *src, size_t count) { DEBUG_NOT_STDOUT(fd, "vfs_write: %d, %p, %lu\n", fd, src, (unsigned long)count); @@ -489,7 +488,6 @@ int vfs_mount(vfs_mount_t *mountp) return 0; } - int vfs_umount(vfs_mount_t *mountp) { DEBUG("vfs_umount: %p\n", (void *)mountp); diff --git a/tests/bench_mutex_pingpong/main.c b/tests/bench_mutex_pingpong/main.c index 447f54da76..356719fc37 100644 --- a/tests/bench_mutex_pingpong/main.c +++ b/tests/bench_mutex_pingpong/main.c @@ -40,7 +40,6 @@ static void _timer_callback(void*arg) _flag = 1; } - static void *_second_thread(void *arg) { (void)arg; diff --git a/tests/bench_sizeof_coretypes/main.c b/tests/bench_sizeof_coretypes/main.c index b8cce4f193..099f735ac0 100644 --- a/tests/bench_sizeof_coretypes/main.c +++ b/tests/bench_sizeof_coretypes/main.c @@ -38,7 +38,6 @@ #endif #include "thread.h" - #define P(NAME) printf(" tcb->%-11s %3u %3u\n", #NAME, \ (unsigned)sizeof(((thread_t *) 0)->NAME), \ (unsigned)offsetof(thread_t, NAME)) diff --git a/tests/bench_xtimer_load/main.c b/tests/bench_xtimer_load/main.c index a48c0ea0a7..5f1fd66c49 100644 --- a/tests/bench_xtimer_load/main.c +++ b/tests/bench_xtimer_load/main.c @@ -193,7 +193,6 @@ int main(void) THREAD_CREATE_STACKTEST, worker_thread, NULL, "worker"); - printf("TEST_HZ=%lu\n", TEST_HZ); puts("[START]"); diff --git a/tests/bitarithm_timings/main.c b/tests/bitarithm_timings/main.c index cbf824ed61..00b6c76993 100644 --- a/tests/bitarithm_timings/main.c +++ b/tests/bitarithm_timings/main.c @@ -16,7 +16,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ - /** * @ingroup tests * @{ diff --git a/tests/build_system_cflags_spaces/main.c b/tests/build_system_cflags_spaces/main.c index 62cc2efb49..ab89817167 100644 --- a/tests/build_system_cflags_spaces/main.c +++ b/tests/build_system_cflags_spaces/main.c @@ -26,7 +26,6 @@ #define STRING_FROM_DOCKER "" #endif - int main(void) { puts("The output of the configuration variables:"); diff --git a/tests/driver_at86rf215/main.c b/tests/driver_at86rf215/main.c index 81e229c965..5366a0b6aa 100644 --- a/tests/driver_at86rf215/main.c +++ b/tests/driver_at86rf215/main.c @@ -147,7 +147,6 @@ static int cmd_set_clock_out(int argc, char **argv) freq = tmp; } - gnrc_netif_t *netif = gnrc_netif_get_by_type(NETDEV_AT86RF215, 0); if (netif == NULL) { diff --git a/tests/driver_itg320x/main.c b/tests/driver_itg320x/main.c index 99b0b02b98..2fc736251e 100644 --- a/tests/driver_itg320x/main.c +++ b/tests/driver_itg320x/main.c @@ -61,7 +61,6 @@ static void itg320x_isr_data_ready (void *arg) } #endif - int main(void) { itg320x_t dev; diff --git a/tests/driver_lis3dh/main.c b/tests/driver_lis3dh/main.c index a1b9dfddb9..38d8712517 100644 --- a/tests/driver_lis3dh/main.c +++ b/tests/driver_lis3dh/main.c @@ -26,7 +26,6 @@ #include "lis3dh.h" #include "lis3dh_params.h" - #define SLEEP_USEC (100 * 1000U) #define WATERMARK_LEVEL 16 diff --git a/tests/driver_lpd8808/main.c b/tests/driver_lpd8808/main.c index 3d6bd5ce7c..2c3ce83f63 100644 --- a/tests/driver_lpd8808/main.c +++ b/tests/driver_lpd8808/main.c @@ -43,7 +43,6 @@ static lpd8808_t dev; */ static color_rgb_t leds[LPD8808_PARAM_LED_CNT]; - int main(void) { xtimer_ticks32_t now = xtimer_now(); diff --git a/tests/driver_motor_driver/main.c b/tests/driver_motor_driver/main.c index e3557cd3d7..4370b5301a 100644 --- a/tests/driver_motor_driver/main.c +++ b/tests/driver_motor_driver/main.c @@ -32,7 +32,6 @@ #define MOTOR_0_ID 0 #define MOTOR_1_ID 1 - void motors_control(int32_t duty_cycle) { char str[6]; diff --git a/tests/driver_nrf24l01p_lowlevel/main.c b/tests/driver_nrf24l01p_lowlevel/main.c index f62fd501dd..8e6a44f37a 100644 --- a/tests/driver_nrf24l01p_lowlevel/main.c +++ b/tests/driver_nrf24l01p_lowlevel/main.c @@ -31,7 +31,6 @@ #error "IRQ_PIN not defined" #endif - #include #include #include diff --git a/tests/driver_ph_oem/main.c b/tests/driver_ph_oem/main.c index 0592580a9e..d814eded7c 100644 --- a/tests/driver_ph_oem/main.c +++ b/tests/driver_ph_oem/main.c @@ -59,7 +59,6 @@ static void reading_available_event_callback(event_t *event) printf("pH reading was taken at %d Celsius\n", data); } - static void interrupt_pin_callback(void *arg) { puts("\n[IRQ - Reading done. Writing read-event to event queue]"); diff --git a/tests/driver_pn532/main.c b/tests/driver_pn532/main.c index d4d7e857e6..1d1c92adc3 100644 --- a/tests/driver_pn532/main.c +++ b/tests/driver_pn532/main.c @@ -60,7 +60,6 @@ int main(void) pn532_fw_version(&pn532, &fwver); LOG_INFO("ver %d.%d\n", (unsigned)PN532_FW_VERSION(fwver), (unsigned)PN532_FW_REVISION(fwver)); - ret = pn532_sam_configuration(&pn532, PN532_SAM_NORMAL, 1000); LOG_INFO("set sam %d\n", ret); diff --git a/tests/driver_soft_uart/main.c b/tests/driver_soft_uart/main.c index a551e41574..1104babb8b 100644 --- a/tests/driver_soft_uart/main.c +++ b/tests/driver_soft_uart/main.c @@ -268,7 +268,6 @@ int main(void) "being printed to STDOUT\n\n" "NOTE: all strings need to be '\\n' terminated!\n"); - puts("\nUART INFO:"); printf("Available devices: %i\n", SOFT_UART_NUMOF); diff --git a/tests/external_board_native/main.c b/tests/external_board_native/main.c index 0efb2e39d1..6f6015fe45 100644 --- a/tests/external_board_native/main.c +++ b/tests/external_board_native/main.c @@ -29,6 +29,5 @@ int main(void) printf("THIS_BOARD_IS %s\n", THIS_BOARD_IS); printf("This board is '%s'\n", external_native_board_description); - return 0; } diff --git a/tests/gnrc_ipv6_ext_frag/main.c b/tests/gnrc_ipv6_ext_frag/main.c index 67705bf6e4..e7e0c52b6c 100644 --- a/tests/gnrc_ipv6_ext_frag/main.c +++ b/tests/gnrc_ipv6_ext_frag/main.c @@ -302,7 +302,6 @@ static void test_ipv6_ext_frag_reass_out_of_order(void) gnrc_ipv6_ext_frag_rbuf_t *rbuf; gnrc_ipv6_ext_frag_limits_t *ptr; - ipv6->nh = PROTNUM_IPV6_EXT_FRAG; ipv6->hl = TEST_HL; ipv6->len = byteorder_htons(pkt->size); @@ -412,7 +411,6 @@ static void test_ipv6_ext_frag_reass_out_of_order_rbuf_full(void) gnrc_ipv6_ext_frag_limits_t *ptr; static const uint32_t foreign_id = TEST_ID + 44U; - TEST_ASSERT_EQUAL_INT(1, CONFIG_GNRC_IPV6_EXT_FRAG_RBUF_SIZE); /* prepare fragment from a from a foreign datagram */ ipv6->nh = PROTNUM_IPV6_EXT_FRAG; diff --git a/tests/gnrc_ipv6_fwd_w_sub/common.h b/tests/gnrc_ipv6_fwd_w_sub/common.h index 33620c4cee..eb6091f0d1 100644 --- a/tests/gnrc_ipv6_fwd_w_sub/common.h +++ b/tests/gnrc_ipv6_fwd_w_sub/common.h @@ -39,7 +39,6 @@ extern gnrc_netif_t *_mock_netif; void _tests_init(void); - #ifdef __cplusplus } #endif diff --git a/tests/gnrc_ipv6_nib/common.h b/tests/gnrc_ipv6_nib/common.h index 265801c9f1..20a105f1be 100644 --- a/tests/gnrc_ipv6_nib/common.h +++ b/tests/gnrc_ipv6_nib/common.h @@ -41,7 +41,6 @@ void _tests_init(void); int _mock_netif_get(gnrc_netapi_opt_t *opt); void _common_set_up(void); - #ifdef __cplusplus } #endif diff --git a/tests/gnrc_ipv6_nib_6ln/common.h b/tests/gnrc_ipv6_nib_6ln/common.h index 8338c70610..16d92e71fc 100644 --- a/tests/gnrc_ipv6_nib_6ln/common.h +++ b/tests/gnrc_ipv6_nib_6ln/common.h @@ -43,7 +43,6 @@ void _tests_init(void); int _mock_netif_get(gnrc_netapi_opt_t *opt); void _common_set_up(void); - #ifdef __cplusplus } #endif diff --git a/tests/gnrc_mac_timeout/main.c b/tests/gnrc_mac_timeout/main.c index 1dcad248a2..cd00eed78f 100644 --- a/tests/gnrc_mac_timeout/main.c +++ b/tests/gnrc_mac_timeout/main.c @@ -38,7 +38,6 @@ static uint32_t start_time; static char worker_stack[THREAD_STACKSIZE_MAIN]; - /* This thread will print the drift to stdout once per second */ void *worker_thread(void *arg) { @@ -113,7 +112,6 @@ int main(void) printf("Set timeout_2, should be expired at %" PRIu32 " ms)\n", TIMEOUT_2_DURATION + start_time); printf("Set timeout_3, should be expired at %" PRIu32 " ms)\n", TIMEOUT_3_DURATION + start_time); - puts("Are the reception times of all 3 msgs close to the supposed values?\n"); puts("If yes, the tests were successful"); } diff --git a/tests/gnrc_netif/common.c b/tests/gnrc_netif/common.c index a47ad14ae9..c1edbb69f9 100644 --- a/tests/gnrc_netif/common.c +++ b/tests/gnrc_netif/common.c @@ -159,7 +159,6 @@ static int _get_netdev_max_packet_size(netdev_t *netdev, void *value, size_t max return sizeof(uint16_t); } - void _tests_init(void) { msg_init_queue(_main_msg_queue, MSG_QUEUE_SIZE); diff --git a/tests/gnrc_netif/common.h b/tests/gnrc_netif/common.h index 836cedf828..1fe539ceb7 100644 --- a/tests/gnrc_netif/common.h +++ b/tests/gnrc_netif/common.h @@ -19,7 +19,6 @@ #ifndef COMMON_H #define COMMON_H - #include "net/gnrc/netif.h" #ifdef __cplusplus diff --git a/tests/gnrc_netif_ieee802154/main.c b/tests/gnrc_netif_ieee802154/main.c index a4078a7287..957d01fb5f 100644 --- a/tests/gnrc_netif_ieee802154/main.c +++ b/tests/gnrc_netif_ieee802154/main.c @@ -17,7 +17,6 @@ #include "net/gnrc/netif.h" #include "net/gnrc/pktdump.h" - int main(void) { char addr_str[GNRC_NETIF_L2ADDR_MAXLEN * 3]; diff --git a/tests/gnrc_sixlowpan/main.c b/tests/gnrc_sixlowpan/main.c index 7ca5e86feb..d7a3c20e01 100644 --- a/tests/gnrc_sixlowpan/main.c +++ b/tests/gnrc_sixlowpan/main.c @@ -95,7 +95,6 @@ static int _get_netdev_addr_long(netdev_t *netdev, void *value, size_t max_len) return sizeof(_ieee802154_local_eui64); } - static void _init_interface(void) { netdev_test_setup(&_ieee802154_dev, NULL); diff --git a/tests/gnrc_sixlowpan_frag_minfwd/common.h b/tests/gnrc_sixlowpan_frag_minfwd/common.h index 5d8b4833b8..1c6bd3031b 100644 --- a/tests/gnrc_sixlowpan_frag_minfwd/common.h +++ b/tests/gnrc_sixlowpan_frag_minfwd/common.h @@ -42,7 +42,6 @@ extern gnrc_netif_t *_mock_netif; void _tests_init(void); void _common_set_up(void); - #ifdef __cplusplus } #endif diff --git a/tests/gnrc_sock_ip/constants.h b/tests/gnrc_sock_ip/constants.h index 0f26b7cecc..ab29de8495 100644 --- a/tests/gnrc_sock_ip/constants.h +++ b/tests/gnrc_sock_ip/constants.h @@ -20,7 +20,6 @@ #ifndef CONSTANTS_H #define CONSTANTS_H - #ifdef __cplusplus extern "C" { #endif diff --git a/tests/gnrc_sock_ip/stack.c b/tests/gnrc_sock_ip/stack.c index 3f23ffccd3..a3658b9635 100644 --- a/tests/gnrc_sock_ip/stack.c +++ b/tests/gnrc_sock_ip/stack.c @@ -77,7 +77,6 @@ static gnrc_pktsnip_t *_build_ipv6_packet(const ipv6_addr_t *src, return gnrc_pkt_append(payload, netif_hdr_snip); } - bool _inject_packet_aux(const ipv6_addr_t *src, const ipv6_addr_t *dst, uint8_t proto, void *data, size_t data_len, uint16_t netif, const inject_aux_t *aux) diff --git a/tests/gnrc_sock_ip/stack.h b/tests/gnrc_sock_ip/stack.h index 75484ae631..e4d5b9b831 100644 --- a/tests/gnrc_sock_ip/stack.h +++ b/tests/gnrc_sock_ip/stack.h @@ -111,7 +111,6 @@ bool _check_net(void); bool _check_packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, uint8_t proto, void *data, size_t data_len, uint16_t netif); - #ifdef __cplusplus } #endif diff --git a/tests/gnrc_sock_udp/constants.h b/tests/gnrc_sock_udp/constants.h index 87fba4c4a9..45c0395e68 100644 --- a/tests/gnrc_sock_udp/constants.h +++ b/tests/gnrc_sock_udp/constants.h @@ -20,7 +20,6 @@ #ifndef CONSTANTS_H #define CONSTANTS_H - #ifdef __cplusplus extern "C" { #endif diff --git a/tests/gnrc_sock_udp/stack.c b/tests/gnrc_sock_udp/stack.c index f3957f5b8f..925084da25 100644 --- a/tests/gnrc_sock_udp/stack.c +++ b/tests/gnrc_sock_udp/stack.c @@ -15,7 +15,6 @@ * @} */ - #include "msg.h" #include "net/gnrc/ipv6.h" #include "net/gnrc/netif/hdr.h" diff --git a/tests/gnrc_sock_udp/stack.h b/tests/gnrc_sock_udp/stack.h index e8adc5d7c4..fbd1bf3d40 100644 --- a/tests/gnrc_sock_udp/stack.h +++ b/tests/gnrc_sock_udp/stack.h @@ -118,7 +118,6 @@ bool _check_packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, void *data, size_t data_len, uint16_t netif, bool random_src_port); - #ifdef __cplusplus } #endif diff --git a/tests/ieee802154_hal/main.c b/tests/ieee802154_hal/main.c index 18a9b8bcb3..302e35ffe3 100644 --- a/tests/ieee802154_hal/main.c +++ b/tests/ieee802154_hal/main.c @@ -116,7 +116,6 @@ static event_t _crc_error_event = { .handler = _crc_error_handler, }; - void _rx_done_handler(event_t *event) { (void) event; diff --git a/tests/irq/main.c b/tests/irq/main.c index 5ebdd4ffb0..74a47a2f16 100644 --- a/tests/irq/main.c +++ b/tests/irq/main.c @@ -48,7 +48,6 @@ void *busy_thread(void *arg) return NULL; } - int main(void) { puts("START"); diff --git a/tests/leds/main.c b/tests/leds/main.c index 8ff384870f..0c1bb366b1 100644 --- a/tests/leds/main.c +++ b/tests/leds/main.c @@ -87,7 +87,6 @@ int main(void) puts("Will now light up each LED once short and twice long in a loop"); } - while (1) { #ifdef LED0_ON LED0_ON; diff --git a/tests/libc_newlib/main.c b/tests/libc_newlib/main.c index 6136e57fa1..62dcc039e3 100644 --- a/tests/libc_newlib/main.c +++ b/tests/libc_newlib/main.c @@ -26,7 +26,6 @@ #include #include "embUnit.h" - #ifdef MODULE_NEWLIB #include @@ -44,7 +43,6 @@ #endif /* MODULE_NEWLIB */ - /* Newlib-nano removed the integer only 'iprintf' functions which are now mapped * to printf. * @@ -74,7 +72,6 @@ static void test_newlib(void) #endif } - static Test *tests_newlib(void) { EMB_UNIT_TESTFIXTURES(fixtures) { diff --git a/tests/lwip_sock_ip/constants.h b/tests/lwip_sock_ip/constants.h index 352a0edd94..5a7df40e47 100644 --- a/tests/lwip_sock_ip/constants.h +++ b/tests/lwip_sock_ip/constants.h @@ -20,7 +20,6 @@ #ifndef CONSTANTS_H #define CONSTANTS_H - #ifdef __cplusplus extern "C" { #endif diff --git a/tests/lwip_sock_ip/stack.c b/tests/lwip_sock_ip/stack.c index 11e0f4aac7..efc7c74263 100644 --- a/tests/lwip_sock_ip/stack.c +++ b/tests/lwip_sock_ip/stack.c @@ -15,7 +15,6 @@ * @} */ - #include "msg.h" #include "net/ethernet.h" #include "net/ipv6.h" diff --git a/tests/lwip_sock_ip/stack.h b/tests/lwip_sock_ip/stack.h index 0985026f74..243be854a3 100644 --- a/tests/lwip_sock_ip/stack.h +++ b/tests/lwip_sock_ip/stack.h @@ -114,7 +114,6 @@ bool _check_4packet(uint32_t src, uint32_t dst, uint8_t proto, bool _check_6packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, uint8_t proto, void *data, size_t data_len, uint16_t netif); - #ifdef __cplusplus } #endif diff --git a/tests/lwip_sock_tcp/constants.h b/tests/lwip_sock_tcp/constants.h index 168bc0e398..a474863343 100644 --- a/tests/lwip_sock_tcp/constants.h +++ b/tests/lwip_sock_tcp/constants.h @@ -20,7 +20,6 @@ #ifndef CONSTANTS_H #define CONSTANTS_H - #ifdef __cplusplus extern "C" { #endif diff --git a/tests/lwip_sock_tcp/stack.c b/tests/lwip_sock_tcp/stack.c index fd34c23436..a494dd5d18 100644 --- a/tests/lwip_sock_tcp/stack.c +++ b/tests/lwip_sock_tcp/stack.c @@ -14,7 +14,6 @@ * @} */ - #include "xtimer.h" #include "lwip.h" diff --git a/tests/lwip_sock_udp/constants.h b/tests/lwip_sock_udp/constants.h index a2e9540e94..d7e115ad54 100644 --- a/tests/lwip_sock_udp/constants.h +++ b/tests/lwip_sock_udp/constants.h @@ -20,7 +20,6 @@ #ifndef CONSTANTS_H #define CONSTANTS_H - #ifdef __cplusplus extern "C" { #endif diff --git a/tests/lwip_sock_udp/main.c b/tests/lwip_sock_udp/main.c index 8cbb0dda9c..1e7f8a9fd6 100644 --- a/tests/lwip_sock_udp/main.c +++ b/tests/lwip_sock_udp/main.c @@ -423,7 +423,6 @@ static void test_sock_udp_recv4__aux(void) expect(_check_net()); } - static void test_sock_udp_recv_buf4__success(void) { static const sock_udp_ep_t local = { .family = AF_INET, diff --git a/tests/lwip_sock_udp/stack.c b/tests/lwip_sock_udp/stack.c index 1ce253f15b..ff7ed87693 100644 --- a/tests/lwip_sock_udp/stack.c +++ b/tests/lwip_sock_udp/stack.c @@ -14,7 +14,6 @@ * @} */ - #include "msg.h" #include "net/ethernet.h" #include "net/ipv6.h" diff --git a/tests/lwip_sock_udp/stack.h b/tests/lwip_sock_udp/stack.h index 4a98fa88d2..1864fa0257 100644 --- a/tests/lwip_sock_udp/stack.h +++ b/tests/lwip_sock_udp/stack.h @@ -124,7 +124,6 @@ bool _check_6packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, void *data, size_t data_len, uint16_t netif, bool random_src_port); - #ifdef __cplusplus } #endif diff --git a/tests/memarray/main.c b/tests/memarray/main.c index a9507552bd..b00f790b15 100644 --- a/tests/memarray/main.c +++ b/tests/memarray/main.c @@ -39,7 +39,6 @@ #define NUMBER_OF_LOOPS (1) #endif - extern int _ps_handler(int argc, char **argv); struct block_t { diff --git a/tests/netutils/mock_dns.c b/tests/netutils/mock_dns.c index e8eb37ffb3..994047f1c2 100644 --- a/tests/netutils/mock_dns.c +++ b/tests/netutils/mock_dns.c @@ -28,7 +28,6 @@ int sock_dns_query(const char *domain_name, void *addr_out, int family) } }; - if (family != AF_INET6) { return -EAFNOSUPPORT; } diff --git a/tests/nimble_l2cap/main.c b/tests/nimble_l2cap/main.c index 8f19551f12..5a03a503c0 100644 --- a/tests/nimble_l2cap/main.c +++ b/tests/nimble_l2cap/main.c @@ -144,7 +144,6 @@ static void _filter_and_connect(struct ble_gap_disc_desc *disc) int res; bluetil_ad_t ad; - /* we use the bluetil module read-only here, so its save to cast the AD * buffer to non-const */ bluetil_ad_init(&ad, (uint8_t *)disc->data, diff --git a/tests/pbkdf2/main.c b/tests/pbkdf2/main.c index b865fc61ec..b5c219939e 100644 --- a/tests/pbkdf2/main.c +++ b/tests/pbkdf2/main.c @@ -42,7 +42,6 @@ enum TEST_STATE { TEST_ERROR }; - static void _clear_input(void) { /* clear input buffer */ diff --git a/tests/periph_adc/main.c b/tests/periph_adc/main.c index f8062ea217..9a39283f21 100644 --- a/tests/periph_adc/main.c +++ b/tests/periph_adc/main.c @@ -24,11 +24,9 @@ #include "timex.h" #include "periph/adc.h" - #define RES ADC_RES_10BIT #define DELAY (100LU * US_PER_MS) /* 100 ms */ - int main(void) { xtimer_ticks32_t last = xtimer_now(); diff --git a/tests/periph_dac/main.c b/tests/periph_dac/main.c index a5da2eb793..de645f6ae2 100644 --- a/tests/periph_dac/main.c +++ b/tests/periph_dac/main.c @@ -24,7 +24,6 @@ #include "xtimer.h" #include "periph/dac.h" - #define DELAY (100U) #define STEPS (1000U) diff --git a/tests/periph_eeprom/main.c b/tests/periph_eeprom/main.c index eb340a1da0..e6d10009e6 100644 --- a/tests/periph_eeprom/main.c +++ b/tests/periph_eeprom/main.c @@ -277,7 +277,6 @@ static int cmd_test(int argc, char **argv) return 0; } - static const shell_command_t shell_commands[] = { { "info", "Print information about eeprom", cmd_info }, { "read", "Read bytes from eeprom", cmd_read }, diff --git a/tests/periph_flashpage/main.c b/tests/periph_flashpage/main.c index b00d67afc4..324cb168d0 100644 --- a/tests/periph_flashpage/main.c +++ b/tests/periph_flashpage/main.c @@ -404,7 +404,6 @@ static int cmd_test_last_raw(int argc, char **argv) return 0; } - #ifdef FLASHPAGE_RWWEE_NUMOF static int getpage_rwwee(const char *str) @@ -462,7 +461,6 @@ static int cmd_write_rwwee(int argc, char **argv) return 0; } - static int cmd_test_rwwee(int argc, char **argv) { int page; diff --git a/tests/periph_i2c/main.c b/tests/periph_i2c/main.c index 6a9c9b4257..367bfa162f 100644 --- a/tests/periph_i2c/main.c +++ b/tests/periph_i2c/main.c @@ -75,7 +75,6 @@ static inline int _get_num(const char *str) return (int)val; } - static int _check_param(int argc, char **argv, int c_min, int c_max, char *use) { int dev; diff --git a/tests/periph_ptp_clock/main.c b/tests/periph_ptp_clock/main.c index 425573fcf1..06dbac2b26 100644 --- a/tests/periph_ptp_clock/main.c +++ b/tests/periph_ptp_clock/main.c @@ -141,7 +141,6 @@ static void clock_adj_cb(void *arg, int chan) mutex_unlock(&sync_mutex); } - static int test_clock_adjustment(int32_t offset) { /* Record one extra sample, to throw away the first measurement */ diff --git a/tests/periph_spi/main.c b/tests/periph_spi/main.c index e68a779639..fe4899e7eb 100644 --- a/tests/periph_spi/main.c +++ b/tests/periph_spi/main.c @@ -530,7 +530,6 @@ int cmd_bench(int argc, char **argv) sum += (stop - start); sched_sum += sched_diff_us; - xtimer_sleep(1); printf("-- - SUM:\t\t\t\t\t%"PRIu32"\t%"PRIu32"\n", sum, sched_sum); diff --git a/tests/periph_uart_mode/main.c b/tests/periph_uart_mode/main.c index b37d44796b..33e16f944b 100644 --- a/tests/periph_uart_mode/main.c +++ b/tests/periph_uart_mode/main.c @@ -50,7 +50,6 @@ #define DELAY_US 50000 #endif - /* Stores each mode string for printing at the end of the test */ static char mode_strings[TOTAL_OPTIONS][MODE_STR_LEN]; @@ -127,7 +126,6 @@ static void _get_mode(const uart_data_bits_t data_bits, mode_str[MODE_STR_LEN - 1] = '\0'; } - int main(void) { int8_t status; diff --git a/tests/pkg_edhoc_c/edhoc_keys.h b/tests/pkg_edhoc_c/edhoc_keys.h index 1178df7bcd..5fe7130620 100644 --- a/tests/pkg_edhoc_c/edhoc_keys.h +++ b/tests/pkg_edhoc_c/edhoc_keys.h @@ -126,7 +126,6 @@ static const uint8_t resp_cbor_rpk[] = { 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x60 }; - /* responder CBOR-encoded rpk identifier */ static const uint8_t resp_cbor_rpk_id[] = { 0xa1, 0x04, 0x41, 0x05 diff --git a/tests/pkg_edhoc_c/initiator.c b/tests/pkg_edhoc_c/initiator.c index ecca88ff57..a35337d60a 100644 --- a/tests/pkg_edhoc_c/initiator.c +++ b/tests/pkg_edhoc_c/initiator.c @@ -17,7 +17,6 @@ * @author Francisco Molina */ - #include #include "net/ipv6.h" diff --git a/tests/pkg_fatfs/main.c b/tests/pkg_fatfs/main.c index 5a39d840ce..90eeb452a1 100644 --- a/tests/pkg_fatfs/main.c +++ b/tests/pkg_fatfs/main.c @@ -398,7 +398,6 @@ int main(void) rtc_set_time(&time); #endif - #if MODULE_MTD_NATIVE fatfs_mtd_devs[0] = mtd0; #elif MODULE_MTD_SDCARD diff --git a/tests/pkg_fatfs_vfs/main.c b/tests/pkg_fatfs_vfs/main.c index e69a67d9fa..89b0b19d9b 100644 --- a/tests/pkg_fatfs_vfs/main.c +++ b/tests/pkg_fatfs_vfs/main.c @@ -215,7 +215,6 @@ static void test_dir(void) print_test_result("test_dir__umount", vfs_umount(&_test_vfs_mount) == 0); } - static void test_rename(void) { vfs_DIR dir; diff --git a/tests/pkg_libfixmath/main.c b/tests/pkg_libfixmath/main.c index 6b39b73237..b2529b38c2 100644 --- a/tests/pkg_libfixmath/main.c +++ b/tests/pkg_libfixmath/main.c @@ -77,7 +77,6 @@ static void binary_ops(void) continue; } - for (unsigned o = 0; o < ARRAY_SIZE(ops); ++o) { fix16_t c = ops[o].fun(a, b); diff --git a/tests/pkg_lvgl_touch/main.c b/tests/pkg_lvgl_touch/main.c index acb40e3b58..ebddae4385 100644 --- a/tests/pkg_lvgl_touch/main.c +++ b/tests/pkg_lvgl_touch/main.c @@ -25,7 +25,6 @@ #include "disp_dev.h" - static void btn_event_cb(lv_obj_t * btn, lv_event_t event) { (void)btn; diff --git a/tests/pkg_micro-ecc/main.c b/tests/pkg_micro-ecc/main.c index 885e3b920d..a210937bbf 100644 --- a/tests/pkg_micro-ecc/main.c +++ b/tests/pkg_micro-ecc/main.c @@ -122,7 +122,6 @@ int main(void) printf("Testing %d random private key pairs and signature without using HWRNG\n", TESTROUNDS); - for (int i = 0; i < TESTROUNDS; ++i) { printf("Round %d\n", i); diff --git a/tests/pkg_relic/main.c b/tests/pkg_relic/main.c index 92366e7f8e..551e4fba0a 100644 --- a/tests/pkg_relic/main.c +++ b/tests/pkg_relic/main.c @@ -6,7 +6,6 @@ * directory for more details. */ - #define TEST_RELIC_SHOW_OUTPUT (0) /**< set if encoded/decoded string is displayed */ #if (TEST_RELIC_SHOW_OUTPUT == 1) diff --git a/tests/pkg_tiny-asn1/main.c b/tests/pkg_tiny-asn1/main.c index b2c44ca0eb..f89e520a32 100644 --- a/tests/pkg_tiny-asn1/main.c +++ b/tests/pkg_tiny-asn1/main.c @@ -34,7 +34,6 @@ void print_hex(uint8_t *data, unsigned int len) printf("\n"); } - void print_asn1(asn1_tree *list, int depth) { printf("d=%d, Tag: %02x, len=%" PRIu32 "\n", depth, list->type, list->length); @@ -51,8 +50,6 @@ void print_asn1(asn1_tree *list, int depth) } } - - int main(void) { /* Created with echo "12345678901234567890"|openssl cms -EncryptedData_encrypt -aes128 -secretkey 39904F36D98779D00F9A2B8139D2957F -outform der|xxd --i */ @@ -176,7 +173,6 @@ int main(void) printf("Encrypted content:\n"); print_hex(encrypted_content->data, encrypted_content->length); - } asn1_tree *unprotected_attrs = encrypted_content_info->next; diff --git a/tests/pkg_wolfcrypt-ed25519-verify/main.c b/tests/pkg_wolfcrypt-ed25519-verify/main.c index c53dc7364f..3646c34d00 100644 --- a/tests/pkg_wolfcrypt-ed25519-verify/main.c +++ b/tests/pkg_wolfcrypt-ed25519-verify/main.c @@ -43,7 +43,6 @@ const uint8_t msg_signature[ED25519_SIG_SIZE] = { 0xB5, 0x48, 0x26, 0x45, 0xD6, 0xC7, 0x00, 0x06 }; - int main(void) { int stat; diff --git a/tests/pkg_wolfcrypt-ed25519-verify/tools/ed25519_sign_msg.c b/tests/pkg_wolfcrypt-ed25519-verify/tools/ed25519_sign_msg.c index 7c54e6e634..8df1c1e183 100644 --- a/tests/pkg_wolfcrypt-ed25519-verify/tools/ed25519_sign_msg.c +++ b/tests/pkg_wolfcrypt-ed25519-verify/tools/ed25519_sign_msg.c @@ -26,7 +26,6 @@ void print_sig(void *sig_in) od_hex_dump(sig, ED25519_SIG_SIZE, 8); } - int main(void) { uint8_t priv[ED25519_KEY_SIZE], pub[ED25519_KEY_SIZE]; diff --git a/tests/pthread_tls/main.c b/tests/pthread_tls/main.c index 8ab829f338..2c1f59be99 100644 --- a/tests/pthread_tls/main.c +++ b/tests/pthread_tls/main.c @@ -129,7 +129,6 @@ void *run(void *parameter) void* test_7_val = pthread_getspecific(new_key); printf("test_7_val: %p\n", test_7_val); - return NULL; } diff --git a/tests/rng/main.c b/tests/rng/main.c index 8ba8828e73..95ebd922b1 100644 --- a/tests/rng/main.c +++ b/tests/rng/main.c @@ -110,7 +110,6 @@ static int cmd_dump(int argc, char **argv) printf("usage: %s [samples] [lower-bound upper-bound]\n", argv[0]); } - return 0; } diff --git a/tests/saul/main.c b/tests/saul/main.c index 3849973128..1442f3197c 100644 --- a/tests/saul/main.c +++ b/tests/saul/main.c @@ -28,7 +28,6 @@ */ #define INTERVAL (1LU * US_PER_SEC) - int main(void) { phydat_t res; diff --git a/tests/sema/main.c b/tests/sema/main.c index 2453b9c582..48ee5edd2b 100644 --- a/tests/sema/main.c +++ b/tests/sema/main.c @@ -62,7 +62,6 @@ static void *second_thread(void *arg) return NULL; } - int main(void) { int thread_success = 0; diff --git a/tests/struct_tm_utility/main.c b/tests/struct_tm_utility/main.c index 2565688519..804ea50423 100644 --- a/tests/struct_tm_utility/main.c +++ b/tests/struct_tm_utility/main.c @@ -49,7 +49,6 @@ bool proper_atoi(const char *a, int *i) return (a != end) && (*end == '\0'); } - static int cmd_days_in(int argc, char **argv) { int mon; diff --git a/tests/suit_manifest/main.c b/tests/suit_manifest/main.c index df5d64d8a1..c0de3628d7 100644 --- a/tests/suit_manifest/main.c +++ b/tests/suit_manifest/main.c @@ -76,7 +76,6 @@ static int test_suit_manifest(const unsigned char *manifest_bin, char _url[SUIT_URL_MAX]; suit_manifest_t manifest; - memset(&manifest, 0, sizeof(manifest)); manifest.urlbuf = _url; diff --git a/tests/sys_crypto/tests-crypto-modes-cbc.c b/tests/sys_crypto/tests-crypto-modes-cbc.c index bd3f1e0bd3..d4b555ea89 100644 --- a/tests/sys_crypto/tests-crypto-modes-cbc.c +++ b/tests/sys_crypto/tests-crypto-modes-cbc.c @@ -24,7 +24,6 @@ * http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf */ - /* PACKET VECTOR #1 (Page 27) */ static uint8_t TEST_1_KEY[] = { 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, @@ -241,7 +240,6 @@ static void test_crypto_modes_cbc_decrypt(void) TEST_CIPHER_LEN, TEST_PLAIN, TEST_PLAIN_LEN); } - Test *tests_crypto_modes_cbc_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { diff --git a/tests/sys_crypto/tests-crypto-modes-ccm.c b/tests/sys_crypto/tests-crypto-modes-ccm.c index d623e9fde5..950022c6cc 100644 --- a/tests/sys_crypto/tests-crypto-modes-ccm.c +++ b/tests/sys_crypto/tests-crypto-modes-ccm.c @@ -890,7 +890,6 @@ static const uint8_t TEST_WYCHEPROOF_28_EXPECTED[] = { }; static const size_t TEST_WYCHEPROOF_28_EXPECTED_LEN = 63; - /* Manually created test vectors */ /* This is necessary, because no test vectors are published with input length > 256 */ /* Data has been verified against BouncyCastle (.NET Core) and pycryptodome */ @@ -1162,7 +1161,6 @@ static void test_decrypt_op(const uint8_t *key, uint8_t key_len, ); \ } while (0) - static void test_crypto_modes_ccm_encrypt(void) { do_test_encrypt_op(RFC_1); @@ -1254,7 +1252,6 @@ static void test_crypto_modes_ccm_decrypt(void) do_test_decrypt_op(CUSTOM_1); } - typedef int (*func_ccm_t)(const cipher_t *, const uint8_t *, uint32_t, uint8_t, uint8_t, const uint8_t *, size_t, const uint8_t *, size_t, uint8_t *); @@ -1278,7 +1275,6 @@ static int _test_ccm_len(func_ccm_t func, uint8_t len_encoding, return ret; } - /* Test length checking in ccm functions. */ static void test_crypto_modes_ccm_check_len(void) { @@ -1329,7 +1325,6 @@ static void test_crypto_modes_ccm_check_len(void) TEST_ASSERT_EQUAL_INT(-1, ret); } - Test *tests_crypto_modes_ccm_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { diff --git a/tests/sys_crypto/tests-crypto-modes-ctr.c b/tests/sys_crypto/tests-crypto-modes-ctr.c index d6c0257326..c55f830dd7 100644 --- a/tests/sys_crypto/tests-crypto-modes-ctr.c +++ b/tests/sys_crypto/tests-crypto-modes-ctr.c @@ -24,7 +24,6 @@ * http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf */ - /* PACKET VECTOR #1 (Page 55) */ static uint8_t TEST_1_KEY[] = { 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, @@ -247,7 +246,6 @@ static void test_crypto_modes_ctr_decrypt(void) TEST_CIPHER_LEN, TEST_PLAIN, TEST_PLAIN_LEN); } - Test *tests_crypto_modes_ctr_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { diff --git a/tests/sys_crypto/tests-crypto-modes-ecb.c b/tests/sys_crypto/tests-crypto-modes-ecb.c index 151d11dcd4..82dbcb92cb 100644 --- a/tests/sys_crypto/tests-crypto-modes-ecb.c +++ b/tests/sys_crypto/tests-crypto-modes-ecb.c @@ -24,7 +24,6 @@ * http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf */ - /* PACKET VECTOR #1 (Page 24) */ static uint8_t TEST_1_KEY[] = { 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, diff --git a/tests/sys_crypto/tests-crypto-modes-ocb.c b/tests/sys_crypto/tests-crypto-modes-ocb.c index 70209155bc..be90f630ff 100644 --- a/tests/sys_crypto/tests-crypto-modes-ocb.c +++ b/tests/sys_crypto/tests-crypto-modes-ocb.c @@ -50,8 +50,6 @@ static size_t TEST_1_EXPECTED_LEN = 16; static uint8_t TEST_1_TAG_LEN = 16; - - /* Test 2: N: BBAA99887766554433221101 A: 0001020304050607 @@ -86,7 +84,6 @@ static size_t TEST_2_EXPECTED_LEN = sizeof(TEST_2_EXPECTED); static uint8_t TEST_2_TAG_LEN = 16; - /* Test 3: N: BBAA99887766554433221102 A: 0001020304050607 @@ -119,7 +116,6 @@ static size_t TEST_3_EXPECTED_LEN = sizeof(TEST_3_EXPECTED); static uint8_t TEST_3_TAG_LEN = 16; - /* Test 4: N: BBAA99887766554433221103 A: @@ -153,7 +149,6 @@ static size_t TEST_4_EXPECTED_LEN = sizeof(TEST_4_EXPECTED); static uint8_t TEST_4_TAG_LEN = 16; - /* Test 16: N: BBAA9988776655443322110F A: @@ -197,8 +192,6 @@ static size_t TEST_16_EXPECTED_LEN = sizeof(TEST_16_EXPECTED); static uint8_t TEST_16_TAG_LEN = 16; - - /* Test 17: The next tuple shows a result with a tag length of 96 bits and a @@ -259,7 +252,6 @@ static size_t TEST_17_EXPECTED_LEN = sizeof(TEST_17_EXPECTED); static uint8_t TEST_17_TAG_LEN = 12; - /* Share test buffer output */ static uint8_t data[60]; diff --git a/tests/test_tools/main.c b/tests/test_tools/main.c index b9bb1078b7..cb1259a408 100644 --- a/tests/test_tools/main.c +++ b/tests/test_tools/main.c @@ -26,7 +26,6 @@ #error This test assumes no shell echo or shell prompt #endif - /** * @brief true - do nothing, successfully * @@ -47,7 +46,6 @@ static int cmd_true(int argc, char **argv) return 0; } - /** * @brief shellping, replies shellpong * @@ -117,7 +115,6 @@ static int cmd_getchar(int argc, char **argv) return 0; } - static const shell_command_t shell_commands[] = { { "shellping", "Just print 'shellpong'", cmd_shellping }, { "true", "do nothing, successfully", cmd_true }, diff --git a/tests/thread_flags/main.c b/tests/thread_flags/main.c index 86ab454ab3..cae153f396 100644 --- a/tests/thread_flags/main.c +++ b/tests/thread_flags/main.c @@ -48,7 +48,6 @@ static void *_thread(void *arg) flags = thread_flags_wait_all(0x2 | 0x4); printf("thread(): received flags: 0x%04x\n", (unsigned)flags & 0xFFFF); - puts("thread(): waiting for any flag, one by one"); flags = thread_flags_wait_one(0xFFFF); printf("thread(): received flags: 0x%04x\n", (unsigned)flags & 0xFFFF); diff --git a/tests/thread_float/main.c b/tests/thread_float/main.c index 2c7b15d2a7..693e127dfa 100644 --- a/tests/thread_float/main.c +++ b/tests/thread_float/main.c @@ -102,7 +102,6 @@ int main(void) thread1, NULL, "nr3"); puts("THREADS CREATED\n"); - timer.callback = timer_cb; xtimer_set(&timer, OFFSET); diff --git a/tests/thread_msg_seq/main.c b/tests/thread_msg_seq/main.c index 00ea85b4b5..ffc9c9077a 100644 --- a/tests/thread_msg_seq/main.c +++ b/tests/thread_msg_seq/main.c @@ -48,7 +48,6 @@ void *sub_thread(void *arg) return NULL; } - int main(void) { puts("START"); diff --git a/tests/thread_priority_inversion/main.c b/tests/thread_priority_inversion/main.c index 98c1821eb0..12e559b6df 100644 --- a/tests/thread_priority_inversion/main.c +++ b/tests/thread_priority_inversion/main.c @@ -18,7 +18,6 @@ * @} */ - #include #include #include diff --git a/tests/turo/main.c b/tests/turo/main.c index f0c53acd44..765b166430 100644 --- a/tests/turo/main.c +++ b/tests/turo/main.c @@ -128,7 +128,6 @@ static void _netif_list(turo_t *ctx, int32_t netif_num) turo_dict_close(ctx); } - static int cmd_turo_simple_s32(int argc, char **argv) { int32_t s32 = 0; diff --git a/tests/unittests/tests-bitfield/tests-bitfield.c b/tests/unittests/tests-bitfield/tests-bitfield.c index 1e61dd471b..64754c4d1e 100644 --- a/tests/unittests/tests-bitfield/tests-bitfield.c +++ b/tests/unittests/tests-bitfield/tests-bitfield.c @@ -215,7 +215,6 @@ Test *tests_bitfield_tests(void) return (Test *)&bitfield_tests; } - void tests_bitfield(void) { TESTS_RUN(tests_bitfield_tests()); diff --git a/tests/unittests/tests-bloom/tests-bloom-sets.h b/tests/unittests/tests-bloom/tests-bloom-sets.h index c8c6177bb3..17f9152702 100644 --- a/tests/unittests/tests-bloom/tests-bloom-sets.h +++ b/tests/unittests/tests-bloom/tests-bloom-sets.h @@ -1028,7 +1028,6 @@ const char* const B[10] = {"interbedded" ,"amplifier" }; - #ifdef __cplusplus } #endif diff --git a/tests/unittests/tests-color/tests-color.c b/tests/unittests/tests-color/tests-color.c index da39b24410..8b7a43f9d0 100644 --- a/tests/unittests/tests-color/tests-color.c +++ b/tests/unittests/tests-color/tests-color.c @@ -104,7 +104,6 @@ static void test_rgb_invert__success(void) TEST_ASSERT_EQUAL_INT(res.b, tmp.b); } - static void test_rgb_complementary__success(void) { /* See example: https://helpx.adobe.com/illustrator/using/adjusting-colors.html */ diff --git a/tests/unittests/tests-ecc/tests-ecc.c b/tests/unittests/tests-ecc/tests-ecc.c index 8523d9dae9..21225a7663 100644 --- a/tests/unittests/tests-ecc/tests-ecc.c +++ b/tests/unittests/tests-ecc/tests-ecc.c @@ -23,7 +23,6 @@ #include "ecc/golay2412.h" #include "ecc/repetition.h" - /* source for random bytes: https://www.random.org/bytes */ unsigned char data_in[] = { 201, 240, 154, 5, 227, 60, 116, 192, 214 }; /* golay encoded sequence */ diff --git a/tests/unittests/tests-fib/tests-fib.c b/tests/unittests/tests-fib/tests-fib.c index 154ee658bb..cb848b8715 100644 --- a/tests/unittests/tests-fib/tests-fib.c +++ b/tests/unittests/tests-fib/tests-fib.c @@ -702,7 +702,6 @@ static void test_fib_16_prefix_match(void) fib_deinit(&test_fib_table); } - /* * @brief testing receiving an destination address set matching a specific prefix */ diff --git a/tests/unittests/tests-fib_sr/tests-fib_sr.c b/tests/unittests/tests-fib_sr/tests-fib_sr.c index 4161c76e38..3aa31849c5 100644 --- a/tests/unittests/tests-fib_sr/tests-fib_sr.c +++ b/tests/unittests/tests-fib_sr/tests-fib_sr.c @@ -77,7 +77,6 @@ static int _create_sr(const char *pre, size_t from, size_t to, fib_sr_t *sr, siz return 0; } - /* * @brief create a new empty source route and check the parameters * It is expected to have a new source route with the given parameters @@ -208,7 +207,6 @@ static void test_fib_sr_04_create_and_delete_sr(void) /* test wrong parameter */ TEST_ASSERT_EQUAL_INT(-EFAULT, fib_sr_delete(&test_fib_sr_table, NULL)); - TEST_ASSERT_EQUAL_INT(0, fib_sr_delete(&test_fib_sr_table, local_sourceroutes[0])); kernel_pid_t sr_iface_id; @@ -345,7 +343,6 @@ static void test_fib_sr_06_create_sr_with_hops(void) fib_deinit(&test_fib_sr_table); } - /* * @brief create a new source route with a number of hops on its path, * and delete several entries @@ -651,7 +648,6 @@ static void test_fib_sr_12_get_consecutive_sr(void) add_buf_size) ); - /* Create SR1 Z5,.., Z7,XX */ TEST_ASSERT_EQUAL_INT(0, fib_sr_create(&test_fib_sr_table, &local_sourceroutes[2], 42, 0x0, 10000)); diff --git a/tests/unittests/tests-fmt/tests-fmt.c b/tests/unittests/tests-fmt/tests-fmt.c index 75138a986c..75a647b8c7 100644 --- a/tests/unittests/tests-fmt/tests-fmt.c +++ b/tests/unittests/tests-fmt/tests-fmt.c @@ -545,7 +545,6 @@ static void test_fmt_s16_dfp(void) out[act_len] = '\0'; TEST_ASSERT_EQUAL_STRING("0.31987", (char *)out); - val = -32768; fpp = -2; len = fmt_s16_dfp(NULL, val, fpp); diff --git a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-internal.c b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-internal.c index e29d0b7973..988f755a62 100644 --- a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-internal.c +++ b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-internal.c @@ -1848,7 +1848,6 @@ static void test_nib_abr_add_pfx__pfx_in_nib(void) { .u64 = TEST_UINT64 } } }; static const ipv6_addr_t pfx = { .u64 = { { .u8 = GLOBAL_PREFIX } } }; - TEST_ASSERT_NOT_NULL((abr = _nib_abr_add(&addr))); TEST_ASSERT_NOT_NULL((dst = _nib_pl_add(IFACE, &pfx, GLOBAL_PREFIX_LEN, UINT32_MAX, UINT32_MAX))); diff --git a/tests/unittests/tests-hashes/tests-hashes-sha3.c b/tests/unittests/tests-hashes/tests-hashes-sha3.c index 1422a0da46..e8a7e9d759 100644 --- a/tests/unittests/tests-hashes/tests-hashes-sha3.c +++ b/tests/unittests/tests-hashes/tests-hashes-sha3.c @@ -150,7 +150,6 @@ static const uint8_t m03_2[] = { 0xAA, 0x7C, 0x6D, 0xA9, 0xAD, 0xD2, 0x08, 0x89, 0xB1, 0xD8, 0x17 }; size_t m03_2_len = sizeof(m03_2); - static const uint8_t h03_256[] = { 0xB7, 0xD0, 0x31, 0xAA, 0x69, 0xB7, 0xB4, 0xD2, 0x6A, 0x35, 0xB8, 0x96, 0xD7, 0x61, 0x31, 0x4F, 0x1D, 0x61, 0xEB, 0x12, 0xDC, 0xC1, 0xE7, 0x2A, @@ -294,7 +293,6 @@ static const uint8_t hfail_512[] = { 0x15, 0x0D, 0x78, 0x7D, 0x6E, 0xB4, 0x96, 0 0xB5, 0x5C, 0xC5, 0x88, 0xC6, 0xB9, 0x13, 0x13, 0x2F, 0x1A, 0x65, 0x8F, 0xB1, 0x22, 0xCB, 0x52 }; - static int calc_and_compare_hash_256(const uint8_t *msg, size_t msg_len, const uint8_t *expected) { static unsigned char hash[SHA3_256_DIGEST_LENGTH]; @@ -411,7 +409,6 @@ static void test_hashes_sha3_hash_sequence_failing_compare(void) TEST_ASSERT(!calc_and_compare_hash_512(mfail, mfail_len, hfail_512)); } - Test *tests_hashes_sha3_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { diff --git a/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c b/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c index 1248f6dfd7..016ce24bd9 100644 --- a/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c +++ b/tests/unittests/tests-ipv6_addr/tests-ipv6_addr.c @@ -256,7 +256,6 @@ static void test_ipv6_addr_is_site_local_site_local_multicast(void) TEST_ASSERT_EQUAL_INT(true, ipv6_addr_is_site_local(&a)); } - static void test_ipv6_addr_is_site_local(void) { ipv6_addr_t a = { { diff --git a/tests/unittests/tests-nanocoap/tests-nanocoap.c b/tests/unittests/tests-nanocoap/tests-nanocoap.c index 09ccdf1109..9a9ef2dbc1 100644 --- a/tests/unittests/tests-nanocoap/tests-nanocoap.c +++ b/tests/unittests/tests-nanocoap/tests-nanocoap.c @@ -24,7 +24,6 @@ #include "unittests-constants.h" #include "tests-nanocoap.h" - #define _BUF_SIZE (128U) /* diff --git a/tests/unittests/tests-netopt/tests-netopt.c b/tests/unittests/tests-netopt/tests-netopt.c index 1830511d3b..526a965756 100644 --- a/tests/unittests/tests-netopt/tests-netopt.c +++ b/tests/unittests/tests-netopt/tests-netopt.c @@ -34,7 +34,6 @@ void test_netopt2str_unknown(void) TEST_ASSERT_EQUAL_INT(0, strcmp(netopt2str(NETOPT_NUMOF), "unknown")); } - Test *tests_netopt_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { diff --git a/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.c b/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.c index 7c544b6499..f754ba0193 100644 --- a/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.c +++ b/tests/unittests/tests-priority_pktqueue/tests-priority_pktqueue.c @@ -190,7 +190,6 @@ static void test_gnrc_priority_pktqueue_pop_empty(void) TEST_ASSERT_EQUAL_INT(0, gnrc_priority_pktqueue_length(&pkt_queue)); } - static void test_gnrc_priority_pktqueue_pop(void) { gnrc_pktsnip_t pkt1 = PKT_INIT_ELEM_STATIC_DATA(TEST_STRING8, NULL); diff --git a/tests/unittests/tests-saul_reg/tests-saul_reg.c b/tests/unittests/tests-saul_reg/tests-saul_reg.c index 9b32317840..8d2b91b59e 100644 --- a/tests/unittests/tests-saul_reg/tests-saul_reg.c +++ b/tests/unittests/tests-saul_reg/tests-saul_reg.c @@ -38,7 +38,6 @@ static saul_reg_t s2 = { NULL, NULL, "S2", &s2_dri }; static saul_reg_t s3a = { NULL, NULL, "S3", &s3a_dri }; static saul_reg_t s3b = { NULL, NULL, "S3", &s3b_dri }; - static int count(void) { int i = 0; diff --git a/tests/unittests/tests-scanf_float/tests-scanf_float.c b/tests/unittests/tests-scanf_float/tests-scanf_float.c index 9aeb1644bf..0172981cb2 100644 --- a/tests/unittests/tests-scanf_float/tests-scanf_float.c +++ b/tests/unittests/tests-scanf_float/tests-scanf_float.c @@ -24,7 +24,6 @@ #include "tests-scanf_float.h" - #define TEST_EASY(name, format, constant) static void test_ ## name (void) \ {\ int items;\ diff --git a/tests/unittests/tests-sixlowpan/tests-sixlowpan.c b/tests/unittests/tests-sixlowpan/tests-sixlowpan.c index c551b918cb..efc1e08df7 100644 --- a/tests/unittests/tests-sixlowpan/tests-sixlowpan.c +++ b/tests/unittests/tests-sixlowpan/tests-sixlowpan.c @@ -45,7 +45,6 @@ #define FRAG1_DISP (0xC5) /* 11 00 01 01 */ #define FRAGN_DISP (0xE5) /* 11 10 01 01 */ - /* Test with 6LoWPAN dispatch byte indicating a none-LoWPAN frame (NALP = Not a * LoWPAN frame) * see https://tools.ietf.org/html/rfc4944#section-5.1 diff --git a/tests/unittests/tests-sock_util/tests-sock_util.c b/tests/unittests/tests-sock_util/tests-sock_util.c index ff0ad8c676..0a1ab24307 100644 --- a/tests/unittests/tests-sock_util/tests-sock_util.c +++ b/tests/unittests/tests-sock_util/tests-sock_util.c @@ -38,7 +38,6 @@ .port = 53, \ } - #define TEST_URL "http://[2001:db8::1]:80/local" #define TEST_URL_HOSTPART "[2001:db8::1]:80" #define TEST_URL_LOCALPART "/local" @@ -71,7 +70,6 @@ static char addr[CONFIG_SOCK_URLPATH_MAXLEN]; static char urlpath[CONFIG_SOCK_URLPATH_MAXLEN]; - static void setup(void) { /* Force both arrays to contain nonzero content to detect missing null diff --git a/tests/unittests/tests-uuid/tests-uuid.c b/tests/unittests/tests-uuid/tests-uuid.c index f0b98bd8c9..3b26381389 100644 --- a/tests/unittests/tests-uuid/tests-uuid.c +++ b/tests/unittests/tests-uuid/tests-uuid.c @@ -58,7 +58,6 @@ const uint8_t v5_check2[] = {0x7a, 0x1b, 0xf5, 0xdb, 0x5e, 0x77, 0x5e, 0x9b, #define RIOTOS_ORG_LEN (sizeof(riotos_org) -1) #define TEST_STR_LEN (sizeof(test_str) -1) - void test_uuid_v3(void) { uuid_t uuid, uuid_next; diff --git a/tests/unittests/tests-vfs/tests-vfs-file-system-ops.c b/tests/unittests/tests-vfs/tests-vfs-file-system-ops.c index 7443e8577c..91da825557 100644 --- a/tests/unittests/tests-vfs/tests-vfs-file-system-ops.c +++ b/tests/unittests/tests-vfs/tests-vfs-file-system-ops.c @@ -146,7 +146,6 @@ static void test_vfs_null_fs_ops_fstatvfs(void) TEST_ASSERT_EQUAL_INT(-EINVAL, res); } - Test *tests_vfs_null_file_system_ops_tests(void) { EMB_UNIT_TESTFIXTURES(fixtures) { diff --git a/tests/usbus_cdc_acm_stdio/main.c b/tests/usbus_cdc_acm_stdio/main.c index c41f763540..b1f637727d 100644 --- a/tests/usbus_cdc_acm_stdio/main.c +++ b/tests/usbus_cdc_acm_stdio/main.c @@ -45,13 +45,11 @@ static int cmd_text(int argc, char **argv) return 0; } - static const shell_command_t shell_commands[] = { { "text", "Generates long text for testing stdio buffer", cmd_text }, { NULL, NULL, NULL } }; - int main(void) { (void) puts("RIOT USB CDC ACM shell test"); diff --git a/tests/xtimer_hang/main.c b/tests/xtimer_hang/main.c index 75161c3cf0..a74bb80b11 100644 --- a/tests/xtimer_hang/main.c +++ b/tests/xtimer_hang/main.c @@ -40,8 +40,6 @@ typedef struct { } timer_arg_t; #endif - - #define TEST_TIME_S (10LU) #define TEST_INTERVAL_MS (100LU) #define TEST_TIMER_STACKSIZE (THREAD_STACKSIZE_DEFAULT) @@ -85,7 +83,6 @@ int main(void) #endif LOG_DEBUG("[INIT]\n"); - thread_create(stack_timer1, TEST_TIMER_STACKSIZE, 2, THREAD_CREATE_STACKTEST, timer_func, &sleep_timer1, "timer1"); diff --git a/tests/xtimer_longterm/main.c b/tests/xtimer_longterm/main.c index 3b65aed16f..bd84e1c17d 100644 --- a/tests/xtimer_longterm/main.c +++ b/tests/xtimer_longterm/main.c @@ -24,7 +24,6 @@ #include "thread.h" #include "msg.h" - /* some internally used msg types */ #define MSG_LONG (0xcafe) #define MSG_MID (0xe5e1) @@ -64,7 +63,6 @@ static int mid_msg_ticks = 0; static int mid_sleep_ticks = 0; static int short_ticks = 0; - void *long_sleep(void *arg) { (void) arg; diff --git a/tests/xtimer_mutex_lock_timeout/main.c b/tests/xtimer_mutex_lock_timeout/main.c index b6df26678e..4f30611d6e 100644 --- a/tests/xtimer_mutex_lock_timeout/main.c +++ b/tests/xtimer_mutex_lock_timeout/main.c @@ -55,7 +55,6 @@ static int cmd_test_xtimer_mutex_lock_timeout_short_unlocked(int argc, static int cmd_test_xtimer_mutex_lock_timeout_short_locked(int argc, char **argv); - /** * @brief List of command for this application. */ @@ -345,7 +344,6 @@ static int cmd_test_xtimer_mutex_lock_timeout_short_unlocked(int argc, return 0; } - /** * @brief main function starting shell * diff --git a/tests/ztimer_mutex_lock_timeout/main.c b/tests/ztimer_mutex_lock_timeout/main.c index 2c59815b0e..a59cb607f8 100644 --- a/tests/ztimer_mutex_lock_timeout/main.c +++ b/tests/ztimer_mutex_lock_timeout/main.c @@ -88,7 +88,6 @@ int main(void) expect(post - pre > TIMEOUT_LARGE); puts("OK"); - puts("TEST PASSED"); return 0;