From d42fc094fa2b984404186bca277e18f5538a2fb4 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Mon, 19 Aug 2019 15:16:08 +0000 Subject: [PATCH] Merged in alinjerpelea/nuttx (pull request #1003) arm: stm32: codestyle fixes * arm: stm32f0l0g0: codestyle fixes After the board restructuration is time for codestyle cleanup Signed-off-by: Alin Jerpelea * arm: stm32f7: codestyle fixes After the board restructuration is time for codestyle cleanup Signed-off-by: Alin Jerpelea * arm: stm32h7: codestyle fixes After the board restructuration is time for codestyle cleanup Signed-off-by: Alin Jerpelea * arm: stm32l4: codestyle fixes After the board restructuration is time for codestyle cleanup Signed-off-by: Alin Jerpelea * arm: stm32: codestyle fixes After the board restructuration is time for codestyle cleanup Signed-off-by: Alin Jerpelea Approved-by: Gregory Nutt --- boards/arm/stm32/axoloti/include/board.h | 34 ++-- boards/arm/stm32/axoloti/scripts/Make.defs | 2 +- boards/arm/stm32/axoloti/scripts/gnu-elf.ld | 2 +- .../arm/stm32/axoloti/scripts/kernel-space.ld | 2 +- boards/arm/stm32/axoloti/scripts/ld.script | 2 +- boards/arm/stm32/axoloti/scripts/memory.ld | 4 +- .../arm/stm32/axoloti/scripts/user-space.ld | 2 +- boards/arm/stm32/axoloti/src/Makefile | 2 +- boards/arm/stm32/axoloti/src/axoloti.h | 8 +- boards/arm/stm32/axoloti/src/stm32_adau1961.c | 2 +- boards/arm/stm32/axoloti/src/stm32_boot.c | 2 +- boards/arm/stm32/axoloti/src/stm32_bringup.c | 2 +- boards/arm/stm32/axoloti/src/stm32_buttons.c | 2 +- boards/arm/stm32/axoloti/src/stm32_extmem.c | 2 +- boards/arm/stm32/axoloti/src/stm32_sdio.c | 2 +- boards/arm/stm32/axoloti/src/stm32_usbhost.c | 2 +- boards/arm/stm32/axoloti/src/stm32_userleds.c | 2 +- boards/arm/stm32/clicker2-stm32/README.txt | 2 +- .../arm/stm32/clicker2-stm32/include/board.h | 32 ++-- .../arm/stm32/clicker2-stm32/kernel/Makefile | 2 +- .../clicker2-stm32/kernel/stm32_userspace.c | 3 +- .../stm32/clicker2-stm32/scripts/Make.defs | 2 +- .../arm/stm32/clicker2-stm32/scripts/flash.ld | 2 +- .../stm32/clicker2-stm32/scripts/gnu-elf.ld | 2 +- .../clicker2-stm32/scripts/kernel-space.ld | 2 +- .../stm32/clicker2-stm32/scripts/memory.ld | 4 +- .../clicker2-stm32/scripts/user-space.ld | 2 +- boards/arm/stm32/clicker2-stm32/src/Makefile | 2 +- .../stm32/clicker2-stm32/src/clicker2-stm32.h | 35 ++-- .../arm/stm32/clicker2-stm32/src/stm32_adc.c | 30 ++-- .../stm32/clicker2-stm32/src/stm32_appinit.c | 2 +- .../stm32/clicker2-stm32/src/stm32_autoleds.c | 3 +- .../clicker2-stm32/src/stm32_automount.c | 54 +++--- .../arm/stm32/clicker2-stm32/src/stm32_boot.c | 18 +- .../stm32/clicker2-stm32/src/stm32_bringup.c | 2 +- .../stm32/clicker2-stm32/src/stm32_buttons.c | 6 +- .../arm/stm32/clicker2-stm32/src/stm32_can.c | 22 +-- .../stm32/clicker2-stm32/src/stm32_mmcsd.c | 2 +- .../stm32/clicker2-stm32/src/stm32_mrf24j40.c | 2 +- .../arm/stm32/clicker2-stm32/src/stm32_spi.c | 18 +- .../arm/stm32/clicker2-stm32/src/stm32_usb.c | 26 +-- .../stm32/clicker2-stm32/src/stm32_userleds.c | 2 +- .../arm/stm32/clicker2-stm32/src/stm32_xbee.c | 2 +- boards/arm/stm32/cloudctrl/include/board.h | 40 ++--- boards/arm/stm32/cloudctrl/scripts/Make.defs | 2 +- .../stm32/cloudctrl/scripts/cloudctrl-dfu.ld | 2 +- .../arm/stm32/cloudctrl/scripts/cloudctrl.ld | 2 +- boards/arm/stm32/cloudctrl/src/Makefile | 2 +- boards/arm/stm32/cloudctrl/src/cloudctrl.h | 52 +++--- boards/arm/stm32/cloudctrl/src/stm32_adc.c | 26 +-- .../arm/stm32/cloudctrl/src/stm32_appinit.c | 2 +- .../arm/stm32/cloudctrl/src/stm32_autoleds.c | 6 +- boards/arm/stm32/cloudctrl/src/stm32_boot.c | 26 +-- .../arm/stm32/cloudctrl/src/stm32_buttons.c | 2 +- boards/arm/stm32/cloudctrl/src/stm32_chipid.c | 22 +-- .../arm/stm32/cloudctrl/src/stm32_phyinit.c | 22 +-- boards/arm/stm32/cloudctrl/src/stm32_relays.c | 2 +- boards/arm/stm32/cloudctrl/src/stm32_spi.c | 18 +- boards/arm/stm32/cloudctrl/src/stm32_usb.c | 50 +++--- boards/arm/stm32/cloudctrl/src/stm32_usbmsc.c | 2 +- .../arm/stm32/cloudctrl/src/stm32_userleds.c | 2 +- boards/arm/stm32/cloudctrl/src/stm32_w25.c | 2 +- boards/arm/stm32/fire-stm32v2/README.txt | 4 +- boards/arm/stm32/fire-stm32v2/include/board.h | 32 ++-- .../arm/stm32/fire-stm32v2/scripts/Make.defs | 2 +- .../fire-stm32v2/scripts/fire-stm32v2-dfu.ld | 2 +- .../fire-stm32v2/scripts/fire-stm32v2.ld | 2 +- boards/arm/stm32/fire-stm32v2/src/Makefile | 2 +- .../arm/stm32/fire-stm32v2/src/fire-stm32v2.h | 44 ++--- .../stm32/fire-stm32v2/src/stm32_appinit.c | 2 +- .../stm32/fire-stm32v2/src/stm32_autoleds.c | 6 +- .../arm/stm32/fire-stm32v2/src/stm32_boot.c | 26 +-- .../stm32/fire-stm32v2/src/stm32_buttons.c | 2 +- .../stm32/fire-stm32v2/src/stm32_enc28j60.c | 2 +- .../arm/stm32/fire-stm32v2/src/stm32_mmcsd.c | 2 +- .../stm32/fire-stm32v2/src/stm32_selectlcd.c | 34 ++-- boards/arm/stm32/fire-stm32v2/src/stm32_spi.c | 18 +- .../arm/stm32/fire-stm32v2/src/stm32_usbdev.c | 34 ++-- .../arm/stm32/fire-stm32v2/src/stm32_usbmsc.c | 2 +- .../stm32/fire-stm32v2/src/stm32_userleds.c | 2 +- boards/arm/stm32/fire-stm32v2/src/stm32_w25.c | 2 +- .../arm/stm32/hymini-stm32v/include/board.h | 20 +-- .../arm/stm32/hymini-stm32v/scripts/Make.defs | 2 +- .../arm/stm32/hymini-stm32v/scripts/ld.script | 2 +- boards/arm/stm32/hymini-stm32v/src/Makefile | 2 +- .../stm32/hymini-stm32v/src/hymini-stm32v.h | 44 ++--- .../stm32/hymini-stm32v/src/stm32_appinit.c | 2 +- .../arm/stm32/hymini-stm32v/src/stm32_boot.c | 18 +- .../stm32/hymini-stm32v/src/stm32_buttons.c | 2 +- .../arm/stm32/hymini-stm32v/src/stm32_leds.c | 2 +- .../stm32/hymini-stm32v/src/stm32_r61505u.c | 130 +++++++------- .../arm/stm32/hymini-stm32v/src/stm32_spi.c | 18 +- .../stm32/hymini-stm32v/src/stm32_ssd1289.c | 70 ++++---- boards/arm/stm32/hymini-stm32v/src/stm32_ts.c | 26 +-- .../stm32/hymini-stm32v/src/stm32_usbdev.c | 34 ++-- .../stm32/hymini-stm32v/src/stm32_usbmsc.c | 2 +- boards/arm/stm32/maple/include/board.h | 20 +-- boards/arm/stm32/maple/scripts/Make.defs | 2 +- boards/arm/stm32/maple/scripts/ld.script | 2 +- boards/arm/stm32/maple/scripts/ld.script.dfu | 2 +- boards/arm/stm32/maple/src/Makefile | 2 +- boards/arm/stm32/maple/src/maple.h | 40 ++--- boards/arm/stm32/maple/src/stm32_appinit.c | 2 +- boards/arm/stm32/maple/src/stm32_boot.c | 26 +-- boards/arm/stm32/maple/src/stm32_lcd.c | 2 +- boards/arm/stm32/maple/src/stm32_leds.c | 2 +- boards/arm/stm32/maple/src/stm32_spi.c | 2 +- boards/arm/stm32/maple/src/stm32_usbdev.c | 34 ++-- .../arm/stm32/mikroe-stm32f4/include/board.h | 20 +-- .../arm/stm32/mikroe-stm32f4/kernel/Makefile | 2 +- .../mikroe-stm32f4/kernel/stm32_userspace.c | 2 +- .../stm32/mikroe-stm32f4/scripts/Make.defs | 2 +- .../stm32/mikroe-stm32f4/scripts/gnu-elf.ld | 2 +- .../mikroe-stm32f4/scripts/kernel-space.ld | 2 +- .../stm32/mikroe-stm32f4/scripts/ld.script | 2 +- .../stm32/mikroe-stm32f4/scripts/memory.ld | 2 +- .../mikroe-stm32f4/scripts/user-space.ld | 2 +- boards/arm/stm32/mikroe-stm32f4/src/Makefile | 2 +- .../stm32/mikroe-stm32f4/src/mikroe-stm32f4.h | 66 ++++---- .../stm32/mikroe-stm32f4/src/stm32_appinit.c | 2 +- .../arm/stm32/mikroe-stm32f4/src/stm32_boot.c | 26 +-- .../mikroe-stm32f4/src/stm32_clockconfig.c | 26 +-- .../stm32/mikroe-stm32f4/src/stm32_extmem.c | 42 ++--- .../arm/stm32/mikroe-stm32f4/src/stm32_idle.c | 6 +- .../mikroe-stm32f4/src/stm32_mio283qt2.c | 86 +++++----- .../mikroe-stm32f4/src/stm32_mio283qt9a.c | 86 +++++----- .../arm/stm32/mikroe-stm32f4/src/stm32_pm.c | 2 +- .../arm/stm32/mikroe-stm32f4/src/stm32_pwm.c | 22 +-- .../stm32/mikroe-stm32f4/src/stm32_qencoder.c | 18 +- .../arm/stm32/mikroe-stm32f4/src/stm32_spi.c | 18 +- .../mikroe-stm32f4/src/stm32_touchscreen.c | 58 +++---- .../arm/stm32/mikroe-stm32f4/src/stm32_usb.c | 50 +++--- .../stm32/mikroe-stm32f4/src/stm32_vs1053.c | 2 +- .../arm/stm32/nucleo-f103rb/include/board.h | 8 +- .../arm/stm32/nucleo-f103rb/scripts/Make.defs | 2 +- .../arm/stm32/nucleo-f103rb/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f103rb/src/Makefile | 2 +- .../stm32/nucleo-f103rb/src/nucleo-f103rb.h | 16 +- .../arm/stm32/nucleo-f103rb/src/stm32_adc.c | 6 +- .../nucleo-f103rb/src/stm32_appinitialize.c | 2 +- .../stm32/nucleo-f103rb/src/stm32_autoleds.c | 2 +- .../arm/stm32/nucleo-f103rb/src/stm32_boot.c | 2 +- .../stm32/nucleo-f103rb/src/stm32_buttons.c | 2 +- .../arm/stm32/nucleo-f103rb/src/stm32_pwm.c | 22 +-- .../stm32/nucleo-f103rb/src/stm32_userleds.c | 2 +- .../arm/stm32/nucleo-f207zg/include/board.h | 8 +- .../arm/stm32/nucleo-f207zg/scripts/Make.defs | 2 +- .../arm/stm32/nucleo-f207zg/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f207zg/src/Makefile | 2 +- .../stm32/nucleo-f207zg/src/nucleo-f207zg.h | 16 +- .../arm/stm32/nucleo-f207zg/src/stm32_adc.c | 2 +- .../nucleo-f207zg/src/stm32_appinitialize.c | 2 +- .../stm32/nucleo-f207zg/src/stm32_autoleds.c | 2 +- .../arm/stm32/nucleo-f207zg/src/stm32_boot.c | 2 +- .../stm32/nucleo-f207zg/src/stm32_bringup.c | 2 +- .../stm32/nucleo-f207zg/src/stm32_buttons.c | 2 +- .../arm/stm32/nucleo-f207zg/src/stm32_pwm.c | 22 +-- .../arm/stm32/nucleo-f207zg/src/stm32_usb.c | 50 +++--- .../stm32/nucleo-f207zg/src/stm32_userleds.c | 2 +- .../arm/stm32/nucleo-f302r8/include/board.h | 8 +- .../arm/stm32/nucleo-f302r8/scripts/Make.defs | 2 +- .../arm/stm32/nucleo-f302r8/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f302r8/src/Makefile | 2 +- .../stm32/nucleo-f302r8/src/nucleo-f302r8.h | 8 +- .../nucleo-f302r8/src/stm32_appinitialize.c | 2 +- .../stm32/nucleo-f302r8/src/stm32_autoleds.c | 2 +- .../arm/stm32/nucleo-f302r8/src/stm32_boot.c | 2 +- .../stm32/nucleo-f302r8/src/stm32_buttons.c | 2 +- .../stm32/nucleo-f302r8/src/stm32_highpri.c | 2 +- .../arm/stm32/nucleo-f302r8/src/stm32_pwm.c | 22 +-- .../stm32/nucleo-f302r8/src/stm32_userleds.c | 2 +- .../arm/stm32/nucleo-f303re/include/board.h | 8 +- .../arm/stm32/nucleo-f303re/scripts/Make.defs | 2 +- .../arm/stm32/nucleo-f303re/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f303re/src/Makefile | 2 +- .../stm32/nucleo-f303re/src/nucleo-f303re.h | 16 +- .../arm/stm32/nucleo-f303re/src/stm32_adc.c | 6 +- .../nucleo-f303re/src/stm32_appinitialize.c | 2 +- .../stm32/nucleo-f303re/src/stm32_autoleds.c | 2 +- .../arm/stm32/nucleo-f303re/src/stm32_boot.c | 2 +- .../stm32/nucleo-f303re/src/stm32_buttons.c | 2 +- .../arm/stm32/nucleo-f303re/src/stm32_can.c | 2 +- .../arm/stm32/nucleo-f303re/src/stm32_pwm.c | 6 +- .../arm/stm32/nucleo-f303re/src/stm32_spi.c | 2 +- .../stm32/nucleo-f303re/src/stm32_ssd1351.c | 2 +- .../arm/stm32/nucleo-f303re/src/stm32_timer.c | 2 +- .../arm/stm32/nucleo-f303re/src/stm32_uid.c | 18 +- .../stm32/nucleo-f303re/src/stm32_userleds.c | 2 +- .../arm/stm32/nucleo-f303ze/include/board.h | 8 +- .../arm/stm32/nucleo-f303ze/scripts/Make.defs | 2 +- .../arm/stm32/nucleo-f303ze/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f303ze/src/Makefile | 2 +- .../stm32/nucleo-f303ze/src/nucleo-f303ze.h | 12 +- .../arm/stm32/nucleo-f303ze/src/stm32_adc.c | 2 +- .../nucleo-f303ze/src/stm32_appinitialize.c | 2 +- .../stm32/nucleo-f303ze/src/stm32_autoleds.c | 2 +- .../arm/stm32/nucleo-f303ze/src/stm32_boot.c | 22 +-- .../stm32/nucleo-f303ze/src/stm32_bringup.c | 2 +- .../stm32/nucleo-f303ze/src/stm32_buttons.c | 2 +- .../stm32/nucleo-f303ze/src/stm32_ssd1306.c | 2 +- .../stm32/nucleo-f303ze/src/stm32_userleds.c | 2 +- .../arm/stm32/nucleo-f334r8/include/board.h | 8 +- .../arm/stm32/nucleo-f334r8/scripts/Make.defs | 2 +- .../arm/stm32/nucleo-f334r8/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-f334r8/src/Makefile | 2 +- .../stm32/nucleo-f334r8/src/nucleo-f334r8.h | 16 +- .../arm/stm32/nucleo-f334r8/src/stm32_adc.c | 6 +- .../stm32/nucleo-f334r8/src/stm32_appinit.c | 2 +- .../stm32/nucleo-f334r8/src/stm32_autoleds.c | 2 +- .../arm/stm32/nucleo-f334r8/src/stm32_boot.c | 2 +- .../arm/stm32/nucleo-f334r8/src/stm32_comp.c | 2 +- .../stm32/nucleo-f334r8/src/stm32_highpri.c | 2 +- .../arm/stm32/nucleo-f334r8/src/stm32_hrtim.c | 2 +- .../arm/stm32/nucleo-f334r8/src/stm32_opamp.c | 2 +- .../arm/stm32/nucleo-f334r8/src/stm32_spwm.c | 2 +- .../arm/stm32/nucleo-f410rb/include/board.h | 20 +-- .../arm/stm32/nucleo-f410rb/scripts/Make.defs | 2 +- .../arm/stm32/nucleo-f410rb/scripts/f410rb.ld | 2 +- boards/arm/stm32/nucleo-f410rb/src/Makefile | 2 +- .../stm32/nucleo-f410rb/src/nucleo-f410rb.h | 32 ++-- .../arm/stm32/nucleo-f410rb/src/stm32_adc.c | 26 +-- .../stm32/nucleo-f410rb/src/stm32_appinit.c | 2 +- .../stm32/nucleo-f410rb/src/stm32_autoleds.c | 2 +- .../arm/stm32/nucleo-f410rb/src/stm32_boot.c | 26 +-- .../stm32/nucleo-f410rb/src/stm32_bringup.c | 2 +- .../stm32/nucleo-f410rb/src/stm32_buttons.c | 6 +- .../stm32/nucleo-f410rb/src/stm32_userleds.c | 2 +- .../arm/stm32/nucleo-f446re/include/board.h | 20 +-- .../nucleo-f446re/include/nucleo-f446re.h | 28 ++-- .../arm/stm32/nucleo-f446re/scripts/Make.defs | 2 +- .../arm/stm32/nucleo-f446re/scripts/f446re.ld | 2 +- boards/arm/stm32/nucleo-f446re/src/Makefile | 2 +- .../stm32/nucleo-f446re/src/nucleo-f446re.h | 40 ++--- .../arm/stm32/nucleo-f446re/src/stm32_adc.c | 2 +- .../stm32/nucleo-f446re/src/stm32_ajoystick.c | 2 +- .../stm32/nucleo-f446re/src/stm32_appinit.c | 2 +- .../stm32/nucleo-f446re/src/stm32_autoleds.c | 2 +- .../arm/stm32/nucleo-f446re/src/stm32_boot.c | 4 +- .../stm32/nucleo-f446re/src/stm32_buttons.c | 2 +- .../stm32/nucleo-f446re/src/stm32_qencoder.c | 2 +- .../arm/stm32/nucleo-f446re/src/stm32_spi.c | 2 +- .../stm32/nucleo-f446re/src/stm32_userleds.c | 2 +- .../arm/stm32/nucleo-f4x1re/include/board.h | 20 +-- .../nucleo-f4x1re/include/nucleo-f401re.h | 28 ++-- .../nucleo-f4x1re/include/nucleo-f411re.h | 28 ++-- .../arm/stm32/nucleo-f4x1re/scripts/Make.defs | 2 +- .../arm/stm32/nucleo-f4x1re/scripts/f401re.ld | 2 +- .../arm/stm32/nucleo-f4x1re/scripts/f411re.ld | 2 +- boards/arm/stm32/nucleo-f4x1re/src/Makefile | 2 +- .../stm32/nucleo-f4x1re/src/nucleo-f4x1re.h | 40 ++--- .../arm/stm32/nucleo-f4x1re/src/stm32_adc.c | 26 +-- .../stm32/nucleo-f4x1re/src/stm32_ajoystick.c | 2 +- .../stm32/nucleo-f4x1re/src/stm32_appinit.c | 2 +- .../stm32/nucleo-f4x1re/src/stm32_autoleds.c | 2 +- .../arm/stm32/nucleo-f4x1re/src/stm32_boot.c | 22 +-- .../stm32/nucleo-f4x1re/src/stm32_bringup.c | 2 +- .../stm32/nucleo-f4x1re/src/stm32_buttons.c | 6 +- .../stm32/nucleo-f4x1re/src/stm32_qencoder.c | 18 +- .../arm/stm32/nucleo-f4x1re/src/stm32_spi.c | 18 +- .../stm32/nucleo-f4x1re/src/stm32_userleds.c | 2 +- .../arm/stm32/nucleo-l152re/include/board.h | 8 +- .../arm/stm32/nucleo-l152re/scripts/Make.defs | 2 +- .../arm/stm32/nucleo-l152re/scripts/ld.script | 2 +- boards/arm/stm32/nucleo-l152re/src/Makefile | 2 +- .../stm32/nucleo-l152re/src/nucleo-l152re.h | 8 +- .../nucleo-l152re/src/stm32_appinitialize.c | 2 +- .../stm32/nucleo-l152re/src/stm32_autoleds.c | 2 +- .../arm/stm32/nucleo-l152re/src/stm32_boot.c | 2 +- .../stm32/nucleo-l152re/src/stm32_buttons.c | 2 +- .../stm32/nucleo-l152re/src/stm32_userleds.c | 2 +- .../stm32/olimex-stm32-e407/include/board.h | 20 +-- .../stm32/olimex-stm32-e407/scripts/Make.defs | 2 +- .../stm32/olimex-stm32-e407/scripts/ld.script | 2 +- .../arm/stm32/olimex-stm32-e407/src/Makefile | 2 +- .../olimex-stm32-e407/src/olimex-stm32-e407.h | 8 +- .../stm32/olimex-stm32-e407/src/stm32_adc.c | 2 +- .../olimex-stm32-e407/src/stm32_appinit.c | 2 +- .../olimex-stm32-e407/src/stm32_autoleds.c | 2 +- .../olimex-stm32-e407/src/stm32_bmp180.c | 2 +- .../stm32/olimex-stm32-e407/src/stm32_boot.c | 2 +- .../olimex-stm32-e407/src/stm32_bringup.c | 2 +- .../olimex-stm32-e407/src/stm32_buttons.c | 2 +- .../stm32/olimex-stm32-e407/src/stm32_can.c | 2 +- .../stm32/olimex-stm32-e407/src/stm32_dac.c | 20 +-- .../olimex-stm32-e407/src/stm32_ina219.c | 2 +- .../olimex-stm32-e407/src/stm32_mrf24j40.c | 2 +- .../stm32/olimex-stm32-e407/src/stm32_spi.c | 2 +- .../stm32/olimex-stm32-e407/src/stm32_timer.c | 2 +- .../stm32/olimex-stm32-e407/src/stm32_usb.c | 2 +- .../olimex-stm32-e407/src/stm32_userleds.c | 2 +- .../stm32/olimex-stm32-h405/include/board.h | 20 +-- .../stm32/olimex-stm32-h405/scripts/Make.defs | 2 +- .../stm32/olimex-stm32-h405/scripts/ld.script | 2 +- .../arm/stm32/olimex-stm32-h405/src/Makefile | 2 +- .../olimex-stm32-h405/src/olimex-stm32-h405.h | 20 +-- .../stm32/olimex-stm32-h405/src/stm32_adc.c | 26 +-- .../olimex-stm32-h405/src/stm32_appinit.c | 2 +- .../olimex-stm32-h405/src/stm32_autoleds.c | 2 +- .../stm32/olimex-stm32-h405/src/stm32_boot.c | 18 +- .../olimex-stm32-h405/src/stm32_buttons.c | 6 +- .../stm32/olimex-stm32-h405/src/stm32_can.c | 22 +-- .../stm32/olimex-stm32-h405/src/stm32_usb.c | 34 ++-- .../olimex-stm32-h405/src/stm32_userleds.c | 2 +- .../stm32/olimex-stm32-h407/include/board.h | 20 +-- .../stm32/olimex-stm32-h407/scripts/Make.defs | 2 +- .../stm32/olimex-stm32-h407/scripts/ld.script | 2 +- .../arm/stm32/olimex-stm32-h407/src/Makefile | 2 +- .../olimex-stm32-h407/src/olimex-stm32-h407.h | 12 +- .../stm32/olimex-stm32-h407/src/stm32_adc.c | 26 +-- .../olimex-stm32-h407/src/stm32_appinit.c | 2 +- .../olimex-stm32-h407/src/stm32_autoleds.c | 2 +- .../stm32/olimex-stm32-h407/src/stm32_boot.c | 18 +- .../olimex-stm32-h407/src/stm32_bringup.c | 2 +- .../olimex-stm32-h407/src/stm32_buttons.c | 2 +- .../stm32/olimex-stm32-h407/src/stm32_can.c | 22 +-- .../stm32/olimex-stm32-h407/src/stm32_sdio.c | 2 +- .../stm32/olimex-stm32-h407/src/stm32_usb.c | 50 +++--- .../olimex-stm32-h407/src/stm32_userleds.c | 2 +- .../stm32/olimex-stm32-p107/include/board.h | 20 +-- .../stm32/olimex-stm32-p107/scripts/Make.defs | 2 +- .../stm32/olimex-stm32-p107/scripts/ld.script | 2 +- .../olimex-stm32-p107/scripts/ld.script.dfu | 2 +- .../arm/stm32/olimex-stm32-p107/src/Makefile | 2 +- .../olimex-stm32-p107/src/olimex-stm32-p107.h | 16 +- .../olimex-stm32-p107/src/stm32_appinit.c | 2 +- .../stm32/olimex-stm32-p107/src/stm32_boot.c | 18 +- .../stm32/olimex-stm32-p107/src/stm32_can.c | 18 +- .../olimex-stm32-p107/src/stm32_encx24j600.c | 2 +- .../stm32/olimex-stm32-p107/src/stm32_spi.c | 18 +- .../stm32/olimex-stm32-p207/include/board.h | 20 +-- .../stm32/olimex-stm32-p207/scripts/Make.defs | 2 +- .../stm32/olimex-stm32-p207/scripts/ld.script | 2 +- .../arm/stm32/olimex-stm32-p207/src/Makefile | 2 +- .../olimex-stm32-p207/src/olimex-stm32-p207.h | 24 +-- .../stm32/olimex-stm32-p207/src/stm32_adc.c | 26 +-- .../olimex-stm32-p207/src/stm32_appinit.c | 2 +- .../olimex-stm32-p207/src/stm32_autoleds.c | 2 +- .../stm32/olimex-stm32-p207/src/stm32_boot.c | 18 +- .../olimex-stm32-p207/src/stm32_buttons.c | 6 +- .../stm32/olimex-stm32-p207/src/stm32_can.c | 22 +-- .../stm32/olimex-stm32-p207/src/stm32_usb.c | 50 +++--- .../olimex-stm32-p207/src/stm32_userleds.c | 2 +- .../stm32/olimex-stm32-p407/include/board.h | 20 +-- .../stm32/olimex-stm32-p407/kernel/Makefile | 2 +- .../kernel/stm32_userspace.c | 2 +- .../stm32/olimex-stm32-p407/scripts/Make.defs | 2 +- .../stm32/olimex-stm32-p407/scripts/flash.ld | 2 +- .../olimex-stm32-p407/scripts/kernel-space.ld | 2 +- .../stm32/olimex-stm32-p407/scripts/memory.ld | 2 +- .../olimex-stm32-p407/scripts/user-space.ld | 2 +- .../arm/stm32/olimex-stm32-p407/src/Makefile | 2 +- .../olimex-stm32-p407/src/olimex-stm32-p407.h | 36 ++-- .../stm32/olimex-stm32-p407/src/stm32_adc.c | 26 +-- .../olimex-stm32-p407/src/stm32_appinit.c | 2 +- .../olimex-stm32-p407/src/stm32_autoleds.c | 2 +- .../stm32/olimex-stm32-p407/src/stm32_boot.c | 18 +- .../olimex-stm32-p407/src/stm32_bringup.c | 2 +- .../olimex-stm32-p407/src/stm32_buttons.c | 6 +- .../stm32/olimex-stm32-p407/src/stm32_can.c | 22 +-- .../stm32/olimex-stm32-p407/src/stm32_dhtxx.c | 18 +- .../stm32/olimex-stm32-p407/src/stm32_sram.c | 38 ++--- .../stm32/olimex-stm32-p407/src/stm32_usb.c | 50 +++--- .../olimex-stm32-p407/src/stm32_userleds.c | 2 +- .../arm/stm32/olimexino-stm32/include/board.h | 20 +-- .../stm32/olimexino-stm32/scripts/Make.defs | 2 +- .../stm32/olimexino-stm32/scripts/ld.script | 2 +- .../olimexino-stm32/scripts/ld.script.dfu | 2 +- boards/arm/stm32/olimexino-stm32/src/Makefile | 2 +- .../olimexino-stm32/src/olimexino-stm32.h | 44 ++--- .../stm32/olimexino-stm32/src/stm32_appinit.c | 4 +- .../stm32/olimexino-stm32/src/stm32_boot.c | 30 ++-- .../stm32/olimexino-stm32/src/stm32_buttons.c | 2 +- .../arm/stm32/olimexino-stm32/src/stm32_can.c | 22 +-- .../olimexino-stm32/src/stm32_composite.c | 4 +- .../stm32/olimexino-stm32/src/stm32_leds.c | 4 +- .../arm/stm32/olimexino-stm32/src/stm32_spi.c | 18 +- .../stm32/olimexino-stm32/src/stm32_usbdev.c | 38 ++--- .../stm32/olimexino-stm32/src/stm32_usbmsc.c | 4 +- boards/arm/stm32/omnibusf4/README.txt | 2 +- boards/arm/stm32/omnibusf4/include/board.h | 20 +-- boards/arm/stm32/omnibusf4/kernel/Makefile | 2 +- .../stm32/omnibusf4/kernel/stm32_userspace.c | 2 +- boards/arm/stm32/omnibusf4/scripts/Make.defs | 2 +- boards/arm/stm32/omnibusf4/scripts/gnu-elf.ld | 2 +- .../stm32/omnibusf4/scripts/kernel-space.ld | 2 +- boards/arm/stm32/omnibusf4/scripts/ld.script | 2 +- boards/arm/stm32/omnibusf4/scripts/memory.ld | 4 +- .../arm/stm32/omnibusf4/scripts/user-space.ld | 2 +- boards/arm/stm32/omnibusf4/src/Makefile | 2 +- boards/arm/stm32/omnibusf4/src/omnibusf4.h | 8 +- .../arm/stm32/omnibusf4/src/stm32_appinit.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_boot.c | 2 +- .../arm/stm32/omnibusf4/src/stm32_bringup.c | 2 +- .../arm/stm32/omnibusf4/src/stm32_critmon.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_idle.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_ioctl.c | 2 +- .../arm/stm32/omnibusf4/src/stm32_max7456.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_mmcsd.c | 2 +- .../arm/stm32/omnibusf4/src/stm32_mpu6000.c | 2 +- .../arm/stm32/omnibusf4/src/stm32_netinit.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_ostest.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_pm.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_pwm.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_reset.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_romfs.h | 8 +- .../omnibusf4/src/stm32_romfs_initialize.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_spi.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_timer.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_uid.c | 2 +- boards/arm/stm32/omnibusf4/src/stm32_usb.c | 50 +++--- boards/arm/stm32/omnibusf4/src/stm32_usbmsc.c | 2 +- .../arm/stm32/omnibusf4/src/stm32_userleds.c | 2 +- boards/arm/stm32/photon/include/board.h | 20 +-- boards/arm/stm32/photon/scripts/Make.defs | 2 +- boards/arm/stm32/photon/scripts/photon_dfu.ld | 2 +- .../arm/stm32/photon/scripts/photon_jtag.ld | 2 +- boards/arm/stm32/photon/src/Makefile | 2 +- boards/arm/stm32/photon/src/dfu_signature.c | 2 +- boards/arm/stm32/photon/src/photon.h | 8 +- boards/arm/stm32/photon/src/stm32_appinit.c | 2 +- boards/arm/stm32/photon/src/stm32_autoleds.c | 2 +- boards/arm/stm32/photon/src/stm32_boot.c | 18 +- boards/arm/stm32/photon/src/stm32_bringup.c | 2 +- boards/arm/stm32/photon/src/stm32_buttons.c | 2 +- boards/arm/stm32/photon/src/stm32_rgbled.c | 22 +-- boards/arm/stm32/photon/src/stm32_spi.c | 18 +- boards/arm/stm32/photon/src/stm32_usb.c | 22 +-- boards/arm/stm32/photon/src/stm32_userleds.c | 2 +- boards/arm/stm32/photon/src/stm32_wdt.c | 2 +- boards/arm/stm32/photon/src/stm32_wlan.c | 2 +- boards/arm/stm32/shenzhou/README.txt | 2 +- boards/arm/stm32/shenzhou/include/board.h | 40 ++--- boards/arm/stm32/shenzhou/scripts/Make.defs | 2 +- boards/arm/stm32/shenzhou/scripts/ld.script | 2 +- .../arm/stm32/shenzhou/scripts/ld.script.dfu | 2 +- boards/arm/stm32/shenzhou/src/Makefile | 2 +- boards/arm/stm32/shenzhou/src/shenzhou.h | 48 +++--- boards/arm/stm32/shenzhou/src/stm32_adc.c | 24 +-- boards/arm/stm32/shenzhou/src/stm32_appinit.c | 2 +- .../arm/stm32/shenzhou/src/stm32_autoleds.c | 6 +- boards/arm/stm32/shenzhou/src/stm32_boot.c | 26 +-- boards/arm/stm32/shenzhou/src/stm32_buttons.c | 6 +- boards/arm/stm32/shenzhou/src/stm32_can.c | 22 +-- boards/arm/stm32/shenzhou/src/stm32_chipid.c | 22 +-- boards/arm/stm32/shenzhou/src/stm32_ili93xx.c | 158 +++++++++--------- boards/arm/stm32/shenzhou/src/stm32_mmcsd.c | 2 +- boards/arm/stm32/shenzhou/src/stm32_relays.c | 2 +- boards/arm/stm32/shenzhou/src/stm32_spi.c | 18 +- boards/arm/stm32/shenzhou/src/stm32_ssd1289.c | 90 +++++----- .../stm32/shenzhou/src/stm32_touchscreen.c | 6 +- boards/arm/stm32/shenzhou/src/stm32_usb.c | 50 +++--- boards/arm/stm32/shenzhou/src/stm32_usbmsc.c | 2 +- .../arm/stm32/shenzhou/src/stm32_userleds.c | 2 +- boards/arm/stm32/shenzhou/src/stm32_w25.c | 2 +- boards/arm/stm32/shenzhou/tools/oocd.sh | 2 +- boards/arm/stm32/stm3210e-eval/README.txt | 10 +- .../arm/stm32/stm3210e-eval/include/board.h | 40 ++--- .../arm/stm32/stm3210e-eval/scripts/Make.defs | 2 +- .../arm/stm32/stm3210e-eval/scripts/ld.script | 2 +- .../stm32/stm3210e-eval/scripts/ld.script.dfu | 2 +- boards/arm/stm32/stm3210e-eval/src/Makefile | 2 +- .../stm32/stm3210e-eval/src/stm3210e-eval.h | 92 +++++----- .../arm/stm32/stm3210e-eval/src/stm32_adc.c | 26 +-- .../stm32/stm3210e-eval/src/stm32_appinit.c | 2 +- .../arm/stm32/stm3210e-eval/src/stm32_boot.c | 26 +-- .../stm32/stm3210e-eval/src/stm32_bringup.c | 2 +- .../stm32/stm3210e-eval/src/stm32_buttons.c | 6 +- .../arm/stm32/stm3210e-eval/src/stm32_can.c | 22 +-- .../stm32/stm3210e-eval/src/stm32_composite.c | 2 +- .../stm3210e-eval/src/stm32_deselectlcd.c | 34 ++-- .../stm3210e-eval/src/stm32_deselectnor.c | 34 ++-- .../stm3210e-eval/src/stm32_deselectsram.c | 34 ++-- .../stm32/stm3210e-eval/src/stm32_djoystick.c | 2 +- .../stm3210e-eval/src/stm32_extcontext.c | 34 ++-- .../stm32/stm3210e-eval/src/stm32_extmem.c | 34 ++-- .../arm/stm32/stm3210e-eval/src/stm32_idle.c | 2 +- .../arm/stm32/stm3210e-eval/src/stm32_lcd.c | 126 +++++++------- .../arm/stm32/stm3210e-eval/src/stm32_leds.c | 6 +- .../arm/stm32/stm3210e-eval/src/stm32_lm75.c | 22 +-- boards/arm/stm32/stm3210e-eval/src/stm32_pm.c | 2 +- .../stm32/stm3210e-eval/src/stm32_pmbuttons.c | 2 +- .../stm32/stm3210e-eval/src/stm32_selectlcd.c | 34 ++-- .../stm32/stm3210e-eval/src/stm32_selectnor.c | 30 ++-- .../stm3210e-eval/src/stm32_selectsram.c | 34 ++-- .../arm/stm32/stm3210e-eval/src/stm32_spi.c | 18 +- .../stm32/stm3210e-eval/src/stm32_usbdev.c | 34 ++-- .../stm32/stm3210e-eval/src/stm32_usbmsc.c | 2 +- boards/arm/stm32/stm3210e-eval/tools/oocd.sh | 2 +- .../arm/stm32/stm3220g-eval/include/board.h | 32 ++-- .../arm/stm32/stm3220g-eval/scripts/Make.defs | 2 +- .../arm/stm32/stm3220g-eval/scripts/ld.script | 2 +- boards/arm/stm32/stm3220g-eval/src/Makefile | 2 +- .../stm32/stm3220g-eval/src/stm3220g-eval.h | 92 +++++----- .../arm/stm32/stm3220g-eval/src/stm32_adc.c | 26 +-- .../stm32/stm3220g-eval/src/stm32_appinit.c | 2 +- .../stm32/stm3220g-eval/src/stm32_autoleds.c | 2 +- .../arm/stm32/stm3220g-eval/src/stm32_boot.c | 26 +-- .../stm32/stm3220g-eval/src/stm32_buttons.c | 6 +- .../arm/stm32/stm3220g-eval/src/stm32_can.c | 22 +-- .../stm3220g-eval/src/stm32_deselectlcd.c | 34 ++-- .../stm3220g-eval/src/stm32_deselectsram.c | 34 ++-- .../stm32/stm3220g-eval/src/stm32_extmem.c | 42 ++--- .../arm/stm32/stm3220g-eval/src/stm32_lcd.c | 122 +++++++------- .../arm/stm32/stm3220g-eval/src/stm32_pwm.c | 22 +-- .../stm32/stm3220g-eval/src/stm32_selectlcd.c | 34 ++-- .../stm3220g-eval/src/stm32_selectsram.c | 34 ++-- .../arm/stm32/stm3220g-eval/src/stm32_spi.c | 18 +- .../stm32/stm3220g-eval/src/stm32_stmpe811.c | 6 +- .../arm/stm32/stm3220g-eval/src/stm32_usb.c | 50 +++--- .../stm32/stm3220g-eval/src/stm32_userleds.c | 2 +- boards/arm/stm32/stm3220g-eval/tools/oocd.sh | 2 +- boards/arm/stm32/stm3240g-eval/README.txt | 2 +- .../arm/stm32/stm3240g-eval/include/board.h | 32 ++-- .../arm/stm32/stm3240g-eval/kernel/Makefile | 2 +- .../stm3240g-eval/kernel/stm32_userspace.c | 2 +- .../arm/stm32/stm3240g-eval/scripts/Make.defs | 2 +- .../stm3240g-eval/scripts/kernel-space.ld | 2 +- .../arm/stm32/stm3240g-eval/scripts/ld.script | 2 +- .../arm/stm32/stm3240g-eval/scripts/memory.ld | 4 +- .../stm32/stm3240g-eval/scripts/user-space.ld | 2 +- boards/arm/stm32/stm3240g-eval/src/Makefile | 2 +- .../stm32/stm3240g-eval/src/stm3240g-eval.h | 100 +++++------ .../arm/stm32/stm3240g-eval/src/stm32_adc.c | 26 +-- .../stm32/stm3240g-eval/src/stm32_appinit.c | 2 +- .../stm32/stm3240g-eval/src/stm32_autoleds.c | 2 +- .../arm/stm32/stm3240g-eval/src/stm32_boot.c | 22 +-- .../stm32/stm3240g-eval/src/stm32_bringup.c | 2 +- .../stm32/stm3240g-eval/src/stm32_buttons.c | 6 +- .../arm/stm32/stm3240g-eval/src/stm32_can.c | 22 +-- .../stm3240g-eval/src/stm32_deselectlcd.c | 34 ++-- .../stm3240g-eval/src/stm32_deselectsram.c | 34 ++-- .../stm32/stm3240g-eval/src/stm32_extmem.c | 42 ++--- .../arm/stm32/stm3240g-eval/src/stm32_lcd.c | 122 +++++++------- .../stm32/stm3240g-eval/src/stm32_ostest.c | 26 +-- .../arm/stm32/stm3240g-eval/src/stm32_pwm.c | 22 +-- .../stm32/stm3240g-eval/src/stm32_selectlcd.c | 34 ++-- .../stm3240g-eval/src/stm32_selectsram.c | 34 ++-- .../arm/stm32/stm3240g-eval/src/stm32_spi.c | 18 +- .../stm32/stm3240g-eval/src/stm32_stmpe811.c | 6 +- .../arm/stm32/stm3240g-eval/src/stm32_usb.c | 50 +++--- .../stm32/stm3240g-eval/src/stm32_userleds.c | 2 +- boards/arm/stm32/stm32_tiny/include/board.h | 24 +-- boards/arm/stm32/stm32_tiny/scripts/Make.defs | 2 +- boards/arm/stm32/stm32_tiny/scripts/ld.script | 2 +- boards/arm/stm32/stm32_tiny/src/Makefile | 2 +- .../arm/stm32/stm32_tiny/src/stm32_appinit.c | 2 +- boards/arm/stm32/stm32_tiny/src/stm32_boot.c | 26 +-- boards/arm/stm32/stm32_tiny/src/stm32_leds.c | 2 +- .../arm/stm32/stm32_tiny/src/stm32_nrf24l01.c | 26 +-- boards/arm/stm32/stm32_tiny/src/stm32_pwm.c | 22 +-- boards/arm/stm32/stm32_tiny/src/stm32_spi.c | 18 +- boards/arm/stm32/stm32_tiny/src/stm32_tiny.h | 49 +++--- .../arm/stm32/stm32_tiny/src/stm32_usbdev.c | 34 ++-- .../arm/stm32/stm32butterfly2/include/board.h | 29 ++-- .../stm32/stm32butterfly2/scripts/Make.defs | 2 +- .../arm/stm32/stm32butterfly2/scripts/dfu.ld | 2 +- .../stm32/stm32butterfly2/scripts/flash.ld | 2 +- boards/arm/stm32/stm32butterfly2/src/Makefile | 2 +- .../arm/stm32/stm32butterfly2/src/stm32_adc.c | 6 +- .../stm32/stm32butterfly2/src/stm32_boot.c | 2 +- .../stm32butterfly2/src/stm32_butterfly2.h | 12 +- .../stm32/stm32butterfly2/src/stm32_buttons.c | 2 +- .../stm32/stm32butterfly2/src/stm32_leds.c | 2 +- .../stm32/stm32butterfly2/src/stm32_mmcsd.c | 2 +- .../arm/stm32/stm32butterfly2/src/stm32_spi.c | 2 +- .../arm/stm32/stm32butterfly2/src/stm32_usb.c | 2 +- .../stm32/stm32butterfly2/src/stm32_usbdev.c | 2 +- .../stm32/stm32butterfly2/src/stm32_usbhost.c | 2 +- boards/arm/stm32/stm32f103-minimum/README.txt | 4 +- .../stm32/stm32f103-minimum/include/board.h | 20 +-- .../stm32/stm32f103-minimum/scripts/Make.defs | 2 +- .../stm32/stm32f103-minimum/scripts/ld.script | 2 +- .../stm32f103-minimum/scripts/ld.script.dfu | 2 +- .../arm/stm32/stm32f103-minimum/src/Makefile | 2 +- .../stm32/stm32f103-minimum/src/stm32_adc.c | 26 +-- .../stm32f103-minimum/src/stm32_apa102.c | 10 +- .../stm32f103-minimum/src/stm32_apds9960.c | 38 ++--- .../stm32f103-minimum/src/stm32_appinit.c | 2 +- .../stm32/stm32f103-minimum/src/stm32_at24.c | 2 +- .../stm32f103-minimum/src/stm32_autoleds.c | 2 +- .../stm32f103-minimum/src/stm32_bmp180.c | 22 +-- .../stm32/stm32f103-minimum/src/stm32_boot.c | 22 +-- .../stm32f103-minimum/src/stm32_bringup.c | 2 +- .../stm32f103-minimum/src/stm32_buttons.c | 2 +- .../stm32/stm32f103-minimum/src/stm32_gpio.c | 2 +- .../stm32f103-minimum/src/stm32_hcsr04.c | 34 ++-- .../stm32/stm32f103-minimum/src/stm32_lcd.c | 2 +- .../stm32/stm32f103-minimum/src/stm32_lm75.c | 22 +-- .../stm32f103-minimum/src/stm32_max6675.c | 22 +-- .../stm32f103-minimum/src/stm32_max7219.c | 2 +- .../stm32f103-minimum/src/stm32_mcp2515.c | 10 +- .../stm32f103-minimum/src/stm32_mfrc522.c | 22 +-- .../stm32/stm32f103-minimum/src/stm32_mmcsd.c | 2 +- .../stm32f103-minimum/src/stm32_nrf24l01.c | 30 ++-- .../stm32f103-minimum/src/stm32_nunchuck.c | 2 +- .../stm32f103-minimum/src/stm32_pcd8544.c | 2 +- .../stm32/stm32f103-minimum/src/stm32_pwm.c | 22 +-- .../stm32f103-minimum/src/stm32_qencoder.c | 18 +- .../stm32f103-minimum/src/stm32_rgbled.c | 22 +-- .../stm32/stm32f103-minimum/src/stm32_spi.c | 18 +- .../stm32f103-minimum/src/stm32_ssd1306.c | 2 +- .../stm32/stm32f103-minimum/src/stm32_tone.c | 22 +-- .../stm32f103-minimum/src/stm32_usbdev.c | 26 +-- .../stm32f103-minimum/src/stm32_usbmsc.c | 2 +- .../stm32f103-minimum/src/stm32_userleds.c | 2 +- .../stm32f103-minimum/src/stm32_veml6070.c | 22 +-- .../stm32/stm32f103-minimum/src/stm32_w25.c | 2 +- .../stm32f103-minimum/src/stm32_zerocross.c | 2 +- .../stm32f103-minimum/src/stm32f103_minimum.h | 88 +++++----- .../arm/stm32/stm32f334-disco/include/board.h | 8 +- .../stm32/stm32f334-disco/scripts/Make.defs | 2 +- .../stm32/stm32f334-disco/scripts/ld.script | 2 +- boards/arm/stm32/stm32f334-disco/src/Makefile | 2 +- .../arm/stm32/stm32f334-disco/src/stm32_adc.c | 6 +- .../stm32/stm32f334-disco/src/stm32_appinit.c | 2 +- .../stm32f334-disco/src/stm32_autoleds.c | 2 +- .../stm32/stm32f334-disco/src/stm32_boot.c | 2 +- .../stm32/stm32f334-disco/src/stm32_comp.c | 2 +- .../stm32/stm32f334-disco/src/stm32_hrtim.c | 2 +- .../stm32/stm32f334-disco/src/stm32_opamp.c | 2 +- .../stm32f334-disco/src/stm32_powerled.c | 2 +- .../stm32/stm32f334-disco/src/stm32_smps.c | 2 +- .../stm32f334-disco/src/stm32f334-disco.h | 16 +- boards/arm/stm32/stm32f3discovery/README.txt | 2 +- .../stm32/stm32f3discovery/include/board.h | 20 +-- .../stm32/stm32f3discovery/scripts/Make.defs | 2 +- .../stm32/stm32f3discovery/scripts/gnu-elf.ld | 2 +- .../stm32/stm32f3discovery/scripts/ld.script | 2 +- .../arm/stm32/stm32f3discovery/src/Makefile | 2 +- .../stm32f3discovery/src/stm32_appinit.c | 2 +- .../stm32f3discovery/src/stm32_autoleds.c | 2 +- .../stm32/stm32f3discovery/src/stm32_boot.c | 18 +- .../stm32f3discovery/src/stm32_bringup.c | 2 +- .../stm32f3discovery/src/stm32_buttons.c | 6 +- .../stm32/stm32f3discovery/src/stm32_pwm.c | 22 +-- .../stm32f3discovery/src/stm32_qencoder.c | 18 +- .../stm32/stm32f3discovery/src/stm32_spi.c | 18 +- .../stm32/stm32f3discovery/src/stm32_usb.c | 38 ++--- .../stm32f3discovery/src/stm32_userleds.c | 2 +- .../stm32f3discovery/src/stm32f3discovery.h | 50 +++--- .../stm32/stm32f411e-disco/include/board.h | 20 +-- .../stm32/stm32f411e-disco/scripts/Make.defs | 2 +- .../stm32/stm32f411e-disco/scripts/f411ve.ld | 2 +- .../arm/stm32/stm32f411e-disco/src/Makefile | 2 +- .../stm32f411e-disco/src/stm32_appinit.c | 2 +- .../stm32/stm32f411e-disco/src/stm32_boot.c | 18 +- .../stm32f411e-disco/src/stm32_bringup.c | 2 +- .../stm32/stm32f411e-disco/src/stm32_usb.c | 50 +++--- .../stm32f411e-disco/src/stm32f411e-disco.h | 8 +- boards/arm/stm32/stm32f429i-disco/README.txt | 4 +- .../stm32/stm32f429i-disco/include/board.h | 20 +-- .../stm32/stm32f429i-disco/scripts/Make.defs | 2 +- .../stm32/stm32f429i-disco/scripts/gnu-elf.ld | 2 +- .../stm32f429i-disco/scripts/kernel-space.ld | 2 +- .../stm32/stm32f429i-disco/scripts/ld.script | 2 +- .../stm32/stm32f429i-disco/scripts/memory.ld | 4 +- .../stm32f429i-disco/scripts/user-space.ld | 2 +- .../arm/stm32/stm32f429i-disco/src/Makefile | 2 +- .../stm32/stm32f429i-disco/src/stm32_adc.c | 2 +- .../stm32f429i-disco/src/stm32_appinit.c | 2 +- .../stm32f429i-disco/src/stm32_autoleds.c | 2 +- .../stm32/stm32f429i-disco/src/stm32_boot.c | 18 +- .../stm32f429i-disco/src/stm32_bringup.c | 2 +- .../stm32f429i-disco/src/stm32_buttons.c | 6 +- .../stm32/stm32f429i-disco/src/stm32_extmem.c | 34 ++-- .../stm32f429i-disco/src/stm32_highpri.c | 2 +- .../stm32/stm32f429i-disco/src/stm32_idle.c | 6 +- .../stm32f429i-disco/src/stm32_ili93414ws.c | 2 +- .../stm32/stm32f429i-disco/src/stm32_l3gd20.c | 2 +- .../stm32/stm32f429i-disco/src/stm32_lcd.c | 42 ++--- .../stm32/stm32f429i-disco/src/stm32_ostest.c | 26 +-- .../stm32/stm32f429i-disco/src/stm32_pwm.c | 22 +-- .../stm32/stm32f429i-disco/src/stm32_spi.c | 22 +-- .../stm32f429i-disco/src/stm32_stmpe811.c | 6 +- .../stm32/stm32f429i-disco/src/stm32_usb.c | 50 +++--- .../stm32f429i-disco/src/stm32_userleds.c | 2 +- .../stm32f429i-disco/src/stm32f429i-disco.h | 12 +- .../stm32/stm32f429i-disco/tools/fbcalc.sh | 2 +- boards/arm/stm32/stm32f4discovery/README.txt | 12 +- .../stm32/stm32f4discovery/include/board.h | 20 +-- .../stm32/stm32f4discovery/kernel/Makefile | 2 +- .../stm32f4discovery/kernel/stm32_userspace.c | 2 +- .../stm32/stm32f4discovery/scripts/Make.defs | 2 +- .../stm32/stm32f4discovery/scripts/gnu-elf.ld | 2 +- .../stm32f4discovery/scripts/kernel-space.ld | 2 +- .../stm32/stm32f4discovery/scripts/ld.script | 2 +- .../stm32/stm32f4discovery/scripts/memory.ld | 4 +- .../stm32f4discovery/scripts/user-space.ld | 2 +- .../arm/stm32/stm32f4discovery/src/Makefile | 2 +- .../stm32f4discovery/src/stm32_appinit.c | 2 +- .../stm32f4discovery/src/stm32_autoleds.c | 2 +- .../stm32f4discovery/src/stm32_bh1750fvi.c | 22 +-- .../stm32/stm32f4discovery/src/stm32_bmp180.c | 22 +-- .../stm32/stm32f4discovery/src/stm32_boot.c | 2 +- .../stm32f4discovery/src/stm32_bringup.c | 2 +- .../stm32f4discovery/src/stm32_buttons.c | 6 +- .../stm32/stm32f4discovery/src/stm32_can.c | 22 +-- .../stm32f4discovery/src/stm32_critmon.c | 22 +-- .../stm32f4discovery/src/stm32_cs43l22.c | 6 +- .../stm32f4discovery/src/stm32_ethernet.c | 34 ++-- .../stm32/stm32f4discovery/src/stm32_extmem.c | 42 ++--- .../stm32f4discovery/src/stm32_hciuart.c | 6 +- .../stm32/stm32f4discovery/src/stm32_idle.c | 6 +- .../stm32f4discovery/src/stm32_lis3dsh.c | 30 ++-- .../stm32f4discovery/src/stm32_max31855.c | 18 +- .../stm32f4discovery/src/stm32_max6675.c | 22 +-- .../stm32f4discovery/src/stm32_max7219.c | 2 +- .../stm32f4discovery/src/stm32_max7219_leds.c | 10 +- .../stm32f4discovery/src/stm32_mlx90614.c | 22 +-- .../stm32f4discovery/src/stm32_netinit.c | 18 +- .../stm32f4discovery/src/stm32_nunchuck.c | 2 +- .../stm32/stm32f4discovery/src/stm32_ostest.c | 22 +-- .../stm32f4discovery/src/stm32_pca9635.c | 6 +- .../arm/stm32/stm32f4discovery/src/stm32_pm.c | 2 +- .../stm32f4discovery/src/stm32_pmbuttons.c | 2 +- .../stm32/stm32f4discovery/src/stm32_pwm.c | 22 +-- .../stm32f4discovery/src/stm32_qencoder.c | 18 +- .../stm32/stm32f4discovery/src/stm32_reset.c | 2 +- .../stm32/stm32f4discovery/src/stm32_rgbled.c | 22 +-- .../stm32/stm32f4discovery/src/stm32_romfs.h | 8 +- .../src/stm32_romfs_initialize.c | 2 +- .../stm32/stm32f4discovery/src/stm32_sdio.c | 2 +- .../stm32/stm32f4discovery/src/stm32_spi.c | 18 +- .../stm32f4discovery/src/stm32_ssd1289.c | 72 ++++---- .../stm32f4discovery/src/stm32_ssd1351.c | 2 +- .../stm32/stm32f4discovery/src/stm32_st7032.c | 2 +- .../stm32/stm32f4discovery/src/stm32_st7567.c | 2 +- .../stm32/stm32f4discovery/src/stm32_timer.c | 2 +- .../src/stm32_ug2864ambag01.c | 2 +- .../src/stm32_ug2864hsweg01.c | 2 +- .../stm32/stm32f4discovery/src/stm32_uid.c | 18 +- .../stm32/stm32f4discovery/src/stm32_usb.c | 50 +++--- .../stm32/stm32f4discovery/src/stm32_usbmsc.c | 2 +- .../stm32f4discovery/src/stm32_userleds.c | 2 +- .../stm32f4discovery/src/stm32_xen1210.c | 10 +- .../stm32f4discovery/src/stm32_zerocross.c | 2 +- .../stm32f4discovery/src/stm32f4discovery.h | 16 +- .../arm/stm32/stm32ldiscovery/include/board.h | 24 +-- .../stm32/stm32ldiscovery/scripts/Make.defs | 2 +- .../stm32/stm32ldiscovery/scripts/gnu-elf.ld | 2 +- .../stm32ldiscovery/scripts/stm32l152rb.ld | 2 +- .../stm32ldiscovery/scripts/stm32l152rc.ld | 2 +- boards/arm/stm32/stm32ldiscovery/src/Makefile | 2 +- .../stm32/stm32ldiscovery/src/stm32_appinit.c | 2 +- .../stm32ldiscovery/src/stm32_autoleds.c | 2 +- .../stm32/stm32ldiscovery/src/stm32_boot.c | 30 ++-- .../stm32/stm32ldiscovery/src/stm32_bringup.c | 2 +- .../stm32/stm32ldiscovery/src/stm32_buttons.c | 6 +- .../arm/stm32/stm32ldiscovery/src/stm32_lcd.c | 2 +- .../arm/stm32/stm32ldiscovery/src/stm32_pwm.c | 22 +-- .../stm32ldiscovery/src/stm32_qencoder.c | 18 +- .../arm/stm32/stm32ldiscovery/src/stm32_spi.c | 18 +- .../stm32ldiscovery/src/stm32_userleds.c | 2 +- .../stm32ldiscovery/src/stm32ldiscovery.h | 46 ++--- boards/arm/stm32/stm32vldiscovery/README.txt | 2 +- .../stm32/stm32vldiscovery/include/board.h | 20 +-- .../stm32/stm32vldiscovery/scripts/Make.defs | 2 +- .../scripts/stm32vldiscovery.ld | 2 +- .../arm/stm32/stm32vldiscovery/src/Makefile | 2 +- .../stm32/stm32vldiscovery/src/stm32_boot.c | 18 +- .../stm32vldiscovery/src/stm32_buttons.c | 6 +- .../stm32/stm32vldiscovery/src/stm32_leds.c | 2 +- .../stm32vldiscovery/src/stm32vldiscovery.h | 8 +- .../include/board-stm32f103vct6.h | 28 ++-- .../include/board-stm32f107vct6.h | 28 ++-- .../stm32/viewtool-stm32f107/include/board.h | 20 +-- .../viewtool-stm32f107/scripts/Make.defs | 2 +- .../stm32/viewtool-stm32f107/scripts/dfu.ld | 2 +- .../stm32/viewtool-stm32f107/scripts/flash.ld | 2 +- .../arm/stm32/viewtool-stm32f107/src/Makefile | 2 +- .../viewtool-stm32f107/src/stm32_ads7843e.c | 6 +- .../viewtool-stm32f107/src/stm32_appinit.c | 2 +- .../stm32/viewtool-stm32f107/src/stm32_boot.c | 18 +- .../viewtool-stm32f107/src/stm32_bringup.c | 2 +- .../viewtool-stm32f107/src/stm32_buttons.c | 6 +- .../stm32/viewtool-stm32f107/src/stm32_can.c | 22 +-- .../viewtool-stm32f107/src/stm32_ft80x.c | 6 +- .../viewtool-stm32f107/src/stm32_highpri.c | 2 +- .../stm32/viewtool-stm32f107/src/stm32_leds.c | 6 +- .../viewtool-stm32f107/src/stm32_max3421e.c | 6 +- .../viewtool-stm32f107/src/stm32_mmcsd.c | 2 +- .../viewtool-stm32f107/src/stm32_mpl115a.c | 22 +-- .../stm32/viewtool-stm32f107/src/stm32_spi.c | 18 +- .../viewtool-stm32f107/src/stm32_ssd1289.c | 70 ++++---- .../viewtool-stm32f107/src/stm32_usbdev.c | 38 ++--- .../viewtool-stm32f107/src/stm32_usbmsc.c | 2 +- .../src/viewtool_stm32f107.h | 8 +- .../b-l072z-lrwan1/include/board.h | 11 +- .../b-l072z-lrwan1/scripts/Make.defs | 2 +- .../b-l072z-lrwan1/scripts/ld.script | 2 +- .../stm32f0l0g0/b-l072z-lrwan1/src/Makefile | 2 +- .../b-l072z-lrwan1/src/b-l072z-lrwan1.h | 22 +-- .../b-l072z-lrwan1/src/stm32_adc.c | 2 +- .../b-l072z-lrwan1/src/stm32_appinit.c | 2 +- .../b-l072z-lrwan1/src/stm32_autoleds.c | 2 +- .../b-l072z-lrwan1/src/stm32_boot.c | 6 +- .../b-l072z-lrwan1/src/stm32_bringup.c | 2 +- .../b-l072z-lrwan1/src/stm32_spi.c | 6 +- .../b-l072z-lrwan1/src/stm32_ssd1306.c | 2 +- .../b-l072z-lrwan1/src/stm32_sx127x.c | 3 +- .../stm32f0l0g0/nucleo-f072rb/include/board.h | 24 +-- .../nucleo-f072rb/scripts/Make.defs | 2 +- .../nucleo-f072rb/scripts/flash.ld | 2 +- .../stm32f0l0g0/nucleo-f072rb/src/Makefile | 2 +- .../nucleo-f072rb/src/nucleo-f072rb.h | 11 +- .../nucleo-f072rb/src/stm32_appinit.c | 2 +- .../nucleo-f072rb/src/stm32_autoleds.c | 2 +- .../nucleo-f072rb/src/stm32_boot.c | 18 +- .../nucleo-f072rb/src/stm32_bringup.c | 2 +- .../nucleo-f072rb/src/stm32_buttons.c | 6 +- .../nucleo-f072rb/src/stm32_userleds.c | 2 +- .../stm32f0l0g0/nucleo-f091rc/include/board.h | 31 ++-- .../nucleo-f091rc/scripts/Make.defs | 2 +- .../nucleo-f091rc/scripts/flash.ld | 2 +- .../stm32f0l0g0/nucleo-f091rc/src/Makefile | 2 +- .../nucleo-f091rc/src/nucleo-f091rc.h | 11 +- .../nucleo-f091rc/src/stm32_appinit.c | 2 +- .../nucleo-f091rc/src/stm32_autoleds.c | 2 +- .../nucleo-f091rc/src/stm32_boot.c | 18 +- .../nucleo-f091rc/src/stm32_bringup.c | 2 +- .../nucleo-f091rc/src/stm32_buttons.c | 6 +- .../stm32f0l0g0/nucleo-f091rc/src/stm32_spi.c | 2 +- .../nucleo-f091rc/src/stm32_sx127x.c | 2 +- .../nucleo-f091rc/src/stm32_userleds.c | 2 +- .../stm32f0l0g0/nucleo-g071rb/include/board.h | 11 +- .../nucleo-g071rb/scripts/Make.defs | 2 +- .../nucleo-g071rb/scripts/ld.script | 2 +- .../stm32f0l0g0/nucleo-g071rb/src/Makefile | 2 +- .../nucleo-g071rb/src/nucleo-g071rb.h | 12 +- .../nucleo-g071rb/src/stm32_appinit.c | 2 +- .../nucleo-g071rb/src/stm32_autoleds.c | 2 +- .../nucleo-g071rb/src/stm32_boot.c | 6 +- .../nucleo-g071rb/src/stm32_bringup.c | 3 +- .../nucleo-g071rb/src/stm32_buttons.c | 6 +- .../stm32f0l0g0/nucleo-l073rz/include/board.h | 11 +- .../nucleo-l073rz/scripts/Make.defs | 2 +- .../nucleo-l073rz/scripts/ld.script | 2 +- .../stm32f0l0g0/nucleo-l073rz/src/Makefile | 2 +- .../nucleo-l073rz/src/nucleo-l073rz.h | 12 +- .../nucleo-l073rz/src/stm32_appinit.c | 2 +- .../nucleo-l073rz/src/stm32_autoleds.c | 2 +- .../nucleo-l073rz/src/stm32_boot.c | 6 +- .../nucleo-l073rz/src/stm32_bringup.c | 3 +- .../nucleo-l073rz/src/stm32_buttons.c | 6 +- .../nucleo-l073rz/src/stm32_mfrc522.c | 22 +-- .../nucleo-l073rz/src/stm32_nrf24l01.c | 30 ++-- .../stm32f0l0g0/nucleo-l073rz/src/stm32_spi.c | 6 +- .../nucleo-l073rz/src/stm32_sx127x.c | 3 +- .../stm32f051-discovery/include/board.h | 32 ++-- .../stm32f051-discovery/scripts/Make.defs | 2 +- .../stm32f051-discovery/scripts/flash.ld | 2 +- .../stm32f051-discovery/scripts/gnu-elf.ld | 2 +- .../stm32f051-discovery/src/Makefile | 2 +- .../stm32f051-discovery/src/stm32_appinit.c | 2 +- .../stm32f051-discovery/src/stm32_autoleds.c | 2 +- .../stm32f051-discovery/src/stm32_boot.c | 18 +- .../stm32f051-discovery/src/stm32_bringup.c | 2 +- .../stm32f051-discovery/src/stm32_buttons.c | 6 +- .../stm32f051-discovery/src/stm32_userleds.c | 2 +- .../src/stm32f051-discovery.h | 52 +++--- .../stm32f072-discovery/include/board.h | 30 ++-- .../stm32f072-discovery/scripts/Make.defs | 2 +- .../stm32f072-discovery/scripts/flash.ld | 2 +- .../stm32f072-discovery/scripts/gnu-elf.ld | 2 +- .../stm32f072-discovery/src/Makefile | 2 +- .../stm32f072-discovery/src/stm32_appinit.c | 2 +- .../stm32f072-discovery/src/stm32_autoleds.c | 2 +- .../stm32f072-discovery/src/stm32_boot.c | 18 +- .../stm32f072-discovery/src/stm32_bringup.c | 2 +- .../stm32f072-discovery/src/stm32_buttons.c | 6 +- .../stm32f072-discovery/src/stm32_userleds.c | 2 +- .../src/stm32f072-discovery.h | 52 +++--- boards/arm/stm32f7/nucleo-144/include/board.h | 51 +++--- .../stm32f7/nucleo-144/scripts/f722-flash.ld | 4 +- .../stm32f7/nucleo-144/scripts/f746-flash.ld | 2 +- .../stm32f7/nucleo-144/scripts/f767-flash.ld | 2 +- .../nucleo-144/scripts/kernel-space.ld | 2 +- .../arm/stm32f7/nucleo-144/scripts/memory.ld | 2 +- .../stm32f7/nucleo-144/scripts/user-space.ld | 2 +- boards/arm/stm32f7/nucleo-144/src/Makefile | 2 +- .../arm/stm32f7/nucleo-144/src/nucleo-144.h | 62 +++---- boards/arm/stm32f7/nucleo-144/src/stm32_adc.c | 33 ++-- .../nucleo-144/src/stm32_appinitialize.c | 2 +- .../stm32f7/nucleo-144/src/stm32_autoleds.c | 2 +- .../arm/stm32f7/nucleo-144/src/stm32_bbsram.c | 2 +- .../arm/stm32f7/nucleo-144/src/stm32_boot.c | 22 +-- .../stm32f7/nucleo-144/src/stm32_buttons.c | 6 +- .../stm32f7/nucleo-144/src/stm32_dma_alloc.c | 22 +-- .../arm/stm32f7/nucleo-144/src/stm32_gpio.c | 2 +- boards/arm/stm32f7/nucleo-144/src/stm32_pwm.c | 22 +-- .../arm/stm32f7/nucleo-144/src/stm32_reset.c | 2 +- .../arm/stm32f7/nucleo-144/src/stm32_romfs.h | 8 +- .../nucleo-144/src/stm32_romfs_initialize.c | 2 +- .../arm/stm32f7/nucleo-144/src/stm32_sdio.c | 2 +- boards/arm/stm32f7/nucleo-144/src/stm32_spi.c | 26 +-- boards/arm/stm32f7/nucleo-144/src/stm32_usb.c | 42 ++--- .../stm32f7/nucleo-144/src/stm32_userleds.c | 2 +- .../arm/stm32f7/stm32f746-ws/include/board.h | 29 ++-- .../stm32f7/stm32f746-ws/scripts/Make.defs | 2 +- .../arm/stm32f7/stm32f746-ws/scripts/flash.ld | 2 +- .../stm32f746-ws/scripts/kernel-space.ld | 2 +- .../stm32f7/stm32f746-ws/scripts/memory.ld | 4 +- .../stm32f746-ws/scripts/user-space.ld | 2 +- boards/arm/stm32f7/stm32f746-ws/src/Makefile | 2 +- .../stm32f746-ws/src/stm32_appinitialize.c | 2 +- .../arm/stm32f7/stm32f746-ws/src/stm32_boot.c | 22 +-- .../stm32f746-ws/src/stm32_dma_alloc.c | 22 +-- .../stm32f7/stm32f746-ws/src/stm32_sdmmc.c | 4 +- .../arm/stm32f7/stm32f746-ws/src/stm32_spi.c | 18 +- .../arm/stm32f7/stm32f746-ws/src/stm32_usb.c | 42 ++--- .../stm32f7/stm32f746-ws/src/stm32f746-ws.h | 54 +++--- .../arm/stm32f7/stm32f746g-disco/README.txt | 2 +- .../stm32f7/stm32f746g-disco/include/board.h | 48 +++--- .../stm32f7/stm32f746g-disco/kernel/Makefile | 2 +- .../stm32f746g-disco/kernel/stm32_userspace.c | 3 +- .../stm32f746g-disco/scripts/Make.defs | 2 +- .../stm32f7/stm32f746g-disco/scripts/flash.ld | 2 +- .../stm32f746g-disco/scripts/kernel-space.ld | 2 +- .../stm32f746g-disco/scripts/memory.ld | 4 +- .../stm32f746g-disco/scripts/user-space.ld | 2 +- .../arm/stm32f7/stm32f746g-disco/src/Makefile | 2 +- .../stm32f7/stm32f746g-disco/src/stm32_adc.c | 2 +- .../src/stm32_appinitialize.c | 2 +- .../stm32f746g-disco/src/stm32_autoleds.c | 2 +- .../stm32f7/stm32f746g-disco/src/stm32_boot.c | 22 +-- .../stm32f746g-disco/src/stm32_bringup.c | 2 +- .../stm32f746g-disco/src/stm32_buttons.c | 6 +- .../stm32f746g-disco/src/stm32_extmem.c | 46 ++--- .../stm32f7/stm32f746g-disco/src/stm32_lcd.c | 10 +- .../stm32f746g-disco/src/stm32_ostest.c | 26 +-- .../stm32f7/stm32f746g-disco/src/stm32_spi.c | 18 +- .../stm32f746g-disco/src/stm32_sporadic.c | 2 +- .../stm32f746g-disco/src/stm32_touchscreen.c | 6 +- .../stm32f746g-disco/src/stm32_userleds.c | 2 +- .../stm32f746g-disco/src/stm32f746g-disco.h | 71 ++++---- .../arm/stm32f7/stm32f769i-disco/README.txt | 2 +- .../stm32f7/stm32f769i-disco/include/board.h | 31 ++-- .../stm32f7/stm32f769i-disco/kernel/Makefile | 2 +- .../stm32f769i-disco/kernel/stm32_userspace.c | 3 +- .../stm32f769i-disco/scripts/Make.defs | 2 +- .../stm32f7/stm32f769i-disco/scripts/flash.ld | 2 +- .../stm32f769i-disco/scripts/kernel-space.ld | 2 +- .../stm32f769i-disco/scripts/memory.ld | 4 +- .../stm32f769i-disco/scripts/user-space.ld | 2 +- .../arm/stm32f7/stm32f769i-disco/src/Makefile | 2 +- .../src/stm32_appinitialize.c | 2 +- .../stm32f769i-disco/src/stm32_autoleds.c | 2 +- .../stm32f7/stm32f769i-disco/src/stm32_boot.c | 30 ++-- .../stm32f769i-disco/src/stm32_bringup.c | 2 +- .../stm32f769i-disco/src/stm32_buttons.c | 6 +- .../stm32f769i-disco/src/stm32_ostest.c | 26 +-- .../stm32f7/stm32f769i-disco/src/stm32_pwm.c | 22 +-- .../stm32f7/stm32f769i-disco/src/stm32_spi.c | 18 +- .../stm32f769i-disco/src/stm32_sporadic.c | 2 +- .../stm32f769i-disco/src/stm32_userleds.c | 2 +- .../stm32f769i-disco/src/stm32f769i-disco.h | 48 +++--- .../arm/stm32h7/nucleo-h743zi/include/board.h | 49 +++--- .../arm/stm32h7/nucleo-h743zi/kernel/Makefile | 2 +- .../nucleo-h743zi/kernel/stm32_userspace.c | 3 +- .../stm32h7/nucleo-h743zi/scripts/Make.defs | 2 +- .../stm32h7/nucleo-h743zi/scripts/flash.ld | 2 +- .../nucleo-h743zi/scripts/kernel.space.ld | 2 +- .../stm32h7/nucleo-h743zi/scripts/memory.ld | 2 +- .../nucleo-h743zi/scripts/user-space.ld | 2 +- boards/arm/stm32h7/nucleo-h743zi/src/Makefile | 2 +- .../stm32h7/nucleo-h743zi/src/nucleo-h743zi.h | 42 ++--- .../arm/stm32h7/nucleo-h743zi/src/stm32_adc.c | 33 ++-- .../nucleo-h743zi/src/stm32_appinitialize.c | 2 +- .../nucleo-h743zi/src/stm32_autoleds.c | 2 +- .../stm32h7/nucleo-h743zi/src/stm32_boot.c | 22 +-- .../stm32h7/nucleo-h743zi/src/stm32_bringup.c | 2 +- .../stm32h7/nucleo-h743zi/src/stm32_buttons.c | 2 +- .../nucleo-h743zi/src/stm32_lsm303agr.c | 2 +- .../stm32h7/nucleo-h743zi/src/stm32_lsm6dsl.c | 2 +- .../stm32h7/nucleo-h743zi/src/stm32_lsm9ds1.c | 2 +- .../nucleo-h743zi/src/stm32_nrf24l01.c | 30 ++-- .../stm32h7/nucleo-h743zi/src/stm32_pca9635.c | 6 +- .../arm/stm32h7/nucleo-h743zi/src/stm32_spi.c | 18 +- .../stm32h7/nucleo-h743zi/src/stm32_ssd1306.c | 2 +- .../arm/stm32h7/nucleo-h743zi/src/stm32_usb.c | 42 ++--- .../nucleo-h743zi/src/stm32_userleds.c | 2 +- .../include/b-l475e-iot01a_clock.h | 31 ++-- .../stm32l4/b-l475e-iot01a/include/board.h | 40 ++--- .../stm32l4/b-l475e-iot01a/scripts/Make.defs | 2 +- .../stm32l4/b-l475e-iot01a/scripts/flash.ld | 2 +- .../arm/stm32l4/b-l475e-iot01a/src/Makefile | 2 +- .../b-l475e-iot01a/src/b-l475e-iot01a.h | 9 +- .../b-l475e-iot01a/src/stm32_appinit.c | 2 +- .../b-l475e-iot01a/src/stm32_autoleds.c | 2 +- .../stm32l4/b-l475e-iot01a/src/stm32_boot.c | 18 +- .../b-l475e-iot01a/src/stm32_bringup.c | 2 +- .../stm32l4/b-l475e-iot01a/src/stm32_spi.c | 22 +-- .../stm32l4/b-l475e-iot01a/src/stm32_spirit.c | 2 +- .../stm32l4/b-l475e-iot01a/src/stm32_timer.c | 2 +- .../b-l475e-iot01a/src/stm32_userleds.c | 2 +- .../arm/stm32l4/nucleo-l432kc/include/board.h | 8 +- .../nucleo-l432kc/include/nucleo-l432kc.h | 30 ++-- .../stm32l4/nucleo-l432kc/scripts/Make.defs | 2 +- .../stm32l4/nucleo-l432kc/scripts/l432kc.ld | 2 +- boards/arm/stm32l4/nucleo-l432kc/src/Makefile | 2 +- .../stm32l4/nucleo-l432kc/src/nucleo-l432kc.h | 55 +++--- .../arm/stm32l4/nucleo-l432kc/src/stm32_adc.c | 2 +- .../stm32l4/nucleo-l432kc/src/stm32_appinit.c | 3 +- .../stm32l4/nucleo-l432kc/src/stm32_at45db.c | 2 +- .../nucleo-l432kc/src/stm32_autoleds.c | 2 +- .../stm32l4/nucleo-l432kc/src/stm32_boot.c | 2 +- .../stm32l4/nucleo-l432kc/src/stm32_buttons.c | 2 +- .../stm32l4/nucleo-l432kc/src/stm32_dac7571.c | 2 +- .../stm32l4/nucleo-l432kc/src/stm32_gpio.c | 2 +- .../stm32l4/nucleo-l432kc/src/stm32_ina219.c | 2 +- .../stm32l4/nucleo-l432kc/src/stm32_ina226.c | 2 +- .../arm/stm32l4/nucleo-l432kc/src/stm32_pwm.c | 3 +- .../nucleo-l432kc/src/stm32_qencoder.c | 2 +- .../arm/stm32l4/nucleo-l432kc/src/stm32_spi.c | 19 ++- .../stm32l4/nucleo-l432kc/src/stm32_timer.c | 2 +- .../nucleo-l432kc/src/stm32_userleds.c | 2 +- .../nucleo-l432kc/src/stm32_zerocross.c | 3 +- .../arm/stm32l4/nucleo-l452re/include/board.h | 50 +++--- .../nucleo-l452re/include/nucleo-l452re.h | 28 ++-- .../stm32l4/nucleo-l452re/scripts/Make.defs | 2 +- .../nucleo-l452re/scripts/l452re-flash.ld | 2 +- boards/arm/stm32l4/nucleo-l452re/src/Makefile | 2 +- .../stm32l4/nucleo-l452re/src/nucleo-l452re.h | 26 +-- .../arm/stm32l4/nucleo-l452re/src/stm32_adc.c | 35 ++-- .../stm32l4/nucleo-l452re/src/stm32_appinit.c | 2 +- .../nucleo-l452re/src/stm32_autoleds.c | 2 +- .../stm32l4/nucleo-l452re/src/stm32_boot.c | 18 +- .../stm32l4/nucleo-l452re/src/stm32_bringup.c | 2 +- .../stm32l4/nucleo-l452re/src/stm32_buttons.c | 6 +- .../arm/stm32l4/nucleo-l452re/src/stm32_dac.c | 20 +-- .../arm/stm32l4/nucleo-l452re/src/stm32_spi.c | 18 +- .../nucleo-l452re/src/stm32_userleds.c | 2 +- .../arm/stm32l4/nucleo-l476rg/include/board.h | 35 ++-- .../nucleo-l476rg/include/nucleo-l476rg.h | 30 ++-- .../stm32l4/nucleo-l476rg/scripts/Make.defs | 2 +- .../stm32l4/nucleo-l476rg/scripts/l476rg.ld | 2 +- boards/arm/stm32l4/nucleo-l476rg/src/Makefile | 2 +- .../stm32l4/nucleo-l476rg/src/nucleo-l476rg.h | 50 +++--- .../arm/stm32l4/nucleo-l476rg/src/stm32_adc.c | 30 ++-- .../nucleo-l476rg/src/stm32_ajoystick.c | 5 +- .../stm32l4/nucleo-l476rg/src/stm32_appinit.c | 2 +- .../stm32l4/nucleo-l476rg/src/stm32_as726x.c | 22 +-- .../nucleo-l476rg/src/stm32_autoleds.c | 2 +- .../stm32l4/nucleo-l476rg/src/stm32_bmp180.c | 18 +- .../stm32l4/nucleo-l476rg/src/stm32_boot.c | 18 +- .../stm32l4/nucleo-l476rg/src/stm32_buttons.c | 6 +- .../arm/stm32l4/nucleo-l476rg/src/stm32_can.c | 10 +- .../stm32l4/nucleo-l476rg/src/stm32_cc1101.c | 2 +- .../stm32l4/nucleo-l476rg/src/stm32_gpio.c | 2 +- .../nucleo-l476rg/src/stm32_lsm303agr.c | 8 +- .../stm32l4/nucleo-l476rg/src/stm32_lsm6dsl.c | 5 +- .../stm32l4/nucleo-l476rg/src/stm32_pcd8544.c | 2 +- .../arm/stm32l4/nucleo-l476rg/src/stm32_pwm.c | 27 +-- .../nucleo-l476rg/src/stm32_qencoder.c | 18 +- .../arm/stm32l4/nucleo-l476rg/src/stm32_spi.c | 18 +- .../nucleo-l476rg/src/stm32_spimmcsd.c | 3 +- .../stm32l4/nucleo-l476rg/src/stm32_timer.c | 2 +- .../nucleo-l476rg/src/stm32_userleds.c | 2 +- boards/arm/stm32l4/nucleo-l496zg/README.txt | 2 +- .../arm/stm32l4/nucleo-l496zg/include/board.h | 81 +++++---- .../stm32l4/nucleo-l496zg/scripts/Make.defs | 2 +- .../nucleo-l496zg/scripts/kernel-space.ld | 2 +- .../nucleo-l496zg/scripts/l496zg-flash.ld | 2 +- .../stm32l4/nucleo-l496zg/scripts/memory.ld | 2 +- .../nucleo-l496zg/scripts/user-space.ld | 2 +- boards/arm/stm32l4/nucleo-l496zg/src/Makefile | 2 +- .../stm32l4/nucleo-l496zg/src/nucleo-144.h | 69 ++++---- .../arm/stm32l4/nucleo-l496zg/src/stm32_adc.c | 33 ++-- .../nucleo-l496zg/src/stm32_appinitialize.c | 3 +- .../nucleo-l496zg/src/stm32_autoleds.c | 2 +- .../stm32l4/nucleo-l496zg/src/stm32_boot.c | 22 +-- .../stm32l4/nucleo-l496zg/src/stm32_buttons.c | 6 +- .../arm/stm32l4/nucleo-l496zg/src/stm32_dac.c | 20 +-- .../stm32l4/nucleo-l496zg/src/stm32_dfsdm.c | 16 +- .../nucleo-l496zg/src/stm32_dma_alloc.c | 22 +-- .../stm32l4/nucleo-l496zg/src/stm32_sdio.c | 2 +- .../arm/stm32l4/nucleo-l496zg/src/stm32_spi.c | 26 +-- .../arm/stm32l4/nucleo-l496zg/src/stm32_usb.c | 42 ++--- .../nucleo-l496zg/src/stm32_userleds.c | 2 +- .../arm/stm32l4/stm32l476-mdk/include/board.h | 57 ++++--- .../include/stm32l476-mdk-clocking.h | 32 ++-- .../stm32l4/stm32l476-mdk/scripts/Make.defs | 2 +- .../stm32l476-mdk/scripts/stm32l476-mdk.ld | 2 +- boards/arm/stm32l4/stm32l476-mdk/src/Makefile | 2 +- .../stm32l4/stm32l476-mdk/src/stm32_appinit.c | 2 +- .../stm32l476-mdk/src/stm32_autoleds.c | 2 +- .../stm32l4/stm32l476-mdk/src/stm32_boot.c | 18 +- .../stm32l4/stm32l476-mdk/src/stm32_bringup.c | 2 +- .../stm32l4/stm32l476-mdk/src/stm32_buttons.c | 2 +- .../stm32l476-mdk/src/stm32_clockconfig.c | 18 +- .../arm/stm32l4/stm32l476-mdk/src/stm32_spi.c | 19 ++- .../stm32l476-mdk/src/stm32_userleds.c | 2 +- .../stm32l4/stm32l476-mdk/src/stm32l476-mdk.h | 29 ++-- .../stm32l4/stm32l476vg-disco/include/board.h | 51 +++--- .../stm32l476vg-disco/include/boardctl.h | 12 +- .../include/stm32l476vg-disco-clocking.h | 37 ++-- .../stm32l4/stm32l476vg-disco/kernel/Makefile | 2 +- .../kernel/stm32l4_userspace.c | 3 +- .../stm32l476vg-disco/scripts/Make.defs | 2 +- .../stm32l476vg-disco/scripts/kernel-space.ld | 2 +- .../stm32l476vg-disco/scripts/memory.ld | 4 +- .../scripts/stm32l476vg-disco.ld | 2 +- .../stm32l476vg-disco/scripts/user-space.ld | 2 +- .../stm32l4/stm32l476vg-disco/src/Makefile | 2 +- .../stm32l476vg-disco/src/stm32_appinit.c | 2 +- .../stm32l476vg-disco/src/stm32_autoleds.c | 2 +- .../stm32l476vg-disco/src/stm32_boot.c | 18 +- .../stm32l476vg-disco/src/stm32_buttons.c | 6 +- .../stm32l476vg-disco/src/stm32_clockconfig.c | 18 +- .../stm32l4/stm32l476vg-disco/src/stm32_spi.c | 18 +- .../stm32l4/stm32l476vg-disco/src/stm32_usb.c | 53 +++--- .../stm32l476vg-disco/src/stm32_userleds.c | 2 +- .../stm32l476vg-disco/src/stm32l476vg-disco.h | 36 ++-- .../stm32l4/stm32l4r9ai-disco/include/board.h | 49 +++--- .../stm32l4r9ai-disco/include/boardctl.h | 12 +- .../include/stm32l4r9ai-disco-clocking.h | 30 ++-- .../stm32l4/stm32l4r9ai-disco/kernel/Makefile | 2 +- .../kernel/stm32l4_userspace.c | 2 +- .../stm32l4r9ai-disco/scripts/Make.defs | 2 +- .../stm32l4r9ai-disco/scripts/kernel-space.ld | 2 +- .../stm32l4r9ai-disco/scripts/memory.ld | 4 +- .../scripts/stm32l4r9ai-disco.ld | 2 +- .../stm32l4r9ai-disco/scripts/user-space.ld | 2 +- .../stm32l4/stm32l4r9ai-disco/src/Makefile | 2 +- .../stm32l4/stm32l4r9ai-disco/src/stm32_adc.c | 28 ++-- .../stm32l4r9ai-disco/src/stm32_appinit.c | 2 +- .../stm32l4r9ai-disco/src/stm32_autoleds.c | 2 +- .../stm32l4r9ai-disco/src/stm32_boot.c | 14 +- .../stm32l4r9ai-disco/src/stm32_buttons.c | 6 +- .../stm32l4r9ai-disco/src/stm32_clockconfig.c | 19 ++- .../stm32l4/stm32l4r9ai-disco/src/stm32_dac.c | 20 +-- .../stm32l4r9ai-disco/src/stm32_dfsdm.c | 2 +- .../stm32l4/stm32l4r9ai-disco/src/stm32_spi.c | 19 ++- .../stm32l4/stm32l4r9ai-disco/src/stm32_usb.c | 42 ++--- .../stm32l4r9ai-disco/src/stm32_userleds.c | 7 +- .../stm32l4r9ai-disco/src/stm32l4r9ai-disco.h | 55 +++--- 1136 files changed, 6808 insertions(+), 6650 deletions(-) diff --git a/boards/arm/stm32/axoloti/include/board.h b/boards/arm/stm32/axoloti/include/board.h index 6d75426503..b90eaec714 100644 --- a/boards/arm/stm32/axoloti/include/board.h +++ b/boards/arm/stm32/axoloti/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/axoloti/include/board.h +/**************************************************************************** + * boards/arm/stm32/axoloti/include/board.h * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Jason T. Harris @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_AXOLOTI_INCLUDE_BOARD_H -#define __BOARDS_ARM_AXOLOTI_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_AXOLOTI_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_AXOLOTI_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Clocking * The Axoloti board has an external 8MHz crystal. * The SoC can run at 180MHz, but the required USB clock of 48MHz cannot be @@ -127,7 +127,7 @@ #define STM32_RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_HCLKd2 /* PCLK2 = HCLK / 2 */ #define STM32_PCLK2_FREQUENCY (STM32_HCLK_FREQUENCY/2) -/************************************************************************************ +/**************************************************************************** * LED Definitions * If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in any * way. The following definitions are used to access individual LEDs. @@ -146,7 +146,7 @@ #define BOARD_LED1_BIT (1 << BOARD_LED1) #define BOARD_LED2_BIT (1 << BOARD_LED2) -/************************************************************************************ +/**************************************************************************** * Button Definitions * There are two buttons on the axoloti, one of them is GPIO connected. The other * is a reset button and is not under software control. @@ -156,7 +156,7 @@ #define NUM_BUTTONS 1 #define BUTTON_USER_BIT (1 << BUTTON_USER) -/************************************************************************************ +/**************************************************************************** * UARTs * The MIDI in/out ports of the axoloti are connected on USART6. * It maybe convenient to run a serial port connected to the header pins, @@ -176,7 +176,7 @@ #define GPIO_USART6_TX (GPIO_ALT|GPIO_AF8|GPIO_PORTG|GPIO_PIN14| \ GPIO_FLOAT|GPIO_SPEED_2MHz|GPIO_OPENDRAIN) -/************************************************************************************ +/**************************************************************************** * I2C Bus * Turn on the internal pullups since there are no external pullups. */ @@ -197,7 +197,7 @@ #define GPIO_I2C3_SDA (GPIO_ALT|GPIO_AF4|GPIO_PORTH|GPIO_PIN8| \ GPIO_SPEED_2MHz|GPIO_OPENDRAIN|GPIO_PULLUP) -/************************************************************************************ +/**************************************************************************** * SAI Bus * Used with the ADAU1961 CODEC * PE3_SAI1_SD_B (GPIO_SAI1_SD_B_1) @@ -226,7 +226,7 @@ */ #define DMACHAN_SAI1_B DMAMAP_SAI1_B_2 -/************************************************************************************ +/**************************************************************************** * SDIO * Used for the SD card interface. * d0 (AF12, PC8) @@ -272,4 +272,4 @@ #define DMAMAP_SDIO DMAMAP_SDIO_2 -#endif /* __BOARDS_ARM_AXOLOTI_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_AXOLOTI_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/axoloti/scripts/Make.defs b/boards/arm/stm32/axoloti/scripts/Make.defs index f226088dcf..4e2395c443 100644 --- a/boards/arm/stm32/axoloti/scripts/Make.defs +++ b/boards/arm/stm32/axoloti/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/axoloti/scripts/Make.defs +# boards/arm/stm32/axoloti/scripts/Make.defs # # Copyright (C) 2011-2012, 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/axoloti/scripts/gnu-elf.ld b/boards/arm/stm32/axoloti/scripts/gnu-elf.ld index 764b03fde8..da090cfa59 100644 --- a/boards/arm/stm32/axoloti/scripts/gnu-elf.ld +++ b/boards/arm/stm32/axoloti/scripts/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/scripts/gnu-elf.ld + * boards/arm/stm32/axoloti/scripts/gnu-elf.ld * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/axoloti/scripts/kernel-space.ld b/boards/arm/stm32/axoloti/scripts/kernel-space.ld index cb2e46daf2..33a0d44d04 100644 --- a/boards/arm/stm32/axoloti/scripts/kernel-space.ld +++ b/boards/arm/stm32/axoloti/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/scripts/kernel-space.ld + * boards/arm/stm32/axoloti/scripts/kernel-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/axoloti/scripts/ld.script b/boards/arm/stm32/axoloti/scripts/ld.script index 66626cbd5c..97da4a3c15 100644 --- a/boards/arm/stm32/axoloti/scripts/ld.script +++ b/boards/arm/stm32/axoloti/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/scripts/ld.script + * boards/arm/stm32/axoloti/scripts/ld.script * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/axoloti/scripts/memory.ld b/boards/arm/stm32/axoloti/scripts/memory.ld index 7a9a268b08..ea99ec74ab 100644 --- a/boards/arm/stm32/axoloti/scripts/memory.ld +++ b/boards/arm/stm32/axoloti/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/scripts/memory.ld + * boards/arm/stm32/axoloti/scripts/memory.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -48,7 +48,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of * FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/axoloti/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32/axoloti/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32/axoloti/scripts/user-space.ld b/boards/arm/stm32/axoloti/scripts/user-space.ld index d0c03487ce..a615e10e88 100644 --- a/boards/arm/stm32/axoloti/scripts/user-space.ld +++ b/boards/arm/stm32/axoloti/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/scripts/user-space.ld + * boards/arm/stm32/axoloti/scripts/user-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/axoloti/src/Makefile b/boards/arm/stm32/axoloti/src/Makefile index 8c86c55ebd..743fbebe88 100644 --- a/boards/arm/stm32/axoloti/src/Makefile +++ b/boards/arm/stm32/axoloti/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/axoloti/src/Makefile +# boards/arm/stm32/axoloti/src/Makefile # # Copyright (C) 2019 Gregory Nutt. All rights reserved. # Author: Jason T. Harris diff --git a/boards/arm/stm32/axoloti/src/axoloti.h b/boards/arm/stm32/axoloti/src/axoloti.h index f47864d75f..8c02a84c9c 100644 --- a/boards/arm/stm32/axoloti/src/axoloti.h +++ b/boards/arm/stm32/axoloti/src/axoloti.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/src/axoloti.h + * boards/arm/stm32/axoloti/src/axoloti.h * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Jason T. Harris @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_AXOLOTI_SRC_AXOLOTI_H -#define __BOARDS_ARM_AXOLOTI_SRC_AXOLOTI_H +#ifndef __BOARDS_ARM_STM32_AXOLOTI_SRC_AXOLOTI_H +#define __BOARDS_ARM_STM32_AXOLOTI_SRC_AXOLOTI_H /**************************************************************************** * Included Files @@ -248,4 +248,4 @@ int stm32_sdram_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_AXOLOTI_SRC_AXOLOTI_H */ +#endif /* __BOARDS_ARM_STM32_AXOLOTI_SRC_AXOLOTI_H */ diff --git a/boards/arm/stm32/axoloti/src/stm32_adau1961.c b/boards/arm/stm32/axoloti/src/stm32_adau1961.c index 807fb9ac4a..911cd66335 100644 --- a/boards/arm/stm32/axoloti/src/stm32_adau1961.c +++ b/boards/arm/stm32/axoloti/src/stm32_adau1961.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/src/stm32_adau1961.c + * boards/arm/stm32/axoloti/src/stm32_adau1961.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Jason T. Harris diff --git a/boards/arm/stm32/axoloti/src/stm32_boot.c b/boards/arm/stm32/axoloti/src/stm32_boot.c index 2d81281620..b5e54bb271 100644 --- a/boards/arm/stm32/axoloti/src/stm32_boot.c +++ b/boards/arm/stm32/axoloti/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/src/stm32_boot.c + * boards/arm/stm32/axoloti/src/stm32_boot.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Jason T. Harris diff --git a/boards/arm/stm32/axoloti/src/stm32_bringup.c b/boards/arm/stm32/axoloti/src/stm32_bringup.c index 8e80bd0b20..2826ed0a79 100644 --- a/boards/arm/stm32/axoloti/src/stm32_bringup.c +++ b/boards/arm/stm32/axoloti/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/axoloti/src/stm32_bringup.c + * boards/arm/stm32/axoloti/src/stm32_bringup.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Jason T. Harris diff --git a/boards/arm/stm32/axoloti/src/stm32_buttons.c b/boards/arm/stm32/axoloti/src/stm32_buttons.c index adb2b30f8a..0d7e6ca311 100644 --- a/boards/arm/stm32/axoloti/src/stm32_buttons.c +++ b/boards/arm/stm32/axoloti/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/src/stm32_buttons.c + * boards/arm/stm32/axoloti/src/stm32_buttons.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Jason T. Harris diff --git a/boards/arm/stm32/axoloti/src/stm32_extmem.c b/boards/arm/stm32/axoloti/src/stm32_extmem.c index c03a398350..518d9d2fed 100644 --- a/boards/arm/stm32/axoloti/src/stm32_extmem.c +++ b/boards/arm/stm32/axoloti/src/stm32_extmem.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/src/stm32_extmem.c + * boards/arm/stm32/axoloti/src/stm32_extmem.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Jason T. Harris diff --git a/boards/arm/stm32/axoloti/src/stm32_sdio.c b/boards/arm/stm32/axoloti/src/stm32_sdio.c index 9eadf24dd5..962eb0f11d 100644 --- a/boards/arm/stm32/axoloti/src/stm32_sdio.c +++ b/boards/arm/stm32/axoloti/src/stm32_sdio.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/axoloti/src/stm32_sdio.c + * boards/arm/stm32/axoloti/src/stm32_sdio.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Jason T. Harris diff --git a/boards/arm/stm32/axoloti/src/stm32_usbhost.c b/boards/arm/stm32/axoloti/src/stm32_usbhost.c index 503fa4a4bb..e35b22a401 100644 --- a/boards/arm/stm32/axoloti/src/stm32_usbhost.c +++ b/boards/arm/stm32/axoloti/src/stm32_usbhost.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/src/stm32_usbhost.c + * boards/arm/stm32/axoloti/src/stm32_usbhost.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Jason T. Harris diff --git a/boards/arm/stm32/axoloti/src/stm32_userleds.c b/boards/arm/stm32/axoloti/src/stm32_userleds.c index 837c9c211f..c6a97870c0 100644 --- a/boards/arm/stm32/axoloti/src/stm32_userleds.c +++ b/boards/arm/stm32/axoloti/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/axoloti/src/stm32_userleds.c + * boards/arm/stm32/axoloti/src/stm32_userleds.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Jason T. Harris diff --git a/boards/arm/stm32/clicker2-stm32/README.txt b/boards/arm/stm32/clicker2-stm32/README.txt index 425a050367..72610bec8f 100644 --- a/boards/arm/stm32/clicker2-stm32/README.txt +++ b/boards/arm/stm32/clicker2-stm32/README.txt @@ -75,7 +75,7 @@ Using JTAG The Clicker2 comes with the mikroBootloader installed. That bootloader has not been used and is possibly incompatible with the Clicker2-STM32 - linker script at boards/clicker2-stm32/scripts/flash.ld. Often code must + linker script at boards/arm/stm32/clicker2-stm32/scripts/flash.ld. Often code must be built to execute at an offset in to FLASH when a bootloader is used. Certainly that is the case for the ST-Micro DFU bootloader but I am not aware of the requirements for use with the mikroBootloader. diff --git a/boards/arm/stm32/clicker2-stm32/include/board.h b/boards/arm/stm32/clicker2-stm32/include/board.h index 9a54971690..54fb5833ba 100644 --- a/boards/arm/stm32/clicker2-stm32/include/board.h +++ b/boards/arm/stm32/clicker2-stm32/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/clicker2-stm32/include/board.h +/**************************************************************************** + * boards/arm/stm32/clicker2-stm32/include/board.h * * Copyright (C) 2017 Verge Inc. All rights reserved. * Author: Anthony Merlino @@ -36,14 +36,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_CLICKER2_STM32_INCLUDE_BOARD_H -#define __BOARDS_ARM_CLICKER2_STM32_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_CLICKER2_STM32_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_CLICKER2_STM32_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -58,11 +58,12 @@ # include "stm32.h" #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Clocking *****************************************************************/ -/* Clocking *************************************************************************/ /* The Clicker 2 for STM32 board features a 25Hz crystal and 32.768kHz RTC crystal. * * This is the canonical configuration: @@ -246,7 +247,8 @@ #define LED_ASSERTION 3 #define LED_PANIC 4 -/* Button definitions ***************************************************************/ +/* Button definitions *******************************************************/ + /* The Mikroe Clicker2 STM32 has two buttons available to software: * * T2 - PE0, Low sensed when pressed @@ -260,7 +262,8 @@ #define BUTTON_T2_BIT (1 << BUTTON_T2) #define BUTTON_T3_BIT (1 << BUTTON_T3) -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ + /* U[S]ARTs * * USART2 - mikroBUS1 @@ -316,7 +319,8 @@ #define GPIO_TIM1_CH1OUT GPIO_TIM1_CH1OUT_2 /* PE9 */ #define GPIO_TIM4_CH1OUT GPIO_TIM4_CH1OUT_2 /* PD12 */ -/* DMA Channl/Stream Selections *****************************************************/ +/* DMA Channl/Stream Selections *********************************************/ + /* Stream selections are arbitrary for now but might become important in the future * if we set aside more DMA channels/streams. * @@ -327,4 +331,4 @@ #define DMAMAP_SDIO DMAMAP_SDIO_1 -#endif /* __BOARDS_ARM_CLICKER2_STM32_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_CLICKER2_STM32_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/clicker2-stm32/kernel/Makefile b/boards/arm/stm32/clicker2-stm32/kernel/Makefile index 5abe2a29bc..5ba14f7725 100644 --- a/boards/arm/stm32/clicker2-stm32/kernel/Makefile +++ b/boards/arm/stm32/clicker2-stm32/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/clicker2-stm32/kernel/Makefile +# boards/arm/stm32/clicker2-stm32/kernel/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/kernel/stm32_userspace.c b/boards/arm/stm32/clicker2-stm32/kernel/stm32_userspace.c index a11c60a77d..d2fa4cd79d 100644 --- a/boards/arm/stm32/clicker2-stm32/kernel/stm32_userspace.c +++ b/boards/arm/stm32/clicker2-stm32/kernel/stm32_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/kernel/stm32_userspace.c + * boards/arm/stm32/clicker2-stm32/kernel/stm32_userspace.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -51,6 +51,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* Configuration ************************************************************/ #ifndef CONFIG_NUTTX_USERSPACE diff --git a/boards/arm/stm32/clicker2-stm32/scripts/Make.defs b/boards/arm/stm32/clicker2-stm32/scripts/Make.defs index c0336e7e2b..aa37209afc 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/Make.defs +++ b/boards/arm/stm32/clicker2-stm32/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/clicker2-stm32/scripts/Make.defs +# boards/arm/stm32/clicker2-stm32/scripts/Make.defs # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/scripts/flash.ld b/boards/arm/stm32/clicker2-stm32/scripts/flash.ld index c3b11db486..b479200ee5 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/flash.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/scripts/flash.ld + * boards/arm/stm32/clicker2-stm32/scripts/flash.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/scripts/gnu-elf.ld b/boards/arm/stm32/clicker2-stm32/scripts/gnu-elf.ld index fad585583c..09676156ac 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/gnu-elf.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/scripts/gnu-elf.ld + * boards/arm/stm32/clicker2-stm32/scripts/gnu-elf.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld b/boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld index a394f4a5eb..9238b25bb2 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/scripts/kernel-space.ld + * boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/scripts/memory.ld b/boards/arm/stm32/clicker2-stm32/scripts/memory.ld index a3c0d547c4..7d3948e91d 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/memory.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/scripts/memory.ld + * boards/arm/stm32/clicker2-stm32/scripts/memory.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -47,7 +47,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of * FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/clicker2-stm32/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32/clicker2-stm32/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32/clicker2-stm32/scripts/user-space.ld b/boards/arm/stm32/clicker2-stm32/scripts/user-space.ld index 50fb158ac8..c9b9a8d7c9 100644 --- a/boards/arm/stm32/clicker2-stm32/scripts/user-space.ld +++ b/boards/arm/stm32/clicker2-stm32/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/scripts/user-space.ld + * boards/arm/stm32/clicker2-stm32/scripts/user-space.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/src/Makefile b/boards/arm/stm32/clicker2-stm32/src/Makefile index 5440df4517..b323dad0a7 100644 --- a/boards/arm/stm32/clicker2-stm32/src/Makefile +++ b/boards/arm/stm32/clicker2-stm32/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/clicker2-stm32/src/Makefile +# boards/arm/stm32/clicker2-stm32/src/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/src/clicker2-stm32.h b/boards/arm/stm32/clicker2-stm32/src/clicker2-stm32.h index 92df8d77b2..cb91cab51f 100644 --- a/boards/arm/stm32/clicker2-stm32/src/clicker2-stm32.h +++ b/boards/arm/stm32/clicker2-stm32/src/clicker2-stm32.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/src/clicker2-stm32.h + * boards/arm/stm32/clicker2-stm32/src/clicker2-stm32.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_CLICKER2_STM32_SRC_CLICKER2_H -#define __BOARDS_ARM_CLICKER2_STM32_SRC_CLICKER2_H +#ifndef __BOARDS_ARM_STM32_CLICKER2_STM32_SRC_CLICKER2_H +#define __BOARDS_ARM_STM32_CLICKER2_STM32_SRC_CLICKER2_H /**************************************************************************** * Included Files @@ -58,6 +58,7 @@ #define HAVE_AUTOMOUNTER 1 /* MMCSD */ + /* Only support uSD click board */ #if !defined(CONFIG_CLICKER2_STM32_MB1_MMCSD) && \ @@ -182,6 +183,7 @@ */ /* USB device */ + /* USB device */ #define GPIO_OTGFS_VBUS (GPIO_INPUT|GPIO_FLOAT|GPIO_PORTA|GPIO_PIN9) @@ -192,6 +194,7 @@ #define GPIO_PWR_BATSTAT (GPIO_INPUT|GPIO_FLOAT|GPIO_PORTD|GPIO_PIN4) /* mikroBUS *************************************************************************/ + /* U[S]ARTs * * USART2 - mikroBUS1 @@ -252,9 +255,9 @@ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32_spidev_initialize @@ -267,7 +270,7 @@ void weak_function stm32_spidev_initialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_bringup * * Description: @@ -279,30 +282,30 @@ void weak_function stm32_spidev_initialize(void); * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_usb_configure * * Description: * Called from stm32_boardinitialize very early in inialization to setup USB-related * GPIO pins for the Mikroe Clicker2 STM32 board. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_OTGFS void stm32_usb_configure(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -383,7 +386,7 @@ int stm32_mmcsd_initialize(void); bool stm32_cardinserted(int slotno); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_automount_initialize * * Description: @@ -395,13 +398,13 @@ bool stm32_cardinserted(int slotno); * Returned Value: * None * - ************************************************************************************/ + ****************************************************************************/ #ifdef HAVE_AUTOMOUNTER int stm32_automount_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_automount_event * * Description: @@ -420,11 +423,11 @@ int stm32_automount_initialize(void); * Assumptions: * Interrupts are disabled. * - ************************************************************************************/ + ****************************************************************************/ #ifdef HAVE_AUTOMOUNTER void stm32_automount_event(int slotno, bool inserted); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_CLICKER2_STM32_SRC_CLICKER2_H */ +#endif /* __BOARDS_ARM_STM32_CLICKER2_STM32_SRC_CLICKER2_H */ diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_adc.c b/boards/arm/stm32/clicker2-stm32/src/stm32_adc.c index 1de08cfb25..252c5150ee 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_adc.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/clicker2-stm32/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/clicker2-stm32/src/stm32_adc.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,11 +52,12 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ -/* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ #if STM32_NADC < 3 @@ -80,9 +81,10 @@ #define ADC1_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ + /* The Olimex STM32-P407 has a 10 Kohm potentiometer AN_TR connected to PC0 * ADC123_IN10 */ @@ -97,17 +99,17 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {10}; static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN10}; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_appinit.c b/boards/arm/stm32/clicker2-stm32/src/stm32_appinit.c index 35de47b146..9435ebf1d5 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_appinit.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/clicker2-stm32/src/stm32_appinit.c + * boards/arm/stm32/clicker2-stm32/src/stm32_appinit.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_autoleds.c b/boards/arm/stm32/clicker2-stm32/src/stm32_autoleds.c index 47dd81b4ba..8d63b5feb7 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_autoleds.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/src/stm32_autoleds.c + * boards/arm/stm32/clicker2-stm32/src/stm32_autoleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,6 +32,7 @@ * POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************/ + /* If CONFIG_ARCH_LEDs is defined, then NuttX will control the 2 LEDs on * board the Clicker2 for STM32. The following definitions describe how * NuttX controls the LEDs: diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_automount.c b/boards/arm/stm32/clicker2-stm32/src/stm32_automount.c index fda4c38f63..1a3a238628 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_automount.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_automount.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/clicker2-stm32/src/stm32_automount.c +/**************************************************************************** + * boards/arm/stm32/clicker2-stm32/src/stm32_automount.c * * Copyright (C) 2017 Verge Inc. All rights reserved. * Author: Anthony Merlino @@ -33,11 +33,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,13 +55,13 @@ #ifdef HAVE_AUTOMOUNTER -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Types - ************************************************************************************/ + ****************************************************************************/ /* This structure represents the changeable state of the automounter */ struct stm32_automount_state_s @@ -85,18 +85,18 @@ struct stm32_automount_config_s FAR struct stm32_automount_state_s *state; /* Changeable state */ }; -/************************************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************************************/ + ****************************************************************************/ static int stm32_attach(FAR const struct automount_lower_s *lower, automount_handler_t isr, FAR void *arg); static void stm32_enable(FAR const struct automount_lower_s *lower, bool enable); static bool stm32_inserted(FAR const struct automount_lower_s *lower); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_CLICKER2_STM32_MB1_MMCSD_AUTOMOUNT static struct stm32_automount_state_s g_mb1_mmcsdstate; @@ -138,11 +138,11 @@ static const struct stm32_automount_config_s g_mb2_mmcsdconfig = }; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_attach * * Description: @@ -156,7 +156,7 @@ static const struct stm32_automount_config_s g_mb2_mmcsdconfig = * Returned Value: * Always returns OK * - ************************************************************************************/ + ****************************************************************************/ static int stm32_attach(FAR const struct automount_lower_s *lower, automount_handler_t isr, FAR void *arg) @@ -182,7 +182,7 @@ static int stm32_attach(FAR const struct automount_lower_s *lower, return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_enable * * Description: @@ -195,7 +195,7 @@ static int stm32_attach(FAR const struct automount_lower_s *lower, * Returned Value: * None * - ************************************************************************************/ + ****************************************************************************/ static void stm32_enable(FAR const struct automount_lower_s *lower, bool enable) { @@ -233,7 +233,7 @@ static void stm32_enable(FAR const struct automount_lower_s *lower, bool enable) leave_critical_section(flags); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_inserted * * Description: @@ -245,7 +245,7 @@ static void stm32_enable(FAR const struct automount_lower_s *lower, bool enable) * Returned Value: * True if the card is inserted; False otherwise * - ************************************************************************************/ + ****************************************************************************/ static bool stm32_inserted(FAR const struct automount_lower_s *lower) { @@ -257,11 +257,11 @@ static bool stm32_inserted(FAR const struct automount_lower_s *lower) return stm32_cardinserted(config->mmcsd); } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_automount_initialize * * Description: @@ -273,7 +273,7 @@ static bool stm32_inserted(FAR const struct automount_lower_s *lower) * Returned Value: * None * - ************************************************************************************/ + ****************************************************************************/ int stm32_automount_initialize(void) { @@ -306,7 +306,7 @@ int stm32_automount_initialize(void) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_automount_event * * Description: @@ -328,7 +328,7 @@ int stm32_automount_initialize(void) * Assumptions: * Interrupts are disabled. * - ************************************************************************************/ + ****************************************************************************/ void stm32_automount_event(int slotno, bool inserted) { diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_boot.c b/boards/arm/stm32/clicker2-stm32/src/stm32_boot.c index 0aa92e3467..5c17512081 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_boot.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/clicker2-stm32/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/clicker2-stm32/src/stm32_boot.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ #include "clicker2-stm32.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -59,7 +59,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_bringup.c b/boards/arm/stm32/clicker2-stm32/src/stm32_bringup.c index 5ba13726df..bad47d445b 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_bringup.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/clicker2-stm32/src/stm32_bringup.c + * boards/arm/stm32/clicker2-stm32/src/stm32_bringup.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_buttons.c b/boards/arm/stm32/clicker2-stm32/src/stm32_buttons.c index 52de7b9186..96b5bf200c 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_buttons.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/src/stm32_buttons.c + * boards/arm/stm32/clicker2-stm32/src/stm32_buttons.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -101,7 +101,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -121,7 +121,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_can.c b/boards/arm/stm32/clicker2-stm32/src/stm32_can.c index 899869b7f4..b86e18cc10 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_can.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/clicker2-stm32/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/clicker2-stm32/src/stm32_can.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #if defined(CONFIG_STM32_CAN1) && defined(CONFIG_STM32_CAN2) @@ -67,17 +67,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_mmcsd.c b/boards/arm/stm32/clicker2-stm32/src/stm32_mmcsd.c index 2b4294bada..3aeacba547 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_mmcsd.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_mmcsd.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/src/stm32_mmcsd.c + * boards/arm/stm32/clicker2-stm32/src/stm32_mmcsd.c * * Copyright (C) 2017 Verge Inc. All rights reserved. * Author: Anthony Merlino diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_mrf24j40.c b/boards/arm/stm32/clicker2-stm32/src/stm32_mrf24j40.c index dc5e76e425..40d3e3cc0d 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_mrf24j40.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_mrf24j40.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/src/stm32_mrf24j40.c + * boards/arm/stm32/clicker2-stm32/src/stm32_mrf24j40.c * * Copyright (C) 2017 Gregory Nutt, All rights reserver * Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_spi.c b/boards/arm/stm32/clicker2-stm32/src/stm32_spi.c index 26bf52c0a6..c45d221dac 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_spi.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/clicker2-stm32/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/clicker2-stm32/src/stm32_spi.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,17 +55,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Mikroe Clicker2 STM32 board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_usb.c b/boards/arm/stm32/clicker2-stm32/src/stm32_usb.c index 97d5fb60db..6a1d75a724 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_usb.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/clicker2-stm32/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/clicker2-stm32/src/stm32_usb.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -49,9 +49,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV # define HAVE_USB 1 @@ -60,18 +60,18 @@ # undef HAVE_USB #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usb_configure * * Description: * Called from stm32_boardinitialize very early in inialization to setup USB-related * GPIO pins for the Olimex STM32 P407 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usb_configure(void) { @@ -84,7 +84,7 @@ void stm32_usb_configure(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -93,7 +93,7 @@ void stm32_usb_configure(void) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_userleds.c b/boards/arm/stm32/clicker2-stm32/src/stm32_userleds.c index a6b6956968..49abd6e0ac 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_userleds.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/src/stm32_userleds.c + * boards/arm/stm32/clicker2-stm32/src/stm32_userleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c b/boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c index 4d8a893053..3f834e4c87 100644 --- a/boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c +++ b/boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/clicker2-stm32/src/stm32_xbee.c + * boards/arm/stm32/clicker2-stm32/src/stm32_xbee.c * * Copyright (C) 2017 Verge Inc. All rights reserved. * Author: Anthony Merlino diff --git a/boards/arm/stm32/cloudctrl/include/board.h b/boards/arm/stm32/cloudctrl/include/board.h index aef479b979..bf94584d15 100644 --- a/boards/arm/stm32/cloudctrl/include/board.h +++ b/boards/arm/stm32/cloudctrl/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/cloudctrl/include/board.h +/**************************************************************************** + * boards/arm/stm32/cloudctrl/include/board.h * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_CLOUDCTRL_INCLUDE_BOARD_H -#define __BOARDS_ARM_CLOUDCTRL_INCLUDE_BOARD_H 1 +#ifndef __BOARDS_ARM_STM32_CLOUDCTRL_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_CLOUDCTRL_INCLUDE_BOARD_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -293,9 +293,9 @@ * 15 PC0 POTENTIO_METER GPIO_ADC12_IN10 */ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -307,11 +307,11 @@ extern "C" { #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcdclear * * Description: @@ -320,11 +320,11 @@ extern "C" { * sequences of runs that covers the entire display can be very slow. Here the * display is cleared by simply setting all GRAM memory to the specified color. * - ************************************************************************************/ + ****************************************************************************/ void stm32_lcdclear(uint16_t color); -/************************************************************************************ +/**************************************************************************** * Relay control functions * * Description: @@ -332,7 +332,7 @@ void stm32_lcdclear(uint16_t color); * * NOTE: These must match the prototypes in include/nuttx/arch.h * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_RELAYS void up_relaysinit(void); @@ -348,13 +348,13 @@ void relays_resetmodes(uint32_t relays_stat); void relays_powermodes(uint32_t relays_stat); #endif -/************************************************************************************ +/**************************************************************************** * Chip ID functions * * Description: * Non-standard functions to obtain chip ID information. * - ************************************************************************************/ + ****************************************************************************/ const char *stm32_getchipid(void); const char *stm32_getchipid_string(void); @@ -365,4 +365,4 @@ const char *stm32_getchipid_string(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_CLOUDCTRL_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_CLOUDCTRL_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/cloudctrl/scripts/Make.defs b/boards/arm/stm32/cloudctrl/scripts/Make.defs index ff06418168..4e5507c571 100644 --- a/boards/arm/stm32/cloudctrl/scripts/Make.defs +++ b/boards/arm/stm32/cloudctrl/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/cloudctrl/scripts/Make.defs +# boards/arm/stm32/cloudctrl/scripts/Make.defs # # Copyright (C) 2012 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld b/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld index 571fc4b255..8280e8192f 100644 --- a/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld +++ b/boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/cloudctrl/scripts/cloudctrl-dfu.ld + * boards/arm/stm32/cloudctrl/scripts/cloudctrl-dfu.ld * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld b/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld index a076882129..129514d7ba 100644 --- a/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld +++ b/boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/cloudctrl/scripts/cloudctrl.ld + * boards/arm/stm32/cloudctrl/scripts/cloudctrl.ld * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/cloudctrl/src/Makefile b/boards/arm/stm32/cloudctrl/src/Makefile index 7124cabf1d..6a6bc84517 100644 --- a/boards/arm/stm32/cloudctrl/src/Makefile +++ b/boards/arm/stm32/cloudctrl/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/cloudctrl/src/Makefile +# boards/arm/stm32/cloudctrl/src/Makefile # # Copyright (C) 2012 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/cloudctrl/src/cloudctrl.h b/boards/arm/stm32/cloudctrl/src/cloudctrl.h index f53cb6a978..0cf48edd58 100644 --- a/boards/arm/stm32/cloudctrl/src/cloudctrl.h +++ b/boards/arm/stm32/cloudctrl/src/cloudctrl.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/cloudctrl/src/cloudctrl.h +/**************************************************************************** + * boards/arm/stm32/cloudctrl/src/cloudctrl.h * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,23 +32,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_CLOUDCTRLL_SRC_CLOUDCTRL_H -#define __BOARDS_ARM_CLOUDCTRLL_SRC_CLOUDCTRL_H +#ifndef __BOARDS_ARM_STM32_CLOUDCTRLL_SRC_CLOUDCTRL_H +#define __BOARDS_ARM_STM32_CLOUDCTRLL_SRC_CLOUDCTRL_H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include #include -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ -/* Configuration ************************************************************************************/ + ****************************************************************************/ +/* Configuration ****************************************************************************/ /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -64,7 +64,7 @@ /* cloudctrl GPIO Configuration **********************************************************************/ -/* STM3240G-EVAL GPIOs ******************************************************************************/ +/* STM3240G-EVAL GPIOs ****************************************************************************/ /* Ethernet * * -- ---- -------------- ---------------------------------------------------------- @@ -204,63 +204,63 @@ #define GPIO_RELAYS_R01 (GPIO_OUTPUT|GPIO_CNF_OUTPP|GPIO_MODE_50MHz|\ GPIO_OUTPUT_SET|GPIO_PORTE|GPIO_PIN1) -/**************************************************************************************************** +/**************************************************************************** * Public Types - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the STM3240G-EVAL board. * - ****************************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related GPIO pins for * the STM3240G-EVAL board. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_OTGFS void weak_function stm32_usbinitialize(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: * Called at application startup time to initialize the USB host functionality. This function will * start a thread that will monitor for device connection/disconnection events. * - ****************************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_STM32_OTGFS) && defined(CONFIG_USBHOST) int stm32_usbhost_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -290,4 +290,4 @@ int stm32_w25initialize(int minor); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_CLOUDCTRLL_SRC_CLOUDCTRL_H */ +#endif /* __BOARDS_ARM_STM32_CLOUDCTRLL_SRC_CLOUDCTRL_H */ diff --git a/boards/arm/stm32/cloudctrl/src/stm32_adc.c b/boards/arm/stm32/cloudctrl/src/stm32_adc.c index 294d6dea26..38aa3c94b3 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_adc.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/cloudctrl/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/cloudctrl/src/stm32_adc.c * * Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,9 +55,9 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ @@ -82,9 +82,9 @@ #define ADC1_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Identifying number of each ADC channel. The only internal signal for ADC testing * is the potentiometer input: @@ -105,17 +105,17 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {10}; //{10, 8, 9}; static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC12_IN10}; //{GPIO_ADC12_IN10, GPIO_ADC12_IN8, GPIO_ADC12_IN9}; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/cloudctrl/src/stm32_appinit.c b/boards/arm/stm32/cloudctrl/src/stm32_appinit.c index 211029d957..dda2a66ec6 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_appinit.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/cloudctrl/src/stm32_appinit.c + * boards/arm/stm32/cloudctrl/src/stm32_appinit.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/cloudctrl/src/stm32_autoleds.c b/boards/arm/stm32/cloudctrl/src/stm32_autoleds.c index 9db1d9645e..063914dd8d 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_autoleds.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/cloudctrl/src/stm32_autoleds.c + * boards/arm/stm32/cloudctrl/src/stm32_autoleds.c * * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -120,9 +120,9 @@ #define LED_PANIC_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT) #define LED_PANIC_OFF_CLRBITS ((CLOUDCTRL_LED3) << OFF_CLRBITS_SHIFT) -/************************************************************************************** +/**************************************************************************** * Private Function Protototypes - **************************************************************************************/ + ****************************************************************************/ /* LED State Controls */ diff --git a/boards/arm/stm32/cloudctrl/src/stm32_boot.c b/boards/arm/stm32/cloudctrl/src/stm32_boot.c index ae8962bd61..67cf9bf036 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_boot.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/cloudctrl/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/cloudctrl/src/stm32_boot.c * * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,19 +48,19 @@ #include "up_arch.h" #include "cloudctrl.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -68,7 +68,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/cloudctrl/src/stm32_buttons.c b/boards/arm/stm32/cloudctrl/src/stm32_buttons.c index e619d6320d..35809f8866 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_buttons.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/cloudctrl/src/stm32_buttons.c + * boards/arm/stm32/cloudctrl/src/stm32_buttons.c * * Copyright (C) 2012, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/cloudctrl/src/stm32_chipid.c b/boards/arm/stm32/cloudctrl/src/stm32_chipid.c index a2a820597d..6744c796c5 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_chipid.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_chipid.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/cloudctrl/src/stm32_chipid.c +/**************************************************************************** + * boards/arm/stm32/cloudctrl/src/stm32_chipid.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -46,17 +46,17 @@ #include "up_arch.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ const char *stm32_getchipid(void) { diff --git a/boards/arm/stm32/cloudctrl/src/stm32_phyinit.c b/boards/arm/stm32/cloudctrl/src/stm32_phyinit.c index 43a4dbce2f..3367c4b450 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_phyinit.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_phyinit.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/cloudctrl/src/stm32_phyinit.c +/**************************************************************************** + * boards/arm/stm32/cloudctrl/src/stm32_phyinit.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -45,17 +45,17 @@ #include "cloudctrl.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_ETH0_PHY_DM9161) && defined(CONFIG_STM32_PHYINIT) int stm32_phy_boardinitialize(int intf) diff --git a/boards/arm/stm32/cloudctrl/src/stm32_relays.c b/boards/arm/stm32/cloudctrl/src/stm32_relays.c index 16d35a5ff1..c5874a1224 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_relays.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_relays.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/cloudctrl/src/stm32_relays.c + * boards/arm/stm32/cloudctrl/src/stm32_relays.c * * Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/cloudctrl/src/stm32_spi.c b/boards/arm/stm32/cloudctrl/src/stm32_spi.c index 320f54ab98..125df988de 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_spi.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/cloudctrl/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/cloudctrl/src/stm32_spi.c * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,17 +54,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the cloudctrl board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/cloudctrl/src/stm32_usb.c b/boards/arm/stm32/cloudctrl/src/stm32_usb.c index f107463b1b..5184683b3a 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_usb.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/cloudctrl/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/cloudctrl/src/stm32_usb.c * * Copyright (C) 2012-2013, 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -60,9 +60,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -83,25 +83,25 @@ # endif #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -132,18 +132,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM3240G-EVAL board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -158,7 +158,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -166,7 +166,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -220,7 +220,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -244,7 +244,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -266,7 +266,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -281,7 +281,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -290,7 +290,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -299,7 +299,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/cloudctrl/src/stm32_usbmsc.c b/boards/arm/stm32/cloudctrl/src/stm32_usbmsc.c index 266edfaa4c..b36762d43a 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_usbmsc.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_usbmsc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/cloudctrl/src/stm32_usbmsc.c + * boards/arm/stm32/cloudctrl/src/stm32_usbmsc.c * * Copyright (C) 2012, 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/cloudctrl/src/stm32_userleds.c b/boards/arm/stm32/cloudctrl/src/stm32_userleds.c index b28f4a9c98..ee8c8128f2 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_userleds.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/cloudctrl/src/stm32_userleds.c + * boards/arm/stm32/cloudctrl/src/stm32_userleds.c * * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/cloudctrl/src/stm32_w25.c b/boards/arm/stm32/cloudctrl/src/stm32_w25.c index df43ab8045..21323cadc7 100644 --- a/boards/arm/stm32/cloudctrl/src/stm32_w25.c +++ b/boards/arm/stm32/cloudctrl/src/stm32_w25.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/cloudctrl/src/stm32_w25.c + * boards/arm/stm32/cloudctrl/src/stm32_w25.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/README.txt b/boards/arm/stm32/fire-stm32v2/README.txt index 6bb3ca6e97..78a00fcc97 100644 --- a/boards/arm/stm32/fire-stm32v2/README.txt +++ b/boards/arm/stm32/fire-stm32v2/README.txt @@ -228,13 +228,13 @@ OpenOCD ======= I have also used OpenOCD with the M3 Wildfire. In this case, I used -the Olimex USB ARM OCD. See the script in boards/fire-stm32v2/tools/oocd.sh +the Olimex USB ARM OCD. See the script in boards/arm/stm32/fire-stm32v2/tools/oocd.sh for more information. Using the script: 1) Start the OpenOCD GDB server cd - boards/fire-stm32v2/tools/oocd.sh $PWD + boards/arm/stm32/fire-stm32v2/tools/oocd.sh $PWD 2) Load Nuttx diff --git a/boards/arm/stm32/fire-stm32v2/include/board.h b/boards/arm/stm32/fire-stm32v2/include/board.h index 1e0bce0624..54670fd4f8 100644 --- a/boards/arm/stm32/fire-stm32v2/include/board.h +++ b/boards/arm/stm32/fire-stm32v2/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/fire-stm32v2/include/board.h +/**************************************************************************** + * boards/arm/stm32/fire-stm32v2/include/board.h * include/arch/board/board.h * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_FIRE_STM32V2_INCLUDE_BOARD_H -#define __BOARDS_ARM_FIRE_STM32V2_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_FIRE_STM32V2_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_FIRE_STM32V2_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -49,9 +49,9 @@ #include "stm32_sdio.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -362,9 +362,9 @@ # error "SPI1 requires CONFIG_STM32_CAN1_REMAP1=y" #endif -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -377,11 +377,11 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: fire_lcdclear * * Description: @@ -390,7 +390,7 @@ extern "C" * sequences of runs that covers the entire display can be very slow. Here the * dispaly is cleared by simply setting all GRAM memory to the specified color. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void fire_lcdclear(uint16_t color); @@ -402,4 +402,4 @@ void fire_lcdclear(uint16_t color); #undef EXTERN #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_FIRE_STM32V2_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_FIRE_STM32V2_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/fire-stm32v2/scripts/Make.defs b/boards/arm/stm32/fire-stm32v2/scripts/Make.defs index 8db23e3a27..28daecd5e6 100644 --- a/boards/arm/stm32/fire-stm32v2/scripts/Make.defs +++ b/boards/arm/stm32/fire-stm32v2/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/fire-stm32v2/scripts/Make.defs +# boards/arm/stm32/fire-stm32v2/scripts/Make.defs # # Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld b/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld index 2dddc127c0..8fe6952867 100644 --- a/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld +++ b/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/fire-stm32v2/scripts/fire-stm32v2-dfu.ld + * boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2-dfu.ld * * Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld b/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld index 476ada9acc..439fdc34ff 100644 --- a/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld +++ b/boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/fire-stm32v2/scripts/fire-stm32v2.ld + * boards/arm/stm32/fire-stm32v2/scripts/fire-stm32v2.ld * * Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/src/Makefile b/boards/arm/stm32/fire-stm32v2/src/Makefile index 598a52bb79..95e0f19a9c 100644 --- a/boards/arm/stm32/fire-stm32v2/src/Makefile +++ b/boards/arm/stm32/fire-stm32v2/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/fire-stm32v2/src/Makefile +# boards/arm/stm32/fire-stm32v2/src/Makefile # # Copyright (C) 2012 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/src/fire-stm32v2.h b/boards/arm/stm32/fire-stm32v2/src/fire-stm32v2.h index 50eb878ebe..ec650294c1 100644 --- a/boards/arm/stm32/fire-stm32v2/src/fire-stm32v2.h +++ b/boards/arm/stm32/fire-stm32v2/src/fire-stm32v2.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/fire-stm32v2/src/fire-stm32v2.h +/**************************************************************************** + * boards/arm/stm32/fire-stm32v2/src/fire-stm32v2.h * arch/arm/src/board/fire-stm32v2.n * * Copyright (C) 2009 Gregory Nutt. All rights reserved. @@ -32,22 +32,22 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_FIRE_STM32V2_SRC_FIRE_H -#define __BOARDS_ARM_FIRE_STM32V2_SRC_FIRE_H +#ifndef __BOARDS_ARM_STM32_FIRE_STM32V2_SRC_FIRE_H +#define __BOARDS_ARM_STM32_FIRE_STM32V2_SRC_FIRE_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* How many SPI modules does this chip support? Most support 2 SPI modules (others * may support more -- in such case, the following must be expanded). @@ -265,47 +265,47 @@ #define GPIO_MP3_CS (GPIO_OUTPUT|GPIO_CNF_OUTPP|GPIO_MODE_50MHz|\ GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN6) -/************************************************************************************ +/**************************************************************************** * Public Types - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the M3 Wildfire board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins for the M3 Wildfire board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_usbinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize to the LCD * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_selectlcd(void); @@ -335,5 +335,5 @@ int stm32_w25initialize(int minor); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_FIRE_STM32V2_SRC_FIRE_H */ +#endif /* __BOARDS_ARM_STM32_FIRE_STM32V2_SRC_FIRE_H */ diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_appinit.c b/boards/arm/stm32/fire-stm32v2/src/stm32_appinit.c index c82d5f4366..9b64e85d02 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_appinit.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/fire-stm32v2/src/stm32_appinit.c + * boards/arm/stm32/fire-stm32v2/src/stm32_appinit.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_autoleds.c b/boards/arm/stm32/fire-stm32v2/src/stm32_autoleds.c index bba2d7b636..9109f13f0b 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_autoleds.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/fire-stm32v2/src/stm32_autoleds.c + * boards/arm/stm32/fire-stm32v2/src/stm32_autoleds.c * * Copyright (C) 2012-2013, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -124,9 +124,9 @@ #define LED_FLASH_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT) #define LED_FLASH_OFF_CLRBITS ((FIRE_LED3) << OFF_CLRBITS_SHIFT) -/************************************************************************************** +/**************************************************************************** * Private Function Protototypes - **************************************************************************************/ + ****************************************************************************/ /* LED State Controls */ diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_boot.c b/boards/arm/stm32/fire-stm32v2/src/stm32_boot.c index 40a27e3409..cd1c904e9c 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_boot.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/fire-stm32v2/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/fire-stm32v2/src/stm32_boot.c * * Copyright (C) 2009, 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,19 +47,19 @@ #include "up_arch.h" #include "fire-stm32v2.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -67,7 +67,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_buttons.c b/boards/arm/stm32/fire-stm32v2/src/stm32_buttons.c index 4b67c68c5f..53c41c58b4 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_buttons.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/fire-stm32v2/src/stm32_buttons.c + * boards/arm/stm32/fire-stm32v2/src/stm32_buttons.c * * Copyright (C) 2012, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_enc28j60.c b/boards/arm/stm32/fire-stm32v2/src/stm32_enc28j60.c index 8400f647ed..f139ed5e2f 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_enc28j60.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_enc28j60.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/fire-stm32v2/src/stm32_enc28j60.c + * boards/arm/stm32/fire-stm32v2/src/stm32_enc28j60.c * * Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_mmcsd.c b/boards/arm/stm32/fire-stm32v2/src/stm32_mmcsd.c index a29276836c..dad1b17a9f 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_mmcsd.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_mmcsd.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/fire-stm32v2/src/stm32_mmcsd.c + * boards/arm/stm32/fire-stm32v2/src/stm32_mmcsd.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_selectlcd.c b/boards/arm/stm32/fire-stm32v2/src/stm32_selectlcd.c index 78f23d6f82..08fda3cccd 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_selectlcd.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_selectlcd.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/fire-stm32v2/src/stm32_selectlcd.c +/**************************************************************************** + * boards/arm/stm32/fire-stm32v2/src/stm32_selectlcd.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,9 +55,9 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_FSMC # warning "FSMC is not enabled" @@ -67,9 +67,9 @@ # error "Required GPIO ports not enabled" #endif -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* 2.4" TFT + Touchscreen. FSMC Bank1 * @@ -131,25 +131,25 @@ static const uint16_t g_lcdconfig[NCOMMON_CONFIG] = }; #define NLCD_CONFIG (sizeof(g_lcdconfig) / sizeof(uint16_t)) -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize to the LCD pin configuration. * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectlcd(void) { diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_spi.c b/boards/arm/stm32/fire-stm32v2/src/stm32_spi.c index eafa66fdcd..3f85c0665d 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_spi.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/fire-stm32v2/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/fire-stm32v2/src/stm32_spi.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,17 +53,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the M3 Wildfire board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_usbdev.c b/boards/arm/stm32/fire-stm32v2/src/stm32_usbdev.c index 872e8244cd..f969a5604e 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_usbdev.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_usbdev.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/fire-stm32v2/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/fire-stm32v2/src/stm32_usbdev.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,25 +51,25 @@ #include "stm32.h" #include "fire-stm32v2.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins for the M3 Wildfire board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -80,7 +80,7 @@ void stm32_usbinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbpullup * * Description: @@ -90,7 +90,7 @@ void stm32_usbinitialize(void) * Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be * NULL. * - ************************************************************************************/ + ****************************************************************************/ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) { @@ -101,7 +101,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -110,7 +110,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) { diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_usbmsc.c b/boards/arm/stm32/fire-stm32v2/src/stm32_usbmsc.c index 686be07852..61fef6a546 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_usbmsc.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_usbmsc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/fire-stm32v2/src/stm32_usbmsc.c + * boards/arm/stm32/fire-stm32v2/src/stm32_usbmsc.c * * Copyright (C) 2012, 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_userleds.c b/boards/arm/stm32/fire-stm32v2/src/stm32_userleds.c index f98c4a0212..e2b26c36d0 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_userleds.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/fire-stm32v2/src/stm32_userleds.c + * boards/arm/stm32/fire-stm32v2/src/stm32_userleds.c * * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/fire-stm32v2/src/stm32_w25.c b/boards/arm/stm32/fire-stm32v2/src/stm32_w25.c index 34940b5c62..65cd257f76 100644 --- a/boards/arm/stm32/fire-stm32v2/src/stm32_w25.c +++ b/boards/arm/stm32/fire-stm32v2/src/stm32_w25.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/fire-stm32v2/src/stm32_w25.c + * boards/arm/stm32/fire-stm32v2/src/stm32_w25.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/hymini-stm32v/include/board.h b/boards/arm/stm32/hymini-stm32v/include/board.h index f7e6c48170..afec21fd22 100644 --- a/boards/arm/stm32/hymini-stm32v/include/board.h +++ b/boards/arm/stm32/hymini-stm32v/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/hymini-stm32v/include/board.h +/**************************************************************************** + * boards/arm/stm32/hymini-stm32v/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Copyright (C) 2011 Laurent Latil. All rights reserved. @@ -38,20 +38,20 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_HYMINI_STM32V_INCLUDE_BOARD_H -#define __BOARDS_ARM_HYMINI_STM32V_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_HYMINI_STM32V_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_HYMINI_STM32V_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -175,4 +175,4 @@ #define BUTTON_KEYA_BIT (1 << BUTTON_KEYA) #define BUTTON_KEYB_BIT (1 << BUTTON_KEYB) -#endif /* __BOARDS_ARM_HYMINI_STM32V_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_HYMINI_STM32V_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/hymini-stm32v/scripts/Make.defs b/boards/arm/stm32/hymini-stm32v/scripts/Make.defs index 2666472e19..88c4b1a9b0 100644 --- a/boards/arm/stm32/hymini-stm32v/scripts/Make.defs +++ b/boards/arm/stm32/hymini-stm32v/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/hymini-stm32v/scripts/Make.defs +# boards/arm/stm32/hymini-stm32v/scripts/Make.defs # # Copyright (C) 2011, 2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/hymini-stm32v/scripts/ld.script b/boards/arm/stm32/hymini-stm32v/scripts/ld.script index bf9d42d4b1..888f91d96d 100644 --- a/boards/arm/stm32/hymini-stm32v/scripts/ld.script +++ b/boards/arm/stm32/hymini-stm32v/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/hymini-stm32v/scripts/ld.script + * boards/arm/stm32/hymini-stm32v/scripts/ld.script * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/hymini-stm32v/src/Makefile b/boards/arm/stm32/hymini-stm32v/src/Makefile index e408e9380c..3ae7013526 100644 --- a/boards/arm/stm32/hymini-stm32v/src/Makefile +++ b/boards/arm/stm32/hymini-stm32v/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/hymini-stm32v/src/Makefile +# boards/arm/stm32/hymini-stm32v/src/Makefile # # Copyright (C) 2009-2012 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/hymini-stm32v/src/hymini-stm32v.h b/boards/arm/stm32/hymini-stm32v/src/hymini-stm32v.h index f0e213d28b..b2eb85b7d1 100644 --- a/boards/arm/stm32/hymini-stm32v/src/hymini-stm32v.h +++ b/boards/arm/stm32/hymini-stm32v/src/hymini-stm32v.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/hymini-stm32v/src/hymini-stm32v.h +/**************************************************************************** + * boards/arm/stm32/hymini-stm32v/src/hymini-stm32v.h * * Copyright (C) 2009, 2011, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_HYMINI_STM32V_H -#define __BOARDS_ARM_HYMINI_STM32V_H +#ifndef __BOARDS_ARM_STM32_HYMINI_STM32V_H +#define __BOARDS_ARM_STM32_HYMINI_STM32V_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -48,9 +48,9 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* How many SPI modules does this chip support? The LM3S6918 supports 2 SPI * modules (others may support more -- in such case, the following must be @@ -103,41 +103,41 @@ #define GPIO_SD_CD (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|\ GPIO_PORTD|GPIO_PIN3) -/************************************************************************************ +/**************************************************************************** * Public Types - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Hy-Mini STM32v board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins for the Hy-Mini STM32v board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_usbinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_tsc_setup * * Description: @@ -152,12 +152,12 @@ void weak_function stm32_usbinitialize(void); * Zero is returned on success. Otherwise, a negated errno value is returned to * indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_INPUT int stm32_tsc_setup(int minor); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_HYMINI_STM32V_H */ +#endif /* __BOARDS_ARM_STM32_HYMINI_STM32V_H */ diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_appinit.c b/boards/arm/stm32/hymini-stm32v/src/stm32_appinit.c index 85be09ecb7..634e156b15 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_appinit.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/hymini-stm32v/src/stm32_appinit.c + * boards/arm/stm32/hymini-stm32v/src/stm32_appinit.c * * Copyright (C) 2009, 2011, 2016-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_boot.c b/boards/arm/stm32/hymini-stm32v/src/stm32_boot.c index 605c2ec28e..8d07ad11be 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_boot.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/hymini-stm32v/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/hymini-stm32v/src/stm32_boot.c * * Copyright (C) 2009, 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -49,11 +49,11 @@ #include /* Should always be included last due to dependencies */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -61,7 +61,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_buttons.c b/boards/arm/stm32/hymini-stm32v/src/stm32_buttons.c index d7027053bd..4297fa8cab 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_buttons.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/hymini-stm32v/src/stm32_buttons.c + * boards/arm/stm32/hymini-stm32v/src/stm32_buttons.c * * Copyright (C) 2009, 2011, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_leds.c b/boards/arm/stm32/hymini-stm32v/src/stm32_leds.c index 36c99f54f7..e22269f34d 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_leds.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_leds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/hymini-stm32v/src/stm32_leds.c + * boards/arm/stm32/hymini-stm32v/src/stm32_leds.c * * Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_r61505u.c b/boards/arm/stm32/hymini-stm32v/src/stm32_r61505u.c index 32161654f2..898a2ad355 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_r61505u.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_r61505u.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/hymini-stm32v/src/stm32_r61505u.c +/**************************************************************************** + * boards/arm/stm32/hymini-stm32v/src/stm32_r61505u.c * * Copyright (C) 2009, 2011, 2013, 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -34,11 +34,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Included Files - **************************************************************************************/ + ****************************************************************************/ #include @@ -60,9 +60,9 @@ #include /* Should always be included last due to dependencies */ -/************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - **************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_FSMC # error CONFIG_STM32_FSMC is required for LCD support @@ -107,9 +107,9 @@ # define lcd_inline static #endif -/************************************************************************************** +/**************************************************************************** * Private Types - **************************************************************************************/ + ****************************************************************************/ struct mylcd_dev_s { @@ -122,9 +122,9 @@ struct mylcd_dev_s uint8_t power; /* Current power setting */ }; -/************************************************************************************** +/**************************************************************************** * Private Function Prototypes - **************************************************************************************/ + ****************************************************************************/ /* Low Level methods */ @@ -173,9 +173,9 @@ static void lcd_backlight(void); # define lcd_backlight() #endif -/************************************************************************************** +/**************************************************************************** * Private Data - **************************************************************************************/ + ****************************************************************************/ static const uint16_t fsmc_gpios[] = { @@ -258,17 +258,17 @@ static struct mylcd_dev_s g_lcddev = .power = 0 }; -/************************************************************************************** +/**************************************************************************** * Private Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for NOR or SRAM * - ************************************************************************************/ + ****************************************************************************/ static inline void stm32_extmemgpios(const uint16_t *gpios, int ngpios) { @@ -282,13 +282,13 @@ static inline void stm32_extmemgpios(const uint16_t *gpios, int ngpios) } } -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize to the LCD * - ************************************************************************************/ + ****************************************************************************/ static void stm32_selectlcd(void) { @@ -321,13 +321,13 @@ static void stm32_selectlcd(void) STM32_FSMC_BCR1); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectlcd * * Description: * Disable the LCD * - ************************************************************************************/ + ****************************************************************************/ static void stm32_deselectlcd(void) { @@ -344,36 +344,36 @@ static void stm32_deselectlcd(void) stm32_fsmc_disable(); } -/************************************************************************************** +/**************************************************************************** * Name: write_cmd - **************************************************************************************/ + ****************************************************************************/ lcd_inline void write_cmd(unsigned short cmd) { LCD_REG = cmd; } -/************************************************************************************** +/**************************************************************************** * Name: read_data - **************************************************************************************/ + ****************************************************************************/ lcd_inline unsigned short read_data(void) { return LCD_RAM; } -/************************************************************************************** +/**************************************************************************** * Name: write_data - **************************************************************************************/ + ****************************************************************************/ lcd_inline void write_data(unsigned short data_code) { LCD_RAM = data_code; } -/************************************************************************************** +/**************************************************************************** * Name: write_reg - **************************************************************************************/ + ****************************************************************************/ static void write_reg(unsigned char reg_addr, unsigned short reg_val) { @@ -381,9 +381,9 @@ static void write_reg(unsigned char reg_addr, unsigned short reg_val) write_data(reg_val); } -/************************************************************************************** +/**************************************************************************** * Name: read_reg - **************************************************************************************/ + ****************************************************************************/ static unsigned short read_reg(unsigned char reg_addr) { @@ -393,18 +393,18 @@ static unsigned short read_reg(unsigned char reg_addr) return (val); } -/************************************************************************************** +/**************************************************************************** * Name: lcd_gramselect - **************************************************************************************/ + ****************************************************************************/ static inline void lcd_gramselect(void) { write_cmd(0x22); } -/************************************************************************************** +/**************************************************************************** * Name: lcd_setcursor - **************************************************************************************/ + ****************************************************************************/ static void lcd_setcursor(unsigned int x, unsigned int y) { @@ -425,7 +425,7 @@ static void lcd_setcursor(unsigned int x, unsigned int y) #endif } -/************************************************************************************** +/**************************************************************************** * Name: lcd_putrun * * Description: @@ -437,7 +437,7 @@ static void lcd_setcursor(unsigned int x, unsigned int y) * npixels - The number of pixels to write to the LCD * (range: 0 < npixels <= xres-col) * - **************************************************************************************/ + ****************************************************************************/ static int lcd_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, size_t npixels) @@ -462,7 +462,7 @@ static int lcd_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, return OK; } -/************************************************************************************** +/**************************************************************************** * Name: lcd_getrun * * Description: @@ -474,7 +474,7 @@ static int lcd_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, * npixels - The number of pixels to read from the LCD * (range: 0 < npixels <= xres-col) * - **************************************************************************************/ + ****************************************************************************/ static int lcd_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, size_t npixels) @@ -503,13 +503,13 @@ static int lcd_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, return OK; } -/************************************************************************************** +/**************************************************************************** * Name: lcd_getvideoinfo * * Description: * Get information about the LCD video controller configuration. * - **************************************************************************************/ + ****************************************************************************/ static int lcd_getvideoinfo(FAR struct lcd_dev_s *dev, FAR struct fb_videoinfo_s *vinfo) @@ -522,13 +522,13 @@ static int lcd_getvideoinfo(FAR struct lcd_dev_s *dev, return OK; } -/************************************************************************************** +/**************************************************************************** * Name: lcd_getplaneinfo * * Description: * Get information about the configuration of each LCD color plane. * - **************************************************************************************/ + ****************************************************************************/ static int lcd_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno, FAR struct lcd_planeinfo_s *pinfo) @@ -540,14 +540,14 @@ static int lcd_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno, return OK; } -/************************************************************************************** +/**************************************************************************** * Name: lcd_getpower * * Description: * Get the LCD panel power status (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - **************************************************************************************/ + ****************************************************************************/ static int lcd_getpower(struct lcd_dev_s *dev) { @@ -555,14 +555,14 @@ static int lcd_getpower(struct lcd_dev_s *dev) return g_lcddev.power; } -/************************************************************************************** +/**************************************************************************** * Name: lcd_setpower * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). * Used here to set pwm duty on timer used for backlight. * - **************************************************************************************/ + ****************************************************************************/ static int lcd_setpower(struct lcd_dev_s *dev, int power) { @@ -609,13 +609,13 @@ static int lcd_setpower(struct lcd_dev_s *dev, int power) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: lcd_getcontrast * * Description: * Get the current contrast setting (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static int lcd_getcontrast(struct lcd_dev_s *dev) { @@ -623,13 +623,13 @@ static int lcd_getcontrast(struct lcd_dev_s *dev) return -ENOSYS; } -/************************************************************************************** +/**************************************************************************** * Name: lcd_setcontrast * * Description: * Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static int lcd_setcontrast(struct lcd_dev_s *dev, unsigned int contrast) { @@ -637,13 +637,13 @@ static int lcd_setcontrast(struct lcd_dev_s *dev, unsigned int contrast) return -ENOSYS; } -/************************************************************************************** +/**************************************************************************** * Name: lcd_lcdinitialize * * Description: * Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static inline void lcd_initialize(void) { @@ -737,7 +737,7 @@ static inline void lcd_initialize(void) up_mdelay(20); /* Delay 200 ms */ } -/************************************************************************************** +/**************************************************************************** * Name: lcd_backlight * * Description: @@ -745,7 +745,7 @@ static inline void lcd_initialize(void) * CH2. TIM3 must then be configured to pwm output on PB.5; the duty * of the clock determines the backlight level. * - **************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_LCD_BACKLIGHT @@ -856,11 +856,11 @@ static void lcd_backlight(void) } #endif -/************************************************************************************** +/**************************************************************************** * Public Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -868,7 +868,7 @@ static void lcd_backlight(void) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - **************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -909,14 +909,14 @@ int board_lcd_initialize(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows support * for multiple LCD devices. * - **************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -924,13 +924,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return &g_lcddev.dev; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Un-initialize the LCD support * - **************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { @@ -938,13 +938,13 @@ void board_lcd_uninitialize(void) stm32_deselectlcd(); } -/************************************************************************************** +/**************************************************************************** * Name: lcd_clear * * Description: * Fill the LCD ctrl memory with given color * - **************************************************************************************/ + ****************************************************************************/ void lcd_clear(uint16_t color) { diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_spi.c b/boards/arm/stm32/hymini-stm32v/src/stm32_spi.c index d0e73ee92e..158f0a0e15 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_spi.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/hymini-stm32v/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/hymini-stm32v/src/stm32_spi.c * * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,17 +55,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the HY-MiniSTM32 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c b/boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c index 5a4df0578c..6f5e48280c 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/hymini-stm32v/src/stm32_ssd1289.c +/**************************************************************************** + * boards/arm/stm32/hymini-stm32v/src/stm32_ssd1289.c * * Copyright (C) 2009, 2011, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,7 +32,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ #include @@ -56,9 +56,9 @@ #ifdef CONFIG_LCD_SSD1289 -/************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - **************************************************************************************/ + ****************************************************************************/ /* Configuration **********************************************************************/ @@ -89,9 +89,9 @@ #define LCD_INDEX 0x60000000 /* RS = 0 */ #define LCD_DATA 0x60020000 /* RS = 1 */ -/************************************************************************************** +/**************************************************************************** * Private Function Prototypes - **************************************************************************************/ + ****************************************************************************/ /* Low Level LCD access */ @@ -106,9 +106,9 @@ static void stm32_backlight(FAR struct ssd1289_lcd_s *dev, int power); static void stm32_extmemgpios(const uint16_t *gpios, int ngpios); -/************************************************************************************** +/**************************************************************************** * Private Data - **************************************************************************************/ + ****************************************************************************/ const uint16_t fsmc_gpios[] = { @@ -153,56 +153,56 @@ static struct ssd1289_lcd_s g_ssd1289 = static FAR struct lcd_dev_s *g_ssd1289drvr; -/************************************************************************************** +/**************************************************************************** * Private Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: stm32_select * * Description: * Select the LCD device * - **************************************************************************************/ + ****************************************************************************/ static void stm32_select(FAR struct ssd1289_lcd_s *dev) { /* Does not apply to this hardware */ } -/************************************************************************************** +/**************************************************************************** * Name: stm32_deselect * * Description: * De-select the LCD device * - **************************************************************************************/ + ****************************************************************************/ static void stm32_deselect(FAR struct ssd1289_lcd_s *dev) { /* Does not apply to this hardware */ } -/************************************************************************************** +/**************************************************************************** * Name: stm32_index * * Description: * Set the index register * - **************************************************************************************/ + ****************************************************************************/ static void stm32_index(FAR struct ssd1289_lcd_s *dev, uint8_t index) { putreg16((uint16_t)index, LCD_INDEX); } -/************************************************************************************** +/**************************************************************************** * Name: stm32_read * * Description: * Read LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_SSD1289_WRONLY static uint16_t stm32_read(FAR struct ssd1289_lcd_s *dev) @@ -211,27 +211,27 @@ static uint16_t stm32_read(FAR struct ssd1289_lcd_s *dev) } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm32_write * * Description: * Write LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ static void stm32_write(FAR struct ssd1289_lcd_s *dev, uint16_t data) { putreg16((uint16_t)data, LCD_DATA); } -/************************************************************************************** +/**************************************************************************** * Name: stm32_backlight * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). * Used here to set pwm duty on timer used for backlight. * - **************************************************************************************/ + ****************************************************************************/ static void stm32_backlight(FAR struct ssd1289_lcd_s *dev, int power) { @@ -355,13 +355,13 @@ static void init_lcd_backlight(void) lcdinfo("DMAR: %04x\n", getreg32(STM32_TIM3_DMAR)); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize the memory controller (FSMC) * - ************************************************************************************/ + ****************************************************************************/ static void stm32_selectlcd(void) { @@ -394,13 +394,13 @@ static void stm32_selectlcd(void) STM32_FSMC_BCR1); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for NOR or SRAM * - ************************************************************************************/ + ****************************************************************************/ static void stm32_extmemgpios(const uint16_t *gpios, int ngpios) { @@ -414,11 +414,11 @@ static void stm32_extmemgpios(const uint16_t *gpios, int ngpios) } } -/************************************************************************************** +/**************************************************************************** * Public Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -426,7 +426,7 @@ static void stm32_extmemgpios(const uint16_t *gpios, int ngpios) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - **************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -459,14 +459,14 @@ int board_lcd_initialize(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows support * for multiple LCD devices. * - **************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -474,13 +474,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return g_ssd1289drvr; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Uninitialize the LCD support * - **************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_ts.c b/boards/arm/stm32/hymini-stm32v/src/stm32_ts.c index 925ea45012..31439f2961 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_ts.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_ts.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/hymini-stm32v/src/stm32_ts.c +/**************************************************************************** + * boards/arm/stm32/hymini-stm32v/src/stm32_ts.c * * Copyright (C) 2011, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -52,17 +52,17 @@ #include "stm32.h" #include "hymini-stm32v.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if !defined(CONFIG_STM32_SPI1) # error CONFIG_STM32_SPI1 must be defined to use the ADS7843 on this board #endif -/************************************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************************************/ + ****************************************************************************/ static int hymini_ts_irq_attach(FAR struct ads7843e_config_s *state, xcpt_t isr); static void hymini_ts_irq_enable(FAR struct ads7843e_config_s *state, @@ -71,9 +71,9 @@ static void hymini_ts_irq_clear(FAR struct ads7843e_config_s *state); static bool hymini_ts_busy(FAR struct ads7843e_config_s *state); static bool hymini_ts_pendown(FAR struct ads7843e_config_s *state); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static FAR struct ads7843e_config_s ts_cfg = { @@ -88,9 +88,9 @@ static FAR struct ads7843e_config_s ts_cfg = static xcpt_t tc_isr; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ /* Attach the ADS7843E interrupt handler to the GPIO interrupt */ diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_usbdev.c b/boards/arm/stm32/hymini-stm32v/src/stm32_usbdev.c index a513ad2db0..651f0f13da 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_usbdev.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_usbdev.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/hymini-stm32v/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/hymini-stm32v/src/stm32_usbdev.c * * Copyright (C) 2009-2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,25 +51,25 @@ #include "stm32.h" #include "hymini-stm32v.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins for the Hy-Mini STM32v board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -79,7 +79,7 @@ void stm32_usbinitialize(void) stm32_configgpio(GPIO_USB_PULLUP); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbpullup * * Description: @@ -89,7 +89,7 @@ void stm32_usbinitialize(void) * Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be * NULL. * - ************************************************************************************/ + ****************************************************************************/ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) { @@ -98,7 +98,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -107,7 +107,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) { diff --git a/boards/arm/stm32/hymini-stm32v/src/stm32_usbmsc.c b/boards/arm/stm32/hymini-stm32v/src/stm32_usbmsc.c index 5c765cd52b..b5e51ba957 100644 --- a/boards/arm/stm32/hymini-stm32v/src/stm32_usbmsc.c +++ b/boards/arm/stm32/hymini-stm32v/src/stm32_usbmsc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/hymini-stm32v/src/stm32_usbmsc.c + * boards/arm/stm32/hymini-stm32v/src/stm32_usbmsc.c * * Copyright (C) 2009, 2011, 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/maple/include/board.h b/boards/arm/stm32/maple/include/board.h index fe99dc288d..70a8467cdb 100644 --- a/boards/arm/stm32/maple/include/board.h +++ b/boards/arm/stm32/maple/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/maple/include/board.h +/**************************************************************************** + * boards/arm/stm32/maple/include/board.h * include/arch/board/board.h * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. @@ -33,14 +33,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_MAPLE_INCLUDE_BOARD_H -#define __BOARDS_ARM_MAPLE_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_MAPLE_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_MAPLE_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -50,9 +50,9 @@ #include "stm32_sdio.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -162,4 +162,4 @@ #define LED_ASSERTION 6 /* LED1 + LED2 */ #define LED_PANIC 7 /* LED1 / LED2 blinking */ -#endif /* __BOARDS_ARM_MAPLE_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_MAPLE_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/maple/scripts/Make.defs b/boards/arm/stm32/maple/scripts/Make.defs index 15f19909db..0a9143e570 100644 --- a/boards/arm/stm32/maple/scripts/Make.defs +++ b/boards/arm/stm32/maple/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/maple/scripts/Make.defs +# boards/arm/stm32/maple/scripts/Make.defs # # Copyright (C) 2013, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/maple/scripts/ld.script b/boards/arm/stm32/maple/scripts/ld.script index e5055de2f4..c6f16716f6 100644 --- a/boards/arm/stm32/maple/scripts/ld.script +++ b/boards/arm/stm32/maple/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/maple/scripts/ld.script + * boards/arm/stm32/maple/scripts/ld.script * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/maple/scripts/ld.script.dfu b/boards/arm/stm32/maple/scripts/ld.script.dfu index 84df059dbd..4627311b10 100644 --- a/boards/arm/stm32/maple/scripts/ld.script.dfu +++ b/boards/arm/stm32/maple/scripts/ld.script.dfu @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/maple/scripts/ld.script.dfu + * boards/arm/stm32/maple/scripts/ld.script.dfu * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/maple/src/Makefile b/boards/arm/stm32/maple/src/Makefile index c4071db41b..159346ecec 100644 --- a/boards/arm/stm32/maple/src/Makefile +++ b/boards/arm/stm32/maple/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/maple/src/Makefile +# boards/arm/stm32/maple/src/Makefile # # Copyright (C) 2013 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/maple/src/maple.h b/boards/arm/stm32/maple/src/maple.h index 95f6922838..e10720ea23 100644 --- a/boards/arm/stm32/maple/src/maple.h +++ b/boards/arm/stm32/maple/src/maple.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/maple/src/maple.h +/**************************************************************************** + * boards/arm/stm32/maple/src/maple.h * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Laurent Latil @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_MAPLE_SRC_MAPLE_H -#define __BOARDS_ARM_MAPLE_SRC_MAPLE_H +#ifndef __BOARDS_ARM_STM32_MAPLE_SRC_MAPLE_H +#define __BOARDS_ARM_STM32_MAPLE_SRC_MAPLE_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -48,9 +48,9 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* How many SPI modules does this chip support? The LM3S6918 supports 2 SPI * modules (others may support more -- in such case, the following must be @@ -93,39 +93,39 @@ #define GPIO_MEMLCD_CS (GPIO_PORTA | GPIO_PIN15 | GPIO_OUTPUT_CLEAR | \ GPIO_OUTPUT | GPIO_CNF_OUTPP | GPIO_MODE_50MHz) -/************************************************************************************ +/**************************************************************************** * Public Types - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void); #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_MAPLE_SRC_MAPLE_H */ +#endif /* __BOARDS_ARM_STM32_MAPLE_SRC_MAPLE_H */ diff --git a/boards/arm/stm32/maple/src/stm32_appinit.c b/boards/arm/stm32/maple/src/stm32_appinit.c index 0aedc66cbb..2f8f89358f 100644 --- a/boards/arm/stm32/maple/src/stm32_appinit.c +++ b/boards/arm/stm32/maple/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/maple/src/stm32_appinit.c + * boards/arm/stm32/maple/src/stm32_appinit.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/maple/src/stm32_boot.c b/boards/arm/stm32/maple/src/stm32_boot.c index 331faf0372..b223267291 100644 --- a/boards/arm/stm32/maple/src/stm32_boot.c +++ b/boards/arm/stm32/maple/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/maple/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/maple/src/stm32_boot.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -48,19 +48,19 @@ #include "up_arch.h" #include "maple.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -68,7 +68,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/maple/src/stm32_lcd.c b/boards/arm/stm32/maple/src/stm32_lcd.c index ac259809a5..c4015ccdc1 100644 --- a/boards/arm/stm32/maple/src/stm32_lcd.c +++ b/boards/arm/stm32/maple/src/stm32_lcd.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/maple/src/stm32_lcd.c + * boards/arm/stm32/maple/src/stm32_lcd.c * * Copyright (C) 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/maple/src/stm32_leds.c b/boards/arm/stm32/maple/src/stm32_leds.c index f007bc920f..aeb7006d98 100644 --- a/boards/arm/stm32/maple/src/stm32_leds.c +++ b/boards/arm/stm32/maple/src/stm32_leds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/maple/src/stm32_leds.c + * boards/arm/stm32/maple/src/stm32_leds.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/maple/src/stm32_spi.c b/boards/arm/stm32/maple/src/stm32_spi.c index c6d996dfaf..a3c8eabe05 100644 --- a/boards/arm/stm32/maple/src/stm32_spi.c +++ b/boards/arm/stm32/maple/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/maple/src/stm32_spi.c + * boards/arm/stm32/maple/src/stm32_spi.c * * Copyright (C) 2009, 2011-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/maple/src/stm32_usbdev.c b/boards/arm/stm32/maple/src/stm32_usbdev.c index 72fa56f825..bbf926865c 100644 --- a/boards/arm/stm32/maple/src/stm32_usbdev.c +++ b/boards/arm/stm32/maple/src/stm32_usbdev.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/maple/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/maple/src/stm32_usbdev.c * * Copyright (C) 2009-2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,25 +52,25 @@ #include "stm32.h" #include "maple.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -81,7 +81,7 @@ void stm32_usbinitialize(void) stm32_configgpio(GPIO_USB_PULLUP); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbpullup * * Description: @@ -91,7 +91,7 @@ void stm32_usbinitialize(void) * Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be * NULL. * - ************************************************************************************/ + ****************************************************************************/ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) { @@ -100,7 +100,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -109,7 +109,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) { diff --git a/boards/arm/stm32/mikroe-stm32f4/include/board.h b/boards/arm/stm32/mikroe-stm32f4/include/board.h index e3b3122967..3ebab5209a 100644 --- a/boards/arm/stm32/mikroe-stm32f4/include/board.h +++ b/boards/arm/stm32/mikroe-stm32f4/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/mikroe-stm32f4/include/board.h +/**************************************************************************** + * boards/arm/stm32/mikroe-stm32f4/include/board.h * include/arch/board/board.h * * Copyright (C) 2012-2013, 2016 Gregory Nutt. All rights reserved. @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_MIKROE_STM32F4_INCLUDE_BOARD_H -#define __BOARDS_ARM_MIKROE_STM32F4_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_MIKROE_STM32F4_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_MIKROE_STM32F4_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include "stm32_sdio.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* The Mikroe STM32F4 Mikromedia board features a single 32kHz crystal. The main @@ -257,4 +257,4 @@ #define GPIO_TIM8_CH1IN GPIO_TIM8_CH1IN_1 #define GPIO_TIM8_CH2IN GPIO_TIM8_CH2IN_1 -#endif /* __BOARDS_ARM_MIKROE_STM32F4_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_MIKROE_STM32F4_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/mikroe-stm32f4/kernel/Makefile b/boards/arm/stm32/mikroe-stm32f4/kernel/Makefile index 41df552d61..c806ba8f6a 100644 --- a/boards/arm/stm32/mikroe-stm32f4/kernel/Makefile +++ b/boards/arm/stm32/mikroe-stm32f4/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/mikroe-stm32f4/kernel/Makefile +# boards/arm/stm32/mikroe-stm32f4/kernel/Makefile # # Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/kernel/stm32_userspace.c b/boards/arm/stm32/mikroe-stm32f4/kernel/stm32_userspace.c index 38afd97d0d..d4a4f101f1 100644 --- a/boards/arm/stm32/mikroe-stm32f4/kernel/stm32_userspace.c +++ b/boards/arm/stm32/mikroe-stm32f4/kernel/stm32_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/mikroe-stm32f4/kernel/stm32_userspace.c + * boards/arm/stm32/mikroe-stm32f4/kernel/stm32_userspace.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/Make.defs b/boards/arm/stm32/mikroe-stm32f4/scripts/Make.defs index 7605ed5274..be192e0db4 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/Make.defs +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f4discovery/scripts/Make.defs +# boards/arm/stm32/mikroe-stm32f4/scripts/Make.defs # # Copyright (C) 2011-2013, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/gnu-elf.ld b/boards/arm/stm32/mikroe-stm32f4/scripts/gnu-elf.ld index 68f62d0b30..f7993a8c59 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/gnu-elf.ld +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/mikroe-stm32f4/scripts/gnu-elf.ld + * boards/arm/stm32/mikroe-stm32f4/scripts/gnu-elf.ld * * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld b/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld index 39b3402701..4e1615e2f6 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/mikroe-stm32f4/scripts/kernel-space.ld + * boards/arm/stm32/mikroe-stm32f4/scripts/kernel-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script b/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script index 396629f4c2..3a520206b4 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/mikroe-stm32f4/scripts/ld.script + * boards/arm/stm32/mikroe-stm32f4/scripts/ld.script * * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/memory.ld b/boards/arm/stm32/mikroe-stm32f4/scripts/memory.ld index 19d3c11b4d..8d20f4814c 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/memory.ld +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/scripts/memory.ld + * boards/arm/stm32/mikroe-stm32f4/scripts/memory.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld b/boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld index 8c0fb7b95a..a440199457 100644 --- a/boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld +++ b/boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/mikroe-stm32f4/scripts/user-space.ld + * boards/arm/stm32/mikroe-stm32f4/scripts/user-space.ld * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/src/Makefile b/boards/arm/stm32/mikroe-stm32f4/src/Makefile index 108936e9ee..453ef40523 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/Makefile +++ b/boards/arm/stm32/mikroe-stm32f4/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/mikroe-stm32f4/src/Makefile +# boards/arm/stm32/mikroe-stm32f4/src/Makefile # # Copyright (C) 2011-2013, 2016 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/src/mikroe-stm32f4.h b/boards/arm/stm32/mikroe-stm32f4/src/mikroe-stm32f4.h index b1fa81d4f7..5958e7e9f2 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/mikroe-stm32f4.h +++ b/boards/arm/stm32/mikroe-stm32f4/src/mikroe-stm32f4.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/mikroe-stm32f4/src/mikroe-stm32f4.h +/**************************************************************************** + * boards/arm/stm32/mikroe-stm32f4/src/mikroe-stm32f4.h * * Copyright (C) 2011-2013, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,23 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_MIKROE_STM32F4_SRC_MIKROE_STM32F4_H -#define __BOARDS_ARM_MIKROE_STM32F4_SRC_MIKROE_STM32F4_H +#ifndef __BOARDS_ARM_STM32_MIKROE_STM32F4_SRC_MIKROE_STM32F4_H +#define __BOARDS_ARM_STM32_MIKROE_STM32F4_SRC_MIKROE_STM32F4_H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include #include -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ -/* Configuration ************************************************************************************/ + ****************************************************************************/ +/* Configuration ****************************************************************************/ /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -190,94 +190,94 @@ #define GPIO_VS1053_DREQ (GPIO_INPUT|GPIO_SPEED_50MHz|GPIO_PORTC|GPIO_PIN6) #define GPIO_VS1053_DREQ_IRQ STM32_IRQ_EXTI95 -/**************************************************************************************************** +/**************************************************************************** * Public Types - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the mikroe-stm32f4 board. * - ****************************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in initialization to setup USB-related * GPIO pins for the Mikroe-stm32f4 board. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_OTGFS void weak_function stm32_usbinitialize(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: * Called at application startup time to initialize the USB host functionality. This function will * start a thread that will monitor for device connection/disconnection events. * - ****************************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_STM32_OTGFS) && defined(CONFIG_USBHOST) # error "The Mikroe-STM32F4 board does not support HOST OTG, only device!" #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_qencoder_initialize * * Description: * Initialize and register a qencoder * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_SENSORS_QENCODER int stm32_qencoder_initialize(FAR const char *devpath, int timer); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_lcdinitialize * * Description: * Initialize the LCD. This function should be called early in the boot sequendce -- Even if the * LCD is not enabled. In that case we should at a minimum at least disable the LCD backlight. * - ****************************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_LCD_MIO283QT2) || defined(CONFIG_LCD_MIO283QT9A) void stm32_lcdinitialize(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_tsc_setup * * Description: @@ -291,23 +291,23 @@ void stm32_lcdinitialize(void); * Zero is returned on success. Otherwise, a negated errno value is returned to indicate the * nature of the failure. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_INPUT int stm32_tsc_setup(int minor); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: up_vs1053initialize * * Description: * Initialize the VS1053 Audio CODEC hardware. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_AUDIO_VS1053 void up_vs1053initialize(FAR struct spi_dev_s *spi); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_MIKROE_STM32F4_SRC_MIKROE_STM32F4_H */ +#endif /* __BOARDS_ARM_STM32_MIKROE_STM32F4_SRC_MIKROE_STM32F4_H */ diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_appinit.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_appinit.c index cc4372c18e..15602c2ef0 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_appinit.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/mikroe_stm32f4/src/stm32_appinit.c + * boards/arm/stm32/mikroe_stm32f4/src/stm32_appinit.c * * Copyright (C) 2012-2013, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_boot.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_boot.c index e60e0ff34d..feb9e3b9fb 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_boot.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/mikroe_stm32f4/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/mikroe_stm32f4/src/stm32_boot.c * * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -46,19 +46,19 @@ #include "up_arch.h" #include "mikroe-stm32f4.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -66,7 +66,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_clockconfig.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_clockconfig.c index f233754024..85395e8358 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_clockconfig.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_clockconfig.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/mikroe_stm32f4/src/stm32_clockconfig.c +/**************************************************************************** + * boards/arm/stm32/mikroe_stm32f4/src/stm32_clockconfig.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Ken Pettit @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -46,19 +46,19 @@ #include "up_arch.h" #include "mikroe-stm32f4.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_board_clockconfig * * Description: @@ -67,7 +67,7 @@ * OS for the STM32 architecture assumes an external crystal, so we must provide * a board specific clock configuration routine. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_ARCH_BOARD_STM32_CUSTOM_CLOCKCONFIG) void stm32_board_clockconfig(void) diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_extmem.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_extmem.c index 0ab0970db5..60aa569311 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_extmem.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_extmem.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/mikroe_stm32f4/src/stm32_extmem.c +/**************************************************************************** + * boards/arm/stm32/mikroe_stm32f4/src/stm32_extmem.c * * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32.h" #include "mikroe-stm32f4.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_FSMC # warning "FSMC is not enabled" @@ -67,9 +67,9 @@ #define STM32_FSMC_NADDRCONFIGS 26 #define STM32_FSMC_NDATACONFIGS 16 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* GPIO configurations common to most external memories */ @@ -89,25 +89,25 @@ static const uint32_t g_dataconfig[STM32_FSMC_NDATACONFIGS] = GPIO_FSMC_D12, GPIO_FSMC_D13, GPIO_FSMC_D14, GPIO_FSMC_D15 }; -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for external memory usage * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemgpios(const uint32_t *gpios, int ngpios) { @@ -121,26 +121,26 @@ void stm32_extmemgpios(const uint32_t *gpios, int ngpios) } } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemaddr * * Description: * Initialize adress line GPIOs for external memory access * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemaddr(int naddrs) { stm32_extmemgpios(g_addressconfig, naddrs); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemdata * * Description: * Initialize data line GPIOs for external memory access * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemdata(int ndata) { diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_idle.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_idle.c index 1a933c56f2..4c9cbc2f72 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_idle.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_idle.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/mikroe_stm32f4/src/stm32_idle.c + * boards/arm/stm32/mikroe_stm32f4/src/stm32_idle.c * * Copyright (C) 2012-2013, 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -223,13 +223,13 @@ errout: # define up_idlepm() #endif -/************************************************************************************ +/**************************************************************************** * Name: up_alarmcb * * Description: * RTC alarm service routine * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM) static void up_alarmcb(void) diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_mio283qt2.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_mio283qt2.c index 81cc3c580b..824ed44349 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_mio283qt2.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_mio283qt2.c @@ -1,5 +1,5 @@ -/************************************************************************************** - * boards/mikroe-stm32f4/src/stm32_mio283qt2.c +/**************************************************************************** + * boards/arm/stm32/mikroe-stm32f4/src/stm32_mio283qt2.c * * Interface definition for the MI0283QT-2 LCD from Multi-Inno Technology Co., Ltd. * This LCD is based on the Himax HX8347-D LCD controller. @@ -36,11 +36,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Included Files - **************************************************************************************/ + ****************************************************************************/ #include @@ -64,9 +64,9 @@ #ifdef CONFIG_LCD_MIO283QT2 -/************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - **************************************************************************************/ + ****************************************************************************/ /* Mikroe-STM32F4 Hardware Definitions ************************************************/ /* --- ---------------------------------- -------------------- ------------------------ @@ -102,9 +102,9 @@ * 96 PB9 DRIVEB TFT display */ -/************************************************************************************** +/**************************************************************************** * Private Type Definition - **************************************************************************************/ + ****************************************************************************/ struct stm32f4_dev_s { @@ -114,9 +114,9 @@ struct stm32f4_dev_s FAR struct lcd_dev_s *drvr; /* The saved instance of the LCD driver */ }; -/************************************************************************************** +/**************************************************************************** * Private Function Protototypes - **************************************************************************************/ + ****************************************************************************/ /* Low Level LCD access */ static void stm32_select(FAR struct mio283qt2_lcd_s *dev); @@ -128,9 +128,9 @@ static uint16_t stm32_read(FAR struct mio283qt2_lcd_s *dev); static void stm32_write(FAR struct mio283qt2_lcd_s *dev, uint16_t data); static void stm32_backlight(FAR struct mio283qt2_lcd_s *dev, int power); -/************************************************************************************** +/**************************************************************************** * Private Data - **************************************************************************************/ + ****************************************************************************/ /* This is the driver state structure (there is no retained state information) */ @@ -150,17 +150,17 @@ static struct stm32f4_dev_s g_stm32f4_lcd = static uint32_t * volatile g_portsetreset = (uint32_t *) STM32_GPIOE_BSRR; -/************************************************************************************** +/**************************************************************************** * Private Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: stm32_tinydelay * * Description: * Delay for a few hundered NS. * - **************************************************************************************/ + ****************************************************************************/ static void stm32_tinydelay(void) { @@ -170,13 +170,13 @@ static void stm32_tinydelay(void) ; } -/************************************************************************************** +/**************************************************************************** * Name: stm32_command * * Description: * Configure to write an LCD command * - **************************************************************************************/ + ****************************************************************************/ static inline void stm32_command(void) { @@ -187,13 +187,13 @@ static inline void stm32_command(void) *portsetreset = (1 << LCD_RS_PIN) << 16; } -/************************************************************************************** +/**************************************************************************** * Name: stm32_data * * Description: * Configure to read or write LCD data * - **************************************************************************************/ + ****************************************************************************/ static inline void stm32_data(void) { @@ -202,13 +202,13 @@ static inline void stm32_data(void) *g_portsetreset = 1 << LCD_RS_PIN; } -/************************************************************************************** +/**************************************************************************** * Name: stm32_select * * Description: * Select the LCD device * - **************************************************************************************/ + ****************************************************************************/ static void stm32_select(FAR struct mio283qt2_lcd_s *dev) { @@ -217,13 +217,13 @@ static void stm32_select(FAR struct mio283qt2_lcd_s *dev) *g_portsetreset = (1 << LCD_CS_PIN) << 16; } -/************************************************************************************** +/**************************************************************************** * Name: stm32_deselect * * Description: * De-select the LCD device * - **************************************************************************************/ + ****************************************************************************/ static void stm32_deselect(FAR struct mio283qt2_lcd_s *dev) { @@ -232,13 +232,13 @@ static void stm32_deselect(FAR struct mio283qt2_lcd_s *dev) *g_portsetreset = 1 << LCD_CS_PIN; } -/************************************************************************************** +/**************************************************************************** * Name: stm32_index * * Description: * Set the index register * - **************************************************************************************/ + ****************************************************************************/ static void stm32_index(FAR struct mio283qt2_lcd_s *dev, uint8_t index) { @@ -275,13 +275,13 @@ static void stm32_index(FAR struct mio283qt2_lcd_s *dev, uint8_t index) stm32_data(); } -/************************************************************************************** +/**************************************************************************** * Name: stm32_read * * Description: * Read LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ #if !defined(CONFIG_MIO283QT2_WRONLY) && !defined(CONFIG_LCD_NOGETRUN) static uint16_t stm32_read(FAR struct mio283qt2_lcd_s *dev) @@ -352,13 +352,13 @@ static uint16_t stm32_read(FAR struct mio283qt2_lcd_s *dev) } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm32_write * * Description: * Write LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ static void stm32_write(FAR struct mio283qt2_lcd_s *dev, uint16_t data) { @@ -389,13 +389,13 @@ static void stm32_write(FAR struct mio283qt2_lcd_s *dev, uint16_t data) *g_portsetreset = (1 << LCD_PMPWR_PIN); } -/************************************************************************************** +/**************************************************************************** * Name: stm32_backlight * * Description: * Set the backlight power level. * - **************************************************************************************/ + ****************************************************************************/ static void stm32_backlight(FAR struct mio283qt2_lcd_s *dev, int power) { @@ -407,11 +407,11 @@ static void stm32_backlight(FAR struct mio283qt2_lcd_s *dev, int power) stm32_gpiowrite(GPIO_LCD_BLED, power > 0); } -/************************************************************************************** +/**************************************************************************** * Public Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: stm32_lcdinitialize * * Description: @@ -419,7 +419,7 @@ static void stm32_backlight(FAR struct mio283qt2_lcd_s *dev, int power) * sequendce -- Even if the LCD is not enabled. In that case we should * at a minimum at least disable the LCD backlight. * - **************************************************************************************/ + ****************************************************************************/ void stm32_lcdinitialize(void) { @@ -459,7 +459,7 @@ void stm32_lcdinitialize(void) #endif } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -467,7 +467,7 @@ void stm32_lcdinitialize(void) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - **************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -505,14 +505,14 @@ int board_lcd_initialize(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows support * for multiple LCD devices. * - **************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -520,13 +520,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return g_stm32f4_lcd.drvr; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Unitialize the LCD support * - **************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_mio283qt9a.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_mio283qt9a.c index f34b0bd965..e770e7a74b 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_mio283qt9a.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_mio283qt9a.c @@ -1,5 +1,5 @@ -/************************************************************************************** - * boards/mikroe-stm32f4/src/stm32_mio283qt9a.c +/**************************************************************************** + * boards/arm/stm32/mikroe-stm32f4/src/stm32_mio283qt9a.c * * Interface definition for the MI0283QT-9A LCD from Multi-Inno Technology Co., Ltd. * LCD is based on the Ilitek ILI9341 LCD controller. @@ -37,11 +37,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Included Files - **************************************************************************************/ + ****************************************************************************/ #include @@ -65,9 +65,9 @@ #ifdef CONFIG_LCD_MIO283QT9A -/************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - **************************************************************************************/ + ****************************************************************************/ /* Mikroe-STM32F4 Hardware Definitions ************************************************/ /* --- ---------------------------------- -------------------- ------------------------ @@ -103,9 +103,9 @@ * 96 PB9 DRIVEB TFT display */ -/************************************************************************************** +/**************************************************************************** * Private Type Definition - **************************************************************************************/ + ****************************************************************************/ struct stm32f4_dev_s { @@ -115,9 +115,9 @@ struct stm32f4_dev_s FAR struct lcd_dev_s *drvr; /* The saved instance of the LCD driver */ }; -/************************************************************************************** +/**************************************************************************** * Private Function Protototypes - **************************************************************************************/ + ****************************************************************************/ /* Low Level LCD access */ static void stm32_select(FAR struct mio283qt9a_lcd_s *dev); @@ -129,9 +129,9 @@ static uint16_t stm32_read(FAR struct mio283qt9a_lcd_s *dev); static void stm32_write(FAR struct mio283qt9a_lcd_s *dev, uint16_t data); static void stm32_backlight(FAR struct mio283qt9a_lcd_s *dev, int power); -/************************************************************************************** +/**************************************************************************** * Private Data - **************************************************************************************/ + ****************************************************************************/ /* This is the driver state structure (there is no retained state information) */ @@ -151,17 +151,17 @@ static struct stm32f4_dev_s g_stm32f4_lcd = static uint32_t * volatile g_portsetreset = (uint32_t *) STM32_GPIOE_BSRR; -/************************************************************************************** +/**************************************************************************** * Private Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: stm32_tinydelay * * Description: * Delay for a few hundred NS. * - **************************************************************************************/ + ****************************************************************************/ static void stm32_tinydelay(void) { @@ -171,13 +171,13 @@ static void stm32_tinydelay(void) ; } -/************************************************************************************** +/**************************************************************************** * Name: stm32_command * * Description: * Configure to write an LCD command * - **************************************************************************************/ + ****************************************************************************/ static inline void stm32_command(void) { @@ -188,13 +188,13 @@ static inline void stm32_command(void) *portsetreset = (1 << LCD_RS_PIN) << 16; } -/************************************************************************************** +/**************************************************************************** * Name: stm32_data * * Description: * Configure to read or write LCD data * - **************************************************************************************/ + ****************************************************************************/ static inline void stm32_data(void) { @@ -203,13 +203,13 @@ static inline void stm32_data(void) *g_portsetreset = 1 << LCD_RS_PIN; } -/************************************************************************************** +/**************************************************************************** * Name: stm32_select * * Description: * Select the LCD device * - **************************************************************************************/ + ****************************************************************************/ static void stm32_select(FAR struct mio283qt9a_lcd_s *dev) { @@ -218,13 +218,13 @@ static void stm32_select(FAR struct mio283qt9a_lcd_s *dev) *g_portsetreset = (1 << LCD_CS_PIN) << 16; } -/************************************************************************************** +/**************************************************************************** * Name: stm32_deselect * * Description: * De-select the LCD device * - **************************************************************************************/ + ****************************************************************************/ static void stm32_deselect(FAR struct mio283qt9a_lcd_s *dev) { @@ -233,13 +233,13 @@ static void stm32_deselect(FAR struct mio283qt9a_lcd_s *dev) *g_portsetreset = 1 << LCD_CS_PIN; } -/************************************************************************************** +/**************************************************************************** * Name: stm32_index * * Description: * Set the index register * - **************************************************************************************/ + ****************************************************************************/ static void stm32_index(FAR struct mio283qt9a_lcd_s *dev, uint8_t index) { @@ -276,13 +276,13 @@ static void stm32_index(FAR struct mio283qt9a_lcd_s *dev, uint8_t index) stm32_data(); } -/************************************************************************************** +/**************************************************************************** * Name: stm32_read * * Description: * Read LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ #if !defined(CONFIG_MIO283QT2_WRONLY) && !defined(CONFIG_LCD_NOGETRUN) static uint16_t stm32_read(FAR struct mio283qt9a_lcd_s *dev) @@ -353,13 +353,13 @@ static uint16_t stm32_read(FAR struct mio283qt9a_lcd_s *dev) } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm32_write * * Description: * Write LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ static void stm32_write(FAR struct mio283qt9a_lcd_s *dev, uint16_t data) { @@ -390,13 +390,13 @@ static void stm32_write(FAR struct mio283qt9a_lcd_s *dev, uint16_t data) *g_portsetreset = (1 << LCD_PMPWR_PIN); } -/************************************************************************************** +/**************************************************************************** * Name: stm32_backlight * * Description: * Set the backlight power level. * - **************************************************************************************/ + ****************************************************************************/ static void stm32_backlight(FAR struct mio283qt9a_lcd_s *dev, int power) { @@ -408,11 +408,11 @@ static void stm32_backlight(FAR struct mio283qt9a_lcd_s *dev, int power) stm32_gpiowrite(GPIO_LCD_BLED, power > 0); } -/************************************************************************************** +/**************************************************************************** * Public Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: stm32_lcdinitialize * * Description: @@ -420,7 +420,7 @@ static void stm32_backlight(FAR struct mio283qt9a_lcd_s *dev, int power) * sequendce -- Even if the LCD is not enabled. In that case we should * at a minimum at least disable the LCD backlight. * - **************************************************************************************/ + ****************************************************************************/ void stm32_lcdinitialize(void) { @@ -460,7 +460,7 @@ void stm32_lcdinitialize(void) #endif } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -468,7 +468,7 @@ void stm32_lcdinitialize(void) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - **************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -506,14 +506,14 @@ int board_lcd_initialize(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows support * for multiple LCD devices. * - **************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -521,13 +521,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return g_stm32f4_lcd.drvr; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Uninitialize the LCD support * - **************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_pm.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_pm.c index 7e3c3332a6..880cabc7e9 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_pm.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_pm.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/mikroe_stm32f4/src/stm32_pm.c + * boards/arm/stm32/mikroe_stm32f4/src/stm32_pm.c * * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_pwm.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_pwm.c index ed9a310825..78887f8775 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_pwm.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/mikroe_stm32f4/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/mikroe_stm32f4/src/stm32_pwm.c * * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32_pwm.h" #include "mikroe-stm32f4.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ /* PWM * @@ -85,17 +85,17 @@ # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_qencoder.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_qencoder.c index a5dd7cfd66..a34a69aa0e 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_qencoder.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_qencoder.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/mikroe_stm32f4/src/stm32_qencoder.c +/**************************************************************************** + * boards/arm/stm32/mikroe_stm32f4/src/stm32_qencoder.c * * Copyright (C) 2012-2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,18 +50,18 @@ #include "stm32_qencoder.h" #include "mikroe-stm32f4.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_qencoder_initialize * * Description: * All STM32 architectures must provide the following interface to work with * examples/qencoder. * - ************************************************************************************/ + ****************************************************************************/ int stm32_qencoder_initialize(FAR const char *devpath, int timer) { diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_spi.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_spi.c index f135dee68f..e63d9116fb 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_spi.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/mikroe_stm32f4/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/mikroe_stm32f4/src/stm32_spi.c * * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -36,11 +36,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,17 +59,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the mikroe_stm32f4 board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c index ae9a383632..2b83f41940 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/mikroe-stm32f4/src/stm32_touchscreen.c +/**************************************************************************** + * boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c * * Copyright (C) 2012-2013, 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,11 +33,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -67,9 +67,9 @@ #ifdef CONFIG_INPUT -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* Reference counting is partially implemented, but not needed in the current design. */ @@ -165,9 +165,9 @@ #define TC_SETTLE_TICKS MSEC2TICK(10) /* Delay for A/D settling: 10 MSec */ #define TC_RESAMPLE_TICKS TC_SAMPLE_TICKS -/************************************************************************************ +/**************************************************************************** * Private Types - ************************************************************************************/ + ****************************************************************************/ /* This enumeration describes the state of touchscreen state machine */ enum tc_state_e @@ -234,9 +234,9 @@ struct tc_dev_s struct pollfd *fds[CONFIG_TOUCHSCREEN_NPOLLWAITERS]; }; -/************************************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************************************/ + ****************************************************************************/ static void tc_adc_init(void); static void tc_adc_start_sample(int pin); @@ -286,10 +286,10 @@ static struct tc_dev_s g_touchscreen; static bool g_touchinitdone = false; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ -/************************************************************************************ + ****************************************************************************/ +/**************************************************************************** * Name: tc_adc_getreg * * Description: @@ -301,14 +301,14 @@ static bool g_touchinitdone = false; * * Returned Value: * - ************************************************************************************/ + ****************************************************************************/ static inline uint32_t tc_adc_getreg(int offset) { return getreg32(TC_ADC_BASE + offset); } -/************************************************************************************ +/**************************************************************************** * Name: tc_adc_putreg * * Description: @@ -319,21 +319,21 @@ static inline uint32_t tc_adc_getreg(int offset) * * Returned Value: * - ************************************************************************************/ + ****************************************************************************/ static inline void tc_adc_putreg(int offset, uint32_t value) { putreg32(value, TC_ADC_BASE + offset); } -/************************************************************************************ +/**************************************************************************** * Name: tc_adc_init * * Description: * Initialize ADC Channel #2 for use with the touch panel. The touch panel uses * Channels 8 and 9 (PB0 and PB1) to read the X and Y axis touch positions. * - ************************************************************************************/ + ****************************************************************************/ static void tc_adc_init(void) { @@ -457,14 +457,14 @@ static void tc_adc_init(void) leave_critical_section(flags); } -/************************************************************************************ +/**************************************************************************** * Name: tc_adc_start_sample * * Description: * Perform A/D sampling. Time must be allowed betwen the start of sampling * and conversion (approx. 100Ms). * - ************************************************************************************/ + ****************************************************************************/ static void tc_adc_start_sample(int channel) { @@ -489,7 +489,7 @@ static void tc_adc_start_sample(int channel) tc_adc_putreg(STM32_ADC_CR2_OFFSET, regval); } -/************************************************************************************ +/**************************************************************************** * Name: tc_adc_read_sample * * Description: @@ -500,7 +500,7 @@ static void tc_adc_start_sample(int channel) * 1) All output pins configured as outputs: * 2) Approprite pins are driven high and low * - ************************************************************************************/ + ****************************************************************************/ static uint16_t tc_adc_read_sample(void) { @@ -530,13 +530,13 @@ static uint16_t tc_adc_read_sample(void) return retval; } -/************************************************************************************ +/**************************************************************************** * Name: tc_y_sample * * Description: * Initiate sampling on Y * - ************************************************************************************/ + ****************************************************************************/ static void tc_y_sample(void) { @@ -545,13 +545,13 @@ static void tc_y_sample(void) tc_adc_start_sample(LCD_XL_CHANNEL); } -/************************************************************************************ +/**************************************************************************** * Name: tc_x_sample * * Description: * Initiate sampling on X * - ************************************************************************************/ + ****************************************************************************/ static void tc_x_sample(void) { @@ -1457,9 +1457,9 @@ errout: return ret; } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32_tsc_setup diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_usb.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_usb.c index 3789b5de03..a2d9e90cb1 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_usb.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/mikroe_stm32f4/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/mikroe_stm32f4/src/stm32_usb.c * * Copyright (C) 2012-2013, 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,9 +59,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -82,25 +82,25 @@ # endif #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -131,18 +131,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F4Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -157,7 +157,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -165,7 +165,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -219,7 +219,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -243,7 +243,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -265,7 +265,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -280,7 +280,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -289,7 +289,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -298,7 +298,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_vs1053.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_vs1053.c index 3415a79bf7..8e29402929 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_vs1053.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_vs1053.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/mikroe-stm32f4/src/stm32_vs1053.c + * boards/arm/stm32/mikroe-stm32f4/src/stm32_vs1053.c * * Copyright (C) 2013 Ken Pettit. All rights reserved. * Author: Ken Pettit diff --git a/boards/arm/stm32/nucleo-f103rb/include/board.h b/boards/arm/stm32/nucleo-f103rb/include/board.h index bb7bc2ea11..2e7c988faa 100644 --- a/boards/arm/stm32/nucleo-f103rb/include/board.h +++ b/boards/arm/stm32/nucleo-f103rb/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f103rb/include/board.h + * boards/arm/stm32/nucleo-f103rb/include/board.h * include/arch/board/board.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEOF103RB_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEOF103RB_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_NUCLEOF103RB_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_NUCLEOF103RB_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -185,4 +185,4 @@ #define ADC1_DMA_CHAN DMACHAN_ADC1 /* DMA1_CH1 */ -#endif /* __BOARDS_ARM_NUCLEO_F103RB_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F103RB_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-f103rb/scripts/Make.defs b/boards/arm/stm32/nucleo-f103rb/scripts/Make.defs index 5656eeac1b..c63e403911 100644 --- a/boards/arm/stm32/nucleo-f103rb/scripts/Make.defs +++ b/boards/arm/stm32/nucleo-f103rb/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f103rb/scripts/Make.defs +# boards/arm/stm32/nucleo-f103rb/scripts/Make.defs # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f103rb/scripts/ld.script b/boards/arm/stm32/nucleo-f103rb/scripts/ld.script index 18aa73a572..61dc901bb5 100644 --- a/boards/arm/stm32/nucleo-f103rb/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f103rb/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f103rb/scripts/ld.script + * boards/arm/stm32/nucleo-f103rb/scripts/ld.script * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f103rb/src/Makefile b/boards/arm/stm32/nucleo-f103rb/src/Makefile index 6735920f04..2dde01311e 100644 --- a/boards/arm/stm32/nucleo-f103rb/src/Makefile +++ b/boards/arm/stm32/nucleo-f103rb/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f103rb/src/Makefile +# boards/arm/stm32/nucleo-f103rb/src/Makefile # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f103rb/src/nucleo-f103rb.h b/boards/arm/stm32/nucleo-f103rb/src/nucleo-f103rb.h index 7d48531b09..6ee5ccf609 100644 --- a/boards/arm/stm32/nucleo-f103rb/src/nucleo-f103rb.h +++ b/boards/arm/stm32/nucleo-f103rb/src/nucleo-f103rb.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f103rb/src/nucleo-f103rb.h + * boards/arm/stm32/nucleo-f103rb/src/nucleo-f103rb.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F103RB_SRC_NUCLEO_F103RB_H -#define __BOARDS_ARM_NUCLEO_F103RB_SRC_NUCLEO_F103RB_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F103RB_SRC_NUCLEO_F103RB_H +#define __BOARDS_ARM_STM32_NUCLEO_F103RB_SRC_NUCLEO_F103RB_H /**************************************************************************** * Included Files @@ -94,28 +94,28 @@ * Public Function Prototypes ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -#endif /* __BOARDS_ARM_NUCLEO_F103RB_SRC_NUCLEO_F103RB_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F103RB_SRC_NUCLEO_F103RB_H */ diff --git a/boards/arm/stm32/nucleo-f103rb/src/stm32_adc.c b/boards/arm/stm32/nucleo-f103rb/src/stm32_adc.c index da6aa84dfe..990723b2f0 100644 --- a/boards/arm/stm32/nucleo-f103rb/src/stm32_adc.c +++ b/boards/arm/stm32/nucleo-f103rb/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f103rb/src/stm32_adc.c + * boards/arm/stm32/nucleo-f103rb/src/stm32_adc.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -169,13 +169,13 @@ static const uint32_t g_pinlist2[3] = * Public Functions ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/nucleo-f103rb/src/stm32_appinitialize.c b/boards/arm/stm32/nucleo-f103rb/src/stm32_appinitialize.c index 8daa26121f..4f5b5b101f 100644 --- a/boards/arm/stm32/nucleo-f103rb/src/stm32_appinitialize.c +++ b/boards/arm/stm32/nucleo-f103rb/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f103rb/src/stm32_appinitialize.c + * boards/arm/stm32/nucleo-f103rb/src/stm32_appinitialize.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f103rb/src/stm32_autoleds.c b/boards/arm/stm32/nucleo-f103rb/src/stm32_autoleds.c index 4583620f39..c1b2fc8d4e 100644 --- a/boards/arm/stm32/nucleo-f103rb/src/stm32_autoleds.c +++ b/boards/arm/stm32/nucleo-f103rb/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f103rb/src/stm32_autoleds.c + * boards/arm/stm32/nucleo-f103rb/src/stm32_autoleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f103rb/src/stm32_boot.c b/boards/arm/stm32/nucleo-f103rb/src/stm32_boot.c index de2bee749b..cdc9b67b83 100644 --- a/boards/arm/stm32/nucleo-f103rb/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-f103rb/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f103rb/src/stm32_boot.c + * boards/arm/stm32/nucleo-f103rb/src/stm32_boot.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f103rb/src/stm32_buttons.c b/boards/arm/stm32/nucleo-f103rb/src/stm32_buttons.c index 7fdebfa4ad..e3bfe40c06 100644 --- a/boards/arm/stm32/nucleo-f103rb/src/stm32_buttons.c +++ b/boards/arm/stm32/nucleo-f103rb/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f103rb/src/stm32_buttons.c + * boards/arm/stm32/nucleo-f103rb/src/stm32_buttons.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f103rb/src/stm32_pwm.c b/boards/arm/stm32/nucleo-f103rb/src/stm32_pwm.c index 8264bee756..53e84b677c 100644 --- a/boards/arm/stm32/nucleo-f103rb/src/stm32_pwm.c +++ b/boards/arm/stm32/nucleo-f103rb/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f103rb/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f103rb/src/stm32_pwm.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #include "stm32_pwm.h" #include "nucleo-f103rb.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ #define HAVE_PWM 1 @@ -69,17 +69,17 @@ # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/nucleo-f103rb/src/stm32_userleds.c b/boards/arm/stm32/nucleo-f103rb/src/stm32_userleds.c index 025534cc73..4558ed3f9c 100644 --- a/boards/arm/stm32/nucleo-f103rb/src/stm32_userleds.c +++ b/boards/arm/stm32/nucleo-f103rb/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f103rb/src/stm32_userleds.c + * boards/arm/stm32/nucleo-f103rb/src/stm32_userleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f207zg/include/board.h b/boards/arm/stm32/nucleo-f207zg/include/board.h index cc01387743..b6a666f772 100644 --- a/boards/arm/stm32/nucleo-f207zg/include/board.h +++ b/boards/arm/stm32/nucleo-f207zg/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f207zg/include/board.h + * boards/arm/stm32/nucleo-f207zg/include/board.h * include/arch/board/board.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEOF207ZG_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEOF207ZG_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_NUCLEOF207ZG_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_NUCLEOF207ZG_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -214,4 +214,4 @@ #define ADC1_DMA_CHAN DMAMAP_ADC1_1 -#endif /* __BOARDS_ARM_NUCLEO_F207ZG_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F207ZG_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-f207zg/scripts/Make.defs b/boards/arm/stm32/nucleo-f207zg/scripts/Make.defs index 65f0b12a61..2bf3d71ef5 100644 --- a/boards/arm/stm32/nucleo-f207zg/scripts/Make.defs +++ b/boards/arm/stm32/nucleo-f207zg/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f207zg/scripts/Make.defs +# boards/arm/stm32/nucleo-f207zg/scripts/Make.defs # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f207zg/scripts/ld.script b/boards/arm/stm32/nucleo-f207zg/scripts/ld.script index afa653d52a..d6b942a41d 100644 --- a/boards/arm/stm32/nucleo-f207zg/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f207zg/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f207zg/scripts/ld.script + * boards/arm/stm32/nucleo-f207zg/scripts/ld.script * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f207zg/src/Makefile b/boards/arm/stm32/nucleo-f207zg/src/Makefile index 2b6d3e26ec..f56b925ac5 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/Makefile +++ b/boards/arm/stm32/nucleo-f207zg/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f207zg/src/Makefile +# boards/arm/stm32/nucleo-f207zg/src/Makefile # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f207zg/src/nucleo-f207zg.h b/boards/arm/stm32/nucleo-f207zg/src/nucleo-f207zg.h index 970b308bf5..4f000b09ec 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/nucleo-f207zg.h +++ b/boards/arm/stm32/nucleo-f207zg/src/nucleo-f207zg.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f207zg/src/nucleo-f207zg.h + * boards/arm/stm32/nucleo-f207zg/src/nucleo-f207zg.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F207ZG_SRC_NUCLEO_F207ZG_H -#define __BOARDS_ARM_NUCLEO_F207ZG_SRC_NUCLEO_F207ZG_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F207ZG_SRC_NUCLEO_F207ZG_H +#define __BOARDS_ARM_STM32_NUCLEO_F207ZG_SRC_NUCLEO_F207ZG_H /**************************************************************************** * Included Files @@ -121,28 +121,28 @@ int stm32_bringup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -#endif /* __BOARDS_ARM_NUCLEO_F207ZG_SRC_NUCLEO_F207ZG_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F207ZG_SRC_NUCLEO_F207ZG_H */ diff --git a/boards/arm/stm32/nucleo-f207zg/src/stm32_adc.c b/boards/arm/stm32/nucleo-f207zg/src/stm32_adc.c index a377b17cc0..973be8d4ea 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/stm32_adc.c +++ b/boards/arm/stm32/nucleo-f207zg/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303ze/src/stm32_adc.c + * boards/arm/stm32/nucleo-f303ze/src/stm32_adc.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f207zg/src/stm32_appinitialize.c b/boards/arm/stm32/nucleo-f207zg/src/stm32_appinitialize.c index 8b56af67d8..5d83172977 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/stm32_appinitialize.c +++ b/boards/arm/stm32/nucleo-f207zg/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-f207zg/src/stm32_appinitialize.c + * boards/arm/stm32/nucleo-f207zg/src/stm32_appinitialize.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f207zg/src/stm32_autoleds.c b/boards/arm/stm32/nucleo-f207zg/src/stm32_autoleds.c index ee9bf1428d..d2da6f2b66 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/stm32_autoleds.c +++ b/boards/arm/stm32/nucleo-f207zg/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f207zg/src/stm32_autoleds.c + * boards/arm/stm32/nucleo-f207zg/src/stm32_autoleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f207zg/src/stm32_boot.c b/boards/arm/stm32/nucleo-f207zg/src/stm32_boot.c index 09f4321d13..b0e66f7764 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-f207zg/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f207zg/src/stm32_boot.c + * boards/arm/stm32/nucleo-f207zg/src/stm32_boot.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f207zg/src/stm32_bringup.c b/boards/arm/stm32/nucleo-f207zg/src/stm32_bringup.c index 501ca0fa7a..5ada3ad2d7 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/stm32_bringup.c +++ b/boards/arm/stm32/nucleo-f207zg/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f207zg/src/stm32_bringup.c + * boards/arm/stm32/nucleo-f207zg/src/stm32_bringup.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f207zg/src/stm32_buttons.c b/boards/arm/stm32/nucleo-f207zg/src/stm32_buttons.c index 2183e2419d..54f53c7917 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/stm32_buttons.c +++ b/boards/arm/stm32/nucleo-f207zg/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f207zg/src/stm32_buttons.c + * boards/arm/stm32/nucleo-f207zg/src/stm32_buttons.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f207zg/src/stm32_pwm.c b/boards/arm/stm32/nucleo-f207zg/src/stm32_pwm.c index bd2fc8ed4d..399dd3ec24 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/stm32_pwm.c +++ b/boards/arm/stm32/nucleo-f207zg/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f207zg/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f207zg/src/stm32_pwm.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #include "stm32_pwm.h" #include "nucleo-f207zg.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ #define HAVE_PWM 1 @@ -69,17 +69,17 @@ # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/nucleo-f207zg/src/stm32_usb.c b/boards/arm/stm32/nucleo-f207zg/src/stm32_usb.c index 5aef9361cf..8a8008f629 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/stm32_usb.c +++ b/boards/arm/stm32/nucleo-f207zg/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f207zg/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f207zg/src/stm32_usb.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -60,9 +60,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -79,25 +79,25 @@ # define CONFIG_NUCLEOF207ZG_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -128,18 +128,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -154,7 +154,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -162,7 +162,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -249,7 +249,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -273,7 +273,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -286,7 +286,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -301,7 +301,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -310,7 +310,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -319,7 +319,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/nucleo-f207zg/src/stm32_userleds.c b/boards/arm/stm32/nucleo-f207zg/src/stm32_userleds.c index 19b2dd470d..d6b3228a55 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/stm32_userleds.c +++ b/boards/arm/stm32/nucleo-f207zg/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f207zg/src/stm32_userleds.c + * boards/arm/stm32/nucleo-f207zg/src/stm32_userleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f302r8/include/board.h b/boards/arm/stm32/nucleo-f302r8/include/board.h index cf2cd5e3c8..3530a44d59 100644 --- a/boards/arm/stm32/nucleo-f302r8/include/board.h +++ b/boards/arm/stm32/nucleo-f302r8/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f302r8/include/board.h + * boards/arm/stm32/nucleo-f302r8/include/board.h * include/arch/board/board.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEOF302R8_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEOF302R8_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_NUCLEOF302R8_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_NUCLEOF302R8_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -256,4 +256,4 @@ #define ADC1_DMA_CHAN DMACHAN_ADC1 /* DMA1_CH1 */ -#endif /* __BOARDS_ARM_NUCLEO_F302R8_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F302R8_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-f302r8/scripts/Make.defs b/boards/arm/stm32/nucleo-f302r8/scripts/Make.defs index 601c6ca218..c975d3c637 100644 --- a/boards/arm/stm32/nucleo-f302r8/scripts/Make.defs +++ b/boards/arm/stm32/nucleo-f302r8/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f302r8/scripts/Make.defs +# boards/arm/stm32/nucleo-f302r8/scripts/Make.defs # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f302r8/scripts/ld.script b/boards/arm/stm32/nucleo-f302r8/scripts/ld.script index 2aa7f0548a..2259bbed4d 100644 --- a/boards/arm/stm32/nucleo-f302r8/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f302r8/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f302r8/scripts/ld.script + * boards/arm/stm32/nucleo-f302r8/scripts/ld.script * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f302r8/src/Makefile b/boards/arm/stm32/nucleo-f302r8/src/Makefile index a298ab63e2..1ac13f2bc6 100644 --- a/boards/arm/stm32/nucleo-f302r8/src/Makefile +++ b/boards/arm/stm32/nucleo-f302r8/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f302r8/src/Makefile +# boards/arm/stm32/nucleo-f302r8/src/Makefile # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f302r8/src/nucleo-f302r8.h b/boards/arm/stm32/nucleo-f302r8/src/nucleo-f302r8.h index 1b821ca0f5..5b420c8cfd 100644 --- a/boards/arm/stm32/nucleo-f302r8/src/nucleo-f302r8.h +++ b/boards/arm/stm32/nucleo-f302r8/src/nucleo-f302r8.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f302r8/src/nucleo-f302r8.h + * boards/arm/stm32/nucleo-f302r8/src/nucleo-f302r8.h * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. @@ -35,8 +35,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F302R8_SRC_NUCLEO_F302R8_H -#define __BOARDS_ARM_NUCLEO_F302R8_SRC_NUCLEO_F302R8_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F302R8_SRC_NUCLEO_F302R8_H +#define __BOARDS_ARM_STM32_NUCLEO_F302R8_SRC_NUCLEO_F302R8_H /**************************************************************************** * Included Files @@ -112,4 +112,4 @@ int stm32_pwm_setup(void); #endif -#endif /* __BOARDS_ARM_NUCLEO_F302R8_SRC_NUCLEO_F302R8_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F302R8_SRC_NUCLEO_F302R8_H */ diff --git a/boards/arm/stm32/nucleo-f302r8/src/stm32_appinitialize.c b/boards/arm/stm32/nucleo-f302r8/src/stm32_appinitialize.c index 8cb7be398a..693ab4dcf0 100644 --- a/boards/arm/stm32/nucleo-f302r8/src/stm32_appinitialize.c +++ b/boards/arm/stm32/nucleo-f302r8/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f302r8/src/stm32_appinitialize.c + * boards/arm/stm32/nucleo-f302r8/src/stm32_appinitialize.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f302r8/src/stm32_autoleds.c b/boards/arm/stm32/nucleo-f302r8/src/stm32_autoleds.c index 5f5b725d4d..0285da3f44 100644 --- a/boards/arm/stm32/nucleo-f302r8/src/stm32_autoleds.c +++ b/boards/arm/stm32/nucleo-f302r8/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f302r8/src/stm32_autoleds.c + * boards/arm/stm32/nucleo-f302r8/src/stm32_autoleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f302r8/src/stm32_boot.c b/boards/arm/stm32/nucleo-f302r8/src/stm32_boot.c index 0aa847386f..e55323b383 100644 --- a/boards/arm/stm32/nucleo-f302r8/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-f302r8/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f302r8/src/stm32_boot.c + * boards/arm/stm32/nucleo-f302r8/src/stm32_boot.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f302r8/src/stm32_buttons.c b/boards/arm/stm32/nucleo-f302r8/src/stm32_buttons.c index a26380ffe5..17b3c5af1a 100644 --- a/boards/arm/stm32/nucleo-f302r8/src/stm32_buttons.c +++ b/boards/arm/stm32/nucleo-f302r8/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f302r8/src/stm32_buttons.c + * boards/arm/stm32/nucleo-f302r8/src/stm32_buttons.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c b/boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c index 501773e34a..417cd2bdb4 100644 --- a/boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c +++ b/boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f302r8/src/stm32_highpri.c + * boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f302r8/src/stm32_pwm.c b/boards/arm/stm32/nucleo-f302r8/src/stm32_pwm.c index 9f68f6a8f0..0023b1bdcc 100644 --- a/boards/arm/stm32/nucleo-f302r8/src/stm32_pwm.c +++ b/boards/arm/stm32/nucleo-f302r8/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f302r8/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f302r8/src/stm32_pwm.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #include "stm32_pwm.h" #include "nucleo-f302r8.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ #define HAVE_PWM 1 @@ -69,17 +69,17 @@ # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/nucleo-f302r8/src/stm32_userleds.c b/boards/arm/stm32/nucleo-f302r8/src/stm32_userleds.c index ff432d676d..3ab8287c08 100644 --- a/boards/arm/stm32/nucleo-f302r8/src/stm32_userleds.c +++ b/boards/arm/stm32/nucleo-f302r8/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f302r8/src/stm32_userleds.c + * boards/arm/stm32/nucleo-f302r8/src/stm32_userleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f303re/include/board.h b/boards/arm/stm32/nucleo-f303re/include/board.h index aeedd38a54..8e1e4901b9 100644 --- a/boards/arm/stm32/nucleo-f303re/include/board.h +++ b/boards/arm/stm32/nucleo-f303re/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/include/board.h + * boards/arm/stm32/nucleo-f303re/include/board.h * include/arch/board/board.h * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. @@ -36,8 +36,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F3DISCOVERY_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F3DISCOVERY_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM32F3DISCOVERY_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM32F3DISCOVERY_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -247,4 +247,4 @@ #define ADC3_DMA_CHAN DMACHAN_ADC3 #define ADC4_DMA_CHAN DMACHAN_ADC4_1 -#endif /* __BOARDS_ARM_NUCLEO_F303RE_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F303RE_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-f303re/scripts/Make.defs b/boards/arm/stm32/nucleo-f303re/scripts/Make.defs index 4cb8e5e0fe..88ea92445e 100644 --- a/boards/arm/stm32/nucleo-f303re/scripts/Make.defs +++ b/boards/arm/stm32/nucleo-f303re/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f303re/scripts/Make.defs +# boards/arm/stm32/nucleo-f303re/scripts/Make.defs # # Copyright (C) 2013, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f303re/scripts/ld.script b/boards/arm/stm32/nucleo-f303re/scripts/ld.script index 7de0cc6ecf..8952f69a6a 100644 --- a/boards/arm/stm32/nucleo-f303re/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f303re/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/scripts/ld.script + * boards/arm/stm32/nucleo-f303re/scripts/ld.script * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/nucleo-f303re/src/Makefile b/boards/arm/stm32/nucleo-f303re/src/Makefile index 514640317f..afd3a2c285 100644 --- a/boards/arm/stm32/nucleo-f303re/src/Makefile +++ b/boards/arm/stm32/nucleo-f303re/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f303re/src/Makefile +# boards/arm/stm32/nucleo-f303re/src/Makefile # # Copyright (C) 2014 Gregory Nutt. All rights reserved. # Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/nucleo-f303re/src/nucleo-f303re.h b/boards/arm/stm32/nucleo-f303re/src/nucleo-f303re.h index 75ecf20883..c5c369c957 100644 --- a/boards/arm/stm32/nucleo-f303re/src/nucleo-f303re.h +++ b/boards/arm/stm32/nucleo-f303re/src/nucleo-f303re.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/nucleo-f303re.h + * boards/arm/stm32/nucleo-f303re/src/nucleo-f303re.h * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. @@ -35,8 +35,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F303RE_SRC_NUCLEO_F303RE_H -#define __BOARDS_ARM_NUCLEO_F303RE_SRC_NUCLEO_F303RE_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F303RE_SRC_NUCLEO_F303RE_H +#define __BOARDS_ARM_STM32_NUCLEO_F303RE_SRC_NUCLEO_F303RE_H /**************************************************************************** * Included Files @@ -167,25 +167,25 @@ int stm32_timer_driver_setup(FAR const char *devpath, int timer); int stm32_dac_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -203,4 +203,4 @@ int stm32_adc_setup(void); int stm32_can_setup(void); #endif -#endif /* __BOARDS_ARM_NUCLEO_F303RE_SRC_NUCLEO_F303RE_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F303RE_SRC_NUCLEO_F303RE_H */ diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_adc.c b/boards/arm/stm32/nucleo-f303re/src/stm32_adc.c index 6fc46308cd..9019d9ffea 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_adc.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/stm32_adc.c + * boards/arm/stm32/nucleo-f303re/src/stm32_adc.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2015-2016 Omni Hoverboards Inc. All rights reserved. @@ -310,13 +310,13 @@ static const uint32_t g_pinlist2[1] = * Public Functions ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_appinitialize.c b/boards/arm/stm32/nucleo-f303re/src/stm32_appinitialize.c index f077ba9174..7b5507e6f6 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_appinitialize.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/stm32_appinitialize.c + * boards/arm/stm32/nucleo-f303re/src/stm32_appinitialize.c * * Copyright (C) 2015-2016 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_autoleds.c b/boards/arm/stm32/nucleo-f303re/src/stm32_autoleds.c index 9bae7a0bc8..1b48e468be 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_autoleds.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/stm32_autoleds.c + * boards/arm/stm32/nucleo-f303re/src/stm32_autoleds.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_boot.c b/boards/arm/stm32/nucleo-f303re/src/stm32_boot.c index d059202ac9..a32ee58faa 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/stm32_boot.c + * boards/arm/stm32/nucleo-f303re/src/stm32_boot.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_buttons.c b/boards/arm/stm32/nucleo-f303re/src/stm32_buttons.c index a9ad21fde2..a25c3eee85 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_buttons.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/stm32_buttons.c + * boards/arm/stm32/nucleo-f303re/src/stm32_buttons.c * * Copyright (C) 2014-2015, 2017 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_can.c b/boards/arm/stm32/nucleo-f303re/src/stm32_can.c index 2fd635726d..b15c47c4fb 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_can.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_can.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/stm32_can.c + * boards/arm/stm32/nucleo-f303re/src/stm32_can.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_pwm.c b/boards/arm/stm32/nucleo-f303re/src/stm32_pwm.c index f58a1f6efb..4b6a6dc207 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_pwm.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_pwm.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/stm32_pwm.c + * boards/arm/stm32/nucleo-f303re/src/stm32_pwm.c * * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. @@ -57,13 +57,13 @@ * Public Functions ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_spi.c b/boards/arm/stm32/nucleo-f303re/src/stm32_spi.c index 4c8fc6aeb0..334f40a241 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_spi.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/stm32_spi.c + * boards/arm/stm32/nucleo-f303re/src/stm32_spi.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_ssd1351.c b/boards/arm/stm32/nucleo-f303re/src/stm32_ssd1351.c index 957d550118..67aad1555f 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_ssd1351.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_ssd1351.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/stm32_ssd1351.c + * boards/arm/stm32/nucleo-f303re/src/stm32_ssd1351.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_timer.c b/boards/arm/stm32/nucleo-f303re/src/stm32_timer.c index a13edd2943..7cb644520c 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_timer.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_timer.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-f303re/src/stm32_timer.c + * boards/arm/stm32/nucleo-f303re/src/stm32_timer.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_uid.c b/boards/arm/stm32/nucleo-f303re/src/stm32_uid.c index be57b715c6..e7a1894f7a 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_uid.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_uid.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f303re/src/stm32_uid.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f303re/src/stm32_uid.c * * Copyright (C) 2015 Marawan Ragab. All rights reserved. * Author: Marawan Ragab @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -44,17 +44,17 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifndef OK # define OK 0 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_BOARDCTL_UNIQUEID) int board_uniqueid(uint8_t *uniqueid) diff --git a/boards/arm/stm32/nucleo-f303re/src/stm32_userleds.c b/boards/arm/stm32/nucleo-f303re/src/stm32_userleds.c index 7f5c01944b..1137d86089 100644 --- a/boards/arm/stm32/nucleo-f303re/src/stm32_userleds.c +++ b/boards/arm/stm32/nucleo-f303re/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303re/src/stm32_userleds.c + * boards/arm/stm32/nucleo-f303re/src/stm32_userleds.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/nucleo-f303ze/include/board.h b/boards/arm/stm32/nucleo-f303ze/include/board.h index a508377ed0..251374f38e 100644 --- a/boards/arm/stm32/nucleo-f303ze/include/board.h +++ b/boards/arm/stm32/nucleo-f303ze/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303ze/include/board.h + * boards/arm/stm32/nucleo-f303ze/include/board.h * include/arch/board/board.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEOF303ZE_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEOF303ZE_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_NUCLEOF303ZE_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_NUCLEOF303ZE_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -215,4 +215,4 @@ #define ADC1_DMA_CHAN DMACHAN_ADC1 #define ADC3_DMA_CHAN DMACHAN_ADC3 -#endif /* __BOARDS_ARM_NUCLEO_F303ZE_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F303ZE_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-f303ze/scripts/Make.defs b/boards/arm/stm32/nucleo-f303ze/scripts/Make.defs index 7779e20a5e..70efe24515 100644 --- a/boards/arm/stm32/nucleo-f303ze/scripts/Make.defs +++ b/boards/arm/stm32/nucleo-f303ze/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f303ze/scripts/Make.defs +# boards/arm/stm32/nucleo-f303ze/scripts/Make.defs # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f303ze/scripts/ld.script b/boards/arm/stm32/nucleo-f303ze/scripts/ld.script index 19ade1b1e7..ca6e8af90d 100644 --- a/boards/arm/stm32/nucleo-f303ze/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f303ze/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303ze/scripts/ld.script + * boards/arm/stm32/nucleo-f303ze/scripts/ld.script * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f303ze/src/Makefile b/boards/arm/stm32/nucleo-f303ze/src/Makefile index 7e62b1be65..1fecf9b7e7 100644 --- a/boards/arm/stm32/nucleo-f303ze/src/Makefile +++ b/boards/arm/stm32/nucleo-f303ze/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f303ze/src/Makefile +# boards/arm/stm32/nucleo-f303ze/src/Makefile # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f303ze/src/nucleo-f303ze.h b/boards/arm/stm32/nucleo-f303ze/src/nucleo-f303ze.h index af5a800d38..2fe53eacff 100644 --- a/boards/arm/stm32/nucleo-f303ze/src/nucleo-f303ze.h +++ b/boards/arm/stm32/nucleo-f303ze/src/nucleo-f303ze.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303ze/src/nucleo-f303ze.h + * boards/arm/stm32/nucleo-f303ze/src/nucleo-f303ze.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F303ZE_SRC_NUCLEO_F303ZE_H -#define __BOARDS_ARM_NUCLEO_F303ZE_SRC_NUCLEO_F303ZE_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F303ZE_SRC_NUCLEO_F303ZE_H +#define __BOARDS_ARM_STM32_NUCLEO_F303ZE_SRC_NUCLEO_F303ZE_H /**************************************************************************** * Included Files @@ -98,16 +98,16 @@ int stm32_bringup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -#endif /* __BOARDS_ARM_NUCLEO_F303ZE_SRC_NUCLEO_F303ZE_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F303ZE_SRC_NUCLEO_F303ZE_H */ diff --git a/boards/arm/stm32/nucleo-f303ze/src/stm32_adc.c b/boards/arm/stm32/nucleo-f303ze/src/stm32_adc.c index c9b1e25619..800ba1176d 100644 --- a/boards/arm/stm32/nucleo-f303ze/src/stm32_adc.c +++ b/boards/arm/stm32/nucleo-f303ze/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303ze/src/stm32_adc.c + * boards/arm/stm32/nucleo-f303ze/src/stm32_adc.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f303ze/src/stm32_appinitialize.c b/boards/arm/stm32/nucleo-f303ze/src/stm32_appinitialize.c index 926ac02903..7b72267b46 100644 --- a/boards/arm/stm32/nucleo-f303ze/src/stm32_appinitialize.c +++ b/boards/arm/stm32/nucleo-f303ze/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-f303ze/src/stm32_appinitialize.c + * boards/arm/stm32/nucleo-f303ze/src/stm32_appinitialize.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f303ze/src/stm32_autoleds.c b/boards/arm/stm32/nucleo-f303ze/src/stm32_autoleds.c index 1b0f3d0497..a89662066b 100644 --- a/boards/arm/stm32/nucleo-f303ze/src/stm32_autoleds.c +++ b/boards/arm/stm32/nucleo-f303ze/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303ze/src/stm32_autoleds.c + * boards/arm/stm32/nucleo-f303ze/src/stm32_autoleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f303ze/src/stm32_boot.c b/boards/arm/stm32/nucleo-f303ze/src/stm32_boot.c index 769f209799..f9e41318da 100644 --- a/boards/arm/stm32/nucleo-f303ze/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-f303ze/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f303ze/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f303ze/src/stm32_boot.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,11 @@ #include "stm32_start.h" #include "nucleo-f303ze.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -60,7 +60,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { @@ -71,7 +71,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -82,7 +82,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32/nucleo-f303ze/src/stm32_bringup.c b/boards/arm/stm32/nucleo-f303ze/src/stm32_bringup.c index 30756b2f88..5cbcc7c4bd 100644 --- a/boards/arm/stm32/nucleo-f303ze/src/stm32_bringup.c +++ b/boards/arm/stm32/nucleo-f303ze/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303ze/src/stm32_bringup.c + * boards/arm/stm32/nucleo-f303ze/src/stm32_bringup.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f303ze/src/stm32_buttons.c b/boards/arm/stm32/nucleo-f303ze/src/stm32_buttons.c index 998cafb876..41b2a49313 100644 --- a/boards/arm/stm32/nucleo-f303ze/src/stm32_buttons.c +++ b/boards/arm/stm32/nucleo-f303ze/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303ze/src/stm32_buttons.c + * boards/arm/stm32/nucleo-f303ze/src/stm32_buttons.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f303ze/src/stm32_ssd1306.c b/boards/arm/stm32/nucleo-f303ze/src/stm32_ssd1306.c index 133222c244..9b08edccd4 100644 --- a/boards/arm/stm32/nucleo-f303ze/src/stm32_ssd1306.c +++ b/boards/arm/stm32/nucleo-f303ze/src/stm32_ssd1306.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-f303ze/src/stm32_ssd1306.c + * boards/arm/stm32/nucleo-f303ze/src/stm32_ssd1306.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f303ze/src/stm32_userleds.c b/boards/arm/stm32/nucleo-f303ze/src/stm32_userleds.c index f4da32942f..d5334ff5fe 100644 --- a/boards/arm/stm32/nucleo-f303ze/src/stm32_userleds.c +++ b/boards/arm/stm32/nucleo-f303ze/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303ze/src/stm32_userleds.c + * boards/arm/stm32/nucleo-f303ze/src/stm32_userleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f334r8/include/board.h b/boards/arm/stm32/nucleo-f334r8/include/board.h index 4b9b693c12..dcea911f05 100644 --- a/boards/arm/stm32/nucleo-f334r8/include/board.h +++ b/boards/arm/stm32/nucleo-f334r8/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/include/board.h + * boards/arm/stm32/nucleo-f334r8/include/board.h * include/arch/board/board.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F334R8_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_F334R8_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F334R8_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_NUCLEO_F334R8_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -345,4 +345,4 @@ #define ADC1_DMA_CHAN DMACHAN_ADC1 /* DMA1_CH1 */ -#endif /* __BOARDS_ARM_NUCLEO_F334R8_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F334R8_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-f334r8/scripts/Make.defs b/boards/arm/stm32/nucleo-f334r8/scripts/Make.defs index f54288e8e9..9525225610 100644 --- a/boards/arm/stm32/nucleo-f334r8/scripts/Make.defs +++ b/boards/arm/stm32/nucleo-f334r8/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f334r8/scripts/Make.defs +# boards/arm/stm32/nucleo-f334r8/scripts/Make.defs # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f334r8/scripts/ld.script b/boards/arm/stm32/nucleo-f334r8/scripts/ld.script index 4206ced2d5..4d698d17ff 100644 --- a/boards/arm/stm32/nucleo-f334r8/scripts/ld.script +++ b/boards/arm/stm32/nucleo-f334r8/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/scripts/ld.script + * boards/arm/stm32/nucleo-f334r8/scripts/ld.script * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f334r8/src/Makefile b/boards/arm/stm32/nucleo-f334r8/src/Makefile index cbe84332fb..d241f0f06d 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/Makefile +++ b/boards/arm/stm32/nucleo-f334r8/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f334r8/src/Makefile +# boards/arm/stm32/nucleo-f334r8/src/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f334r8/src/nucleo-f334r8.h b/boards/arm/stm32/nucleo-f334r8/src/nucleo-f334r8.h index a8d98d9fef..84e5bbdac1 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/nucleo-f334r8.h +++ b/boards/arm/stm32/nucleo-f334r8/src/nucleo-f334r8.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/src/nucleo-f334r8.h + * boards/arm/stm32/nucleo-f334r8/src/nucleo-f334r8.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F334R8_SRC_NUCLEO_F334R8_H -#define __BOARDS_ARM_NUCLEO_F334R8_SRC_NUCLEO_F334R8_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F334R8_SRC_NUCLEO_F334R8_H +#define __BOARDS_ARM_STM32_NUCLEO_F334R8_SRC_NUCLEO_F334R8_H /**************************************************************************** * Included Files @@ -154,25 +154,25 @@ int stm32_timer_driver_setup(FAR const char *devpath, int timer); int stm32_dac_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -226,4 +226,4 @@ int stm32_opamp_setup(void); int stm32_hrtim_setup(void); #endif -#endif /* __BOARDS_ARM_NUCLEO_F334R8_SRC_NUCLEO_F334R8_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F334R8_SRC_NUCLEO_F334R8_H */ diff --git a/boards/arm/stm32/nucleo-f334r8/src/stm32_adc.c b/boards/arm/stm32/nucleo-f334r8/src/stm32_adc.c index 9d3b4b325f..a0e4cb1018 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/stm32_adc.c +++ b/boards/arm/stm32/nucleo-f334r8/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/src/stm32_adc.c + * boards/arm/stm32/nucleo-f334r8/src/stm32_adc.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -169,13 +169,13 @@ static const uint32_t g_pinlist2[3] = * Public Functions ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/nucleo-f334r8/src/stm32_appinit.c b/boards/arm/stm32/nucleo-f334r8/src/stm32_appinit.c index 7a8c8e1228..9638e153ad 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/stm32_appinit.c +++ b/boards/arm/stm32/nucleo-f334r8/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/src/stm32_appinitialize.c + * boards/arm/stm32/nucleo-f334r8/src/stm32_appinitialize.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f334r8/src/stm32_autoleds.c b/boards/arm/stm32/nucleo-f334r8/src/stm32_autoleds.c index 758d1464ca..fce350ea8e 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/stm32_autoleds.c +++ b/boards/arm/stm32/nucleo-f334r8/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/src/stm32_autoleds.c + * boards/arm/stm32/nucleo-f334r8/src/stm32_autoleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f334r8/src/stm32_boot.c b/boards/arm/stm32/nucleo-f334r8/src/stm32_boot.c index 68e987cafb..226d093d24 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-f334r8/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/src/stm32_boot.c + * boards/arm/stm32/nucleo-f334r8/src/stm32_boot.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f334r8/src/stm32_comp.c b/boards/arm/stm32/nucleo-f334r8/src/stm32_comp.c index f490346df4..d9872e5a0a 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/stm32_comp.c +++ b/boards/arm/stm32/nucleo-f334r8/src/stm32_comp.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/src/stm32_comp.c + * boards/arm/stm32/nucleo-f334r8/src/stm32_comp.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f334r8/src/stm32_highpri.c b/boards/arm/stm32/nucleo-f334r8/src/stm32_highpri.c index b787aba1cb..514c763bcb 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/stm32_highpri.c +++ b/boards/arm/stm32/nucleo-f334r8/src/stm32_highpri.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/src/stm32_highpri.c + * boards/arm/stm32/nucleo-f334r8/src/stm32_highpri.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f334r8/src/stm32_hrtim.c b/boards/arm/stm32/nucleo-f334r8/src/stm32_hrtim.c index c00a59d4f3..0c7f1bcbad 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/stm32_hrtim.c +++ b/boards/arm/stm32/nucleo-f334r8/src/stm32_hrtim.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/src/stm32_hrtim.c + * boards/arm/stm32/nucleo-f334r8/src/stm32_hrtim.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f334r8/src/stm32_opamp.c b/boards/arm/stm32/nucleo-f334r8/src/stm32_opamp.c index b8cf16a961..164cfeffa7 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/stm32_opamp.c +++ b/boards/arm/stm32/nucleo-f334r8/src/stm32_opamp.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/src/stm32_opamp.c + * boards/arm/stm32/nucleo-f334r8/src/stm32_opamp.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c b/boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c index 3872c94f47..b15bf8defd 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c +++ b/boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f334r8/src/stm32_spwm.c + * boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-f410rb/include/board.h b/boards/arm/stm32/nucleo-f410rb/include/board.h index fe51131370..1ae70d5880 100644 --- a/boards/arm/stm32/nucleo-f410rb/include/board.h +++ b/boards/arm/stm32/nucleo-f410rb/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f410rb/include/board.h +/**************************************************************************** + * boards/arm/stm32/nucleo-f410rb/include/board.h * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F410RB_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_F410RB_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F410RB_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_NUCLEO_F410RB_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -49,9 +49,9 @@ # include "stm32.h" #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* The NUCLEO410RB supports both HSE and LSE crystals (X2 and X3). However, as @@ -308,4 +308,4 @@ #define BUTTON_USER_BIT (1 << BUTTON_USER) -#endif /* __BOARDS_ARM_NUCLEO_F410RB_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F410RB_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-f410rb/scripts/Make.defs b/boards/arm/stm32/nucleo-f410rb/scripts/Make.defs index ca251c9f52..9207677280 100644 --- a/boards/arm/stm32/nucleo-f410rb/scripts/Make.defs +++ b/boards/arm/stm32/nucleo-f410rb/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f410rb/scripts/Make.defs +# boards/arm/stm32/nucleo-f410rb/scripts/Make.defs # # Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. # Author: Gwenhael Goavec-Merou diff --git a/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld b/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld index d941312b44..44b6388e02 100644 --- a/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld +++ b/boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f410rb/scripts/f410rb.ld + * boards/arm/stm32/nucleo-f410rb/scripts/f410rb.ld * * Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. * Author: Gwenhael Goavec-Merou diff --git a/boards/arm/stm32/nucleo-f410rb/src/Makefile b/boards/arm/stm32/nucleo-f410rb/src/Makefile index 882b9d6b4e..a704f7e6a1 100644 --- a/boards/arm/stm32/nucleo-f410rb/src/Makefile +++ b/boards/arm/stm32/nucleo-f410rb/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f410rb/src/Makefile +# boards/arm/stm32/nucleo-f410rb/src/Makefile # # Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. # Author: Gwenhael Goavec-Merou diff --git a/boards/arm/stm32/nucleo-f410rb/src/nucleo-f410rb.h b/boards/arm/stm32/nucleo-f410rb/src/nucleo-f410rb.h index f97cb5399f..9cbace5232 100644 --- a/boards/arm/stm32/nucleo-f410rb/src/nucleo-f410rb.h +++ b/boards/arm/stm32/nucleo-f410rb/src/nucleo-f410rb.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f410rb/src/nucleo-f410rb.h +/**************************************************************************** + * boards/arm/stm32/nucleo-f410rb/src/nucleo-f410rb.h * # Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. # Author: Gwenhael Goavec-Merou @@ -31,23 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F410RB_SRC_NUCLEO_F410RB_H -#define __BOARDS_ARM_NUCLEO_F410RB_SRC_NUCLEO_F410RB_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F410RB_SRC_NUCLEO_F410RB_H +#define __BOARDS_ARM_STM32_NUCLEO_F410RB_SRC_NUCLEO_F410RB_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* LED. User LD2: the green LED is a user LED connected to Arduino signal D13 @@ -74,11 +74,11 @@ #define GPIO_BTN_USER \ (GPIO_INPUT | GPIO_FLOAT | GPIO_EXTI | GPIO_PORTC | GPIO_PIN13) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_bringup * * Description: @@ -90,20 +90,20 @@ * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -#endif /* __BOARDS_ARM_NUCLEO_F410RB_SRC_NUCLEO_F410RB_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F410RB_SRC_NUCLEO_F410RB_H */ diff --git a/boards/arm/stm32/nucleo-f410rb/src/stm32_adc.c b/boards/arm/stm32/nucleo-f410rb/src/stm32_adc.c index db369ca448..31aa0f12be 100644 --- a/boards/arm/stm32/nucleo-f410rb/src/stm32_adc.c +++ b/boards/arm/stm32/nucleo-f410rb/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f410rb/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f410rb/src/stm32_adc.c * * Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. * Author: Gwenhael Goavec-Merou @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,9 +53,9 @@ #ifdef CONFIG_STM32_ADC1 -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* The number of ADC channels in the conversion list */ @@ -65,9 +65,9 @@ # define ADC1_NCHANNELS 1 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Identifying number of each ADC channel. */ #ifdef CONFIG_STM32_ADC1_DMA @@ -92,17 +92,17 @@ static const uint32_t g_adc1_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN9}; #endif /* CONFIG_STM32_ADC1_DMA */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/nucleo-f410rb/src/stm32_appinit.c b/boards/arm/stm32/nucleo-f410rb/src/stm32_appinit.c index 1e6dccb6da..fd9a758986 100644 --- a/boards/arm/stm32/nucleo-f410rb/src/stm32_appinit.c +++ b/boards/arm/stm32/nucleo-f410rb/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-f410rb/src/stm32_appinit.c + * boards/arm/stm32/nucleo-f410rb/src/stm32_appinit.c * * Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. * Author: Gwenhael Goavec-Merou diff --git a/boards/arm/stm32/nucleo-f410rb/src/stm32_autoleds.c b/boards/arm/stm32/nucleo-f410rb/src/stm32_autoleds.c index 8f0cfb0092..d93d60bd65 100644 --- a/boards/arm/stm32/nucleo-f410rb/src/stm32_autoleds.c +++ b/boards/arm/stm32/nucleo-f410rb/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f410rb/src/stm32_autoleds.c + * boards/arm/stm32/nucleo-f410rb/src/stm32_autoleds.c * * Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. * Author: Gwenhael Goavec-Merou diff --git a/boards/arm/stm32/nucleo-f410rb/src/stm32_boot.c b/boards/arm/stm32/nucleo-f410rb/src/stm32_boot.c index 237e39c43e..f9757b9579 100644 --- a/boards/arm/stm32/nucleo-f410rb/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-f410rb/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f410rb/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f410rb/src/stm32_boot.c * * Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. * Author: Gwenhael Goavec-Merou @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,19 +48,19 @@ #include "up_arch.h" #include "nucleo-f410rb.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -68,7 +68,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/nucleo-f410rb/src/stm32_bringup.c b/boards/arm/stm32/nucleo-f410rb/src/stm32_bringup.c index d0d9eef071..ca6e131405 100644 --- a/boards/arm/stm32/nucleo-f410rb/src/stm32_bringup.c +++ b/boards/arm/stm32/nucleo-f410rb/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f410rb/src/stm32_bringup.c + * boards/arm/stm32/nucleo-f410rb/src/stm32_bringup.c * * Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. * Author: Gwenhael Goavec-Merou diff --git a/boards/arm/stm32/nucleo-f410rb/src/stm32_buttons.c b/boards/arm/stm32/nucleo-f410rb/src/stm32_buttons.c index 42d93fe5d7..0f247d4c0e 100644 --- a/boards/arm/stm32/nucleo-f410rb/src/stm32_buttons.c +++ b/boards/arm/stm32/nucleo-f410rb/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f410rb/src/stm32_buttons.c + * boards/arm/stm32/nucleo-f410rb/src/stm32_buttons.c * * Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. * Author: Gwenhael Goavec-Merou @@ -88,7 +88,7 @@ uint32_t board_buttons(void) return !released; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -108,7 +108,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/nucleo-f410rb/src/stm32_userleds.c b/boards/arm/stm32/nucleo-f410rb/src/stm32_userleds.c index b28ac15096..78aa8e702a 100644 --- a/boards/arm/stm32/nucleo-f410rb/src/stm32_userleds.c +++ b/boards/arm/stm32/nucleo-f410rb/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f410rb/src/stm32_userleds.c + * boards/arm/stm32/nucleo-f410rb/src/stm32_userleds.c * * Copyright (C) 2017 Gwenhael Goavec-Merou. All rights reserved. * Author: Gwenhael Goavec-Merou diff --git a/boards/arm/stm32/nucleo-f446re/include/board.h b/boards/arm/stm32/nucleo-f446re/include/board.h index 94f6a8b7ff..d6d75fd013 100644 --- a/boards/arm/stm32/nucleo-f446re/include/board.h +++ b/boards/arm/stm32/nucleo-f446re/include/board.h @@ -1,5 +1,5 @@ -/******************************************************************************* - * boards/nucleo-f446re/include/board.h +/**************************************************************************** + * boards/arm/stm32/nucleo-f446re/include/board.h * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ******************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F446RE_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_F446RE_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F446RE_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_NUCLEO_F446RE_INCLUDE_BOARD_H -/******************************************************************************* +/**************************************************************************** * Included Files - ******************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -47,9 +47,9 @@ #include -/******************************************************************************* +/**************************************************************************** * Pre-processor Definitions - ******************************************************************************/ + ****************************************************************************/ /* Clocking *******************************************************************/ @@ -220,4 +220,4 @@ #define GPIO_TIM2_CH1IN (GPIO_TIM2_CH1IN_1 | GPIO_PULLUP) #define GPIO_TIM2_CH2IN (GPIO_TIM2_CH2IN_1 | GPIO_PULLUP) -#endif /* __BOARDS_ARM_NUCLEO_F446RE_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F446RE_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-f446re/include/nucleo-f446re.h b/boards/arm/stm32/nucleo-f446re/include/nucleo-f446re.h index 6af6c7bc18..80cff0a6b3 100644 --- a/boards/arm/stm32/nucleo-f446re/include/nucleo-f446re.h +++ b/boards/arm/stm32/nucleo-f446re/include/nucleo-f446re.h @@ -1,5 +1,5 @@ -/******************************************************************************* - * boards/nucleo-f446re/include/nucleo-f411re.h +/**************************************************************************** + * boards/arm/stm32/nucleo-f446re/include/nucleo-f411re.h * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,23 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ******************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F446RE_INCLUDE_NUCLEO_F446RE_H -#define __BOARDS_ARM_NUCLEO_F446RE_INCLUDE_NUCLEO_F446RE_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F446RE_INCLUDE_NUCLEO_F446RE_H +#define __BOARDS_ARM_STM32_NUCLEO_F446RE_INCLUDE_NUCLEO_F446RE_H -/******************************************************************************* +/**************************************************************************** * Included Files - ******************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/******************************************************************************* +/**************************************************************************** * Pre-processor Definitions - ******************************************************************************/ + ****************************************************************************/ /* Clocking *******************************************************************/ @@ -211,9 +211,9 @@ # define SDIO_SDXFR_CLKDIV (3 << SDIO_CLKCR_CLKDIV_SHIFT) #endif -/******************************************************************************* +/**************************************************************************** * Public Data - ******************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -226,9 +226,9 @@ extern "C" #define EXTERN extern #endif -/******************************************************************************* +/**************************************************************************** * Public Function Prototypes - ******************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -236,4 +236,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_F446RE_INCLUDE_NUCLEO_F446RE_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F446RE_INCLUDE_NUCLEO_F446RE_H */ diff --git a/boards/arm/stm32/nucleo-f446re/scripts/Make.defs b/boards/arm/stm32/nucleo-f446re/scripts/Make.defs index 0a82369457..c566117837 100644 --- a/boards/arm/stm32/nucleo-f446re/scripts/Make.defs +++ b/boards/arm/stm32/nucleo-f446re/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f4x1re/scripts/Make.defs +# boards/arm/stm32/nucleo-f4x1re/scripts/Make.defs # # Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld b/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld index ee7755cfe7..f7844215a6 100644 --- a/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld +++ b/boards/arm/stm32/nucleo-f446re/scripts/f446re.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f4x1re/scripts/f411re.ld + * boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f446re/src/Makefile b/boards/arm/stm32/nucleo-f446re/src/Makefile index 2f0ce412c8..324c5e8064 100644 --- a/boards/arm/stm32/nucleo-f446re/src/Makefile +++ b/boards/arm/stm32/nucleo-f446re/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f446re/src/Makefile +# boards/arm/stm32/nucleo-f446re/src/Makefile # # Copyright (C) 2019 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f446re/src/nucleo-f446re.h b/boards/arm/stm32/nucleo-f446re/src/nucleo-f446re.h index 35f0072375..db8a00eb8f 100644 --- a/boards/arm/stm32/nucleo-f446re/src/nucleo-f446re.h +++ b/boards/arm/stm32/nucleo-f446re/src/nucleo-f446re.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f4x1re/src/nucleo-f4x1re.h +/**************************************************************************** + * boards/arm/stm32/nucleo-f4x1re/src/nucleo-f4x1re.h * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Frank Bennett @@ -32,23 +32,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F401RE_SRC_NUCLEO_F446RE_H -#define __BOARDS_ARM_NUCLEO_F401RE_SRC_NUCLEO_F446RE_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F401RE_SRC_NUCLEO_F446RE_H +#define __BOARDS_ARM_STM32_NUCLEO_F401RE_SRC_NUCLEO_F446RE_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ @@ -208,9 +208,9 @@ #define GPIO_FIRE GPIO_BUTTON_2 #define GPIO_JUMP GPIO_BUTTON_3 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ @@ -224,37 +224,37 @@ extern struct spi_dev_s *g_spi2; extern struct sdio_dev_s *g_sdio; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -284,4 +284,4 @@ int stm32_qencoder_initialize(FAR const char *devpath, int timer); int board_ajoy_initialize(void); #endif -#endif /* __BOARDS_ARM_NUCLEO_F401RE_SRC_NUCLEO_F446RE_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F401RE_SRC_NUCLEO_F446RE_H */ diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_adc.c b/boards/arm/stm32/nucleo-f446re/src/stm32_adc.c index 62ddf6bbc9..74396ff760 100644 --- a/boards/arm/stm32/nucleo-f446re/src/stm32_adc.c +++ b/boards/arm/stm32/nucleo-f446re/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f446re/src/stm32_adc.c + * boards/arm/stm32/nucleo-f446re/src/stm32_adc.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_ajoystick.c b/boards/arm/stm32/nucleo-f446re/src/stm32_ajoystick.c index 3094db7a69..2b4e0bf041 100644 --- a/boards/arm/stm32/nucleo-f446re/src/stm32_ajoystick.c +++ b/boards/arm/stm32/nucleo-f446re/src/stm32_ajoystick.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f446re/src/stm32_ajoystick.c + * boards/arm/stm32/nucleo-f446re/src/stm32_ajoystick.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_appinit.c b/boards/arm/stm32/nucleo-f446re/src/stm32_appinit.c index cc31f2fd93..9234303139 100644 --- a/boards/arm/stm32/nucleo-f446re/src/stm32_appinit.c +++ b/boards/arm/stm32/nucleo-f446re/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f446re/src/stm32_appinit.c + * boards/arm/stm32/nucleo-f446re/src/stm32_appinit.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_autoleds.c b/boards/arm/stm32/nucleo-f446re/src/stm32_autoleds.c index 9c87bf4f7f..62614d40a7 100644 --- a/boards/arm/stm32/nucleo-f446re/src/stm32_autoleds.c +++ b/boards/arm/stm32/nucleo-f446re/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f446re/src/stm32_autoleds.c + * boards/arm/stm32/nucleo-f446re/src/stm32_autoleds.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c b/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c index c2805c3e01..f85d00ebfc 100644 --- a/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f446re/src/stm32_boot.c + * boards/arm/stm32/nucleo-f446re/src/stm32_boot.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -64,7 +64,7 @@ * has been configured and mapped but before any devices have been * initialized. * - ******************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_buttons.c b/boards/arm/stm32/nucleo-f446re/src/stm32_buttons.c index a8ae630a95..8dc84330b9 100644 --- a/boards/arm/stm32/nucleo-f446re/src/stm32_buttons.c +++ b/boards/arm/stm32/nucleo-f446re/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f446re/src/stm32_buttons.c + * boards/arm/stm32/nucleo-f446re/src/stm32_buttons.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_qencoder.c b/boards/arm/stm32/nucleo-f446re/src/stm32_qencoder.c index 48f77720da..0ba00dce48 100644 --- a/boards/arm/stm32/nucleo-f446re/src/stm32_qencoder.c +++ b/boards/arm/stm32/nucleo-f446re/src/stm32_qencoder.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f446re/src/stm32_qencoder.c + * boards/arm/stm32/nucleo-f446re/src/stm32_qencoder.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_spi.c b/boards/arm/stm32/nucleo-f446re/src/stm32_spi.c index 6abb1aad95..87578d1c22 100644 --- a/boards/arm/stm32/nucleo-f446re/src/stm32_spi.c +++ b/boards/arm/stm32/nucleo-f446re/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f446re/src/stm32_spi.c + * boards/arm/stm32/nucleo-f446re/src/stm32_spi.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_userleds.c b/boards/arm/stm32/nucleo-f446re/src/stm32_userleds.c index 1c51a60704..058d9102dc 100644 --- a/boards/arm/stm32/nucleo-f446re/src/stm32_userleds.c +++ b/boards/arm/stm32/nucleo-f446re/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f446re/src/stm32_userleds.c + * boards/arm/stm32/nucleo-f446re/src/stm32_userleds.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f4x1re/include/board.h b/boards/arm/stm32/nucleo-f4x1re/include/board.h index 0a65ab2e42..aa3e01c16d 100644 --- a/boards/arm/stm32/nucleo-f4x1re/include/board.h +++ b/boards/arm/stm32/nucleo-f4x1re/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f4x1re/include/board.h +/**************************************************************************** + * boards/arm/stm32/nucleo-f4x1re/include/board.h * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F401RE_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_F401RE_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F401RE_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_NUCLEO_F401RE_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -47,9 +47,9 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -219,4 +219,4 @@ #define GPIO_TIM2_CH1IN (GPIO_TIM2_CH1IN_1 | GPIO_PULLUP) #define GPIO_TIM2_CH2IN (GPIO_TIM2_CH2IN_1 | GPIO_PULLUP) -#endif /* __BOARDS_ARM_NUCLEO_F401RE_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F401RE_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-f4x1re/include/nucleo-f401re.h b/boards/arm/stm32/nucleo-f4x1re/include/nucleo-f401re.h index 20fb382ef8..c4b0865154 100644 --- a/boards/arm/stm32/nucleo-f4x1re/include/nucleo-f401re.h +++ b/boards/arm/stm32/nucleo-f4x1re/include/nucleo-f401re.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f4x1re/include/nucleo-f401re.h +/**************************************************************************** + * boards/arm/stm32/nucleo-f4x1re/include/nucleo-f401re.h * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,23 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F401RE_INCLUDE_NUCLEO_F401RE_H -#define __BOARDS_ARM_NUCLEO_F401RE_INCLUDE_NUCLEO_F401RE_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F401RE_INCLUDE_NUCLEO_F401RE_H +#define __BOARDS_ARM_STM32_NUCLEO_F401RE_INCLUDE_NUCLEO_F401RE_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* The NUCLEO401RE supports both HSE and LSE crystals (X2 and X3). However, as @@ -210,9 +210,9 @@ # define SDIO_SDXFR_CLKDIV (3 << SDIO_CLKCR_CLKDIV_SHIFT) #endif -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -225,9 +225,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -235,4 +235,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_F401RE_INCLUDE_NUCLEO_F401RE_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F401RE_INCLUDE_NUCLEO_F401RE_H */ diff --git a/boards/arm/stm32/nucleo-f4x1re/include/nucleo-f411re.h b/boards/arm/stm32/nucleo-f4x1re/include/nucleo-f411re.h index 290bd23558..a27657ebc6 100644 --- a/boards/arm/stm32/nucleo-f4x1re/include/nucleo-f411re.h +++ b/boards/arm/stm32/nucleo-f4x1re/include/nucleo-f411re.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f4x1re/include/nucleo-f411re.h +/**************************************************************************** + * boards/arm/stm32/nucleo-f4x1re/include/nucleo-f411re.h * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,23 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F401RE_INCLUDE_NUCLEO_F411RE_H -#define __BOARDS_ARM_NUCLEO_F401RE_INCLUDE_NUCLEO_F411RE_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F401RE_INCLUDE_NUCLEO_F411RE_H +#define __BOARDS_ARM_STM32_NUCLEO_F401RE_INCLUDE_NUCLEO_F411RE_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* The NUCLEOF411RE supports both HSE and LSE crystals (X2 and X3). However, as @@ -206,9 +206,9 @@ # define SDIO_SDXFR_CLKDIV (3 << SDIO_CLKCR_CLKDIV_SHIFT) #endif -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -221,9 +221,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -231,4 +231,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_F401RE_INCLUDE_NUCLEO_F411RE_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F401RE_INCLUDE_NUCLEO_F411RE_H */ diff --git a/boards/arm/stm32/nucleo-f4x1re/scripts/Make.defs b/boards/arm/stm32/nucleo-f4x1re/scripts/Make.defs index adc599c87b..c84e9c9cf2 100644 --- a/boards/arm/stm32/nucleo-f4x1re/scripts/Make.defs +++ b/boards/arm/stm32/nucleo-f4x1re/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f4x1re/scripts/Make.defs +# boards/arm/stm32/nucleo-f4x1re/scripts/Make.defs # # Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld b/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld index c65c586f48..67ccecc8a9 100644 --- a/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld +++ b/boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f4x1re/scripts/f401re.ld + * boards/arm/stm32/nucleo-f4x1re/scripts/f401re.ld * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld b/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld index ee7755cfe7..f7844215a6 100644 --- a/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld +++ b/boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f4x1re/scripts/f411re.ld + * boards/arm/stm32/nucleo-f4x1re/scripts/f411re.ld * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f4x1re/src/Makefile b/boards/arm/stm32/nucleo-f4x1re/src/Makefile index b103937492..491186acc8 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/Makefile +++ b/boards/arm/stm32/nucleo-f4x1re/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f4x1re/src/Makefile +# boards/arm/stm32/nucleo-f4x1re/src/Makefile # # Copyright (C) 2014, 2019 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f4x1re/src/nucleo-f4x1re.h b/boards/arm/stm32/nucleo-f4x1re/src/nucleo-f4x1re.h index aea0a4932c..031e66ce0e 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/nucleo-f4x1re.h +++ b/boards/arm/stm32/nucleo-f4x1re/src/nucleo-f4x1re.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f4x1re/src/nucleo-f4x1re.h +/**************************************************************************** + * boards/arm/stm32/nucleo-f4x1re/src/nucleo-f4x1re.h * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Authors: Frank Bennett @@ -32,23 +32,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F401RE_SRC_NUCLEO_F401RE_H -#define __BOARDS_ARM_NUCLEO_F401RE_SRC_NUCLEO_F401RE_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_F401RE_SRC_NUCLEO_F401RE_H +#define __BOARDS_ARM_STM32_NUCLEO_F401RE_SRC_NUCLEO_F401RE_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #define HAVE_MMCSD 1 @@ -207,9 +207,9 @@ #define GPIO_FIRE GPIO_BUTTON_2 #define GPIO_JUMP GPIO_BUTTON_3 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ @@ -223,9 +223,9 @@ extern struct spi_dev_s *g_spi2; extern struct sdio_dev_s *g_sdio; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32_bringup @@ -247,33 +247,33 @@ extern struct sdio_dev_s *g_sdio; int stm32_bringup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -303,4 +303,4 @@ int stm32_qencoder_initialize(FAR const char *devpath, int timer); int board_ajoy_initialize(void); #endif -#endif /* __BOARDS_ARM_NUCLEO_F401RE_SRC_NUCLEO_F401RE_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_F401RE_SRC_NUCLEO_F401RE_H */ diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c index 789b030a72..97e8ae741f 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f4x1re/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f4x1re/src/stm32_adc.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #ifdef CONFIG_STM32_ADC1 -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* The number of ADC channels in the conversion list */ @@ -66,9 +66,9 @@ # define ADC1_NCHANNELS 1 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Identifying number of each ADC channel. */ #ifdef CONFIG_AJOYSTICK @@ -95,17 +95,17 @@ static const uint32_t g_adc1_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN0}; #endif /* CONFIG_ADC_DMA */ #endif /* CONFIG_AJOYSTICK */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_ajoystick.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_ajoystick.c index a7b64082f0..5eb41d3129 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_ajoystick.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_ajoystick.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f3x1re/src/stm32_ajoystick.c + * boards/arm/stm32/nucleo-f3x1re/src/stm32_ajoystick.c * * Copyright (C) 2014, 2016-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_appinit.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_appinit.c index 6436293a6c..339f355a03 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_appinit.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f4x1re/src/stm32_appinit.c + * boards/arm/stm32/nucleo-f4x1re/src/stm32_appinit.c * * Copyright (C) 2014, 2016, 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_autoleds.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_autoleds.c index 96c2432ceb..285922b4b4 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_autoleds.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f4x1re/src/stm32_autoleds.c + * boards/arm/stm32/nucleo-f4x1re/src/stm32_autoleds.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_boot.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_boot.c index 3d75b14600..493711b26d 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f4x1re/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f4x1re/src/stm32_boot.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,11 +51,11 @@ #include "up_arch.h" #include "nucleo-f4x1re.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -63,7 +63,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { @@ -91,7 +91,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -102,7 +102,7 @@ void stm32_boardinitialize(void) * started. This additional initialization phase may be used, for example, to * initialize board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_bringup.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_bringup.c index 1606c125fd..fe00ea8d49 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_bringup.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f4x1re/src/stm32_bringup.c + * boards/arm/stm32/nucleo-f4x1re/src/stm32_bringup.c * * Copyright (C) 2014, 2016, 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_buttons.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_buttons.c index d4fe8f4ac6..a77a6750e7 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_buttons.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f4x1re/src/stm32_buttons.c + * boards/arm/stm32/nucleo-f4x1re/src/stm32_buttons.c * * Copyright (C) 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -88,7 +88,7 @@ uint32_t board_buttons(void) return !released; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -108,7 +108,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_qencoder.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_qencoder.c index f0c19a0eda..d8aca4b06a 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_qencoder.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_qencoder.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_qencoder.c +/**************************************************************************** + * boards/arm/stm32/nucleo-f4x1re/src/stm32_qencoder.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,18 +50,18 @@ #include "stm32_qencoder.h" #include "nucleo-f4x1re.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_qencoder_initialize * * Description: * All STM32 architectures must provide the following interface to work with * examples/qencoder. * - ************************************************************************************/ + ****************************************************************************/ int stm32_qencoder_initialize(FAR const char *devpath, int timer) { diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_spi.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_spi.c index 7fdc15d8ac..f521a794a9 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_spi.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f4x1re/src/stm32_spi.c + * boards/arm/stm32/nucleo-f4x1re/src/stm32_spi.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,9 +33,9 @@ * ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,9 +55,9 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ #ifdef CONFIG_STM32_SPI1 @@ -67,18 +67,18 @@ struct spi_dev_s *g_spi1; struct spi_dev_s *g_spi2; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-F401RE and * Nucleo-F411RE boards. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/nucleo-f4x1re/src/stm32_userleds.c b/boards/arm/stm32/nucleo-f4x1re/src/stm32_userleds.c index e336b3f6dc..738aa49ff7 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/stm32_userleds.c +++ b/boards/arm/stm32/nucleo-f4x1re/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f4x1re/src/stm32_userleds.c + * boards/arm/stm32/nucleo-f4x1re/src/stm32_userleds.c * * Copyright (C) 2014-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-l152re/include/board.h b/boards/arm/stm32/nucleo-l152re/include/board.h index 5a3d601ba6..4d13fdd079 100644 --- a/boards/arm/stm32/nucleo-l152re/include/board.h +++ b/boards/arm/stm32/nucleo-l152re/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l152re/include/board.h + * boards/arm/stm32/nucleo-l152re/include/board.h * include/arch/board/board.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEOL152RE_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEOL152RE_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_NUCLEOL152RE_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_NUCLEOL152RE_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -225,4 +225,4 @@ #define GPIO_USART2_RX GPIO_USART2_RX_1 /* PA3 */ #define GPIO_USART2_TX GPIO_USART2_TX_1 /* PA2 */ -#endif /* __BOARDS_ARM_NUCLEO_L152RE_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_L152RE_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/nucleo-l152re/scripts/Make.defs b/boards/arm/stm32/nucleo-l152re/scripts/Make.defs index ae5b09b18d..7e63f05516 100644 --- a/boards/arm/stm32/nucleo-l152re/scripts/Make.defs +++ b/boards/arm/stm32/nucleo-l152re/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l152re/scripts/Make.defs +# boards/arm/stm32/nucleo-l152re/scripts/Make.defs # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-l152re/scripts/ld.script b/boards/arm/stm32/nucleo-l152re/scripts/ld.script index 0731bed439..6cc162920d 100644 --- a/boards/arm/stm32/nucleo-l152re/scripts/ld.script +++ b/boards/arm/stm32/nucleo-l152re/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l152re/scripts/ld.script + * boards/arm/stm32/nucleo-l152re/scripts/ld.script * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/nucleo-l152re/src/Makefile b/boards/arm/stm32/nucleo-l152re/src/Makefile index 150e00d569..1db18e7eef 100644 --- a/boards/arm/stm32/nucleo-l152re/src/Makefile +++ b/boards/arm/stm32/nucleo-l152re/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l152re/src/Makefile +# boards/arm/stm32/nucleo-l152re/src/Makefile # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-l152re/src/nucleo-l152re.h b/boards/arm/stm32/nucleo-l152re/src/nucleo-l152re.h index 85cb76b821..588de420d1 100644 --- a/boards/arm/stm32/nucleo-l152re/src/nucleo-l152re.h +++ b/boards/arm/stm32/nucleo-l152re/src/nucleo-l152re.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l152re/src/nucleo-l152re.h + * boards/arm/stm32/nucleo-l152re/src/nucleo-l152re.h * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. @@ -35,8 +35,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L152RE_SRC_NUCLEO_L152RE_H -#define __BOARDS_ARM_NUCLEO_L152RE_SRC_NUCLEO_L152RE_H +#ifndef __BOARDS_ARM_STM32_NUCLEO_L152RE_SRC_NUCLEO_L152RE_H +#define __BOARDS_ARM_STM32_NUCLEO_L152RE_SRC_NUCLEO_L152RE_H /**************************************************************************** * Included Files @@ -88,4 +88,4 @@ #define GPIO_BTN_USER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTC|GPIO_PIN13) -#endif /* __BOARDS_ARM_NUCLEO_L152RE_SRC_NUCLEO_L152RE_H */ +#endif /* __BOARDS_ARM_STM32_NUCLEO_L152RE_SRC_NUCLEO_L152RE_H */ diff --git a/boards/arm/stm32/nucleo-l152re/src/stm32_appinitialize.c b/boards/arm/stm32/nucleo-l152re/src/stm32_appinitialize.c index f1b42075e5..df333e9d4c 100644 --- a/boards/arm/stm32/nucleo-l152re/src/stm32_appinitialize.c +++ b/boards/arm/stm32/nucleo-l152re/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l152re/src/stm32_appinitialize.c + * boards/arm/stm32/nucleo-l152re/src/stm32_appinitialize.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-l152re/src/stm32_autoleds.c b/boards/arm/stm32/nucleo-l152re/src/stm32_autoleds.c index 88c0c0d8b9..d85f3ce784 100644 --- a/boards/arm/stm32/nucleo-l152re/src/stm32_autoleds.c +++ b/boards/arm/stm32/nucleo-l152re/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l152re/src/stm32_autoleds.c + * boards/arm/stm32/nucleo-l152re/src/stm32_autoleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-l152re/src/stm32_boot.c b/boards/arm/stm32/nucleo-l152re/src/stm32_boot.c index 5dfab5f0d1..eed22d1b1a 100644 --- a/boards/arm/stm32/nucleo-l152re/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-l152re/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l152re/src/stm32_boot.c + * boards/arm/stm32/nucleo-l152re/src/stm32_boot.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-l152re/src/stm32_buttons.c b/boards/arm/stm32/nucleo-l152re/src/stm32_buttons.c index 75b43d085d..6a5e8a2df7 100644 --- a/boards/arm/stm32/nucleo-l152re/src/stm32_buttons.c +++ b/boards/arm/stm32/nucleo-l152re/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l152re/src/stm32_buttons.c + * boards/arm/stm32/nucleo-l152re/src/stm32_buttons.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/nucleo-l152re/src/stm32_userleds.c b/boards/arm/stm32/nucleo-l152re/src/stm32_userleds.c index 361cddb76f..2944b50e49 100644 --- a/boards/arm/stm32/nucleo-l152re/src/stm32_userleds.c +++ b/boards/arm/stm32/nucleo-l152re/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l152re/src/stm32_userleds.c + * boards/arm/stm32/nucleo-l152re/src/stm32_userleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/olimex-stm32-e407/include/board.h b/boards/arm/stm32/olimex-stm32-e407/include/board.h index e379b307e7..3c9aa25971 100644 --- a/boards/arm/stm32/olimex-stm32-e407/include/board.h +++ b/boards/arm/stm32/olimex-stm32-e407/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-e407/include/board.h +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-e407/include/board.h * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,14 +33,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_E407_INCLUDE_BOARD_H -#define __BOARDS_ARM_OLIMEX_STM32_E407_INCLUDE_BOARD_H 1 +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_E407_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_E407_INCLUDE_BOARD_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,9 +55,9 @@ # include "stm32.h" #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* The Olimex-STM32-E407 board features a 12MHz crystal and @@ -266,4 +266,4 @@ #endif -#endif /* __BOARDS_ARM_OLIMEX_STM32_E407_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_E407_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/olimex-stm32-e407/scripts/Make.defs b/boards/arm/stm32/olimex-stm32-e407/scripts/Make.defs index bed1f6b98a..240211d01c 100644 --- a/boards/arm/stm32/olimex-stm32-e407/scripts/Make.defs +++ b/boards/arm/stm32/olimex-stm32-e407/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-e407/scripts/Make.defs +# boards/arm/stm32/olimex-stm32-e407/scripts/Make.defs # # Copyright (C) 2011-2012, 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/scripts/ld.script b/boards/arm/stm32/olimex-stm32-e407/scripts/ld.script index e6a1a98a2b..d9b3765332 100644 --- a/boards/arm/stm32/olimex-stm32-e407/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-e407/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/scripts/ld.script + * boards/arm/stm32/olimex-stm32-e407/scripts/ld.script * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/Makefile b/boards/arm/stm32/olimex-stm32-e407/src/Makefile index a0ff953c55..ff5ad12ec1 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-e407/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-e407/src/Makefile +# boards/arm/stm32/olimex-stm32-e407/src/Makefile # # Copyright (C) 2016, 2019 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/olimex-stm32-e407.h b/boards/arm/stm32/olimex-stm32-e407/src/olimex-stm32-e407.h index 73a756cff7..870b74a68e 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/olimex-stm32-e407.h +++ b/boards/arm/stm32/olimex-stm32-e407/src/olimex-stm32-e407.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/olimex-stm32-e407.h + * boards/arm/stm32/olimex-stm32-e407/src/olimex-stm32-e407.h * * Copyright (C) 2014 Max Holtzberg. All rights reserved. * Author: Max Holtzberg @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_E407_SRC_H -#define __BOARDS_ARM_OLIMEX_STM32_E407_SRC_H +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_E407_SRC_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_E407_SRC_H /**************************************************************************** * Included Files @@ -381,4 +381,4 @@ int stm32_mrf24j40_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_OLIMEX_STM32_E407_SRC_INTERNAL_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_E407_SRC_INTERNAL_H */ diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_adc.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_adc.c index 3386951cf2..db8d7f95fd 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_adc.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/stm32_adc.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_adc.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_appinit.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_appinit.c index b4f3ffe4e1..77fc654d9b 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_appinit.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/stm32_appinit.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_appinit.c * * Copyright (C) 2016, 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_autoleds.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_autoleds.c index b16868713e..2568f0e0ac 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_autoleds.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/stm32_autoleds.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_autoleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_bmp180.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_bmp180.c index 805ab4ade6..46c3cbcd70 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_bmp180.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_bmp180.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/stm32_bmp180.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_bmp180.c * * Copyright (C) 2019 Acutronics Robotics. All rights reserved. * Author: Acutronics Robotics (Juan Flores) diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_boot.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_boot.c index a0aa761fb9..09fb832ca7 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_boot.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/stm32_boot.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_boot.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_bringup.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_bringup.c index 8796bf0479..99295d3896 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_bringup.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/olimex-stm32-e407/src/stm32_bringup.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_bringup.c * * Copyright (C) 2016, 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_buttons.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_buttons.c index 127bea66c2..01b5513039 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_buttons.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/stm32_buttons.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_buttons.c * * Copyright (C) 2014-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_can.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_can.c index 8dbb574242..687c4b5f85 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_can.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_can.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-405/src/stm32_can.c + * boards/arm/stm32/olimex-stm32-405/src/stm32_can.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_dac.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_dac.c index 941250ef03..1df8c62664 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_dac.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_dac.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/olimex-stm32-e407/src/stm32_dac.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_dac.c * * Copyright (C) 2019 Acutronics Robotics All rights reserved. * Authors: Acutronics Robotics (Juan Flores) @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -52,17 +52,17 @@ #if defined(CONFIG_DAC) -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static struct dac_dev_s *g_dac; -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ - /************************************************************************************ + /**************************************************************************** * Name: stm32_dac_setup * * Description: @@ -74,7 +74,7 @@ static struct dac_dev_s *g_dac; * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_dac_setup(void) { diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_ina219.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_ina219.c index d1c39e048f..d6dbc9a34f 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_ina219.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_ina219.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/stm32_ina219.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_ina219.c * * Copyright (C) 2018 Erle Robotics (Juan Flores Muñoz). All rights reserved. * Author: Erle Robotics (Juan Flores Muñoz) diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_mrf24j40.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_mrf24j40.c index 51947c70f0..eac8673590 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_mrf24j40.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_mrf24j40.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/stm32_mrf24j40.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_mrf24j40.c * * Copyright (C) 2017, 2019 Gregory Nutt, All rights reserver * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_spi.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_spi.c index f7f2844e1c..dc98bbf891 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_spi.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/stm32_spi.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_spi.c * * Copyright (C) 2016, 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_timer.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_timer.c index 3392abe2a1..514c846d2c 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_timer.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_timer.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/olimex-stm32-e407/src/stm32_timer.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_timer.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_usb.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_usb.c index 2cc7aa2402..9bb99e78c3 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_usb.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_usb.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_usb.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_usb.c * * Copyright (C) 2012-2013, 2015-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-e407/src/stm32_userleds.c b/boards/arm/stm32/olimex-stm32-e407/src/stm32_userleds.c index bc3521280d..1111c469dc 100644 --- a/boards/arm/stm32/olimex-stm32-e407/src/stm32_userleds.c +++ b/boards/arm/stm32/olimex-stm32-e407/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-e407/src/stm32_leds.c + * boards/arm/stm32/olimex-stm32-e407/src/stm32_leds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h405/include/board.h b/boards/arm/stm32/olimex-stm32-h405/include/board.h index c04aab00b4..9b4d0210bc 100644 --- a/boards/arm/stm32/olimex-stm32-h405/include/board.h +++ b/boards/arm/stm32/olimex-stm32-h405/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-h405/include/board.h +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-h405/include/board.h * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_H405_INCLUDE_BOARD_H -#define __BOARDS_ARM_OLIMEX_STM32_H405_INCLUDE_BOARD_H 1 +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_H405_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_H405_INCLUDE_BOARD_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,9 +48,9 @@ #include "stm32_rcc.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -188,4 +188,4 @@ #define GPIO_CAN2_RX GPIO_CAN1_RX_2 //PB5 #define GPIO_CAN2_TX GPIO_CAN1_TX_2 //PB6 -#endif /* __BOARDS_ARM_OLIMEX_STM32_H405_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_H405_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/olimex-stm32-h405/scripts/Make.defs b/boards/arm/stm32/olimex-stm32-h405/scripts/Make.defs index 1d4b01ed3e..d4e95adb31 100644 --- a/boards/arm/stm32/olimex-stm32-h405/scripts/Make.defs +++ b/boards/arm/stm32/olimex-stm32-h405/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-h405/scripts/Make.defs +# boards/arm/stm32/olimex-stm32-h405/scripts/Make.defs # # Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h405/scripts/ld.script b/boards/arm/stm32/olimex-stm32-h405/scripts/ld.script index fac79635bd..b7296d36a6 100644 --- a/boards/arm/stm32/olimex-stm32-h405/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-h405/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-h405/scripts/ld.script + * boards/arm/stm32/olimex-stm32-h405/scripts/ld.script * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h405/src/Makefile b/boards/arm/stm32/olimex-stm32-h405/src/Makefile index de8897bb64..6e263e9da0 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-h405/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-h405/src/Makefile +# boards/arm/stm32/olimex-stm32-h405/src/Makefile # # Copyright (C) 2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h405/src/olimex-stm32-h405.h b/boards/arm/stm32/olimex-stm32-h405/src/olimex-stm32-h405.h index c306380f85..1964df900a 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/olimex-stm32-h405.h +++ b/boards/arm/stm32/olimex-stm32-h405/src/olimex-stm32-h405.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-h405/src/olimex-stm32-h405.h + * boards/arm/stm32/olimex-stm32-h405/src/olimex-stm32-h405.h * * Copyright (C) 2014 Max Holtzberg. All rights reserved. * Author: Max Holtzberg @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_H405_SRC_H -#define __BOARDS_ARM_OLIMEX_STM32_H405_SRC_H +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_H405_SRC_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_H405_SRC_H /**************************************************************************** * Included Files @@ -71,30 +71,30 @@ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in initialization to setup USB-related * GPIO pins for the Olimex-STM32-H405 board. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_OTGFS void weak_function stm32_usbinitialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -113,4 +113,4 @@ int stm32_can_setup(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_OLIMEX_STM32_H405_SRC_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_H405_SRC_H */ diff --git a/boards/arm/stm32/olimex-stm32-h405/src/stm32_adc.c b/boards/arm/stm32/olimex-stm32-h405/src/stm32_adc.c index dd22795460..dd887c979e 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/stm32_adc.c +++ b/boards/arm/stm32/olimex-stm32-h405/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-h405/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-h405/src/stm32_adc.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ @@ -80,9 +80,9 @@ #define ADC1_NCHANNELS 1//14 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* The Olimex STM32-P405 has a 10 Kohm potentiometer AN_TR connected to PC0 * ADC123_IN10 */ @@ -105,17 +105,17 @@ static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN1};/*, GPIO_ADC GPIO_ADC1_IN13, GPIO_ADC1_IN15};*/ #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/olimex-stm32-h405/src/stm32_appinit.c b/boards/arm/stm32/olimex-stm32-h405/src/stm32_appinit.c index 442a51ea8e..65d371af92 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/stm32_appinit.c +++ b/boards/arm/stm32/olimex-stm32-h405/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/olimex-stm32-h405/src/stm32_appinit.c + * boards/arm/stm32/olimex-stm32-h405/src/stm32_appinit.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h405/src/stm32_autoleds.c b/boards/arm/stm32/olimex-stm32-h405/src/stm32_autoleds.c index 8e2a6664f7..cba7259add 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/stm32_autoleds.c +++ b/boards/arm/stm32/olimex-stm32-h405/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-h405/src/stm32_autoleds.c + * boards/arm/stm32/olimex-stm32-h405/src/stm32_autoleds.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h405/src/stm32_boot.c b/boards/arm/stm32/olimex-stm32-h405/src/stm32_boot.c index 5ffd33a1f9..e0ec225599 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/stm32_boot.c +++ b/boards/arm/stm32/olimex-stm32-h405/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-h405/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-h405/src/stm32_boot.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ #include "olimex-stm32-h405.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -59,7 +59,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/olimex-stm32-h405/src/stm32_buttons.c b/boards/arm/stm32/olimex-stm32-h405/src/stm32_buttons.c index 54597d2e1d..a332296271 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/stm32_buttons.c +++ b/boards/arm/stm32/olimex-stm32-h405/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-h405/src/stm32_buttons.c + * boards/arm/stm32/olimex-stm32-h405/src/stm32_buttons.c * * Copyright (C) 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -110,7 +110,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -130,7 +130,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/olimex-stm32-h405/src/stm32_can.c b/boards/arm/stm32/olimex-stm32-h405/src/stm32_can.c index 93806f5f09..7de8578ce4 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/stm32_can.c +++ b/boards/arm/stm32/olimex-stm32-h405/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-405/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-405/src/stm32_can.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #if defined(CONFIG_STM32_CAN1) && defined(CONFIG_STM32_CAN2) @@ -68,17 +68,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/olimex-stm32-h405/src/stm32_usb.c b/boards/arm/stm32/olimex-stm32-h405/src/stm32_usb.c index 8ba41b050d..e22f771a6a 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/stm32_usb.c +++ b/boards/arm/stm32/olimex-stm32-h405/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-h405/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-h405/src/stm32_usbdev.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,9 +53,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) # define HAVE_USB 1 @@ -64,26 +64,26 @@ # undef HAVE_USB #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F4Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -96,7 +96,7 @@ void stm32_usbinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -105,7 +105,7 @@ void stm32_usbinitialize(void) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/olimex-stm32-h405/src/stm32_userleds.c b/boards/arm/stm32/olimex-stm32-h405/src/stm32_userleds.c index 4b289c3dee..bc8252e30d 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/stm32_userleds.c +++ b/boards/arm/stm32/olimex-stm32-h405/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-h405/src/stm32_leds.c + * boards/arm/stm32/olimex-stm32-h405/src/stm32_leds.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h407/include/board.h b/boards/arm/stm32/olimex-stm32-h407/include/board.h index 8a22ec6448..e297ae4d4e 100644 --- a/boards/arm/stm32/olimex-stm32-h407/include/board.h +++ b/boards/arm/stm32/olimex-stm32-h407/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-h407/include/board.h +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-h407/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_H407_INCLUDE_BOARD_H -#define __BOARDS_ARM_OLIMEX_STM32_H407_INCLUDE_BOARD_H 1 +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_H407_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_H407_INCLUDE_BOARD_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ # include "stm32.h" #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* The Olimex-STM32-H407 board features a 12MHz crystal and @@ -281,4 +281,4 @@ #define DMAMAP_SDIO DMAMAP_SDIO_1 -#endif /* __BOARDS_ARM_OLIMEX_STM32_H407_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_H407_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/olimex-stm32-h407/scripts/Make.defs b/boards/arm/stm32/olimex-stm32-h407/scripts/Make.defs index 5c78cdecd4..320ee10fd6 100644 --- a/boards/arm/stm32/olimex-stm32-h407/scripts/Make.defs +++ b/boards/arm/stm32/olimex-stm32-h407/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-h407/scripts/Make.defs +# boards/arm/stm32/olimex-stm32-h407/scripts/Make.defs # # Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h407/scripts/ld.script b/boards/arm/stm32/olimex-stm32-h407/scripts/ld.script index 905245acd0..52b3bf0efd 100644 --- a/boards/arm/stm32/olimex-stm32-h407/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-h407/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-h407/scripts/ld.script + * boards/arm/stm32/olimex-stm32-h407/scripts/ld.script * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h407/src/Makefile b/boards/arm/stm32/olimex-stm32-h407/src/Makefile index d5381197ec..d85dc1d389 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-h407/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-h407/src/Makefile +# boards/arm/stm32/olimex-stm32-h407/src/Makefile # # Copyright (C) 2016 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h407/src/olimex-stm32-h407.h b/boards/arm/stm32/olimex-stm32-h407/src/olimex-stm32-h407.h index cf907b4c9e..5bff83353a 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/olimex-stm32-h407.h +++ b/boards/arm/stm32/olimex-stm32-h407/src/olimex-stm32-h407.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-h407/src/olimex-stm32-h407.h + * boards/arm/stm32/olimex-stm32-h407/src/olimex-stm32-h407.h * * Copyright (C) 2014 Max Holtzberg. All rights reserved. * Author: Max Holtzberg @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_H407_SRC_H -#define __BOARDS_ARM_OLIMEX_STM32_H407_SRC_H +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_H407_SRC_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_H407_SRC_H /**************************************************************************** * Included Files @@ -241,13 +241,13 @@ int stm32_sdio_initialize(void); void weak_function stm32_usbinitialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -266,4 +266,4 @@ int stm32_can_setup(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_OLIMEX_STM32_H407_SRC_INTERNAL_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_H407_SRC_INTERNAL_H */ diff --git a/boards/arm/stm32/olimex-stm32-h407/src/stm32_adc.c b/boards/arm/stm32/olimex-stm32-h407/src/stm32_adc.c index b3fa41d724..cd07492014 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/stm32_adc.c +++ b/boards/arm/stm32/olimex-stm32-h407/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-h407/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-h407/src/stm32_adc.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ @@ -80,9 +80,9 @@ #define ADC1_NCHANNELS 1//14 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* The Olimex STM32-P405 has a 10 Kohm potentiometer AN_TR connected to PC0 * ADC123_IN10 */ @@ -105,17 +105,17 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {1}; static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN1}; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/olimex-stm32-h407/src/stm32_appinit.c b/boards/arm/stm32/olimex-stm32-h407/src/stm32_appinit.c index 8d8b56a61f..fc9a8716a1 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/stm32_appinit.c +++ b/boards/arm/stm32/olimex-stm32-h407/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/olimex-stm32-h407/src/stm32_appinit.c + * boards/arm/stm32/olimex-stm32-h407/src/stm32_appinit.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h407/src/stm32_autoleds.c b/boards/arm/stm32/olimex-stm32-h407/src/stm32_autoleds.c index 49137b6a1b..22786ee310 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/stm32_autoleds.c +++ b/boards/arm/stm32/olimex-stm32-h407/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-h407/src/stm32_autoleds.c + * boards/arm/stm32/olimex-stm32-h407/src/stm32_autoleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h407/src/stm32_boot.c b/boards/arm/stm32/olimex-stm32-h407/src/stm32_boot.c index 0544ae6c7b..1f2dcc204b 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/stm32_boot.c +++ b/boards/arm/stm32/olimex-stm32-h407/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-h407/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-h407/src/stm32_boot.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -49,11 +49,11 @@ #include "olimex-stm32-h407.h" #include "stm32_ccm.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -61,7 +61,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/olimex-stm32-h407/src/stm32_bringup.c b/boards/arm/stm32/olimex-stm32-h407/src/stm32_bringup.c index 0e1d35bdf5..e8470c8aa5 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/stm32_bringup.c +++ b/boards/arm/stm32/olimex-stm32-h407/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/olimex-stm32-h407/src/stm32_bringup.c + * boards/arm/stm32/olimex-stm32-h407/src/stm32_bringup.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h407/src/stm32_buttons.c b/boards/arm/stm32/olimex-stm32-h407/src/stm32_buttons.c index fa165b82db..f7c0c7d69f 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/stm32_buttons.c +++ b/boards/arm/stm32/olimex-stm32-h407/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-h407/src/stm32_buttons.c + * boards/arm/stm32/olimex-stm32-h407/src/stm32_buttons.c * * Copyright (C) 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h407/src/stm32_can.c b/boards/arm/stm32/olimex-stm32-h407/src/stm32_can.c index 102ce7089e..ce20646782 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/stm32_can.c +++ b/boards/arm/stm32/olimex-stm32-h407/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-405/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-405/src/stm32_can.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #if defined(CONFIG_STM32_CAN1) && defined(CONFIG_STM32_CAN2) @@ -67,17 +67,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/olimex-stm32-h407/src/stm32_sdio.c b/boards/arm/stm32/olimex-stm32-h407/src/stm32_sdio.c index 5745ba5bd8..dcc8ed82f0 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/stm32_sdio.c +++ b/boards/arm/stm32/olimex-stm32-h407/src/stm32_sdio.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/olimex-stm32_h407/src/stm32_sdio.c + * boards/arm/stm32/olimex-stm32_h407/src/stm32_sdio.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-h407/src/stm32_usb.c b/boards/arm/stm32/olimex-stm32-h407/src/stm32_usb.c index 1b38709ad1..b5153f1972 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/stm32_usb.c +++ b/boards/arm/stm32/olimex-stm32-h407/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-h407/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-h407/src/stm32_usbdev.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -60,9 +60,9 @@ #ifdef CONFIG_STM32_OTGHS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -79,25 +79,25 @@ # define CONFIG_STM32F407_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -128,18 +128,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F4Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -154,7 +154,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -162,7 +162,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -226,7 +226,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -250,7 +250,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -272,7 +272,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -287,7 +287,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -296,7 +296,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -305,7 +305,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/olimex-stm32-h407/src/stm32_userleds.c b/boards/arm/stm32/olimex-stm32-h407/src/stm32_userleds.c index bb453be058..c36d007230 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/stm32_userleds.c +++ b/boards/arm/stm32/olimex-stm32-h407/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-h407/src/stm32_leds.c + * boards/arm/stm32/olimex-stm32-h407/src/stm32_leds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p107/include/board.h b/boards/arm/stm32/olimex-stm32-p107/include/board.h index 03d82897b6..74336eafae 100644 --- a/boards/arm/stm32/olimex-stm32-p107/include/board.h +++ b/boards/arm/stm32/olimex-stm32-p107/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p107/include/board.h +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p107/include/board.h * * Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_P107_INCLUDE_BOARD_H -#define __BOARDS_ARM_OLIMEX_STM32_P107_INCLUDE_BOARD_H 1 +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_P107_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_P107_INCLUDE_BOARD_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -49,9 +49,9 @@ #include "stm32_sdio.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -117,4 +117,4 @@ # define STM32_PLL_PLL3MUL RCC_CFGR2_PLL3MULx10 /* MCO 5MHz * 10 = 50MHz */ #endif -#endif /* __BOARDS_ARM_OLIMEX_STM32_P107_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_P107_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/olimex-stm32-p107/scripts/Make.defs b/boards/arm/stm32/olimex-stm32-p107/scripts/Make.defs index d23441c6f8..1008894ad1 100644 --- a/boards/arm/stm32/olimex-stm32-p107/scripts/Make.defs +++ b/boards/arm/stm32/olimex-stm32-p107/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-p107/scripts/Make.defs +# boards/arm/stm32/olimex-stm32-p107/scripts/Make.defs # # Copyright (C) 2009, 2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script b/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script index 56e3962f3c..e546dbe1a9 100644 --- a/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p107/scripts/ld.script + * boards/arm/stm32/olimex-stm32-p107/scripts/ld.script * * Copyright (C) 2009, 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu b/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu index 7132d26546..4bba90fb6c 100644 --- a/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu +++ b/boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p107/scripts/ld.script.dfu + * boards/arm/stm32/olimex-stm32-p107/scripts/ld.script.dfu * * Copyright (C) 2009, 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p107/src/Makefile b/boards/arm/stm32/olimex-stm32-p107/src/Makefile index 589c449160..e46a5568e7 100644 --- a/boards/arm/stm32/olimex-stm32-p107/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-p107/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-p107/src/Makefile +# boards/arm/stm32/olimex-stm32-p107/src/Makefile # # Copyright (C) 2009-2010, 2012 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p107/src/olimex-stm32-p107.h b/boards/arm/stm32/olimex-stm32-p107/src/olimex-stm32-p107.h index c7f81534a6..c7726d4e5f 100644 --- a/boards/arm/stm32/olimex-stm32-p107/src/olimex-stm32-p107.h +++ b/boards/arm/stm32/olimex-stm32-p107/src/olimex-stm32-p107.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p107/src/olimex-stm32-p107.h + * boards/arm/stm32/olimex-stm32-p107/src/olimex-stm32-p107.h * * Copyright (C) 2013 Max Holtzberg. All rights reserved. * Author: Max Holtzberg @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_P107_SRC_H -#define __BOARDS_ARM_OLIMEX_STM32_P107_SRC_H +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_P107_SRC_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_P107_SRC_H /**************************************************************************** * Included Files @@ -71,17 +71,17 @@ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the M3 Wildfire board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); @@ -98,4 +98,4 @@ int stm32_can_setup(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_OLIMEX_STM32_P107_SRC_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_P107_SRC_H */ diff --git a/boards/arm/stm32/olimex-stm32-p107/src/stm32_appinit.c b/boards/arm/stm32/olimex-stm32-p107/src/stm32_appinit.c index 11b5519ce8..ca14930736 100644 --- a/boards/arm/stm32/olimex-stm32-p107/src/stm32_appinit.c +++ b/boards/arm/stm32/olimex-stm32-p107/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p107/src/stm32_appinit.c + * boards/arm/stm32/olimex-stm32-p107/src/stm32_appinit.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p107/src/stm32_boot.c b/boards/arm/stm32/olimex-stm32-p107/src/stm32_boot.c index dd767c44dd..0235600723 100644 --- a/boards/arm/stm32/olimex-stm32-p107/src/stm32_boot.c +++ b/boards/arm/stm32/olimex-stm32-p107/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p107/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p107/src/stm32_boot.c * * Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -44,11 +44,11 @@ #include "up_arch.h" #include "olimex-stm32-p107.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -56,7 +56,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/olimex-stm32-p107/src/stm32_can.c b/boards/arm/stm32/olimex-stm32-p107/src/stm32_can.c index df8133c1a4..3a42308ce8 100644 --- a/boards/arm/stm32/olimex-stm32-p107/src/stm32_can.c +++ b/boards/arm/stm32/olimex-stm32-p107/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p107/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p107/src/stm32_can.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,9 +53,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* The STM32F107VC supports CAN1 and CAN2 */ @@ -70,9 +70,9 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32_can_setup diff --git a/boards/arm/stm32/olimex-stm32-p107/src/stm32_encx24j600.c b/boards/arm/stm32/olimex-stm32-p107/src/stm32_encx24j600.c index d039d26664..520a734a68 100644 --- a/boards/arm/stm32/olimex-stm32-p107/src/stm32_encx24j600.c +++ b/boards/arm/stm32/olimex-stm32-p107/src/stm32_encx24j600.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p107/src/stm32_encx24j600.c + * boards/arm/stm32/olimex-stm32-p107/src/stm32_encx24j600.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p107/src/stm32_spi.c b/boards/arm/stm32/olimex-stm32-p107/src/stm32_spi.c index 9c4965f27c..8bfb621b41 100644 --- a/boards/arm/stm32/olimex-stm32-p107/src/stm32_spi.c +++ b/boards/arm/stm32/olimex-stm32-p107/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p107/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p107/src/stm32_spi.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,17 +54,17 @@ #if defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Olimex stm32-p107 board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/olimex-stm32-p207/include/board.h b/boards/arm/stm32/olimex-stm32-p207/include/board.h index 75e142b1ca..e73f6ac086 100644 --- a/boards/arm/stm32/olimex-stm32-p207/include/board.h +++ b/boards/arm/stm32/olimex-stm32-p207/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p207/include/board.h +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p207/include/board.h * * Copyright (C) 2009, 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_P207_INCLUDE_BOARD_H -#define __BOARDS_ARM_OLIMEX_STM32_P207_INCLUDE_BOARD_H 1 +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_P207_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_P207_INCLUDE_BOARD_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,9 +48,9 @@ #include "stm32_rcc.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -245,4 +245,4 @@ #define GPIO_ETH_RMII_TXD0 GPIO_ETH_RMII_TXD0_2 #define GPIO_ETH_RMII_TXD1 GPIO_ETH_RMII_TXD1_2 -#endif /* __BOARDS_ARM_OLIMEX_STM32_P207_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_P207_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/olimex-stm32-p207/scripts/Make.defs b/boards/arm/stm32/olimex-stm32-p207/scripts/Make.defs index 32af9ddf0a..7d52e29f6c 100644 --- a/boards/arm/stm32/olimex-stm32-p207/scripts/Make.defs +++ b/boards/arm/stm32/olimex-stm32-p207/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-p207/scripts/Make.defs +# boards/arm/stm32/olimex-stm32-p207/scripts/Make.defs # # Copyright (C) 2009, 2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script b/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script index 95d0ad3ba7..e2ebd0d0ab 100644 --- a/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script +++ b/boards/arm/stm32/olimex-stm32-p207/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p207/scripts/ld.script + * boards/arm/stm32/olimex-stm32-p207/scripts/ld.script * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p207/src/Makefile b/boards/arm/stm32/olimex-stm32-p207/src/Makefile index 81287c1863..697050f4c4 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-p207/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-p207/src/Makefile +# boards/arm/stm32/olimex-stm32-p207/src/Makefile # # Copyright (C) 2009-2010, 2012 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p207/src/olimex-stm32-p207.h b/boards/arm/stm32/olimex-stm32-p207/src/olimex-stm32-p207.h index dd855edd8e..f1ee2fc70e 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/olimex-stm32-p207.h +++ b/boards/arm/stm32/olimex-stm32-p207/src/olimex-stm32-p207.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p107/src/olimex-stm32-p207.h + * boards/arm/stm32/olimex-stm32-p107/src/olimex-stm32-p207.h * * Copyright (C) 2013 Max Holtzberg. All rights reserved. * Author: Max Holtzberg @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_P207_SRC_H -#define __BOARDS_ARM_OLIMEX_STM32_P207_SRC_H +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_P207_SRC_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_P207_SRC_H /**************************************************************************** * Included Files @@ -93,24 +93,24 @@ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F4Discovery board. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_OTGFS void weak_function stm32_usbinitialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -118,19 +118,19 @@ void weak_function stm32_usbinitialize(void); * This function will start a thread that will monitor for device connection/ * disconnection events. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_STM32_OTGFS) && defined(CONFIG_USBHOST) int stm32_usbhost_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -149,4 +149,4 @@ int stm32_can_setup(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_OLIMEX_STM32_P207_SRC_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_P207_SRC_H */ diff --git a/boards/arm/stm32/olimex-stm32-p207/src/stm32_adc.c b/boards/arm/stm32/olimex-stm32-p207/src/stm32_adc.c index 35b07c5adb..affb4b2ef9 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/stm32_adc.c +++ b/boards/arm/stm32/olimex-stm32-p207/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p207/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p207/src/stm32_adc.c * * Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ @@ -80,9 +80,9 @@ #define ADC1_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* The Olimex STM32-P207 has a 10 Kohm potentiometer AN_TR connected to PC0 * ADC123_IN10 */ @@ -97,17 +97,17 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {10}; static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN10}; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/olimex-stm32-p207/src/stm32_appinit.c b/boards/arm/stm32/olimex-stm32-p207/src/stm32_appinit.c index 6a9b432b19..1326b91c55 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/stm32_appinit.c +++ b/boards/arm/stm32/olimex-stm32-p207/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/olimex-stm32-p207/src/stm32_appinit.c + * boards/arm/stm32/olimex-stm32-p207/src/stm32_appinit.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p207/src/stm32_autoleds.c b/boards/arm/stm32/olimex-stm32-p207/src/stm32_autoleds.c index 08c6f37596..3db57a8836 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/stm32_autoleds.c +++ b/boards/arm/stm32/olimex-stm32-p207/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p207/src/stm32_autoleds.c + * boards/arm/stm32/olimex-stm32-p207/src/stm32_autoleds.c * * Copyright (C) 2011-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p207/src/stm32_boot.c b/boards/arm/stm32/olimex-stm32-p207/src/stm32_boot.c index d091df17ff..8cfd0e92df 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/stm32_boot.c +++ b/boards/arm/stm32/olimex-stm32-p207/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p207/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p207/src/stm32_boot.c * * Copyright (C) 2009, 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ #include "olimex-stm32-p207.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -59,7 +59,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/olimex-stm32-p207/src/stm32_buttons.c b/boards/arm/stm32/olimex-stm32-p207/src/stm32_buttons.c index 0092acd998..7949c378db 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/stm32_buttons.c +++ b/boards/arm/stm32/olimex-stm32-p207/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p207/src/stm32_buttons.c + * boards/arm/stm32/olimex-stm32-p207/src/stm32_buttons.c * * Copyright (C) 2011-2012, 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -146,7 +146,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -166,7 +166,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/olimex-stm32-p207/src/stm32_can.c b/boards/arm/stm32/olimex-stm32-p207/src/stm32_can.c index ffaf581454..73a3de4e6a 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/stm32_can.c +++ b/boards/arm/stm32/olimex-stm32-p207/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p207/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p207/src/stm32_can.c * * Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #if defined(CONFIG_STM32_CAN1) && defined(CONFIG_STM32_CAN2) @@ -67,17 +67,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/olimex-stm32-p207/src/stm32_usb.c b/boards/arm/stm32/olimex-stm32-p207/src/stm32_usb.c index 29a0d648be..0cc0486106 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/stm32_usb.c +++ b/boards/arm/stm32/olimex-stm32-p207/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p207/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p207/src/stm32_usb.c * * Copyright (C) 2012-2013, 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -58,9 +58,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -81,25 +81,25 @@ # endif #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -130,18 +130,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F4Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -156,7 +156,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -164,7 +164,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -230,7 +230,7 @@ int stm32_usbhost_initialize(void) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -245,7 +245,7 @@ int stm32_usbhost_initialize(void) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -254,7 +254,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -278,7 +278,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -300,7 +300,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -309,7 +309,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/olimex-stm32-p207/src/stm32_userleds.c b/boards/arm/stm32/olimex-stm32-p207/src/stm32_userleds.c index f09c09aa2e..4a9c95536c 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/stm32_userleds.c +++ b/boards/arm/stm32/olimex-stm32-p207/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p207/src/stm32_userleds.c + * boards/arm/stm32/olimex-stm32-p207/src/stm32_userleds.c * * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/include/board.h b/boards/arm/stm32/olimex-stm32-p407/include/board.h index 4bbd9e6444..d9c69ea5aa 100644 --- a/boards/arm/stm32/olimex-stm32-p407/include/board.h +++ b/boards/arm/stm32/olimex-stm32-p407/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p407/include/board.h +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p407/include/board.h * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_P407_INCLUDE_BOARD_H -#define __BOARDS_ARM_OLIMEX_STM32_P407_INCLUDE_BOARD_H 1 +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_P407_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_P407_INCLUDE_BOARD_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -46,9 +46,9 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -327,4 +327,4 @@ #define DMAMAP_USART6_RX DMAMAP_USART6_RX_1 #define DMAMAP_USART6_TX DMAMAP_USART6_TX_1 -#endif /* __BOARDS_ARM_OLIMEX_STM32_P407_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_P407_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/olimex-stm32-p407/kernel/Makefile b/boards/arm/stm32/olimex-stm32-p407/kernel/Makefile index 19741de32c..48efb4f153 100644 --- a/boards/arm/stm32/olimex-stm32-p407/kernel/Makefile +++ b/boards/arm/stm32/olimex-stm32-p407/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-p407/kernel/Makefile +# boards/arm/stm32/olimex-stm32-p407/kernel/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/kernel/stm32_userspace.c b/boards/arm/stm32/olimex-stm32-p407/kernel/stm32_userspace.c index 5212a0fcd8..8fd68d8d52 100644 --- a/boards/arm/stm32/olimex-stm32-p407/kernel/stm32_userspace.c +++ b/boards/arm/stm32/olimex-stm32-p407/kernel/stm32_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p407/kernel/stm32_userspace.c + * boards/arm/stm32/olimex-stm32-p407/kernel/stm32_userspace.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/scripts/Make.defs b/boards/arm/stm32/olimex-stm32-p407/scripts/Make.defs index 6d51bfe08c..81008c06da 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/Make.defs +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-p407/scripts/Make.defs +# boards/arm/stm32/olimex-stm32-p407/scripts/Make.defs # # Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld b/boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld index f6da1a141b..a494f43c12 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p407/scripts/flash.ld + * boards/arm/stm32/olimex-stm32-p407/scripts/flash.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld b/boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld index 61be4cde5d..84c26c5bb9 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p407/scripts/kernel-space.ld + * boards/arm/stm32/olimex-stm32-p407/scripts/kernel-space.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/scripts/memory.ld b/boards/arm/stm32/olimex-stm32-p407/scripts/memory.ld index 0997675114..57579c5c71 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/memory.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p407/scripts/memory.ld + * boards/arm/stm32/olimex-stm32-p407/scripts/memory.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld b/boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld index eca93b0db4..a1795c99de 100644 --- a/boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld +++ b/boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p407/scripts/user-space.ld + * boards/arm/stm32/olimex-stm32-p407/scripts/user-space.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/src/Makefile b/boards/arm/stm32/olimex-stm32-p407/src/Makefile index d21fb34669..3aa51b56dd 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-p407/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimex-stm32-p407/src/Makefile +# boards/arm/stm32/olimex-stm32-p407/src/Makefile # # Copyright (C) 2016 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/src/olimex-stm32-p407.h b/boards/arm/stm32/olimex-stm32-p407/src/olimex-stm32-p407.h index 82f776ff0b..99c0d4e833 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/olimex-stm32-p407.h +++ b/boards/arm/stm32/olimex-stm32-p407/src/olimex-stm32-p407.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p407/src/olimex-stm32-p407.h + * boards/arm/stm32/olimex-stm32-p407/src/olimex-stm32-p407.h * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -38,8 +38,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEX_STM32_P407_SRC_H -#define __BOARDS_ARM_OLIMEX_STM32_P407_SRC_H +#ifndef __BOARDS_ARM_STM32_OLIMEX_STM32_P407_SRC_H +#define __BOARDS_ARM_STM32_OLIMEX_STM32_P407_SRC_H /**************************************************************************** * Included Files @@ -194,11 +194,11 @@ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_bringup * * Description: @@ -210,11 +210,11 @@ * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_stram_configure * * Description: @@ -238,26 +238,26 @@ int stm32_bringup(void); * word and uses the needed byte only). The NBL[1:0] are always kept low * during read transactions. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_stram_configure(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usb_configure * * Description: * Called from stm32_boardinitialize very early in inialization to setup USB-related * GPIO pins for the Olimex STM32 P407 board. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_OTGFS void weak_function stm32_usb_configure(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbhost_setup * * Description: @@ -265,19 +265,19 @@ void weak_function stm32_usb_configure(void); * This function will start a thread that will monitor for device connection/ * disconnection events. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_STM32_OTGFS) && defined(CONFIG_USBHOST) int stm32_usbhost_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -295,17 +295,17 @@ int stm32_adc_setup(void); int stm32_can_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_dhtxx_initialize * * Description: * Called to initialize the DHTxx sensor * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_SENSORS_DHTXX int stm32_dhtxx_initialize(FAR const char *devpath); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_OLIMEX_STM32_P407_SRC_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEX_STM32_P407_SRC_H */ diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_adc.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_adc.c index 4d8d3079a5..0817873637 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_adc.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p407/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p407/src/stm32_adc.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ @@ -80,9 +80,9 @@ #define ADC1_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* The Olimex STM32-P407 has a 10 Kohm potentiometer AN_TR connected to PC0 * ADC123_IN10 */ @@ -97,17 +97,17 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {10}; static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN10}; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_appinit.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_appinit.c index ad6324b1be..cb75ef159b 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_appinit.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/olimex-stm32-p407/src/stm32_appinit.c + * boards/arm/stm32/olimex-stm32-p407/src/stm32_appinit.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_autoleds.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_autoleds.c index 0c0ba9d4bb..3f65627d22 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_autoleds.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p407/src/stm32_autoleds.c + * boards/arm/stm32/olimex-stm32-p407/src/stm32_autoleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_boot.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_boot.c index d1b8ecc860..a8af123190 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_boot.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p407/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p407/src/stm32_boot.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ #include "olimex-stm32-p407.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -59,7 +59,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_bringup.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_bringup.c index 6dd109ac63..f7b56361aa 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_bringup.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/olimex-stm32-p407/src/stm32_bringup.c + * boards/arm/stm32/olimex-stm32-p407/src/stm32_bringup.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_buttons.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_buttons.c index 0ae96145f0..980a951275 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_buttons.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p407/src/stm32_buttons.c + * boards/arm/stm32/olimex-stm32-p407/src/stm32_buttons.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -148,7 +148,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -168,7 +168,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_can.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_can.c index b9ef829a00..129d565c3e 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_can.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p407/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p407/src/stm32_can.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #if defined(CONFIG_STM32_CAN1) && defined(CONFIG_STM32_CAN2) @@ -67,17 +67,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_dhtxx.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_dhtxx.c index cffa6fa13c..b0a98c69b7 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_dhtxx.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_dhtxx.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p407/src/stm32_dhtxx.c + * boards/arm/stm32/olimex-stm32-p407/src/stm32_dhtxx.c * * Copyright (C) 2014 Abdelatif GUETTOUCHE. All rights reserved. * Author: Abdelatif GUETTOUCHE @@ -53,26 +53,26 @@ #if defined(CONFIG_SENSORS_DHTXX) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Use TIM1 as free running timer for the DHTXX sensor. */ #define DHTXX_FREE_TIMER 1 -/************************************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************************************/ + ****************************************************************************/ static void dhtxx_config_data_pin(FAR struct dhtxx_config_s *state, bool mode); static void dhtxx_set_data_pin(FAR struct dhtxx_config_s *state, bool value); static bool dhtxx_read_data_pin(FAR struct dhtxx_config_s *state); static int64_t dhtxx_get_clock(FAR struct dhtxx_config_s *state); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static struct dhtxx_config_s g_dhtxx_config = { @@ -123,9 +123,9 @@ static int64_t dhtxx_get_clock(FAR struct dhtxx_config_s *state) return ((ts.tv_sec * 1000000) + (ts.tv_nsec / 1000)); } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32_dhtxx_initialize diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_sram.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_sram.c index 6e99e3bf20..6d6621ffae 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_sram.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_sram.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p407/src/stm32_sram.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p407/src/stm32_sram.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if STM32_NGPIO_PORTS < 6 # error "Required GPIO ports not enabled" @@ -74,13 +74,13 @@ #define SRAM_CLK_DIVISION 0 #define SRAM_DATA_LATENCY 0 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* GPIOs Configuration ************************************************************** *---------------------+------------------+------------------+-----------------+ @@ -139,17 +139,17 @@ static const uint32_t g_sramconfig[] = }; #define NSRAM_CONFIG (sizeof(g_sramconfig)/sizeof(uint32_t)) -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_sramgpios * * Description: * Configure SRAM GPIO pins * - ************************************************************************************/ + ****************************************************************************/ static void stm32_sramgpios(void) { @@ -163,11 +163,11 @@ static void stm32_sramgpios(void) } } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_stram_configure * * Description: @@ -191,7 +191,7 @@ static void stm32_sramgpios(void) * word and uses the needed byte only). The NBL[1:0] are always kept low * during read transactions. * - ************************************************************************************/ + ****************************************************************************/ void stm32_stram_configure(void) { diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_usb.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_usb.c index 78804a31f6..4bf6bd91a9 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_usb.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimex-stm32-p407/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/olimex-stm32-p407/src/stm32_usb.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,9 +59,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -78,25 +78,25 @@ # define CONFIG_OLIMEXP407_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -127,18 +127,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usb_configure * * Description: * Called from stm32_boardinitialize very early in inialization to setup USB-related * GPIO pins for the Olimex STM32 P407 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usb_configure(void) { @@ -153,7 +153,7 @@ void stm32_usb_configure(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_setup * * Description: @@ -161,7 +161,7 @@ void stm32_usb_configure(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_setup(void) @@ -247,7 +247,7 @@ int stm32_usbhost_setup(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -271,7 +271,7 @@ int stm32_usbhost_setup(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -293,7 +293,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -308,7 +308,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -317,7 +317,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -326,7 +326,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_userleds.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_userleds.c index d50287bd64..9a30afcc99 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_userleds.c +++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimex-stm32-p407/src/stm32_userleds.c + * boards/arm/stm32/olimex-stm32-p407/src/stm32_userleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimexino-stm32/include/board.h b/boards/arm/stm32/olimexino-stm32/include/board.h index 32f635f39d..656b7fa0e0 100644 --- a/boards/arm/stm32/olimexino-stm32/include/board.h +++ b/boards/arm/stm32/olimexino-stm32/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimexino-stm32/include/board.h +/**************************************************************************** + * boards/arm/stm32/olimexino-stm32/include/board.h * * Copyright (C) 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEXINO_STM32_INCLUDE_BOARD_H -#define __BOARDS_ARM_OLIMEXINO_STM32_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_OLIMEXINO_STM32_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_OLIMEXINO_STM32_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #include "stm32_sdio.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* HSI - 8 MHz RC factory-trimmed @@ -174,4 +174,4 @@ * be used by other board-specific logic. */ -#endif /* __BOARDS_ARM_OLIMEXINO_STM32_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEXINO_STM32_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/olimexino-stm32/scripts/Make.defs b/boards/arm/stm32/olimexino-stm32/scripts/Make.defs index dc81402532..b6feec3a43 100644 --- a/boards/arm/stm32/olimexino-stm32/scripts/Make.defs +++ b/boards/arm/stm32/olimexino-stm32/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimexino-stm32/scripts/Make.defs +# boards/arm/stm32/olimexino-stm32/scripts/Make.defs # # Copyright (C) 2015, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimexino-stm32/scripts/ld.script b/boards/arm/stm32/olimexino-stm32/scripts/ld.script index a6ef859f60..3fd1cdc2b8 100644 --- a/boards/arm/stm32/olimexino-stm32/scripts/ld.script +++ b/boards/arm/stm32/olimexino-stm32/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimexino-stm32/scripts/ld.script + * boards/arm/stm32/olimexino-stm32/scripts/ld.script * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu b/boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu index 70fb0e2504..cf2fed37e4 100644 --- a/boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu +++ b/boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimexino-stm32/scripts/ld.script.dfu + * boards/arm/stm32/olimexino-stm32/scripts/ld.script.dfu * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimexino-stm32/src/Makefile b/boards/arm/stm32/olimexino-stm32/src/Makefile index d3097cc7b5..2d0714182d 100644 --- a/boards/arm/stm32/olimexino-stm32/src/Makefile +++ b/boards/arm/stm32/olimexino-stm32/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/olimexino-stm32/src/Makefile +# boards/arm/stm32/olimexino-stm32/src/Makefile # # Copyright (C) 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/olimexino-stm32/src/olimexino-stm32.h b/boards/arm/stm32/olimexino-stm32/src/olimexino-stm32.h index 3b0e03dccc..e17774a991 100644 --- a/boards/arm/stm32/olimexino-stm32/src/olimexino-stm32.h +++ b/boards/arm/stm32/olimexino-stm32/src/olimexino-stm32.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimexino-stm32/src/olimexino-stm32.h +/**************************************************************************** + * boards/arm/stm32/olimexino-stm32/src/olimexino-stm32.h * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,22 +32,22 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_OLIMEXINO_STM32_SRC_OLIMEXINO_STM32_H -#define __BOARDS_ARM_OLIMEXINO_STM32_SRC_OLIMEXINO_STM32_H +#ifndef __BOARDS_ARM_STM32_OLIMEXINO_STM32_SRC_OLIMEXINO_STM32_H +#define __BOARDS_ARM_STM32_OLIMEXINO_STM32_SRC_OLIMEXINO_STM32_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if STM32_NSPI < 1 # undef CONFIG_STM32_SPI1 @@ -120,44 +120,44 @@ GPIO_PORTD | GPIO_PIN2 | GPIO_OUTPUT_SET) #define MMCSD_CSn GPIO_SPI2_SSn -/************************************************************************************ +/**************************************************************************** * Public Types - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || \ defined(CONFIG_STM32_SPI3) void weak_function stm32_spidev_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_usb_set_pwr_callback() * * Description: @@ -167,7 +167,7 @@ void stm32_usbinitialize(void); * pwr_changed_handler: An interrupt handler that will be called on VBUS power * state changes. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usb_set_pwr_callback(xcpt_t pwr_changed_handler); @@ -229,4 +229,4 @@ int stm32_can_setup(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_OLIMEXINO_STM32_SRC_OLIMEXINO_STM32_H */ +#endif /* __BOARDS_ARM_STM32_OLIMEXINO_STM32_SRC_OLIMEXINO_STM32_H */ diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_appinit.c b/boards/arm/stm32/olimexino-stm32/src/stm32_appinit.c index 1967264185..b8a5740742 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_appinit.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_appinit.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimexino-stm32/src/stm32_appinit.c +/**************************************************************************** + * boards/arm/stm32/olimexino-stm32/src/stm32_appinit.c * * Copyright (C) 2015, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_boot.c b/boards/arm/stm32/olimexino-stm32/src/stm32_boot.c index d68f01d03b..6a453ebe94 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_boot.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimexino-stm32/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/olimexino-stm32/src/stm32_boot.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -45,17 +45,17 @@ #include #include "olimexino-stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: vbus_handler - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) static int vbus_handler(int irq, FAR void *context, FAR void *arg) @@ -64,11 +64,11 @@ static int vbus_handler(int irq, FAR void *context, FAR void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -76,7 +76,7 @@ static int vbus_handler(int irq, FAR void *context, FAR void *arg) * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_buttons.c b/boards/arm/stm32/olimexino-stm32/src/stm32_buttons.c index 4a79bb877b..ba90f06106 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_buttons.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/olimexino-stm32/src/stm32_buttons.c + * boards/arm/stm32/olimexino-stm32/src/stm32_buttons.c * * Copyright (C) 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_can.c b/boards/arm/stm32/olimexino-stm32/src/stm32_can.c index 17f81c8061..df647bc1ab 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_can.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimexino-stm32/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/olimexino-stm32/src/stm32_can.c * * Copyright (C) 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,9 +55,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* The STM32F107VC supports CAN1 and CAN2 */ @@ -72,17 +72,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_composite.c b/boards/arm/stm32/olimexino-stm32/src/stm32_composite.c index 8ddfd896ce..33bf3f8ae4 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_composite.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_composite.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimexino-stm32/src/stm32_composite.c +/**************************************************************************** + * boards/arm/stm32/olimexino-stm32/src/stm32_composite.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_leds.c b/boards/arm/stm32/olimexino-stm32/src/stm32_leds.c index 14724c50c1..6e5a66c7ab 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_leds.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_leds.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimexino-stm32/src/stm32_leds.c +/**************************************************************************** + * boards/arm/stm32/olimexino-stm32/src/stm32_leds.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_spi.c b/boards/arm/stm32/olimexino-stm32/src/stm32_spi.c index a6efaebeb9..ad4708ad64 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_spi.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimexino-stm32/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/olimexino-stm32/src/stm32_spi.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,17 +55,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_usbdev.c b/boards/arm/stm32/olimexino-stm32/src/stm32_usbdev.c index 8e54d152a5..86c533fab5 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_usbdev.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_usbdev.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimexino-stm32/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/olimexino-stm32/src/stm32_usbdev.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,19 +53,19 @@ #include "stm32.h" #include "olimexino-stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usb_set_pwr_callback() * * Description: @@ -73,20 +73,20 @@ * pwr_changed_handler: An interrupt handler that will be called on VBUS power * state changes. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usb_set_pwr_callback(xcpt_t pwr_changed_handler) { (void)stm32_gpiosetevent(GPIO_USB_VBUS, true, true, true, pwr_changed_handler, NULL); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -97,7 +97,7 @@ void stm32_usbinitialize(void) stm32_configgpio(GPIO_USB_PULLUPn); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbpullup * * Description: @@ -107,7 +107,7 @@ void stm32_usbinitialize(void) * Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be * NULL. * - ************************************************************************************/ + ****************************************************************************/ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) { @@ -116,7 +116,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -125,7 +125,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) { diff --git a/boards/arm/stm32/olimexino-stm32/src/stm32_usbmsc.c b/boards/arm/stm32/olimexino-stm32/src/stm32_usbmsc.c index 46840a1b45..452090a9d3 100644 --- a/boards/arm/stm32/olimexino-stm32/src/stm32_usbmsc.c +++ b/boards/arm/stm32/olimexino-stm32/src/stm32_usbmsc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/olimexino-stm32/src/stm32_usbmsc.c +/**************************************************************************** + * boards/arm/stm32/olimexino-stm32/src/stm32_usbmsc.c * * Copyright (C) 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/README.txt b/boards/arm/stm32/omnibusf4/README.txt index 178d1d2697..699cbceab6 100644 --- a/boards/arm/stm32/omnibusf4/README.txt +++ b/boards/arm/stm32/omnibusf4/README.txt @@ -76,7 +76,7 @@ PB12 SPI2 SPI2_NSS Build Instructions ================== -The boards/omnibusf4/nsh/defconfig file creates a basic setup, and +The boards/arm/stm32/omnibusf4/nsh/defconfig file creates a basic setup, and includes drivers for all supported onboard chips. The console and command prompt are sent to USART3. diff --git a/boards/arm/stm32/omnibusf4/include/board.h b/boards/arm/stm32/omnibusf4/include/board.h index 4d18efe2a7..7f482ebc8c 100644 --- a/boards/arm/stm32/omnibusf4/include/board.h +++ b/boards/arm/stm32/omnibusf4/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/omnibusf4/include/board.h +/**************************************************************************** + * boards/arm/stm32/omnibusf4/include/board.h * * Copyright (C) 2019 Bill Gatliff. All Rights reserved. * Copyright (C) 2012, 2014-2016, 2018 Gregory Nutt. All rights reserved. @@ -33,14 +33,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_OMNIBUSF4_INCLUDE_BOARD_H -#define __BOARDS_ARM_OMNIBUSF4_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_OMNIBUSF4_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_OMNIBUSF4_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -49,9 +49,9 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -265,4 +265,4 @@ #define GPIO_I2C1_SDA GPIO_I2C1_SDA_2 #endif -#endif /* __BOARDS_ARM_OMNIBUSF4_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_OMNIBUSF4_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/omnibusf4/kernel/Makefile b/boards/arm/stm32/omnibusf4/kernel/Makefile index da205c8534..44b3b00ed2 100644 --- a/boards/arm/stm32/omnibusf4/kernel/Makefile +++ b/boards/arm/stm32/omnibusf4/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/omnibusf4/kernel/Makefile +# boards/arm/stm32/omnibusf4/kernel/Makefile # # Copyright (C) 2019 Bill Gatliff. All rights reserved. # Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/kernel/stm32_userspace.c b/boards/arm/stm32/omnibusf4/kernel/stm32_userspace.c index ee5046eb75..3a4c31ec41 100644 --- a/boards/arm/stm32/omnibusf4/kernel/stm32_userspace.c +++ b/boards/arm/stm32/omnibusf4/kernel/stm32_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/kernel/stm32_userspace.c + * boards/arm/stm32/omnibusf4/kernel/stm32_userspace.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/scripts/Make.defs b/boards/arm/stm32/omnibusf4/scripts/Make.defs index 4d9c40d937..d816ae8085 100644 --- a/boards/arm/stm32/omnibusf4/scripts/Make.defs +++ b/boards/arm/stm32/omnibusf4/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/omnibusf4/scripts/Make.defs +# boards/arm/stm32/omnibusf4/scripts/Make.defs # # Copyright (C) 2011-2012, 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/scripts/gnu-elf.ld b/boards/arm/stm32/omnibusf4/scripts/gnu-elf.ld index 5e42627d75..13d70a1aba 100644 --- a/boards/arm/stm32/omnibusf4/scripts/gnu-elf.ld +++ b/boards/arm/stm32/omnibusf4/scripts/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/scripts/gnu-elf.ld + * boards/arm/stm32/omnibusf4/scripts/gnu-elf.ld * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld b/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld index 258dda25a1..cfa33361e1 100644 --- a/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld +++ b/boards/arm/stm32/omnibusf4/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/scripts/kernel-space.ld + * boards/arm/stm32/omnibusf4/scripts/kernel-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/scripts/ld.script b/boards/arm/stm32/omnibusf4/scripts/ld.script index a46905c4f6..a3937e1136 100644 --- a/boards/arm/stm32/omnibusf4/scripts/ld.script +++ b/boards/arm/stm32/omnibusf4/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/scripts/ld.script + * boards/arm/stm32/omnibusf4/scripts/ld.script * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/scripts/memory.ld b/boards/arm/stm32/omnibusf4/scripts/memory.ld index 4d14a04fb3..b5438cd301 100644 --- a/boards/arm/stm32/omnibusf4/scripts/memory.ld +++ b/boards/arm/stm32/omnibusf4/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/scripts/memory.ld + * boards/arm/stm32/omnibusf4/scripts/memory.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -47,7 +47,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of * FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/omnibusf4/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32/omnibusf4/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32/omnibusf4/scripts/user-space.ld b/boards/arm/stm32/omnibusf4/scripts/user-space.ld index 725576670f..11725d4a08 100644 --- a/boards/arm/stm32/omnibusf4/scripts/user-space.ld +++ b/boards/arm/stm32/omnibusf4/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/scripts/user-space.ld + * boards/arm/stm32/omnibusf4/scripts/user-space.ld * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/src/Makefile b/boards/arm/stm32/omnibusf4/src/Makefile index a16eef7bab..b50fa2c177 100644 --- a/boards/arm/stm32/omnibusf4/src/Makefile +++ b/boards/arm/stm32/omnibusf4/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/omnibusf4/src/Makefile +# boards/arm/stm32/omnibusf4/src/Makefile # # Copyright (C) 2019 Bill Gatliff. All rights reserved. # Copyright (C) 2011-2013, 2015-2016, 2018 Gregory Nutt. All rights diff --git a/boards/arm/stm32/omnibusf4/src/omnibusf4.h b/boards/arm/stm32/omnibusf4/src/omnibusf4.h index 4bb23ea046..057892e90c 100644 --- a/boards/arm/stm32/omnibusf4/src/omnibusf4.h +++ b/boards/arm/stm32/omnibusf4/src/omnibusf4.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/omnibusf4.h + * boards/arm/stm32/omnibusf4/src/omnibusf4.h * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2011-2012, 2015-2016, 2018 Gregory Nutt. All rights @@ -36,8 +36,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_OMNIBUSF4_SRC_OMNIBUSF4_H -#define __BOARDS_ARM_OMNIBUSF4_SRC_OMNIBUSF4_H +#ifndef __BOARDS_ARM_STM32_OMNIBUSF4_SRC_OMNIBUSF4_H +#define __BOARDS_ARM_STM32_OMNIBUSF4_SRC_OMNIBUSF4_H /**************************************************************************** * Included Files @@ -211,4 +211,4 @@ int stm32_timer_driver_setup(FAR const char *devpath, int timer); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_OMNIBUSF4_SRC_OMNIBUSF4_H */ +#endif /* __BOARDS_ARM_STM32_OMNIBUSF4_SRC_OMNIBUSF4_H */ diff --git a/boards/arm/stm32/omnibusf4/src/stm32_appinit.c b/boards/arm/stm32/omnibusf4/src/stm32_appinit.c index 93db30e3a5..4fe77241d9 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_appinit.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/omnibusf4/src/stm32_appinit.c + * boards/arm/stm32/omnibusf4/src/stm32_appinit.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2012, 2014, 2016, 2018 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_boot.c b/boards/arm/stm32/omnibusf4/src/stm32_boot.c index e246fe6c2e..e39f1a571d 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_boot.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_boot.c + * boards/arm/stm32/omnibusf4/src/stm32_boot.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2011-2012, 2015, 2018 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_bringup.c b/boards/arm/stm32/omnibusf4/src/stm32_bringup.c index 5456b8517e..819e06daef 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_bringup.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/omnibusf4/src/stm32_bringup.c + * boards/arm/stm32/omnibusf4/src/stm32_bringup.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2012, 2014-2018 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_critmon.c b/boards/arm/stm32/omnibusf4/src/stm32_critmon.c index 608220cfcd..d199222169 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_critmon.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_critmon.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/omnibusf4/src/stm32_netinit.c + * boards/arm/stm32/omnibusf4/src/stm32_netinit.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/src/stm32_idle.c b/boards/arm/stm32/omnibusf4/src/stm32_idle.c index 5d9aa6b0ee..c9f5ca68f5 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_idle.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_idle.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_idle.c + * boards/arm/stm32/omnibusf4/src/stm32_idle.c * * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/src/stm32_ioctl.c b/boards/arm/stm32/omnibusf4/src/stm32_ioctl.c index 4304b96d00..54c1362bdf 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_ioctl.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_ioctl.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/omnibusf4/src/stm32_appinit.c + * boards/arm/stm32/omnibusf4/src/stm32_appinit.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2019 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_max7456.c b/boards/arm/stm32/omnibusf4/src/stm32_max7456.c index 5ffb1f161b..615c231466 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_max7456.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_max7456.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_max7456.c + * boards/arm/stm32/omnibusf4/src/stm32_max7456.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2015-2016 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_mmcsd.c b/boards/arm/stm32/omnibusf4/src/stm32_mmcsd.c index 16ab4bb28a..3b0c5cf272 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_mmcsd.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_mmcsd.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/omnibusf4/src/stm32_mmcsd.c + * boards/arm/stm32/omnibusf4/src/stm32_mmcsd.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2017 Greg Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_mpu6000.c b/boards/arm/stm32/omnibusf4/src/stm32_mpu6000.c index d6b53be8f9..b3de302168 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_mpu6000.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_mpu6000.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_mpu6000.c + * boards/arm/stm32/omnibusf4/src/stm32_mpu6000.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2015-2016 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_netinit.c b/boards/arm/stm32/omnibusf4/src/stm32_netinit.c index c157c32033..09ef077c96 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_netinit.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_netinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f4discovery/src/stm32_netinit.c + * boards/arm/stm32/omnibusf4/src/stm32_netinit.c * * Copyright (C) 2017 Masayuki Ishikawa. All rights reserved. * Author: Masayuki Ishikawa diff --git a/boards/arm/stm32/omnibusf4/src/stm32_ostest.c b/boards/arm/stm32/omnibusf4/src/stm32_ostest.c index a79d5b692b..c5dbac6efa 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_ostest.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_ostest.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_ostest.c + * boards/arm/stm32/omnibusf4/src/stm32_ostest.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/src/stm32_pm.c b/boards/arm/stm32/omnibusf4/src/stm32_pm.c index 3fd898780a..e0ed8c32b7 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_pm.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_pm.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_pm.c + * boards/arm/stm32/omnibusf4/src/stm32_pm.c * * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/src/stm32_pwm.c b/boards/arm/stm32/omnibusf4/src/stm32_pwm.c index d93ca841d5..2db0a3e83d 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_pwm.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_pwm.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_pwm.c + * boards/arm/stm32/omnibusf4/src/stm32_pwm.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2011, 2016 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_reset.c b/boards/arm/stm32/omnibusf4/src/stm32_reset.c index a371ddd4b7..1db892cbe1 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_reset.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_reset.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_reset.c + * boards/arm/stm32/omnibusf4/src/stm32_reset.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2011-2012, 2019 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_romfs.h b/boards/arm/stm32/omnibusf4/src/stm32_romfs.h index fbd4f5a174..d4ca370268 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_romfs.h +++ b/boards/arm/stm32/omnibusf4/src/stm32_romfs.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_romfs.h + * boards/arm/stm32/omnibusf4/src/stm32_romfs.h * * Copyright (C) 2017 Tomasz Wozniak. All rights reserved. * Author: Tomasz Wozniak @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F4DISCOVERY_SRC_STM32_ROMFS_H -#define __BOARDS_ARM_STM32F4DISCOVERY_SRC_STM32_ROMFS_H +#ifndef __BOARDS_ARM_STM32_STM32F4DISCOVERY_SRC_STM32_ROMFS_H +#define __BOARDS_ARM_STM32_STM32F4DISCOVERY_SRC_STM32_ROMFS_H /**************************************************************************** * Included Files @@ -73,4 +73,4 @@ int stm32_romfs_initialize(void); #endif /* CONFIG_STM32_ROMFS */ -#endif /* __BOARDS_ARM_STM32F4DISCOVERY_SRC_STM32_ROMFS_H */ +#endif /* __BOARDS_ARM_STM32_STM32F4DISCOVERY_SRC_STM32_ROMFS_H */ diff --git a/boards/arm/stm32/omnibusf4/src/stm32_romfs_initialize.c b/boards/arm/stm32/omnibusf4/src/stm32_romfs_initialize.c index 2a86885be6..d26ca27e24 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_romfs_initialize.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_romfs_initialize.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/omnibusf4/src/stm32_romfs_initialize.c + * boards/arm/stm32/omnibusf4/src/stm32_romfs_initialize.c * This file provides contents of an optional ROMFS volume, mounted at boot. * * Copyright (C) 2017 Tomasz Wozniak. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_spi.c b/boards/arm/stm32/omnibusf4/src/stm32_spi.c index 6d667bf302..1c816df3c9 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_spi.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_spi.c + * boards/arm/stm32/omnibusf4/src/stm32_spi.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/omnibusf4/src/stm32_timer.c b/boards/arm/stm32/omnibusf4/src/stm32_timer.c index 7f2960d132..526009e2de 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_timer.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_timer.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/omnibusf4/src/stm32_timer.c + * boards/arm/stm32/omnibusf4/src/stm32_timer.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/src/stm32_uid.c b/boards/arm/stm32/omnibusf4/src/stm32_uid.c index 4971b16d11..35a639c8b6 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_uid.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_uid.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_uid.c + * boards/arm/stm32/omnibusf4/src/stm32_uid.c * * Copyright (C) 2015 Marawan Ragab. All rights reserved. * Author: Marawan Ragab diff --git a/boards/arm/stm32/omnibusf4/src/stm32_usb.c b/boards/arm/stm32/omnibusf4/src/stm32_usb.c index a4f2a2a0f3..dd2633e31a 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_usb.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/omnibusf4/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/omnibusf4/src/stm32_usb.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2012-2013, 2015, 2017 Gregory Nutt. All rights reserved. @@ -33,11 +33,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -61,9 +61,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -80,25 +80,25 @@ # define CONFIG_OMNIBUSF4_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -129,18 +129,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the Omnibusf4 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -153,7 +153,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -161,7 +161,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -259,7 +259,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -283,7 +283,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -305,7 +305,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -320,7 +320,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -329,7 +329,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -338,7 +338,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/omnibusf4/src/stm32_usbmsc.c b/boards/arm/stm32/omnibusf4/src/stm32_usbmsc.c index a957db4c6d..9f11a67d1b 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_usbmsc.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_usbmsc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_usbmsc.c + * boards/arm/stm32/omnibusf4/src/stm32_usbmsc.c * * Copyright (C) 2012, 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/omnibusf4/src/stm32_userleds.c b/boards/arm/stm32/omnibusf4/src/stm32_userleds.c index 9a9583a14d..cfcb8e4c8a 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_userleds.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/omnibusf4/src/stm32_userleds.c + * boards/arm/stm32/omnibusf4/src/stm32_userleds.c * * Copyright (C) 2019 Bill Gatliff. All rights reserved. * Copyright (C) 2011, 2015-2016 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32/photon/include/board.h b/boards/arm/stm32/photon/include/board.h index 5bb1558675..56cf6de0ee 100644 --- a/boards/arm/stm32/photon/include/board.h +++ b/boards/arm/stm32/photon/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/photon/include/board.h +/**************************************************************************** + * boards/arm/stm32/photon/include/board.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_PHOTON_INCLUDE_BOARD_H -#define __BOARDS_ARM_PHOTON_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_PHOTON_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_PHOTON_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -49,9 +49,9 @@ #include "stm32_rcc.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* The Particle photon board features a single 26MHz crystal. @@ -294,4 +294,4 @@ #define DMAMAP_SDIO DMAMAP_SDIO_1 -#endif /* __BOARDS_ARM_PHOTON_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_PHOTON_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/photon/scripts/Make.defs b/boards/arm/stm32/photon/scripts/Make.defs index 096392970e..ac9829e673 100644 --- a/boards/arm/stm32/photon/scripts/Make.defs +++ b/boards/arm/stm32/photon/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/photon/scripts/Make.defs +# boards/arm/stm32/photon/scripts/Make.defs # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/photon/scripts/photon_dfu.ld b/boards/arm/stm32/photon/scripts/photon_dfu.ld index ef63934a34..e8f1b3fab0 100644 --- a/boards/arm/stm32/photon/scripts/photon_dfu.ld +++ b/boards/arm/stm32/photon/scripts/photon_dfu.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/photon/scripts/photon_dfu.ld + * boards/arm/stm32/photon/scripts/photon_dfu.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * diff --git a/boards/arm/stm32/photon/scripts/photon_jtag.ld b/boards/arm/stm32/photon/scripts/photon_jtag.ld index c52acb257f..9e1e9f6b2d 100644 --- a/boards/arm/stm32/photon/scripts/photon_jtag.ld +++ b/boards/arm/stm32/photon/scripts/photon_jtag.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/photon/scripts/photon_jtag.ld + * boards/arm/stm32/photon/scripts/photon_jtag.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * diff --git a/boards/arm/stm32/photon/src/Makefile b/boards/arm/stm32/photon/src/Makefile index 7e4972b51b..dd5acec2d3 100644 --- a/boards/arm/stm32/photon/src/Makefile +++ b/boards/arm/stm32/photon/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/photon/src/Makefile +# boards/arm/stm32/photon/src/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # diff --git a/boards/arm/stm32/photon/src/dfu_signature.c b/boards/arm/stm32/photon/src/dfu_signature.c index f0066ceb8a..cfee1dca6b 100644 --- a/boards/arm/stm32/photon/src/dfu_signature.c +++ b/boards/arm/stm32/photon/src/dfu_signature.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/photon/src/dfu_signature.c + * boards/arm/stm32/photon/src/dfu_signature.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou diff --git a/boards/arm/stm32/photon/src/photon.h b/boards/arm/stm32/photon/src/photon.h index 7afe53dd2f..1c6c1a692c 100644 --- a/boards/arm/stm32/photon/src/photon.h +++ b/boards/arm/stm32/photon/src/photon.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/photon/src/photon.h + * boards/arm/stm32/photon/src/photon.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_PHOTON_SRC_PHOTON_H -#define __BOARDS_ARM_PHOTON_SRC_PHOTON_H +#ifndef __BOARDS_ARM_STM32_PHOTON_SRC_PHOTON_H +#define __BOARDS_ARM_STM32_PHOTON_SRC_PHOTON_H /**************************************************************************** * Included Files @@ -184,4 +184,4 @@ void weak_function stm32_usbinitialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_PHOTON_SRC_PHOTON_H */ +#endif /* __BOARDS_ARM_STM32_PHOTON_SRC_PHOTON_H */ diff --git a/boards/arm/stm32/photon/src/stm32_appinit.c b/boards/arm/stm32/photon/src/stm32_appinit.c index 40cc5c3ead..49c4c39da2 100644 --- a/boards/arm/stm32/photon/src/stm32_appinit.c +++ b/boards/arm/stm32/photon/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/photon/src/stm32_appinit.c + * boards/arm/stm32/photon/src/stm32_appinit.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/photon/src/stm32_autoleds.c b/boards/arm/stm32/photon/src/stm32_autoleds.c index 0edffc9ca6..83b10aa836 100644 --- a/boards/arm/stm32/photon/src/stm32_autoleds.c +++ b/boards/arm/stm32/photon/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/photon/src/stm32_autoleds.c + * boards/arm/stm32/photon/src/stm32_autoleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/photon/src/stm32_boot.c b/boards/arm/stm32/photon/src/stm32_boot.c index 2c90055163..957757c0f2 100644 --- a/boards/arm/stm32/photon/src/stm32_boot.c +++ b/boards/arm/stm32/photon/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/photon/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/photon/src/stm32_boot.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -45,11 +45,11 @@ #include "up_arch.h" #include "photon.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -57,7 +57,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/photon/src/stm32_bringup.c b/boards/arm/stm32/photon/src/stm32_bringup.c index 89b34b51b8..0335974c72 100644 --- a/boards/arm/stm32/photon/src/stm32_bringup.c +++ b/boards/arm/stm32/photon/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/photon/src/stm32_bringup.c + * boards/arm/stm32/photon/src/stm32_bringup.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou diff --git a/boards/arm/stm32/photon/src/stm32_buttons.c b/boards/arm/stm32/photon/src/stm32_buttons.c index 6795683449..2f5daf1bf2 100644 --- a/boards/arm/stm32/photon/src/stm32_buttons.c +++ b/boards/arm/stm32/photon/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/photon/src/stm32_buttons.c + * boards/arm/stm32/photon/src/stm32_buttons.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou diff --git a/boards/arm/stm32/photon/src/stm32_rgbled.c b/boards/arm/stm32/photon/src/stm32_rgbled.c index 1af3ba9e2f..90ef58fc01 100644 --- a/boards/arm/stm32/photon/src/stm32_rgbled.c +++ b/boards/arm/stm32/photon/src/stm32_rgbled.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/photon/src/stm32_rgbled.c +/**************************************************************************** + * boards/arm/stm32/photon/src/stm32_rgbled.c * * Copyright (C) 2018 Verge Inc. All rights reserved. * Author: Anthony Merlino @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #include "stm32_pwm.h" #include "photon.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #define HAVE_RGBLED 1 @@ -91,17 +91,17 @@ #ifdef HAVE_RGBLED -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_rgbled_setup * * Description: * Initial for support of a connected RGB LED using PWM. * - ************************************************************************************/ + ****************************************************************************/ int stm32_rgbled_setup(void) { diff --git a/boards/arm/stm32/photon/src/stm32_spi.c b/boards/arm/stm32/photon/src/stm32_spi.c index b16d14c52e..d570af55eb 100644 --- a/boards/arm/stm32/photon/src/stm32_spi.c +++ b/boards/arm/stm32/photon/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/photon/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/photon/src/stm32_spi.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,17 +55,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Mikroe Clicker2 STM32 board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/photon/src/stm32_usb.c b/boards/arm/stm32/photon/src/stm32_usb.c index 5fbe61ccbf..d2c60cf661 100644 --- a/boards/arm/stm32/photon/src/stm32_usb.c +++ b/boards/arm/stm32/photon/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/photon/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/photon/src/stm32_usb.c * * Copyright (C) 2012-2013, 2015, 2017 Gregory Nutt. All rights reserved. * @@ -30,11 +30,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include "photon.h" @@ -43,24 +43,24 @@ #include #include -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the Photon board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -69,7 +69,7 @@ void stm32_usbinitialize(void) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/photon/src/stm32_userleds.c b/boards/arm/stm32/photon/src/stm32_userleds.c index d038c37bbf..775bddc7b6 100644 --- a/boards/arm/stm32/photon/src/stm32_userleds.c +++ b/boards/arm/stm32/photon/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/photon/src/stm32_userleds.c + * boards/arm/stm32/photon/src/stm32_userleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou diff --git a/boards/arm/stm32/photon/src/stm32_wdt.c b/boards/arm/stm32/photon/src/stm32_wdt.c index 4e5c11e388..101a8d5880 100644 --- a/boards/arm/stm32/photon/src/stm32_wdt.c +++ b/boards/arm/stm32/photon/src/stm32_wdt.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/photon/src/stm32_wdt.c + * boards/arm/stm32/photon/src/stm32_wdt.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Author: Simon Piriou diff --git a/boards/arm/stm32/photon/src/stm32_wlan.c b/boards/arm/stm32/photon/src/stm32_wlan.c index 82ecee1d87..3d8e333e66 100644 --- a/boards/arm/stm32/photon/src/stm32_wlan.c +++ b/boards/arm/stm32/photon/src/stm32_wlan.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/photon/src/stm32_wlan.c + * boards/arm/stm32/photon/src/stm32_wlan.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Author: Simon Piriou diff --git a/boards/arm/stm32/shenzhou/README.txt b/boards/arm/stm32/shenzhou/README.txt index 7e70d18340..74fc25732c 100644 --- a/boards/arm/stm32/shenzhou/README.txt +++ b/boards/arm/stm32/shenzhou/README.txt @@ -515,7 +515,7 @@ Where is one of the following: ADC_IN8 (PB0) CON5 CN14 Pin2 ADC_IN9 (PB1) CON5 CN14 Pin1 - The signal selection is hard-coded in boards/shenzhou/src/up_adc.c: The + The signal selection is hard-coded in boards/arm/stm32/shenzhou/src/up_adc.c: The potentiometer input (only) is selected. These selections will enable sampling the potentiometer input at 100Hz using diff --git a/boards/arm/stm32/shenzhou/include/board.h b/boards/arm/stm32/shenzhou/include/board.h index 912ffa0782..d98f56e629 100644 --- a/boards/arm/stm32/shenzhou/include/board.h +++ b/boards/arm/stm32/shenzhou/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/shenzhou/include/board.h +/**************************************************************************** + * boards/arm/stm32/shenzhou/include/board.h * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_SHENZHOU_INCLUDE_BOARD_H -#define __BOARDS_ARM_SHENZHOU_INCLUDE_BOARD_H 1 +#ifndef __BOARDS_ARM_STM32_SHENZHOU_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_SHENZHOU_INCLUDE_BOARD_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -339,9 +339,9 @@ * 63 PC6 I2S_MCK GPIO_I2S2_MCK. Audio DAC. Active low: Pulled high */ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -353,11 +353,11 @@ extern "C" { #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcdclear * * Description: @@ -366,11 +366,11 @@ extern "C" { * sequences of runs that covers the entire display can be very slow. Here the * display is cleared by simply setting all GRAM memory to the specified color. * - ************************************************************************************/ + ****************************************************************************/ void stm32_lcdclear(uint16_t color); -/************************************************************************************ +/**************************************************************************** * Relay control functions * * Description: @@ -378,7 +378,7 @@ void stm32_lcdclear(uint16_t color); * * NOTE: These must match the prototypes in include/nuttx/arch.h * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_RELAYS void up_relaysinit(void); @@ -394,13 +394,13 @@ void relays_resetmodes(uint32_t relays_stat); void relays_powermodes(uint32_t relays_stat); #endif -/************************************************************************************ +/**************************************************************************** * Chip ID functions * * Description: * Non-standard functions to obtain chip ID information. * - ************************************************************************************/ + ****************************************************************************/ const char *stm32_getchipid(void); const char *stm32_getchipid_string(void); @@ -411,4 +411,4 @@ const char *stm32_getchipid_string(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_SHENZHOU_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_SHENZHOU_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/shenzhou/scripts/Make.defs b/boards/arm/stm32/shenzhou/scripts/Make.defs index aeaadb8c63..ee46550014 100644 --- a/boards/arm/stm32/shenzhou/scripts/Make.defs +++ b/boards/arm/stm32/shenzhou/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/shenzhou/scripts/Make.defs +# boards/arm/stm32/shenzhou/scripts/Make.defs # # Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/shenzhou/scripts/ld.script b/boards/arm/stm32/shenzhou/scripts/ld.script index 875fe40fd5..dfd6a3065e 100644 --- a/boards/arm/stm32/shenzhou/scripts/ld.script +++ b/boards/arm/stm32/shenzhou/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/shenzhou/scripts/ld.script + * boards/arm/stm32/shenzhou/scripts/ld.script * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/shenzhou/scripts/ld.script.dfu b/boards/arm/stm32/shenzhou/scripts/ld.script.dfu index db93bb092b..0b8da1eca2 100644 --- a/boards/arm/stm32/shenzhou/scripts/ld.script.dfu +++ b/boards/arm/stm32/shenzhou/scripts/ld.script.dfu @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/shenzhou/scripts/ld.script.dfu + * boards/arm/stm32/shenzhou/scripts/ld.script.dfu * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/shenzhou/src/Makefile b/boards/arm/stm32/shenzhou/src/Makefile index 970e9655ac..7ed04e9775 100644 --- a/boards/arm/stm32/shenzhou/src/Makefile +++ b/boards/arm/stm32/shenzhou/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/shenzhou/src/Makefile +# boards/arm/stm32/shenzhou/src/Makefile # # Copyright (C) 2012 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/shenzhou/src/shenzhou.h b/boards/arm/stm32/shenzhou/src/shenzhou.h index 9b089408a3..87f93d305e 100644 --- a/boards/arm/stm32/shenzhou/src/shenzhou.h +++ b/boards/arm/stm32/shenzhou/src/shenzhou.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/shenzhou/src/shenzhou.h +/**************************************************************************** + * boards/arm/stm32/shenzhou/src/shenzhou.h * * Copyright (C) 2012, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,23 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_SHENZHOUL_SRC_SHENZHOU_H -#define __BOARDS_ARM_SHENZHOUL_SRC_SHENZHOU_H +#ifndef __BOARDS_ARM_STM32_SHENZHOUL_SRC_SHENZHOU_H +#define __BOARDS_ARM_STM32_SHENZHOUL_SRC_SHENZHOU_H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include #include -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ -/* Configuration ************************************************************************************/ + ****************************************************************************/ +/* Configuration ****************************************************************************/ /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -63,7 +63,7 @@ /* Shenzhou GPIO Configuration **********************************************************************/ -/* STM3240G-EVAL GPIOs ******************************************************************************/ +/* STM3240G-EVAL GPIOs ****************************************************************************/ /* Ethernet * * -- ---- -------------- ---------------------------------------------------------- @@ -398,51 +398,51 @@ #define GPIO_RELAYS_R01 (GPIO_OUTPUT|GPIO_CNF_OUTPP|GPIO_MODE_50MHz|\ GPIO_OUTPUT_SET|GPIO_PORTE|GPIO_PIN1) -/**************************************************************************************************** +/**************************************************************************** * Public Types - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the STM3240G-EVAL board. * - ****************************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in initialization to setup USB-related GPIO pins for * the STM3240G-EVAL board. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_OTGFS void weak_function stm32_usbinitialize(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: * Called at application startup time to initialize the USB host functionality. This function will * start a thread that will monitor for device connection/disconnection events. * - ****************************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_STM32_OTGFS) && defined(CONFIG_USBHOST) int stm32_usbhost_initialize(void); @@ -517,4 +517,4 @@ int stm32_w25initialize(int minor); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_SHENZHOUL_SRC_SHENZHOU_H */ +#endif /* __BOARDS_ARM_STM32_SHENZHOUL_SRC_SHENZHOU_H */ diff --git a/boards/arm/stm32/shenzhou/src/stm32_adc.c b/boards/arm/stm32/shenzhou/src/stm32_adc.c index 63bfed73e0..8a9d8fec8d 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_adc.c +++ b/boards/arm/stm32/shenzhou/src/stm32_adc.c @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * boards/shenzhou/src/stm32_adc.c * * Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved. @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ @@ -81,9 +81,9 @@ #define ADC1_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Identifying number of each ADC channel. The only internal signal for ADC testing * is the potentiometer input: @@ -104,17 +104,17 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {10}; //{10, 8, 9}; static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC12_IN10}; //{GPIO_ADC12_IN10, GPIO_ADC12_IN8, GPIO_ADC12_IN9}; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/shenzhou/src/stm32_appinit.c b/boards/arm/stm32/shenzhou/src/stm32_appinit.c index 068ac886aa..c168455d06 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_appinit.c +++ b/boards/arm/stm32/shenzhou/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/shenzhou/src/stm32_appinit.c + * boards/arm/stm32/shenzhou/src/stm32_appinit.c * * Copyright (C) 2012, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/shenzhou/src/stm32_autoleds.c b/boards/arm/stm32/shenzhou/src/stm32_autoleds.c index c1f908ff1c..abb9268b9c 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_autoleds.c +++ b/boards/arm/stm32/shenzhou/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/shenzhou/src/stm32_autoleds.c + * boards/arm/stm32/shenzhou/src/stm32_autoleds.c * * Copyright (C) 2012-2013, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -119,9 +119,9 @@ #define LED_PANIC_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT) #define LED_PANIC_OFF_CLRBITS ((SHENZHOU_LED4) << OFF_CLRBITS_SHIFT) -/************************************************************************************** +/**************************************************************************** * Private Function Protototypes - **************************************************************************************/ + ****************************************************************************/ /* LED State Controls */ diff --git a/boards/arm/stm32/shenzhou/src/stm32_boot.c b/boards/arm/stm32/shenzhou/src/stm32_boot.c index 44cd8cce73..9087724cc3 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_boot.c +++ b/boards/arm/stm32/shenzhou/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/shenzhou/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/shenzhou/src/stm32_boot.c * * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,19 +47,19 @@ #include "up_arch.h" #include "shenzhou.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -67,7 +67,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/shenzhou/src/stm32_buttons.c b/boards/arm/stm32/shenzhou/src/stm32_buttons.c index 72ad14d219..72490f1d5f 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_buttons.c +++ b/boards/arm/stm32/shenzhou/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/shenzhou/src/stm32_buttons.c + * boards/arm/stm32/shenzhou/src/stm32_buttons.c * * Copyright (C) 2012, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -126,7 +126,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -146,7 +146,7 @@ uint32_t board_buttons(void) * BUTTON_* and JOYSTICK_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/shenzhou/src/stm32_can.c b/boards/arm/stm32/shenzhou/src/stm32_can.c index a7296fc32d..949bf39062 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_can.c +++ b/boards/arm/stm32/shenzhou/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/shenzhou/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/shenzhou/src/stm32_can.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* The STM32F107VC supports CAN1 and CAN2 */ @@ -71,17 +71,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/shenzhou/src/stm32_chipid.c b/boards/arm/stm32/shenzhou/src/stm32_chipid.c index 5033c63796..c82b4b9118 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_chipid.c +++ b/boards/arm/stm32/shenzhou/src/stm32_chipid.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/shenzhou/src/stm32_chipid.c +/**************************************************************************** + * boards/arm/stm32/shenzhou/src/stm32_chipid.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -45,17 +45,17 @@ #include "up_arch.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ const char *stm32_getchipid(void) { diff --git a/boards/arm/stm32/shenzhou/src/stm32_ili93xx.c b/boards/arm/stm32/shenzhou/src/stm32_ili93xx.c index 8df31856f0..0946e5054b 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_ili93xx.c +++ b/boards/arm/stm32/shenzhou/src/stm32_ili93xx.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/shenzhou/src/stm32_ili93xx.c +/**************************************************************************** + * boards/arm/stm32/shenzhou/src/stm32_ili93xx.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,7 +32,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /* TFT LCD * * -- ---- -------------- ----------------------------------------------------------- @@ -106,9 +106,9 @@ * 31 /TP_CS To Touch IC CS */ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -130,9 +130,9 @@ #include "stm32.h" #include "shenzhou.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration **********************************************************************/ /* CONFIG_STM32_ILI1505_DISABLE may be defined to disable the LCD_ILI1505 * CONFIG_STM32_ILI9300_DISABLE may be defined to disable the LCD_ILI9300 @@ -353,9 +353,9 @@ #define ILI9331_ID 0x9331 #define ILI9919_ID 0x9919 -/************************************************************************************ +/**************************************************************************** * Private Type Definition - ************************************************************************************/ + ****************************************************************************/ /* LCD type */ @@ -395,9 +395,9 @@ struct stm32_dev_s bool output; /* True: Configured for output */ }; -/************************************************************************************ +/**************************************************************************** * Private Function Protototypes - ************************************************************************************/ + ****************************************************************************/ /* Low Level LCD access */ #ifdef CONFIG_LCD_REGDEBUG @@ -468,9 +468,9 @@ static inline void stm32_lcd1505init(FAR struct stm32_dev_s *priv); #endif static inline int stm32_lcdinitialize(FAR struct stm32_dev_s *priv); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* LCD GPIO configurations */ #ifndef CONFIG_LCD_FASTCONFIG @@ -554,17 +554,17 @@ static struct stm32_dev_s g_lcddev = }, }; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcdshow * * Description: * Show the state of the interface * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_LCD_REGDEBUG static void stm32_lcdshow(FAR struct stm32_lower_s *priv, FAR const char *msg) @@ -585,13 +585,13 @@ static void stm32_lcdshow(FAR struct stm32_lower_s *priv, FAR const char *msg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_writereg * * Description: * Write to an LCD register * - ************************************************************************************/ + ****************************************************************************/ static void stm32_writereg(FAR struct stm32_dev_s *priv, uint8_t regaddr, uint16_t regval) { @@ -616,13 +616,13 @@ static void stm32_writereg(FAR struct stm32_dev_s *priv, uint8_t regaddr, uint16 putreg32(1, LCD_CS_SET); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_readreg * * Description: * Read from an LCD register * - ************************************************************************************/ + ****************************************************************************/ static uint16_t stm32_readreg(FAR struct stm32_dev_s *priv, uint8_t regaddr) { @@ -655,13 +655,13 @@ static uint16_t stm32_readreg(FAR struct stm32_dev_s *priv, uint8_t regaddr) return regval; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_gramselect * * Description: * Setup to read or write multiple pixels to the GRAM memory * - ************************************************************************************/ + ****************************************************************************/ static void stm32_gramselect(FAR struct stm32_dev_s *priv) { @@ -679,13 +679,13 @@ static void stm32_gramselect(FAR struct stm32_dev_s *priv) putreg32(1, LCD_CS_SET); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_writegram * * Description: * Write one pixel to the GRAM memory * - ************************************************************************************/ + ****************************************************************************/ static inline void stm32_writegram(FAR struct stm32_dev_s *priv, uint16_t rgbval) { @@ -703,13 +703,13 @@ static inline void stm32_writegram(FAR struct stm32_dev_s *priv, uint16_t rgbval putreg32(1, LCD_CS_SET); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_readgram * * Description: * Read one 16-bit pixel to the GRAM memory * - ************************************************************************************/ + ****************************************************************************/ static inline uint16_t stm32_readgram(FAR struct stm32_dev_s *priv) { @@ -731,7 +731,7 @@ static inline uint16_t stm32_readgram(FAR struct stm32_dev_s *priv) return regval; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_readnosetup * * Description: @@ -741,7 +741,7 @@ static inline uint16_t stm32_readgram(FAR struct stm32_dev_s *priv) * * - ILI932x: Discard first dummy read; no shift in the return data * - ************************************************************************************/ + ****************************************************************************/ static void stm32_readnosetup(FAR struct stm32_dev_s *priv, FAR uint16_t *accum) { @@ -750,7 +750,7 @@ static void stm32_readnosetup(FAR struct stm32_dev_s *priv, FAR uint16_t *accum) *accum = stm32_readgram(priv); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_readnoshift * * Description: @@ -759,7 +759,7 @@ static void stm32_readnosetup(FAR struct stm32_dev_s *priv, FAR uint16_t *accum) * * - ILI932x: Unknown -- assuming colors are in the color order * - ************************************************************************************/ + ****************************************************************************/ static uint16_t stm32_readnoshift(FAR struct stm32_dev_s *priv, FAR uint16_t *accum) { @@ -768,14 +768,14 @@ static uint16_t stm32_readnoshift(FAR struct stm32_dev_s *priv, FAR uint16_t *ac return stm32_readgram(priv); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_setcursor * * Description: * Set the cursor position. In landscape mode, the "column" is actually the physical * Y position and the "row" is the physical X position. * - ************************************************************************************/ + ****************************************************************************/ static void stm32_setcursor(FAR struct stm32_dev_s *priv, uint16_t col, uint16_t row) { @@ -791,7 +791,7 @@ static void stm32_setcursor(FAR struct stm32_dev_s *priv, uint16_t col, uint16_t } } -/************************************************************************************ +/**************************************************************************** * Name: stm32_dumprun * * Description: @@ -800,7 +800,7 @@ static void stm32_setcursor(FAR struct stm32_dev_s *priv, uint16_t col, uint16_t * run - The buffer in containing the run read to be dumped * npixels - The number of pixels to dump * - ************************************************************************************/ + ****************************************************************************/ #if 0 /* Sometimes useful */ static void stm32_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npixels) @@ -822,7 +822,7 @@ static void stm32_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npixels } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_putrun * * Description: @@ -834,7 +834,7 @@ static void stm32_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npixels * npixels - The number of pixels to write to the LCD * (range: 0 < npixels <= xres-col) * - ************************************************************************************/ + ****************************************************************************/ static int stm32_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, size_t npixels) @@ -928,7 +928,7 @@ static int stm32_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffe return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_getrun * * Description: @@ -940,7 +940,7 @@ static int stm32_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffe * npixels - The number of pixels to read from the LCD * (range: 0 < npixels <= xres-col) * - ************************************************************************************/ + ****************************************************************************/ static int stm32_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, size_t npixels) @@ -1069,13 +1069,13 @@ static int stm32_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_getvideoinfo * * Description: * Get information about the LCD video controller configuration. * - ************************************************************************************/ + ****************************************************************************/ static int stm32_getvideoinfo(FAR struct lcd_dev_s *dev, FAR struct fb_videoinfo_s *vinfo) @@ -1087,13 +1087,13 @@ static int stm32_getvideoinfo(FAR struct lcd_dev_s *dev, return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_getplaneinfo * * Description: * Get information about the configuration of each LCD color plane. * - ************************************************************************************/ + ****************************************************************************/ static int stm32_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno, FAR struct lcd_planeinfo_s *pinfo) @@ -1104,14 +1104,14 @@ static int stm32_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno, return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_getpower * * Description: * Get the LCD panel power status (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - ************************************************************************************/ + ****************************************************************************/ static int stm32_getpower(struct lcd_dev_s *dev) { @@ -1121,14 +1121,14 @@ static int stm32_getpower(struct lcd_dev_s *dev) return priv->power; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_poweroff * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - ************************************************************************************/ + ****************************************************************************/ static int stm32_poweroff(FAR struct stm32_dev_s *priv) { @@ -1142,14 +1142,14 @@ static int stm32_poweroff(FAR struct stm32_dev_s *priv) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_setpower * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - ************************************************************************************/ + ****************************************************************************/ static int stm32_setpower(struct lcd_dev_s *dev, int power) { @@ -1245,13 +1245,13 @@ static int stm32_setpower(struct lcd_dev_s *dev, int power) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_getcontrast * * Description: * Get the current contrast setting (0-CONFIG_LCD_MAXCONTRAST). * - ************************************************************************************/ + ****************************************************************************/ static int stm32_getcontrast(struct lcd_dev_s *dev) { @@ -1259,13 +1259,13 @@ static int stm32_getcontrast(struct lcd_dev_s *dev) return -ENOSYS; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_setcontrast * * Description: * Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST). * - ************************************************************************************/ + ****************************************************************************/ static int stm32_setcontrast(struct lcd_dev_s *dev, unsigned int contrast) { @@ -1273,13 +1273,13 @@ static int stm32_setcontrast(struct lcd_dev_s *dev, unsigned int contrast) return -ENOSYS; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcdinput * * Description: * Config data lines for input operations. * - ************************************************************************************/ + ****************************************************************************/ static void stm32_lcdinput(FAR struct stm32_dev_s *priv) { @@ -1308,13 +1308,13 @@ static void stm32_lcdinput(FAR struct stm32_dev_s *priv) } } -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcdoutput * * Description: * Config data lines for input operations. * - ************************************************************************************/ + ****************************************************************************/ static void stm32_lcdoutput(FAR struct stm32_dev_s *priv) { @@ -1343,13 +1343,13 @@ static void stm32_lcdoutput(FAR struct stm32_dev_s *priv) } } -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcd9300init * * Description: * Initialize the ILI9300/9220/9321 LCD. * - ************************************************************************************/ + ****************************************************************************/ #if !defined(CONFIG_STM32_ILI9300_DISABLE) || !defined(CONFIG_STM32_ILI9320_DISABLE) || !defined(CONFIG_STM32_ILI9321_DISABLE) static void stm32_lcd9300init(FAR struct stm32_dev_s *priv, enum lcd_type_e lcdtype) @@ -1408,13 +1408,13 @@ static void stm32_lcd9300init(FAR struct stm32_dev_s *priv, enum lcd_type_e lcdt } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcd9331init * * Description: * Initialize the ILI9331 LCD. * - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_ILI9331_DISABLE static void stm32_lcd9331init(FAR struct stm32_dev_s *priv) @@ -1489,13 +1489,13 @@ static void stm32_lcd9331init(FAR struct stm32_dev_s *priv) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcd9325init * * Description: * Initialize the ILI9325/9228 LCD. * - ************************************************************************************/ + ****************************************************************************/ #if !defined(CONFIG_STM32_ILI9325_DISABLE) || !defined(CONFIG_STM32_ILI9328_DISABLE) static void stm32_lcd9325init(FAR struct stm32_dev_s *priv, enum lcd_type_e lcdtype) @@ -1588,13 +1588,13 @@ static void stm32_lcd9325init(FAR struct stm32_dev_s *priv, enum lcd_type_e lcdt } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcd9919init * * Description: * Initialize the ILI9919 LCD. * - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_ILI9919_DISABLE static inline void stm32_lcd9919init(FAR struct stm32_dev_s *priv) @@ -1642,13 +1642,13 @@ static inline void stm32_lcd9919init(FAR struct stm32_dev_s *priv) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcd1505init * * Description: * Initialize the ILI1505 LCD. * - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_ILI1505_DISABLE static inline void stm32_lcd1505init(FAR struct stm32_dev_s *priv) @@ -1736,13 +1736,13 @@ static inline void stm32_lcd1505init(FAR struct stm32_dev_s *priv) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcdinitialize * * Description: * Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST). * - ************************************************************************************/ + ****************************************************************************/ static inline int stm32_lcdinitialize(FAR struct stm32_dev_s *priv) { @@ -1835,11 +1835,11 @@ static inline int stm32_lcdinitialize(FAR struct stm32_dev_s *priv) return ret; } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -1847,7 +1847,7 @@ static inline int stm32_lcdinitialize(FAR struct stm32_dev_s *priv) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - ************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -1888,14 +1888,14 @@ int board_lcd_initialize(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows support * for multiple LCD devices. * - ************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -1903,13 +1903,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return &g_lcddev.dev; } -/************************************************************************************ +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Unitialize the LCD support * - ************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { @@ -1924,7 +1924,7 @@ void board_lcd_uninitialize(void) putreg32(1, LCD_CS_SET); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcdclear * * Description: @@ -1933,7 +1933,7 @@ void board_lcd_uninitialize(void) * sequences of runs that covers the entire display can be very slow. Here the * display is cleared by simply setting all GRAM memory to the specified color. * - ************************************************************************************/ + ****************************************************************************/ void stm32_lcdclear(uint16_t color) { diff --git a/boards/arm/stm32/shenzhou/src/stm32_mmcsd.c b/boards/arm/stm32/shenzhou/src/stm32_mmcsd.c index 3621c655ea..739c03f388 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_mmcsd.c +++ b/boards/arm/stm32/shenzhou/src/stm32_mmcsd.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/shenzhou/src/stm32_mmcsd.c + * boards/arm/stm32/shenzhou/src/stm32_mmcsd.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/shenzhou/src/stm32_relays.c b/boards/arm/stm32/shenzhou/src/stm32_relays.c index 3c4645318d..3700f3cacc 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_relays.c +++ b/boards/arm/stm32/shenzhou/src/stm32_relays.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/shenzhou/src/stm32_relays.c + * boards/arm/stm32/shenzhou/src/stm32_relays.c * * Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/shenzhou/src/stm32_spi.c b/boards/arm/stm32/shenzhou/src/stm32_spi.c index 0af801a122..b6b99e0c8a 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_spi.c +++ b/boards/arm/stm32/shenzhou/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/shenzhou/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/shenzhou/src/stm32_spi.c * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,17 +53,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Shenzhou board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/shenzhou/src/stm32_ssd1289.c b/boards/arm/stm32/shenzhou/src/stm32_ssd1289.c index 9735a8377d..2bec91d6b8 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_ssd1289.c +++ b/boards/arm/stm32/shenzhou/src/stm32_ssd1289.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/shenzhou/src/stm32_ssd1289.c +/**************************************************************************** + * boards/arm/stm32/shenzhou/src/stm32_ssd1289.c * * This logic supports the connection of an SSD1289-based LCD to the Shenzhou IV * board. @@ -34,11 +34,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -63,17 +63,17 @@ #ifdef CONFIG_LCD_SSD1289 -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #undef CONFIG_LCD_FASTCONFIG #define CONFIG_LCD_FASTCONFIG 1 -/************************************************************************************ +/**************************************************************************** * Private Type Definition - ************************************************************************************/ + ****************************************************************************/ /* This structure describes the state of this driver */ @@ -84,9 +84,9 @@ struct stm32_lower_s bool output; /* True: Configured for output */ }; -/************************************************************************************** +/**************************************************************************** * Private Function Prototypes - **************************************************************************************/ + ****************************************************************************/ /* Helpers */ #ifdef CONFIG_LCD_REGDEBUG @@ -118,9 +118,9 @@ static void stm32_lcdinput(FAR struct stm32_lower_s *priv); #endif static void stm32_lcdoutput(FAR struct stm32_lower_s *priv); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* TFT LCD * * -- ---- -------------- ----------------------------------------------------------- @@ -239,17 +239,17 @@ static struct stm32_lower_s g_lcdlower = .output = false }; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcdshow * * Description: * Show the state of the interface * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_LCD_REGDEBUG static void stm32_lcdshow(FAR struct stm32_lower_s *priv, FAR const char *msg) @@ -270,13 +270,13 @@ static void stm32_lcdshow(FAR struct stm32_lower_s *priv, FAR const char *msg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_wrdata * * Description: * Latch data on D0-D15 and toggle the WR line. * - ************************************************************************************/ + ****************************************************************************/ static void stm32_wrdata(FAR struct stm32_lower_s *priv, uint16_t data) { @@ -294,13 +294,13 @@ static void stm32_wrdata(FAR struct stm32_lower_s *priv, uint16_t data) putreg32(1, LCD_WR_SET); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_rddata * * Description: * Latch data on D0-D15 and toggle the WR line. * - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_LCD_NOGETRUN static inline uint16_t stm32_rddata(FAR struct stm32_lower_s *priv) @@ -324,13 +324,13 @@ static inline uint16_t stm32_rddata(FAR struct stm32_lower_s *priv) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_select * * Description: * Select the LCD device * - ************************************************************************************/ + ****************************************************************************/ static void stm32_select(FAR struct ssd1289_lcd_s *dev) { @@ -339,13 +339,13 @@ static void stm32_select(FAR struct ssd1289_lcd_s *dev) putreg32(1, LCD_CS_CLEAR); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselect * * Description: * De-select the LCD device * - ************************************************************************************/ + ****************************************************************************/ static void stm32_deselect(FAR struct ssd1289_lcd_s *dev) { @@ -354,13 +354,13 @@ static void stm32_deselect(FAR struct ssd1289_lcd_s *dev) putreg32(1, LCD_CS_SET); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_index * * Description: * Set the index register * - ************************************************************************************/ + ****************************************************************************/ static void stm32_index(FAR struct ssd1289_lcd_s *dev, uint8_t index) { @@ -375,13 +375,13 @@ static void stm32_index(FAR struct ssd1289_lcd_s *dev, uint8_t index) stm32_wrdata(priv, (uint16_t)index); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_read * * Description: * Read LCD data (GRAM data or register contents) * - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_LCD_NOGETRUN static uint16_t stm32_read(FAR struct ssd1289_lcd_s *dev) @@ -398,13 +398,13 @@ static uint16_t stm32_read(FAR struct ssd1289_lcd_s *dev) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_write * * Description: * Write LCD data (GRAM data or register contents) * - ************************************************************************************/ + ****************************************************************************/ static void stm32_write(FAR struct ssd1289_lcd_s *dev, uint16_t data) { @@ -419,26 +419,26 @@ static void stm32_write(FAR struct ssd1289_lcd_s *dev, uint16_t data) stm32_wrdata(priv, data); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_backlight * * Description: * Write LCD data (GRAM data or register contents) * - ************************************************************************************/ + ****************************************************************************/ static void stm32_backlight(FAR struct ssd1289_lcd_s *dev, int power) { /* There is no software control over the backlight */ } -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcdinput * * Description: * Config data lines for input operations. * - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_LCD_NOGETRUN static void stm32_lcdinput(FAR struct stm32_lower_s *priv) @@ -469,13 +469,13 @@ static void stm32_lcdinput(FAR struct stm32_lower_s *priv) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_lcdoutput * * Description: * Config data lines for output operations. * - ************************************************************************************/ + ****************************************************************************/ static void stm32_lcdoutput(FAR struct stm32_lower_s *priv) { @@ -504,11 +504,11 @@ static void stm32_lcdoutput(FAR struct stm32_lower_s *priv) } } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -516,7 +516,7 @@ static void stm32_lcdoutput(FAR struct stm32_lower_s *priv) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - ************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -553,14 +553,14 @@ int board_lcd_initialize(void) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows * suport for multiple LCD devices. * - ************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -569,13 +569,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return priv->drvr; } -/************************************************************************************ +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Unitialize the LCD support * - ************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { diff --git a/boards/arm/stm32/shenzhou/src/stm32_touchscreen.c b/boards/arm/stm32/shenzhou/src/stm32_touchscreen.c index 52b645a087..d11427dbcf 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_touchscreen.c +++ b/boards/arm/stm32/shenzhou/src/stm32_touchscreen.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/shenzhou/src/stm32_touchscreen.c +/**************************************************************************** + * boards/arm/stm32/shenzhou/src/stm32_touchscreen.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32/shenzhou/src/stm32_usb.c b/boards/arm/stm32/shenzhou/src/stm32_usb.c index ec7febb43a..82772452bd 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_usb.c +++ b/boards/arm/stm32/shenzhou/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/shenzhou/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/shenzhou/src/stm32_usb.c * * Copyright (C) 2012-2013, 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,9 +59,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -82,25 +82,25 @@ # endif #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -131,18 +131,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM3240G-EVAL board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -157,7 +157,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -165,7 +165,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -219,7 +219,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -243,7 +243,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -265,7 +265,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -280,7 +280,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -289,7 +289,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -298,7 +298,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/shenzhou/src/stm32_usbmsc.c b/boards/arm/stm32/shenzhou/src/stm32_usbmsc.c index 1992a49129..e899de5529 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_usbmsc.c +++ b/boards/arm/stm32/shenzhou/src/stm32_usbmsc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/shenzhou/src/stm32_usbmsc.c + * boards/arm/stm32/shenzhou/src/stm32_usbmsc.c * * Copyright (C) 2012, 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/shenzhou/src/stm32_userleds.c b/boards/arm/stm32/shenzhou/src/stm32_userleds.c index b1866c5fb6..5dd7c94e8e 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_userleds.c +++ b/boards/arm/stm32/shenzhou/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/shenzhou/src/stm32_userleds.c + * boards/arm/stm32/shenzhou/src/stm32_userleds.c * * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/shenzhou/src/stm32_w25.c b/boards/arm/stm32/shenzhou/src/stm32_w25.c index 68db581ce3..3d5d472c9d 100644 --- a/boards/arm/stm32/shenzhou/src/stm32_w25.c +++ b/boards/arm/stm32/shenzhou/src/stm32_w25.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/shenzhou/src/stm32_w25.c + * boards/arm/stm32/shenzhou/src/stm32_w25.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/shenzhou/tools/oocd.sh b/boards/arm/stm32/shenzhou/tools/oocd.sh index bb977a4108..ea21d045dd 100755 --- a/boards/arm/stm32/shenzhou/tools/oocd.sh +++ b/boards/arm/stm32/shenzhou/tools/oocd.sh @@ -47,7 +47,7 @@ fi # Local search directory and configurations -OPENOCD_SEARCHDIR="${TOPDIR}/boards/shenzhou/tools" +OPENOCD_SEARCHDIR="${TOPDIR}/boards/arm/stm32/shenzhou/tools" OPENOCD_WSEARCHDIR="`cygpath -w ${OPENOCD_SEARCHDIR}`" OPENOCD_PATH="/cygdrive/c/Program Files (x86)/OpenOCD/0.4.0/bin" diff --git a/boards/arm/stm32/stm3210e-eval/README.txt b/boards/arm/stm32/stm3210e-eval/README.txt index 4268973ddd..c6a0f9db2b 100644 --- a/boards/arm/stm32/stm3210e-eval/README.txt +++ b/boards/arm/stm32/stm3210e-eval/README.txt @@ -91,13 +91,13 @@ OpenOCD ======= I have also used OpenOCD with the STM3210E-EVAL. In this case, I used -the Olimex USB ARM OCD. See the script in boards/stm3210e-eval/tools/oocd.sh +the Olimex USB ARM OCD. See the script in boards/arm/stm32/stm3210e-eval/tools/oocd.sh for more information. Using the script: 1) Start the OpenOCD GDB server cd - boards/stm3210e-eval/tools/oocd.sh $PWD + boards/arm/stm32/stm3210e-eval/tools/oocd.sh $PWD 2) Load Nuttx @@ -170,7 +170,7 @@ Temperature Sensor IOCTL commands enumerated in include/nuttx/sensors/lm75.h. Also read the descriptions of the stm32_lm75initialize() and stm32_lm75attach() interfaces in the arch/board/board.h file (sames as - boards/stm3210e-eval/include/board.h). + boards/arm/stm32/stm3210e-eval/include/board.h). NSH Command Line Application ---------------------------- @@ -810,7 +810,7 @@ Where is one of the following: CONFIG_ARCH_CUSTOM_PMINIT=y CONFIG_ARCH_CUSTOM_PMINIT moves the PM initialization from - arch/arm/src/stm32/stm32_pminitialiaze.c to boards/stm3210-eval/src/stm32_pm.c. + arch/arm/src/stm32/stm32_pminitialiaze.c to boards/arm/stm32/stm3210-eval/src/stm32_pm.c. This allows us to support board-specific PM initialization. CONFIG_ARCH_IDLE_CUSTOM=y @@ -823,7 +823,7 @@ Where is one of the following: The configuration CONFIG_ARCH_IDLE_CUSTOM allows us to "steal" the normal STM32 IDLE loop (of arch/arm/src/stm32/stm32_idle.c) and replace - this with our own custom IDLE loop (at boards/stm3210-eval/src/up_idle.c). + this with our own custom IDLE loop (at boards/arm/stm32/stm3210-eval/src/up_idle.c). 4. Here are some additional things to note in the configuration: diff --git a/boards/arm/stm32/stm3210e-eval/include/board.h b/boards/arm/stm32/stm3210e-eval/include/board.h index f7e3511d9f..511f4f130f 100644 --- a/boards/arm/stm32/stm3210e-eval/include/board.h +++ b/boards/arm/stm32/stm3210e-eval/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/include/board.h * * Copyright (C) 2009, 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __ARCH_BOARD_BOARD_H -#define __ARCH_BOARD_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM3210E_EVAL_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM3210E_EVAL_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -51,9 +51,9 @@ * files are not available. */ -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -221,9 +221,9 @@ # define JOYSTICK_UP_BIT (1 << JOYSTICK_UP) #endif -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -236,11 +236,11 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm3210e_lcdclear * * Description: @@ -249,13 +249,13 @@ extern "C" * sequences of runs that covers the entire display can be very slow. Here the * dispaly is cleared by simply setting all GRAM memory to the specified color. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm3210e_lcdclear(uint16_t color); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_lm75initialize * * Description: @@ -267,13 +267,13 @@ void stm3210e_lcdclear(uint16_t color); * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_I2C) && defined(CONFIG_LM75_I2C) && defined(CONFIG_STM32_I2C1) int stm32_lm75initialize(FAR const char *devpath); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_lm75attach * * Description: @@ -286,7 +286,7 @@ int stm32_lm75initialize(FAR const char *devpath); * Returned Value: * Zero (OK) returned on success; a negated errno value is returned on failure. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_I2C) && defined(CONFIG_LM75_I2C) && defined(CONFIG_STM32_I2C1) int stm32_lm75attach(xcpt_t irqhandler, void *arg); @@ -298,4 +298,4 @@ int stm32_lm75attach(xcpt_t irqhandler, void *arg); #endif #endif /* __ASSEMBLY__ */ -#endif /* __ARCH_BOARD_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM3210E_EVAL_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm3210e-eval/scripts/Make.defs b/boards/arm/stm32/stm3210e-eval/scripts/Make.defs index 1d136963d1..310bb7f816 100644 --- a/boards/arm/stm32/stm3210e-eval/scripts/Make.defs +++ b/boards/arm/stm32/stm3210e-eval/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm3210e-eval/scripts/Make.defs +# boards/arm/stm32/stm3210e-eval/scripts/Make.defs # # Copyright (C) 2009, 2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/scripts/ld.script b/boards/arm/stm32/stm3210e-eval/scripts/ld.script index 69da4fe5ca..22af2f9d81 100644 --- a/boards/arm/stm32/stm3210e-eval/scripts/ld.script +++ b/boards/arm/stm32/stm3210e-eval/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3210e-eval/scripts/ld.script + * boards/arm/stm32/stm3210e-eval/scripts/ld.script * * Copyright (C) 2009, 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu b/boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu index 45b97af433..3438e1d4c2 100644 --- a/boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu +++ b/boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3210e-eval/scripts/ld.script.dfu + * boards/arm/stm32/stm3210e-eval/scripts/ld.script.dfu * * Copyright (C) 2009, 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/src/Makefile b/boards/arm/stm32/stm3210e-eval/src/Makefile index ca95826579..9a5294ba32 100644 --- a/boards/arm/stm32/stm3210e-eval/src/Makefile +++ b/boards/arm/stm32/stm3210e-eval/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm3210e-eval/src/Makefile +# boards/arm/stm32/stm3210e-eval/src/Makefile # # Copyright (C) 2009-2010, 2012 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/src/stm3210e-eval.h b/boards/arm/stm32/stm3210e-eval/src/stm3210e-eval.h index 7fb882b736..68f83a8f32 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm3210e-eval.h +++ b/boards/arm/stm32/stm3210e-eval/src/stm3210e-eval.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e_eval/src/stm3210e-eval.h +/**************************************************************************** + * boards/arm/stm32/stm3210e_eval/src/stm3210e-eval.h * * Copyright (C) 2009, 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM3210E_EVAL_SRC_STM3210E_EVAL_H -#define __BOARDS_ARM_STM3210E_EVAL_SRC_STM3210E_EVAL_H +#ifndef __BOARDS_ARM_STM32_STM3210E_EVAL_SRC_STM3210E_EVAL_H +#define __BOARDS_ARM_STM32_STM3210E_EVAL_SRC_STM3210E_EVAL_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -49,9 +49,9 @@ #include "stm32_gpio.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* How many SPI modules does this chip support? Most support 2 SPI modules (others * may support more -- in such case, the following must be expanded). @@ -144,9 +144,9 @@ #define GPIO_LM75_OSINT (GPIO_INPUT|GPIO_CNF_INPULLUP|GPIO_MODE_10MHz|\ GPIO_EXTI|GPIO_PORTB|GPIO_PIN5) -/************************************************************************************ +/**************************************************************************** * Public Types - ************************************************************************************/ + ****************************************************************************/ /* GPIO settings that will be altered when external memory is selected */ @@ -162,9 +162,9 @@ struct extmem_save_s uint32_t gpiog_crh; }; -/************************************************************************************ +/**************************************************************************** * Public data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -173,11 +173,11 @@ struct extmem_save_s #define NCOMMON_CONFIG 37 extern const uint16_t g_commonconfig[NCOMMON_CONFIG]; -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_bringup * * Description: @@ -189,37 +189,37 @@ extern const uint16_t g_commonconfig[NCOMMON_CONFIG]; * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the STM3210E-EVAL board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins for the STM3210E-EVAL board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_usbinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -237,119 +237,119 @@ int stm32_adc_setup(void); int stm32_can_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_extcontextsave * * Description: * Save current GPIOs that will used by external memory configurations * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_extcontextsave(struct extmem_save_s *save); -/************************************************************************************ +/**************************************************************************** * Name: stm32_extcontextrestore * * Description: * Restore GPIOs that were used by external memory configurations * - ************************************************************************************/ + ****************************************************************************/ void stm32_extcontextrestore(struct extmem_save_s *restore); -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for NOR or SRAM * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemgpios(const uint16_t *gpios, int ngpios); -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectnor * * Description: * Initialize to access NOR flash * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectnor(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectnor * * Description: * Disable NOR FLASH * - ************************************************************************************/ + ****************************************************************************/ void stm32_deselectnor(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectsram * * Description: * Initialize to access external SRAM * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectsram(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectsram * * Description: * Disable external SRAM * - ************************************************************************************/ + ****************************************************************************/ void stm32_deselectsram(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize to the LCD * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectlcd(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectlcd * * Description: * Disable the LCD * - ************************************************************************************/ + ****************************************************************************/ void stm32_deselectlcd(void); #endif /* CONFIG_STM32_FSMC */ -/************************************************************************************ +/**************************************************************************** * Name: stm32_ledpminitialize * * Description: * Register the LEDs to receive power management event callbacks * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_PM) && defined(CONFIG_ARCH_LEDS) void stm32_ledpminitialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_pmbuttons * * Description: * Configure all the buttons of the STM3210e-eval board as EXTI, so any button is * able to wakeup the MCU from the PM_STANDBY mode * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_PM) && defined(CONFIG_ARCH_IDLE_CUSTOM) && defined(CONFIG_PM_BUTTONS) void stm32_pmbuttons(void); @@ -368,4 +368,4 @@ int stm32_djoy_initialization(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM3210E_EVAL_SRC_STM3210E_EVAL_H */ +#endif /* __BOARDS_ARM_STM32_STM3210E_EVAL_SRC_STM3210E_EVAL_H */ diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_adc.c b/boards/arm/stm32/stm3210e-eval/src/stm32_adc.c index a8db41d79b..4374a6c82a 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_adc.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_adc.c * * Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ @@ -81,9 +81,9 @@ #define ADC1_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Identifying number of each ADC channel: Variable Resistor */ @@ -95,17 +95,17 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {14}; static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN14}; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_appinit.c b/boards/arm/stm32/stm3210e-eval/src/stm32_appinit.c index 96e1a3353f..d74306b839 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_appinit.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm3210e-eval/src/stm32_appinit.c + * boards/arm/stm32/stm3210e-eval/src/stm32_appinit.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_boot.c b/boards/arm/stm32/stm3210e-eval/src/stm32_boot.c index 5019a51e92..a95768ab68 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_boot.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_boot.c * * Copyright (C) 2009, 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,19 +47,19 @@ #include "up_arch.h" #include "stm3210e-eval.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -67,7 +67,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_bringup.c b/boards/arm/stm32/stm3210e-eval/src/stm32_bringup.c index bc545587b0..d46a9deb77 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_bringup.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm3210e_eval/src/stm32_bringup.c + * boards/arm/stm32/stm3210e_eval/src/stm32_bringup.c * * Copyright (C) 2009, 2011, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_buttons.c b/boards/arm/stm32/stm3210e-eval/src/stm32_buttons.c index 398697493b..be263ff207 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_buttons.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3210e-eval/src/stm32_buttons.c + * boards/arm/stm32/stm3210e-eval/src/stm32_buttons.c * * Copyright (C) 2009, 2011, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -139,7 +139,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -159,7 +159,7 @@ uint32_t board_buttons(void) * BUTTON_* and JOYSTICK_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_can.c b/boards/arm/stm32/stm3210e-eval/src/stm32_can.c index 1dcd5c7061..773a4545c0 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_can.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_can.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,25 +54,25 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* The STM32F103ZE supports only CAN1 */ #define CAN_PORT 1 -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_composite.c b/boards/arm/stm32/stm3210e-eval/src/stm32_composite.c index 7a59f4cb45..196a6d6e08 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_composite.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_composite.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3210e-eval/src/stm32_composite.c + * boards/arm/stm32/stm3210e-eval/src/stm32_composite.c * * Copyright (C) 2009, 2011, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_deselectlcd.c b/boards/arm/stm32/stm3210e-eval/src/stm32_deselectlcd.c index 3faf9d2e86..871febc73a 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_deselectlcd.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_deselectlcd.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_deselectlcd.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_deselectlcd.c * * Copyright (C) 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,33 +47,33 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectlcd * * Description: * Disable the LCD * - ************************************************************************************/ + ****************************************************************************/ void stm32_deselectlcd(void) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_deselectnor.c b/boards/arm/stm32/stm3210e-eval/src/stm32_deselectnor.c index 5209f3b39a..bd1188a451 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_deselectnor.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_deselectnor.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_deselectnor.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_deselectnor.c * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,33 +47,33 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectnor * * Description: * Disable NOR FLASH * - ************************************************************************************/ + ****************************************************************************/ void stm32_deselectnor(void) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_deselectsram.c b/boards/arm/stm32/stm3210e-eval/src/stm32_deselectsram.c index 12e17b01b3..df3f9d57c5 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_deselectsram.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_deselectsram.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_deselectsram.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_deselectsram.c * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,33 +47,33 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectsram * * Description: * Disable NOR FLASH * - ************************************************************************************/ + ****************************************************************************/ void stm32_deselectsram(void) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_djoystick.c b/boards/arm/stm32/stm3210e-eval/src/stm32_djoystick.c index 3932fc81f1..dcb1bc81a9 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_djoystick.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_djoystick.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3210e-eval/src/stm32_djoystick.c + * boards/arm/stm32/stm3210e-eval/src/stm32_djoystick.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_extcontext.c b/boards/arm/stm32/stm3210e-eval/src/stm32_extcontext.c index 70bf2574f6..a1499c6508 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_extcontext.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_extcontext.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_extcontext.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_extcontext.c * * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -49,33 +49,33 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if STM32_NGPIO_PORTS < 6 # error "Required GPIO ports not enabled" #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_extcontextsave * * Description: * Save current GPIOs that will used by external memory configurations * - ************************************************************************************/ + ****************************************************************************/ void stm32_extcontextsave(struct extmem_save_s *save) { @@ -90,13 +90,13 @@ void stm32_extcontextsave(struct extmem_save_s *save) save->gpiog_crh = getreg32(STM32_GPIOG_CRH); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extcontextrestore * * Description: * Restore GPIOs that were used by external memory configurations * - ************************************************************************************/ + ****************************************************************************/ void stm32_extcontextrestore(struct extmem_save_s *restore) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_extmem.c b/boards/arm/stm32/stm3210e-eval/src/stm32_extmem.c index 9ff6483e1f..0348507548 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_extmem.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_extmem.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_extmem.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_extmem.c * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32.h" #include "stm3210e-eval.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_FSMC # warning "FSMC is not enabled" @@ -64,9 +64,9 @@ # error "Required GPIO ports not enabled" #endif -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* 512Kx16 SRAM is connected to bank2 of the FSMC interface and both 8- and 16-bit * accesses are allowed by BLN0 and BLN1 connected to BLE and BHE of SRAM, @@ -118,25 +118,25 @@ const uint16_t g_commonconfig[NCOMMON_CONFIG] = GPIO_NPS_NOE, GPIO_NPS_NWE }; -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for NOR or SRAM * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemgpios(const uint16_t *gpios, int ngpios) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_idle.c b/boards/arm/stm32/stm3210e-eval/src/stm32_idle.c index ec067e25a8..898b26fee5 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_idle.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_idle.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3210e-eval/src/stm32_idle.c + * boards/arm/stm32/stm3210e-eval/src/stm32_idle.c * * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_lcd.c b/boards/arm/stm32/stm3210e-eval/src/stm32_lcd.c index 3b71d974ee..1d736c93cb 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_lcd.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_lcd.c @@ -1,5 +1,5 @@ -/************************************************************************************** - * boards/stm3210e-eval/src/stm32_lcd.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_lcd.c * * Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -35,7 +35,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - **************************************************************************************/ + ****************************************************************************/ /* This driver supports the following LCDs: * @@ -54,9 +54,9 @@ * any of the above to "y" will disable support for the corresponding LCD. */ -/************************************************************************************** +/**************************************************************************** * Included Files - **************************************************************************************/ + ****************************************************************************/ #include @@ -79,9 +79,9 @@ #include "stm32.h" #include "stm3210e-eval.h" -/************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - **************************************************************************************/ + ****************************************************************************/ /* Configuration **********************************************************************/ /* Check contrast selection */ @@ -297,9 +297,9 @@ #define SPFD5408B_ID 0x5408 #define R61580_ID 0x1580 -/************************************************************************************** +/**************************************************************************** * Private Type Definition - **************************************************************************************/ + ****************************************************************************/ /* LCD type */ @@ -337,9 +337,9 @@ struct stm3210e_dev_s uint8_t power; /* Current power setting */ }; -/************************************************************************************** +/**************************************************************************** * Private Function Protototypes - **************************************************************************************/ + ****************************************************************************/ /* Low Level LCD access */ static void stm3210e_writereg(uint8_t regaddr, uint16_t regval); @@ -405,9 +405,9 @@ static void stm3210e_backlight(void); # define stm3210e_backlight() #endif -/************************************************************************************** +/**************************************************************************** * Private Data - **************************************************************************************/ + ****************************************************************************/ /* This is working memory allocated by the LCD driver for each LCD device * and for each color plane. This memory will hold one raster line of data. @@ -474,17 +474,17 @@ static struct pm_callback_s g_lcdcb = #endif -/************************************************************************************** +/**************************************************************************** * Private Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_writereg * * Description: * Write to an LCD register * - **************************************************************************************/ + ****************************************************************************/ static void stm3210e_writereg(uint8_t regaddr, uint16_t regval) { @@ -494,13 +494,13 @@ static void stm3210e_writereg(uint8_t regaddr, uint16_t regval) LCD->value = regval; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_readreg * * Description: * Read from an LCD register * - **************************************************************************************/ + ****************************************************************************/ static uint16_t stm3210e_readreg(uint8_t regaddr) { @@ -510,26 +510,26 @@ static uint16_t stm3210e_readreg(uint8_t regaddr) return LCD->value; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_gramselect * * Description: * Setup to read or write multiple pixels to the GRAM memory * - **************************************************************************************/ + ****************************************************************************/ static inline void stm3210e_gramselect(void) { LCD->address = LCD_REG_34; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_writegram * * Description: * Write one pixel to the GRAM memory * - **************************************************************************************/ + ****************************************************************************/ static inline void stm3210e_writegram(uint16_t rgbval) { @@ -538,7 +538,7 @@ static inline void stm3210e_writegram(uint16_t rgbval) LCD->value = rgbval; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_readsetup / stm3210e_readnosetup * * Description: @@ -550,7 +550,7 @@ static inline void stm3210e_writegram(uint16_t rgbval) * - R61580: There is a 16-bit (1 pixel) shift in the returned data. * - AM240320: Unknown -- assuming no shift in the return data * - **************************************************************************************/ + ****************************************************************************/ /* Used for SPFD5408B and R61580 */ @@ -571,7 +571,7 @@ static void stm3210e_readnosetup(FAR uint16_t *accum) } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_readshift / stm3210e_readnoshift * * Description: @@ -584,7 +584,7 @@ static void stm3210e_readnosetup(FAR uint16_t *accum) * All colors in the normal order * - AM240320: Unknown -- assuming colors are in the color order * - **************************************************************************************/ + ****************************************************************************/ /* This version is used only for the SPFD5408B. It shifts the data by 5-bits and swaps * red and green @@ -654,14 +654,14 @@ static uint16_t stm3210e_readnoshift(FAR uint16_t *accum) } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_setcursor * * Description: * Set the cursor position. In landscape mode, the "column" is actually the physical * Y position and the "row" is the physical X position. * - **************************************************************************************/ + ****************************************************************************/ static void stm3210e_setcursor(uint16_t col, uint16_t row) { @@ -669,7 +669,7 @@ static void stm3210e_setcursor(uint16_t col, uint16_t row) stm3210e_writereg(LCD_REG_33, col); /* GRAM vertical address */ } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_dumprun * * Description: @@ -678,7 +678,7 @@ static void stm3210e_setcursor(uint16_t col, uint16_t row) * run - The buffer in containing the run read to be dumped * npixels - The number of pixels to dump * - **************************************************************************************/ + ****************************************************************************/ #if 0 /* Sometimes useful */ static void stm3210e_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npixels) @@ -700,7 +700,7 @@ static void stm3210e_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npix } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_putrun * * Description: @@ -712,7 +712,7 @@ static void stm3210e_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npix * npixels - The number of pixels to write to the LCD * (range: 0 < npixels <= xres-col) * - **************************************************************************************/ + ****************************************************************************/ static int stm3210e_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, size_t npixels) @@ -790,7 +790,7 @@ static int stm3210e_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *bu return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_getrun * * Description: @@ -802,7 +802,7 @@ static int stm3210e_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *bu * npixels - The number of pixels to read from the LCD * (range: 0 < npixels <= xres-col) * - **************************************************************************************/ + ****************************************************************************/ static int stm3210e_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, size_t npixels) @@ -920,13 +920,13 @@ static int stm3210e_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_getvideoinfo * * Description: * Get information about the LCD video controller configuration. * - **************************************************************************************/ + ****************************************************************************/ static int stm3210e_getvideoinfo(FAR struct lcd_dev_s *dev, FAR struct fb_videoinfo_s *vinfo) @@ -938,13 +938,13 @@ static int stm3210e_getvideoinfo(FAR struct lcd_dev_s *dev, return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_getplaneinfo * * Description: * Get information about the configuration of each LCD color plane. * - **************************************************************************************/ + ****************************************************************************/ static int stm3210e_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno, FAR struct lcd_planeinfo_s *pinfo) @@ -955,14 +955,14 @@ static int stm3210e_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_getpower * * Description: * Get the LCD panel power status (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - **************************************************************************************/ + ****************************************************************************/ static int stm3210e_getpower(struct lcd_dev_s *dev) { @@ -970,14 +970,14 @@ static int stm3210e_getpower(struct lcd_dev_s *dev) return g_lcddev.power; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_poweroff * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - **************************************************************************************/ + ****************************************************************************/ static int stm3210e_poweroff(void) { @@ -1007,14 +1007,14 @@ static int stm3210e_poweroff(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_setpower * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - **************************************************************************************/ + ****************************************************************************/ static int stm3210e_setpower(struct lcd_dev_s *dev, int power) { @@ -1084,13 +1084,13 @@ static int stm3210e_setpower(struct lcd_dev_s *dev, int power) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_getcontrast * * Description: * Get the current contrast setting (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static int stm3210e_getcontrast(struct lcd_dev_s *dev) { @@ -1098,13 +1098,13 @@ static int stm3210e_getcontrast(struct lcd_dev_s *dev) return -ENOSYS; } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_setcontrast * * Description: * Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static int stm3210e_setcontrast(struct lcd_dev_s *dev, unsigned int contrast) { @@ -1284,13 +1284,13 @@ static int stm3210e_pm_prepare(struct pm_callback_s *cb, int domain, } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_lcdinitialize * * Description: * Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static inline void stm3210e_lcdinitialize(void) { @@ -1580,7 +1580,7 @@ static inline void stm3210e_lcdinitialize(void) } } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_backlight * * Description: @@ -1588,7 +1588,7 @@ static inline void stm3210e_lcdinitialize(void) * CH1. TIM1 must then be configured to output a clock on PA8; the duty * of the clock determineds the backlight level. * - **************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM3210E_LCD_BACKLIGHT static void stm3210e_backlight(void) @@ -1746,11 +1746,11 @@ static void stm3210e_backlight(void) } #endif -/************************************************************************************** +/**************************************************************************** * Public Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -1758,7 +1758,7 @@ static void stm3210e_backlight(void) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - **************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -1797,14 +1797,14 @@ int board_lcd_initialize(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows support * for multiple LCD devices. * - **************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -1812,13 +1812,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return &g_lcddev.dev; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Unitialize the LCD support * - **************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { @@ -1826,7 +1826,7 @@ void board_lcd_uninitialize(void) stm32_deselectlcd(); } -/************************************************************************************** +/**************************************************************************** * Name: stm3210e_lcdclear * * Description: @@ -1835,7 +1835,7 @@ void board_lcd_uninitialize(void) * sequences of runs that covers the entire display can be very slow. Here the * dispaly is cleared by simply setting all GRAM memory to the specified color. * - **************************************************************************************/ + ****************************************************************************/ void stm3210e_lcdclear(uint16_t color) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_leds.c b/boards/arm/stm32/stm3210e-eval/src/stm32_leds.c index 3a42e3fb22..ca79c7ac3c 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_leds.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_leds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3210e_eval/src/stm32_leds.c + * boards/arm/stm32/stm3210e_eval/src/stm32_leds.c * * Copyright (C) 2009-2013, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -119,9 +119,9 @@ #define LED_PANIC_OFF_SETBITS ((0) << OFF_SETBITS_SHIFT) #define LED_PANIC_OFF_CLRBITS ((STM3210E_LED4) << OFF_CLRBITS_SHIFT) -/************************************************************************************** +/**************************************************************************** * Private Function Protototypes - **************************************************************************************/ + ****************************************************************************/ /* LED State Controls */ diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_lm75.c b/boards/arm/stm32/stm3210e-eval/src/stm32_lm75.c index 7f825fac62..6c66585863 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_lm75.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_lm75.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_lm75.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_lm75.c * * Copyright (C) 2011, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,11 +50,11 @@ #if defined(CONFIG_I2C) && defined(CONFIG_LM75_I2C) && defined(CONFIG_STM32_I2C1) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_lm75initialize * * Description: @@ -66,7 +66,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_lm75initialize(FAR const char *devpath) { @@ -98,7 +98,7 @@ int stm32_lm75initialize(FAR const char *devpath) return ret; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_lm75attach * * Description: @@ -111,7 +111,7 @@ int stm32_lm75initialize(FAR const char *devpath) * Returned Value: * Zero (OK) returned on success; a negated errno value is returned on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_lm75attach(xcpt_t irqhandler, void *arg) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_pm.c b/boards/arm/stm32/stm3210e-eval/src/stm32_pm.c index b42d06d127..212fcf61a2 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_pm.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_pm.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3210e-eval/src/stm32_pm.c + * boards/arm/stm32/stm3210e-eval/src/stm32_pm.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_pmbuttons.c b/boards/arm/stm32/stm3210e-eval/src/stm32_pmbuttons.c index 9a8d577938..8a4d251de9 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_pmbuttons.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_pmbuttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3210e-eval/src/stm32_pmbuttons.c + * boards/arm/stm32/stm3210e-eval/src/stm32_pmbuttons.c * * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_selectlcd.c b/boards/arm/stm32/stm3210e-eval/src/stm32_selectlcd.c index 1e160fe07d..7ac8568269 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_selectlcd.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_selectlcd.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_selectlcd.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_selectlcd.c * * Copyright (C) 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,21 +50,21 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if STM32_NGPIO_PORTS < 6 # error "Required GPIO ports not enabled" #endif -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* 512Kx16 SRAM is connected to bank2 of the FSMC interface and both 8- and 16-bit * accesses are allowed by BLN0 and BLN1 connected to BLE and BHE of SRAM, @@ -97,21 +97,21 @@ static const uint16_t g_lcdconfig[] = }; #define NLCD_CONFIG (sizeof(g_lcdconfig)/sizeof(uint16_t)) -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize to the LCD * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectlcd(void) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_selectnor.c b/boards/arm/stm32/stm3210e-eval/src/stm32_selectnor.c index 964b4b52c7..8038b4a6b9 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_selectnor.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_selectnor.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_selectnor.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_selectnor.c * * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,17 +50,17 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if STM32_NGPIO_PORTS < 6 # error "Required GPIO ports not enabled" #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Pin Usage (per schematic) * @@ -94,21 +94,21 @@ static const uint16_t g_norconfig[] = }; #define NNOR_CONFIG (sizeof(g_norconfig)/sizeof(uint16_t)) -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectnor * * Description: * Initialize to access NOR flash * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectnor(void) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_selectsram.c b/boards/arm/stm32/stm3210e-eval/src/stm32_selectsram.c index d8ed594ceb..32cce42bbd 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_selectsram.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_selectsram.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_selectsram.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_selectsram.c * * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,21 +50,21 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if STM32_NGPIO_PORTS < 6 # error "Required GPIO ports not enabled" #endif -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* 512Kx16 SRAM is connected to bank2 of the FSMC interface and both 8- and 16-bit * accesses are allowed by BLN0 and BLN1 connected to BLE and BHE of SRAM, @@ -97,21 +97,21 @@ static const uint16_t g_sramconfig[] = }; #define NSRAM_CONFIG (sizeof(g_sramconfig)/sizeof(uint16_t)) -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectsram * * Description: * Initialize to access external SRAM * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectsram(void) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_spi.c b/boards/arm/stm32/stm3210e-eval/src/stm32_spi.c index fc7776405e..69df9f961f 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_spi.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e_eval/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/stm3210e_eval/src/stm32_spi.c * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,17 +53,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the STM3210E-EVAL board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_usbdev.c b/boards/arm/stm32/stm3210e-eval/src/stm32_usbdev.c index 81b32dd04a..a0fed1ff69 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_usbdev.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_usbdev.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_usbdev.c * * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,25 +51,25 @@ #include "stm32.h" #include "stm3210e-eval.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins for the STM3210E-EVAL board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -78,7 +78,7 @@ void stm32_usbinitialize(void) stm32_configgpio(GPIO_USB_PULLUP); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbpullup * * Description: @@ -88,7 +88,7 @@ void stm32_usbinitialize(void) * Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be * NULL. * - ************************************************************************************/ + ****************************************************************************/ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) { @@ -97,7 +97,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -106,7 +106,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) { diff --git a/boards/arm/stm32/stm3210e-eval/src/stm32_usbmsc.c b/boards/arm/stm32/stm3210e-eval/src/stm32_usbmsc.c index fb2eb46da7..b97beac63e 100644 --- a/boards/arm/stm32/stm3210e-eval/src/stm32_usbmsc.c +++ b/boards/arm/stm32/stm3210e-eval/src/stm32_usbmsc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3210e-eval/src/stm32_usbmsc.c + * boards/arm/stm32/stm3210e-eval/src/stm32_usbmsc.c * * Copyright (C) 2009, 2011, 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3210e-eval/tools/oocd.sh b/boards/arm/stm32/stm3210e-eval/tools/oocd.sh index 6804207e4d..112819d7d1 100755 --- a/boards/arm/stm32/stm3210e-eval/tools/oocd.sh +++ b/boards/arm/stm32/stm3210e-eval/tools/oocd.sh @@ -45,7 +45,7 @@ fi # Local search directory and configurations -OPENOCD_SEARCHDIR="${TOPDIR}/boards/stm3210e-eval/tools" +OPENOCD_SEARCHDIR="${TOPDIR}/boards/arm/stm32/stm3210e-eval/tools" OPENOCD_WSEARCHDIR="`cygpath -w ${OPENOCD_SEARCHDIR}`" OPENOCD_PATH="/cygdrive/c/Program Files (x86)/OpenOCD/0.4.0/bin" diff --git a/boards/arm/stm32/stm3220g-eval/include/board.h b/boards/arm/stm32/stm3220g-eval/include/board.h index 0bfa784547..785bd74b38 100644 --- a/boards/arm/stm32/stm3220g-eval/include/board.h +++ b/boards/arm/stm32/stm3220g-eval/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/include/board.h * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM3220G_EVAL_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM3220G_EVAL_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM3220G_EVAL_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM3220G_EVAL_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #include "stm32_sdio.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* Four clock sources are available on STM3220G-EVAL evaluation board for @@ -441,9 +441,9 @@ #define DMAMAP_SDIO DMAMAP_SDIO_1 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -456,11 +456,11 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm3220g_lcdclear * * Description: @@ -469,7 +469,7 @@ extern "C" * sequences of runs that covers the entire display can be very slow. Here the * dispaly is cleared by simply setting all GRAM memory to the specified color. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm3220g_lcdclear(uint16_t color); @@ -481,4 +481,4 @@ void stm3220g_lcdclear(uint16_t color); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM3220G_EVAL_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM3220G_EVAL_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm3220g-eval/scripts/Make.defs b/boards/arm/stm32/stm3220g-eval/scripts/Make.defs index fb53a934fe..b70feb1a9b 100644 --- a/boards/arm/stm32/stm3220g-eval/scripts/Make.defs +++ b/boards/arm/stm32/stm3220g-eval/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm3220g-eval/scripts/Make.defs +# boards/arm/stm32/stm3220g-eval/scripts/Make.defs # # Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3220g-eval/scripts/ld.script b/boards/arm/stm32/stm3220g-eval/scripts/ld.script index d45544f967..363828c872 100644 --- a/boards/arm/stm32/stm3220g-eval/scripts/ld.script +++ b/boards/arm/stm32/stm3220g-eval/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3220g-eval/scripts/ld.script + * boards/arm/stm32/stm3220g-eval/scripts/ld.script * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3220g-eval/src/Makefile b/boards/arm/stm32/stm3220g-eval/src/Makefile index 84a78e2fd6..cdae5cd602 100644 --- a/boards/arm/stm32/stm3220g-eval/src/Makefile +++ b/boards/arm/stm32/stm3220g-eval/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm3220g-eval/src/Makefile +# boards/arm/stm32/stm3220g-eval/src/Makefile # # Copyright (C) 2012 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3220g-eval/src/stm3220g-eval.h b/boards/arm/stm32/stm3220g-eval/src/stm3220g-eval.h index 69b41b0b50..d4eb0bbd84 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm3220g-eval.h +++ b/boards/arm/stm32/stm3220g-eval/src/stm3220g-eval.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/stm3220g_eval/src/stm3220g.h +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm3220g.h * * Copyright (C) 2012, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,23 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM3220G_EVAL_SRC_STM3220G_H -#define __BOARDS_ARM_STM3220G_EVAL_SRC_STM3220G_H +#ifndef __BOARDS_ARM_STM32_STM3220G_EVAL_SRC_STM3220G_H +#define __BOARDS_ARM_STM32_STM3220G_EVAL_SRC_STM3220G_H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include #include -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ -/* Configuration ************************************************************************************/ + ****************************************************************************/ +/* Configuration ****************************************************************************/ /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -94,7 +94,7 @@ # undef HAVE_I2CTOOL #endif -/* STM3220G-EVAL GPIOs ******************************************************************************/ +/* STM3220G-EVAL GPIOs ****************************************************************************/ /* LEDs */ #define GPIO_LED1 (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\ @@ -199,57 +199,57 @@ * PD14-15: FSMC D0-D1 */ -/**************************************************************************************************** +/**************************************************************************** * Public Types - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the STM3220G-EVAL board. * - ****************************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related GPIO pins for * the STM3220G-EVAL board. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_OTGFS void weak_function stm32_usbinitialize(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: * Called at application startup time to initialize the USB host functionality. This function will * start a thread that will monitor for device connection/disconnection events. * - ****************************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_STM32_OTGFS) && defined(CONFIG_USBHOST) int stm32_usbhost_initialize(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_tsc_setup * * Description: @@ -263,85 +263,85 @@ int stm32_usbhost_initialize(void); * Zero is returned on success. Otherwise, a negated errno value is returned to indicate the * nature of the failure. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_INPUT_STMPE811 int stm32_tsc_setup(int minor); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_CAN int stm32_can_setup(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for external memory usage * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_extmemgpios(const uint32_t *gpios, int ngpios); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_extmemaddr * * Description: * Initialize adress line GPIOs for external memory access * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_extmemaddr(int naddrs); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_extmemdata * * Description: * Initialize data line GPIOs for external memory access * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_extmemdata(int ndata); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_selectsram * * Description: @@ -365,47 +365,47 @@ void stm32_extmemdata(int ndata); * word and uses the needed byte only). The NBL[1:0] are always kept low * during read transactions. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_selectsram(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_deselectsram * * Description: * Disable SRAM * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_deselectsram(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize to the LCD * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_selectlcd(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_deselectlcd * * Description: * Disable the LCD * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_deselectlcd(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM3220G_EVAL_SRC_STM3220G_H */ +#endif /* __BOARDS_ARM_STM32_STM3220G_EVAL_SRC_STM3220G_H */ diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_adc.c b/boards/arm/stm32/stm3220g-eval/src/stm32_adc.c index 9b4ed3f18e..e0fe8864ba 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_adc.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_adc.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ************************************************************/ /* Up to 3 ADC interfaces are supported */ @@ -82,9 +82,9 @@ #define ADC3_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* The STM3220G-EVAL has a 10 Kohm potentiometer RV1 connected to PF9 of * STM32F207IGH6 on the board: TIM14_CH1/FSMC_CD/ADC3_IN7 */ @@ -99,17 +99,17 @@ static const uint8_t g_chanlist[ADC3_NCHANNELS] = {7}; static const uint32_t g_pinlist[ADC3_NCHANNELS] = {GPIO_ADC3_IN7}; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_appinit.c b/boards/arm/stm32/stm3220g-eval/src/stm32_appinit.c index 4800fca070..94287f9d7e 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_appinit.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm3220g_eval/src/stm32_appinit.c + * boards/arm/stm32/stm3220g-eval/src/stm32_appinit.c * * Copyright (C) 2012, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_autoleds.c b/boards/arm/stm32/stm3220g-eval/src/stm32_autoleds.c index 0a0c1e7ceb..e98ad6ea96 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_autoleds.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3220g_eval/src/stm32_autoleds.c + * boards/arm/stm32/stm3220g-eval/src/stm32_autoleds.c * * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_boot.c b/boards/arm/stm32/stm3220g-eval/src/stm32_boot.c index 5696176e76..f14256ce2d 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_boot.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_boot.c * * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,19 +47,19 @@ #include "up_arch.h" #include "stm3220g-eval.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -67,7 +67,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_buttons.c b/boards/arm/stm32/stm3220g-eval/src/stm32_buttons.c index 3d093f8a78..d104bc5ad2 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_buttons.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3220g-eval/src/stm32_buttons.c + * boards/arm/stm32/stm3220g-eval/src/stm32_buttons.c * * Copyright (C) 2012, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -126,7 +126,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -146,7 +146,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_can.c b/boards/arm/stm32/stm3220g-eval/src/stm32_can.c index 93f4549c55..6d4093dbc5 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_can.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_can.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #if defined(CONFIG_STM32_CAN1) && defined(CONFIG_STM32_CAN2) @@ -70,17 +70,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_deselectlcd.c b/boards/arm/stm32/stm3220g-eval/src/stm32_deselectlcd.c index 5aeecd8300..acdd879415 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_deselectlcd.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_deselectlcd.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_deselectlcd.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_deselectlcd.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,33 +48,33 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectlcd * * Description: * Disable the LCD * - ************************************************************************************/ + ****************************************************************************/ void stm32_deselectlcd(void) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_deselectsram.c b/boards/arm/stm32/stm3220g-eval/src/stm32_deselectsram.c index 2382aab847..fc9468e581 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_deselectsram.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_deselectsram.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_deselectsram.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_deselectsram.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,33 +47,33 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectsram * * Description: * Disable SRAM * - ************************************************************************************/ + ****************************************************************************/ void stm32_deselectsram(void) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_extmem.c b/boards/arm/stm32/stm3220g-eval/src/stm32_extmem.c index 6265ae969b..9014f8dad5 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_extmem.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_extmem.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_extmem.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_extmem.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32.h" #include "stm3220g-eval.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_FSMC # warning "FSMC is not enabled" @@ -67,9 +67,9 @@ #define STM32_FSMC_NADDRCONFIGS 26 #define STM32_FSMC_NDATACONFIGS 16 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* GPIO configurations common to most external memories */ @@ -89,25 +89,25 @@ static const uint32_t g_dataconfig[STM32_FSMC_NDATACONFIGS] = GPIO_FSMC_D12, GPIO_FSMC_D13, GPIO_FSMC_D14, GPIO_FSMC_D15 }; -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for external memory usage * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemgpios(const uint32_t *gpios, int ngpios) { @@ -121,26 +121,26 @@ void stm32_extmemgpios(const uint32_t *gpios, int ngpios) } } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemaddr * * Description: * Initialize adress line GPIOs for external memory access * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemaddr(int naddrs) { stm32_extmemgpios(g_addressconfig, naddrs); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemdata * * Description: * Initialize data line GPIOs for external memory access * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemdata(int ndata) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_lcd.c b/boards/arm/stm32/stm3220g-eval/src/stm32_lcd.c index 343b40b6fa..76c2e3931a 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_lcd.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_lcd.c @@ -1,5 +1,5 @@ -/************************************************************************************** - * boards/stm3220g-eval/src/stm32_lcd.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_lcd.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,7 +32,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - **************************************************************************************/ + ****************************************************************************/ /* This driver supports the following LCDs on the STM324xG_EVAL board: * @@ -40,9 +40,9 @@ * AM-240320D5TOQW01H (LCD_ILI9325) */ -/************************************************************************************** +/**************************************************************************** * Included Files - **************************************************************************************/ + ****************************************************************************/ #include @@ -66,9 +66,9 @@ #if !defined(CONFIG_STM32_ILI9320_DISABLE) || !defined(CONFIG_STM32_ILI9325_DISABLE) -/************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - **************************************************************************************/ + ****************************************************************************/ /* Configuration **********************************************************************/ /* CONFIG_STM32_ILI9320_DISABLE may be defined to disabled the AM-240320L8TNQW00H * (LCD_ILI9320 or LCD_ILI9321) @@ -249,9 +249,9 @@ #define ILI9321_ID 0x9321 #define ILI9325_ID 0x9325 -/************************************************************************************** +/**************************************************************************** * Private Type Definition - **************************************************************************************/ + ****************************************************************************/ /* LCD type */ @@ -284,9 +284,9 @@ struct stm3220g_dev_s uint8_t power; /* Current power setting */ }; -/************************************************************************************** +/**************************************************************************** * Private Function Protototypes - **************************************************************************************/ + ****************************************************************************/ /* Low Level LCD access */ static void stm3220g_writereg(uint8_t regaddr, uint16_t regval); @@ -334,9 +334,9 @@ static int stm3220g_setcontrast(struct lcd_dev_s *dev, unsigned int contrast); static inline void stm3220g_lcdinitialize(void); -/************************************************************************************** +/**************************************************************************** * Private Data - **************************************************************************************/ + ****************************************************************************/ /* This is working memory allocated by the LCD driver for each LCD device * and for each color plane. This memory will hold one raster line of data. @@ -394,17 +394,17 @@ static struct stm3220g_dev_s g_lcddev = }, }; -/************************************************************************************** +/**************************************************************************** * Private Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_writereg * * Description: * Write to an LCD register * - **************************************************************************************/ + ****************************************************************************/ static void stm3220g_writereg(uint8_t regaddr, uint16_t regval) { @@ -414,13 +414,13 @@ static void stm3220g_writereg(uint8_t regaddr, uint16_t regval) LCD->value = regval; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_readreg * * Description: * Read from an LCD register * - **************************************************************************************/ + ****************************************************************************/ static uint16_t stm3220g_readreg(uint8_t regaddr) { @@ -430,26 +430,26 @@ static uint16_t stm3220g_readreg(uint8_t regaddr) return LCD->value; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_gramselect * * Description: * Setup to read or write multiple pixels to the GRAM memory * - **************************************************************************************/ + ****************************************************************************/ static inline void stm3220g_gramselect(void) { LCD->address = LCD_REG_34; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_writegram * * Description: * Write one pixel to the GRAM memory * - **************************************************************************************/ + ****************************************************************************/ static inline void stm3220g_writegram(uint16_t rgbval) { @@ -458,7 +458,7 @@ static inline void stm3220g_writegram(uint16_t rgbval) LCD->value = rgbval; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_readnosetup * * Description: @@ -468,7 +468,7 @@ static inline void stm3220g_writegram(uint16_t rgbval) * * - ILI932x: Discard first dummy read; no shift in the return data * - **************************************************************************************/ + ****************************************************************************/ static void stm3220g_readnosetup(FAR uint16_t *accum) { @@ -477,7 +477,7 @@ static void stm3220g_readnosetup(FAR uint16_t *accum) *accum = LCD->value; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_readnoshift * * Description: @@ -486,7 +486,7 @@ static void stm3220g_readnosetup(FAR uint16_t *accum) * * - ILI932x: Unknown -- assuming colors are in the color order * - **************************************************************************************/ + ****************************************************************************/ static uint16_t stm3220g_readnoshift(FAR uint16_t *accum) { @@ -495,14 +495,14 @@ static uint16_t stm3220g_readnoshift(FAR uint16_t *accum) return LCD->value; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_setcursor * * Description: * Set the cursor position. In landscape mode, the "column" is actually the physical * Y position and the "row" is the physical X position. * - **************************************************************************************/ + ****************************************************************************/ static void stm3220g_setcursor(uint16_t col, uint16_t row) { @@ -510,7 +510,7 @@ static void stm3220g_setcursor(uint16_t col, uint16_t row) stm3220g_writereg(LCD_REG_33, col); /* GRAM vertical address */ } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_dumprun * * Description: @@ -519,7 +519,7 @@ static void stm3220g_setcursor(uint16_t col, uint16_t row) * run - The buffer in containing the run read to be dumped * npixels - The number of pixels to dump * - **************************************************************************************/ + ****************************************************************************/ #if 0 /* Sometimes useful */ static void stm3220g_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npixels) @@ -541,7 +541,7 @@ static void stm3220g_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npix } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_putrun * * Description: @@ -553,7 +553,7 @@ static void stm3220g_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npix * npixels - The number of pixels to write to the LCD * (range: 0 < npixels <= xres-col) * - **************************************************************************************/ + ****************************************************************************/ static int stm3220g_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, size_t npixels) @@ -656,7 +656,7 @@ static int stm3220g_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *bu return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_getrun * * Description: @@ -668,7 +668,7 @@ static int stm3220g_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *bu * npixels - The number of pixels to read from the LCD * (range: 0 < npixels <= xres-col) * - **************************************************************************************/ + ****************************************************************************/ static int stm3220g_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, size_t npixels) @@ -795,13 +795,13 @@ static int stm3220g_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_getvideoinfo * * Description: * Get information about the LCD video controller configuration. * - **************************************************************************************/ + ****************************************************************************/ static int stm3220g_getvideoinfo(FAR struct lcd_dev_s *dev, FAR struct fb_videoinfo_s *vinfo) @@ -813,13 +813,13 @@ static int stm3220g_getvideoinfo(FAR struct lcd_dev_s *dev, return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_getplaneinfo * * Description: * Get information about the configuration of each LCD color plane. * - **************************************************************************************/ + ****************************************************************************/ static int stm3220g_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno, FAR struct lcd_planeinfo_s *pinfo) @@ -830,14 +830,14 @@ static int stm3220g_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_getpower * * Description: * Get the LCD panel power status (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - **************************************************************************************/ + ****************************************************************************/ static int stm3220g_getpower(struct lcd_dev_s *dev) { @@ -845,14 +845,14 @@ static int stm3220g_getpower(struct lcd_dev_s *dev) return g_lcddev.power; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_poweroff * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - **************************************************************************************/ + ****************************************************************************/ static int stm3220g_poweroff(void) { @@ -866,14 +866,14 @@ static int stm3220g_poweroff(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_setpower * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - **************************************************************************************/ + ****************************************************************************/ static int stm3220g_setpower(struct lcd_dev_s *dev, int power) { @@ -901,13 +901,13 @@ static int stm3220g_setpower(struct lcd_dev_s *dev, int power) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_getcontrast * * Description: * Get the current contrast setting (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static int stm3220g_getcontrast(struct lcd_dev_s *dev) { @@ -915,13 +915,13 @@ static int stm3220g_getcontrast(struct lcd_dev_s *dev) return -ENOSYS; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_setcontrast * * Description: * Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static int stm3220g_setcontrast(struct lcd_dev_s *dev, unsigned int contrast) { @@ -929,13 +929,13 @@ static int stm3220g_setcontrast(struct lcd_dev_s *dev, unsigned int contrast) return -ENOSYS; } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_lcdinitialize * * Description: * Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static inline void stm3220g_lcdinitialize(void) { @@ -1095,11 +1095,11 @@ static inline void stm3220g_lcdinitialize(void) } } -/************************************************************************************** +/**************************************************************************** * Public Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -1107,7 +1107,7 @@ static inline void stm3220g_lcdinitialize(void) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - **************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -1132,14 +1132,14 @@ int board_lcd_initialize(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows support * for multiple LCD devices. * - **************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -1147,13 +1147,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return &g_lcddev.dev; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Unitialize the LCD support * - **************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { @@ -1161,7 +1161,7 @@ void board_lcd_uninitialize(void) stm32_deselectlcd(); } -/************************************************************************************** +/**************************************************************************** * Name: stm3220g_lcdclear * * Description: @@ -1170,7 +1170,7 @@ void board_lcd_uninitialize(void) * sequences of runs that covers the entire display can be very slow. Here the * display is cleared by simply setting all GRAM memory to the specified color. * - **************************************************************************************/ + ****************************************************************************/ void stm3220g_lcdclear(uint16_t color) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_pwm.c b/boards/arm/stm32/stm3220g-eval/src/stm32_pwm.c index 646dcd29d1..d1bf7e9817 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_pwm.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_pwm.c * * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32_pwm.h" #include "stm3220g-eval.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ /* PWM * @@ -65,17 +65,17 @@ #ifdef CONFIG_PWM -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_selectlcd.c b/boards/arm/stm32/stm3220g-eval/src/stm32_selectlcd.c index 9d80530370..eb4db7a595 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_selectlcd.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_selectlcd.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_selectlcd.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_selectlcd.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if STM32_NGPIO_PORTS < 6 # error "Required GPIO ports not enabled" @@ -64,13 +64,13 @@ #define LCD_NADDRLINES 1 #define LCD_NDATALINES 16 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Pin Usage (per schematic) * SRAM LCD @@ -109,21 +109,21 @@ static const uint32_t g_lcdconfig[] = }; #define NLCD_CONFIG (sizeof(g_lcdconfig)/sizeof(uint32_t)) -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize to the LCD * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectlcd(void) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_selectsram.c b/boards/arm/stm32/stm3220g-eval/src/stm32_selectsram.c index de458ac0f4..7ec92f60eb 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_selectsram.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_selectsram.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_selectsram.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_selectsram.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if STM32_NGPIO_PORTS < 6 # error "Required GPIO ports not enabled" @@ -72,13 +72,13 @@ #define SRAM_NADDRLINES 21 #define SRAM_NDATALINES 16 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* GPIOs Configuration ************************************************************** * PD0 <-> FSMC_D2 PE0 <-> FSMC_NBL0 PF0 <-> FSMC_A0 PG0 <-> FSMC_A10 * PD1 <-> FSMC_D3 PE1 <-> FSMC_NBL1 PF1 <-> FSMC_A1 PG1 <-> FSMC_A11 @@ -105,15 +105,15 @@ static const uint32_t g_sramconfig[] = }; #define NSRAM_CONFIG (sizeof(g_sramconfig)/sizeof(uint32_t)) -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectsram * * Description: @@ -137,7 +137,7 @@ static const uint32_t g_sramconfig[] = * word and uses the needed byte only). The NBL[1:0] are always kept low * during read transactions. * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectsram(void) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_spi.c b/boards/arm/stm32/stm3220g-eval/src/stm32_spi.c index af0efe32a3..3e0a71dcbc 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_spi.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g_eval/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_spi.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,17 +53,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the STM3220G-EVAL board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_stmpe811.c b/boards/arm/stm32/stm3220g-eval/src/stm32_stmpe811.c index b5bf02d193..3ba5a6bcb0 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_stmpe811.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_stmpe811.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_stmpe811.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_stmpe811.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_usb.c b/boards/arm/stm32/stm3220g-eval/src/stm32_usb.c index b8710cdf04..9df417c1fe 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_usb.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/stm3220g-eval/src/stm32_usb.c * * Copyright (C) 2012-2013, 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,9 +59,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -82,25 +82,25 @@ # endif #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -131,18 +131,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM3220G-EVAL board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -157,7 +157,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -165,7 +165,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -219,7 +219,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -243,7 +243,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -265,7 +265,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -280,7 +280,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -289,7 +289,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -298,7 +298,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/stm3220g-eval/src/stm32_userleds.c b/boards/arm/stm32/stm3220g-eval/src/stm32_userleds.c index 0854f5cfdc..2f9d4874b9 100644 --- a/boards/arm/stm32/stm3220g-eval/src/stm32_userleds.c +++ b/boards/arm/stm32/stm3220g-eval/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3220g_eval/src/stm32_leds.c + * boards/arm/stm32/stm3220g-eval/src/stm32_leds.c * * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3220g-eval/tools/oocd.sh b/boards/arm/stm32/stm3220g-eval/tools/oocd.sh index 6804207e4d..112819d7d1 100755 --- a/boards/arm/stm32/stm3220g-eval/tools/oocd.sh +++ b/boards/arm/stm32/stm3220g-eval/tools/oocd.sh @@ -45,7 +45,7 @@ fi # Local search directory and configurations -OPENOCD_SEARCHDIR="${TOPDIR}/boards/stm3210e-eval/tools" +OPENOCD_SEARCHDIR="${TOPDIR}/boards/arm/stm32/stm3210e-eval/tools" OPENOCD_WSEARCHDIR="`cygpath -w ${OPENOCD_SEARCHDIR}`" OPENOCD_PATH="/cygdrive/c/Program Files (x86)/OpenOCD/0.4.0/bin" diff --git a/boards/arm/stm32/stm3240g-eval/README.txt b/boards/arm/stm32/stm3240g-eval/README.txt index 07e8c1a827..88b40298d4 100644 --- a/boards/arm/stm32/stm3240g-eval/README.txt +++ b/boards/arm/stm32/stm3240g-eval/README.txt @@ -193,7 +193,7 @@ the following lines in each Make.defs file: Configuration Changes --------------------- -Below are all of the configuration changes that I had to make to boards/stm3240g-eval/nsh2 +Below are all of the configuration changes that I had to make to boards/arm/stm32/stm3240g-eval/nsh2 in order to successfully build NuttX using the Atollic toolchain WITH FPU support: -CONFIG_ARCH_FPU=n : Enable FPU support diff --git a/boards/arm/stm32/stm3240g-eval/include/board.h b/boards/arm/stm32/stm3240g-eval/include/board.h index 19ee8a5afa..2be423e518 100644 --- a/boards/arm/stm32/stm3240g-eval/include/board.h +++ b/boards/arm/stm32/stm3240g-eval/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/include/board.h * include/arch/board/board.h * * Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved. @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __ARCH_BOARD_BOARD_H -#define __ARCH_BOARD_BOARD_H +#ifndef __BOARD_ARM_STM32_STM3240G_EVAL_INCLUDE_BOARD_H +#define __BOARD_ARM_STM32_STM3240G_EVAL_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,9 +53,9 @@ * files are not available. */ -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* Four clock sources are available on STM3240G-EVAL evaluation board for @@ -470,9 +470,9 @@ #define DMAMAP_SDIO DMAMAP_SDIO_1 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -485,11 +485,11 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm3240g_lcdclear * * Description: @@ -498,7 +498,7 @@ extern "C" * sequences of runs that covers the entire display can be very slow. Here the * dispaly is cleared by simply setting all GRAM memory to the specified color. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm3240g_lcdclear(uint16_t color); @@ -510,4 +510,4 @@ void stm3240g_lcdclear(uint16_t color); #endif #endif /* __ASSEMBLY__ */ -#endif /* __ARCH_BOARD_BOARD_H */ +#endif /* __BOARD_ARM_STM32_STM3240G_EVAL_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm3240g-eval/kernel/Makefile b/boards/arm/stm32/stm3240g-eval/kernel/Makefile index 4bbed04245..85ff502dc3 100644 --- a/boards/arm/stm32/stm3240g-eval/kernel/Makefile +++ b/boards/arm/stm32/stm3240g-eval/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm3240g-eval/kernel/Makefile +# boards/arm/stm32/stm3240g-eval/kernel/Makefile # # Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3240g-eval/kernel/stm32_userspace.c b/boards/arm/stm32/stm3240g-eval/kernel/stm32_userspace.c index 40f94d771e..778c29c047 100644 --- a/boards/arm/stm32/stm3240g-eval/kernel/stm32_userspace.c +++ b/boards/arm/stm32/stm3240g-eval/kernel/stm32_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3240g-eval/kernel/stm32_userspace.c + * boards/arm/stm32/stm3240g-eval/kernel/stm32_userspace.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3240g-eval/scripts/Make.defs b/boards/arm/stm32/stm3240g-eval/scripts/Make.defs index 4fcbdbdd1a..7c159e67a2 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/Make.defs +++ b/boards/arm/stm32/stm3240g-eval/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm3240g-eval/scripts/Make.defs +# boards/arm/stm32/stm3240g-eval/scripts/Make.defs # # Copyright (C) 2011-2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld b/boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld index e0f4ec9300..872a21dd19 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld +++ b/boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3240g-eval/scripts/kernel-space.ld + * boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3240g-eval/scripts/ld.script b/boards/arm/stm32/stm3240g-eval/scripts/ld.script index a99398e54e..37a88ee1c8 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/ld.script +++ b/boards/arm/stm32/stm3240g-eval/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3240g-eval/scripts/ld.script + * boards/arm/stm32/stm3240g-eval/scripts/ld.script * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3240g-eval/scripts/memory.ld b/boards/arm/stm32/stm3240g-eval/scripts/memory.ld index 5bed70d601..b8b368fd4b 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/memory.ld +++ b/boards/arm/stm32/stm3240g-eval/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3240-eval/scripts/memory.ld + * boards/arm/stm32/stm3240-eval/scripts/memory.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -47,7 +47,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 256Kb of * FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/stm3240g-eval/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32/stm3240g-eval/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32/stm3240g-eval/scripts/user-space.ld b/boards/arm/stm32/stm3240g-eval/scripts/user-space.ld index feff04193f..a798edd400 100644 --- a/boards/arm/stm32/stm3240g-eval/scripts/user-space.ld +++ b/boards/arm/stm32/stm3240g-eval/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3240g-eval/scripts/user-space.ld + * boards/arm/stm32/stm3240g-eval/scripts/user-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3240g-eval/src/Makefile b/boards/arm/stm32/stm3240g-eval/src/Makefile index 3ed310c3a0..5a09806ab0 100644 --- a/boards/arm/stm32/stm3240g-eval/src/Makefile +++ b/boards/arm/stm32/stm3240g-eval/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm3240g-eval/src/Makefile +# boards/arm/stm32/stm3240g-eval/src/Makefile # # Copyright (C) 2011-2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3240g-eval/src/stm3240g-eval.h b/boards/arm/stm32/stm3240g-eval/src/stm3240g-eval.h index d3868f348f..2ff47677ed 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm3240g-eval.h +++ b/boards/arm/stm32/stm3240g-eval/src/stm3240g-eval.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/stm3240g_eval/src/stm3240g_eval.h +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm3240g_eval.h * * Copyright (C) 2011-2013, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,24 +31,24 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM3240G_EVAL_SRC_STM3240G_EVAL_H -#define __BOARDS_ARM_STM3240G_EVAL_SRC_STM3240G_EVAL_H +#ifndef __BOARDS_ARM_STM32_STM3240G_EVAL_SRC_STM3240G_EVAL_H +#define __BOARDS_ARM_STM32_STM3240G_EVAL_SRC_STM3240G_EVAL_H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include #include #include -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ -/* Configuration ************************************************************************************/ + ****************************************************************************/ +/* Configuration ****************************************************************************/ /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -95,7 +95,7 @@ # undef HAVE_I2CTOOL #endif -/* STM3240G-EVAL GPIOs ******************************************************************************/ +/* STM3240G-EVAL GPIOs ****************************************************************************/ /* LEDs */ #define GPIO_LED1 (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\ @@ -200,21 +200,21 @@ * PD14-15: FSMC D0-D1 */ -/**************************************************************************************************** +/**************************************************************************** * Public Types - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_bringup * * Description: @@ -226,47 +226,47 @@ * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ****************************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the STM3240G-EVAL board. * - ****************************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related GPIO pins for * the STM3240G-EVAL board. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_OTGFS void weak_function stm32_usbinitialize(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: * Called at application startup time to initialize the USB host functionality. This function will * start a thread that will monitor for device connection/disconnection events. * - ****************************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_STM32_OTGFS) && defined(CONFIG_USBHOST) int stm32_usbhost_initialize(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_tsc_setup * * Description: @@ -280,97 +280,97 @@ int stm32_usbhost_initialize(void); * Zero is returned on success. Otherwise, a negated errno value is returned to indicate the * nature of the failure. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_INPUT_STMPE811 int stm32_tsc_setup(int minor); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_led_initialize * * Description: * Initialize LEDs * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS void stm32_led_initialize(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_CAN int stm32_can_setup(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for external memory usage * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_extmemgpios(const uint32_t *gpios, int ngpios); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_extmemaddr * * Description: * Initialize adress line GPIOs for external memory access * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_extmemaddr(int naddrs); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_extmemdata * * Description: * Initialize data line GPIOs for external memory access * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_extmemdata(int ndata); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_selectsram * * Description: @@ -394,47 +394,47 @@ void stm32_extmemdata(int ndata); * word and uses the needed byte only). The NBL[1:0] are always kept low * during read transactions. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_selectsram(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_deselectsram * * Description: * Disable SRAM * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_deselectsram(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize to the LCD * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_selectlcd(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_deselectlcd * * Description: * Disable the LCD * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FSMC void stm32_deselectlcd(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM3240G_EVAL_SRC_STM3240G_EVAL_H */ +#endif /* __BOARDS_ARM_STM32_STM3240G_EVAL_SRC_STM3240G_EVAL_H */ diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_adc.c b/boards/arm/stm32/stm3240g-eval/src/stm32_adc.c index a2149642a0..4edfa1fcf0 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_adc.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_adc.c * * Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ************************************************************/ /* Up to 3 ADC interfaces are supported */ @@ -82,9 +82,9 @@ #define ADC3_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* The STM3240G-EVAL has a 10 Kohm potentiometer RV1 connected to PF9 of * STM32F407IGH6 on the board: TIM14_CH1/FSMC_CD/ADC3_IN7 */ @@ -99,17 +99,17 @@ static const uint8_t g_chanlist[ADC3_NCHANNELS] = {7}; static const uint32_t g_pinlist[ADC3_NCHANNELS] = {GPIO_ADC3_IN7}; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_appinit.c b/boards/arm/stm32/stm3240g-eval/src/stm32_appinit.c index 9bf4ce8277..dd0edd7b5f 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_appinit.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm3240g-eval/src/stm32_appinit.c + * boards/arm/stm32/stm3240g-eval/src/stm32_appinit.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_autoleds.c b/boards/arm/stm32/stm3240g-eval/src/stm32_autoleds.c index e0d8fec15c..97f3fe96b6 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_autoleds.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3240g_eval/src/stm32_autoleds.c + * boards/arm/stm32/stm3240g-eval/src/stm32_autoleds.c * * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_boot.c b/boards/arm/stm32/stm3240g-eval/src/stm32_boot.c index 496ea49319..0b544b8229 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_boot.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_boot.c * * Copyright (C) 2011-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -45,15 +45,15 @@ #include "stm3240g-eval.h" -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -61,7 +61,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_bringup.c b/boards/arm/stm32/stm3240g-eval/src/stm32_bringup.c index d4dee1e246..ecb70108f7 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_bringup.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm3240g_eval/src/stm32_bringup.c + * boards/arm/stm32/stm3240g-eval/src/stm32_bringup.c * * Copyright (C) 2012, 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_buttons.c b/boards/arm/stm32/stm3240g-eval/src/stm32_buttons.c index 25e568b3b5..fd636e90dc 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_buttons.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3240g-eval/src/stm32_buttons.c + * boards/arm/stm32/stm3240g-eval/src/stm32_buttons.c * * Copyright (C) 2011, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -134,7 +134,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -154,7 +154,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_can.c b/boards/arm/stm32/stm3240g-eval/src/stm32_can.c index 15ef0a7d78..5517806ffc 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_can.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_can.c * * Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #if defined(CONFIG_STM32_CAN1) && defined(CONFIG_STM32_CAN2) @@ -70,17 +70,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_deselectlcd.c b/boards/arm/stm32/stm3240g-eval/src/stm32_deselectlcd.c index 1781379d56..6a48b0d545 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_deselectlcd.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_deselectlcd.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_deselectlcd.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_deselectlcd.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,33 +48,33 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectlcd * * Description: * Disable the LCD * - ************************************************************************************/ + ****************************************************************************/ void stm32_deselectlcd(void) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_deselectsram.c b/boards/arm/stm32/stm3240g-eval/src/stm32_deselectsram.c index 821635a5ef..c1b4320a5f 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_deselectsram.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_deselectsram.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/src/stm32_deselectsram.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_deselectsram.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,33 +47,33 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_deselectsram * * Description: * Disable SRAM * - ************************************************************************************/ + ****************************************************************************/ void stm32_deselectsram(void) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_extmem.c b/boards/arm/stm32/stm3240g-eval/src/stm32_extmem.c index c2138377f6..f407149b5e 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_extmem.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_extmem.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/src/stm32_extmem.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_extmem.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32.h" #include "stm3240g-eval.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_FSMC # warning "FSMC is not enabled" @@ -67,9 +67,9 @@ #define STM32_FSMC_NADDRCONFIGS 26 #define STM32_FSMC_NDATACONFIGS 16 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* GPIO configurations common to most external memories */ @@ -89,25 +89,25 @@ static const uint32_t g_dataconfig[STM32_FSMC_NDATACONFIGS] = GPIO_FSMC_D12, GPIO_FSMC_D13, GPIO_FSMC_D14, GPIO_FSMC_D15 }; -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for external memory usage * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemgpios(const uint32_t *gpios, int ngpios) { @@ -121,26 +121,26 @@ void stm32_extmemgpios(const uint32_t *gpios, int ngpios) } } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemaddr * * Description: * Initialize adress line GPIOs for external memory access * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemaddr(int naddrs) { stm32_extmemgpios(g_addressconfig, naddrs); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemdata * * Description: * Initialize data line GPIOs for external memory access * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemdata(int ndata) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_lcd.c b/boards/arm/stm32/stm3240g-eval/src/stm32_lcd.c index aa7ed72c69..0bda6a712d 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_lcd.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_lcd.c @@ -1,5 +1,5 @@ -/************************************************************************************** - * boards/stm3240g-eval/src/stm32_lcd.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_lcd.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,7 +32,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - **************************************************************************************/ + ****************************************************************************/ /* This driver supports the following LCDs on the STM324xG_EVAL board: * @@ -40,9 +40,9 @@ * AM-240320D5TOQW01H (LCD_ILI9325) */ -/************************************************************************************** +/**************************************************************************** * Included Files - **************************************************************************************/ + ****************************************************************************/ #include @@ -66,9 +66,9 @@ #if !defined(CONFIG_STM3240G_ILI9320_DISABLE) || !defined(CONFIG_STM3240G_ILI9325_DISABLE) -/************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - **************************************************************************************/ + ****************************************************************************/ /* Configuration **********************************************************************/ /* CONFIG_STM3240G_ILI9320_DISABLE may be defined to disabled the AM-240320L8TNQW00H * (LCD_ILI9320 or LCD_ILI9321) @@ -249,9 +249,9 @@ #define ILI9321_ID 0x9321 #define ILI9325_ID 0x9325 -/************************************************************************************** +/**************************************************************************** * Private Type Definition - **************************************************************************************/ + ****************************************************************************/ /* LCD type */ @@ -284,9 +284,9 @@ struct stm3240g_dev_s uint8_t power; /* Current power setting */ }; -/************************************************************************************** +/**************************************************************************** * Private Function Protototypes - **************************************************************************************/ + ****************************************************************************/ /* Low Level LCD access */ static void stm3240g_writereg(uint8_t regaddr, uint16_t regval); @@ -334,9 +334,9 @@ static int stm3240g_setcontrast(struct lcd_dev_s *dev, unsigned int contrast); static inline void stm3240g_lcdinitialize(void); -/************************************************************************************** +/**************************************************************************** * Private Data - **************************************************************************************/ + ****************************************************************************/ /* This is working memory allocated by the LCD driver for each LCD device * and for each color plane. This memory will hold one raster line of data. @@ -394,17 +394,17 @@ static struct stm3240g_dev_s g_lcddev = }, }; -/************************************************************************************** +/**************************************************************************** * Private Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_writereg * * Description: * Write to an LCD register * - **************************************************************************************/ + ****************************************************************************/ static void stm3240g_writereg(uint8_t regaddr, uint16_t regval) { @@ -414,13 +414,13 @@ static void stm3240g_writereg(uint8_t regaddr, uint16_t regval) LCD->value = regval; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_readreg * * Description: * Read from an LCD register * - **************************************************************************************/ + ****************************************************************************/ static uint16_t stm3240g_readreg(uint8_t regaddr) { @@ -430,26 +430,26 @@ static uint16_t stm3240g_readreg(uint8_t regaddr) return LCD->value; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_gramselect * * Description: * Setup to read or write multiple pixels to the GRAM memory * - **************************************************************************************/ + ****************************************************************************/ static inline void stm3240g_gramselect(void) { LCD->address = LCD_REG_34; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_writegram * * Description: * Write one pixel to the GRAM memory * - **************************************************************************************/ + ****************************************************************************/ static inline void stm3240g_writegram(uint16_t rgbval) { @@ -458,7 +458,7 @@ static inline void stm3240g_writegram(uint16_t rgbval) LCD->value = rgbval; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_readnosetup * * Description: @@ -468,7 +468,7 @@ static inline void stm3240g_writegram(uint16_t rgbval) * * - ILI932x: Discard first dummy read; no shift in the return data * - **************************************************************************************/ + ****************************************************************************/ static void stm3240g_readnosetup(FAR uint16_t *accum) { @@ -477,7 +477,7 @@ static void stm3240g_readnosetup(FAR uint16_t *accum) *accum = LCD->value; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_readnoshift * * Description: @@ -486,7 +486,7 @@ static void stm3240g_readnosetup(FAR uint16_t *accum) * * - ILI932x: Unknown -- assuming colors are in the color order * - **************************************************************************************/ + ****************************************************************************/ static uint16_t stm3240g_readnoshift(FAR uint16_t *accum) { @@ -495,14 +495,14 @@ static uint16_t stm3240g_readnoshift(FAR uint16_t *accum) return LCD->value; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_setcursor * * Description: * Set the cursor position. In landscape mode, the "column" is actually the physical * Y position and the "row" is the physical X position. * - **************************************************************************************/ + ****************************************************************************/ static void stm3240g_setcursor(uint16_t col, uint16_t row) { @@ -510,7 +510,7 @@ static void stm3240g_setcursor(uint16_t col, uint16_t row) stm3240g_writereg(LCD_REG_33, col); /* GRAM vertical address */ } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_dumprun * * Description: @@ -519,7 +519,7 @@ static void stm3240g_setcursor(uint16_t col, uint16_t row) * run - The buffer in containing the run read to be dumped * npixels - The number of pixels to dump * - **************************************************************************************/ + ****************************************************************************/ #if 0 /* Sometimes useful */ static void stm3240g_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npixels) @@ -540,7 +540,7 @@ static void stm3240g_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npix } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_putrun * * Description: @@ -552,7 +552,7 @@ static void stm3240g_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npix * npixels - The number of pixels to write to the LCD * (range: 0 < npixels <= xres-col) * - **************************************************************************************/ + ****************************************************************************/ static int stm3240g_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, size_t npixels) @@ -655,7 +655,7 @@ static int stm3240g_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *bu return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_getrun * * Description: @@ -667,7 +667,7 @@ static int stm3240g_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *bu * npixels - The number of pixels to read from the LCD * (range: 0 < npixels <= xres-col) * - **************************************************************************************/ + ****************************************************************************/ static int stm3240g_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, size_t npixels) @@ -794,13 +794,13 @@ static int stm3240g_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t *buffer, return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_getvideoinfo * * Description: * Get information about the LCD video controller configuration. * - **************************************************************************************/ + ****************************************************************************/ static int stm3240g_getvideoinfo(FAR struct lcd_dev_s *dev, FAR struct fb_videoinfo_s *vinfo) @@ -812,13 +812,13 @@ static int stm3240g_getvideoinfo(FAR struct lcd_dev_s *dev, return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_getplaneinfo * * Description: * Get information about the configuration of each LCD color plane. * - **************************************************************************************/ + ****************************************************************************/ static int stm3240g_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno, FAR struct lcd_planeinfo_s *pinfo) @@ -829,14 +829,14 @@ static int stm3240g_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_getpower * * Description: * Get the LCD panel power status (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - **************************************************************************************/ + ****************************************************************************/ static int stm3240g_getpower(struct lcd_dev_s *dev) { @@ -844,14 +844,14 @@ static int stm3240g_getpower(struct lcd_dev_s *dev) return g_lcddev.power; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_poweroff * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - **************************************************************************************/ + ****************************************************************************/ static int stm3240g_poweroff(void) { @@ -865,14 +865,14 @@ static int stm3240g_poweroff(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_setpower * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). On * backlit LCDs, this setting may correspond to the backlight setting. * - **************************************************************************************/ + ****************************************************************************/ static int stm3240g_setpower(struct lcd_dev_s *dev, int power) { @@ -900,13 +900,13 @@ static int stm3240g_setpower(struct lcd_dev_s *dev, int power) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_getcontrast * * Description: * Get the current contrast setting (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static int stm3240g_getcontrast(struct lcd_dev_s *dev) { @@ -914,13 +914,13 @@ static int stm3240g_getcontrast(struct lcd_dev_s *dev) return -ENOSYS; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_setcontrast * * Description: * Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static int stm3240g_setcontrast(struct lcd_dev_s *dev, unsigned int contrast) { @@ -928,13 +928,13 @@ static int stm3240g_setcontrast(struct lcd_dev_s *dev, unsigned int contrast) return -ENOSYS; } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_lcdinitialize * * Description: * Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST). * - **************************************************************************************/ + ****************************************************************************/ static inline void stm3240g_lcdinitialize(void) { @@ -1094,11 +1094,11 @@ static inline void stm3240g_lcdinitialize(void) } } -/************************************************************************************** +/**************************************************************************** * Public Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -1106,7 +1106,7 @@ static inline void stm3240g_lcdinitialize(void) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - **************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -1131,14 +1131,14 @@ int board_lcd_initialize(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows support * for multiple LCD devices. * - **************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -1146,13 +1146,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return &g_lcddev.dev; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Unitialize the LCD support * - **************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { @@ -1160,7 +1160,7 @@ void board_lcd_uninitialize(void) stm32_deselectlcd(); } -/************************************************************************************** +/**************************************************************************** * Name: stm3240g_lcdclear * * Description: @@ -1169,7 +1169,7 @@ void board_lcd_uninitialize(void) * sequences of runs that covers the entire display can be very slow. Here the * display is cleared by simply setting all GRAM memory to the specified color. * - **************************************************************************************/ + ****************************************************************************/ void stm3240g_lcdclear(uint16_t color) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_ostest.c b/boards/arm/stm32/stm3240g-eval/src/stm32_ostest.c index 2087a9ec80..ae9e801dea 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_ostest.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_ostest.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/src/stm32_ostest.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_ostest.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include "up_internal.h" #include "stm3240g-eval.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #undef HAVE_FPU @@ -68,19 +68,19 @@ # error "CONFIG_TESTING_OSTEST_FPUSIZE has the wrong size" #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static uint32_t g_saveregs[XCPTCONTEXT_REGS]; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /* Given an array of size CONFIG_TESTING_OSTEST_FPUSIZE, this function will return * the current FPU registers. */ diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_pwm.c b/boards/arm/stm32/stm3240g-eval/src/stm32_pwm.c index 7b02dc4161..cf2b653132 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_pwm.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_pwm.c * * Copyright (C) 2011, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32_pwm.h" #include "stm3240g-eval.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ /* PWM * @@ -65,17 +65,17 @@ #ifdef CONFIG_PWM -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_selectlcd.c b/boards/arm/stm32/stm3240g-eval/src/stm32_selectlcd.c index c7dab58bcb..498596d313 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_selectlcd.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_selectlcd.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3210e-eval/src/stm32_selectlcd.c +/**************************************************************************** + * boards/arm/stm32/stm3210e-eval/src/stm32_selectlcd.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if STM32_NGPIO_PORTS < 6 # error "Required GPIO ports not enabled" @@ -64,13 +64,13 @@ #define LCD_NADDRLINES 1 #define LCD_NDATALINES 16 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Pin Usage (per schematic) * SRAM LCD @@ -109,21 +109,21 @@ static const uint32_t g_lcdconfig[] = }; #define NLCD_CONFIG (sizeof(g_lcdconfig)/sizeof(uint32_t)) -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize to the LCD * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectlcd(void) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_selectsram.c b/boards/arm/stm32/stm3240g-eval/src/stm32_selectsram.c index 36336fff2c..20ca9a9a8b 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_selectsram.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_selectsram.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/src/stm32_selectsram.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_selectsram.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #ifdef CONFIG_STM32_FSMC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if STM32_NGPIO_PORTS < 6 # error "Required GPIO ports not enabled" @@ -72,13 +72,13 @@ #define SRAM_NADDRLINES 21 #define SRAM_NDATALINES 16 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* GPIOs Configuration ************************************************************** * PD0 <-> FSMC_D2 PE0 <-> FSMC_NBL0 PF0 <-> FSMC_A0 PG0 <-> FSMC_A10 * PD1 <-> FSMC_D3 PE1 <-> FSMC_NBL1 PF1 <-> FSMC_A1 PG1 <-> FSMC_A11 @@ -105,15 +105,15 @@ static const uint32_t g_sramconfig[] = }; #define NSRAM_CONFIG (sizeof(g_sramconfig)/sizeof(uint32_t)) -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectsram * * Description: @@ -137,7 +137,7 @@ static const uint32_t g_sramconfig[] = * word and uses the needed byte only). The NBL[1:0] are always kept low * during read transactions. * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectsram(void) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_spi.c b/boards/arm/stm32/stm3240g-eval/src/stm32_spi.c index 7ba08a12bb..d9c368b250 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_spi.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g_eval/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_spi.c * * Copyright (C) 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,17 +53,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the STM3240G-EVAL board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_stmpe811.c b/boards/arm/stm32/stm3240g-eval/src/stm32_stmpe811.c index 730b172adf..de1a2fc498 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_stmpe811.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_stmpe811.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/src/stm32_stmpe811.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_stmpe811.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_usb.c b/boards/arm/stm32/stm3240g-eval/src/stm32_usb.c index 63d7f25fc8..1b6bf72669 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_usb.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3240g-eval/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/stm3240g-eval/src/stm32_usbdev.c * * Copyright (C) 2012-2013, 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,9 +59,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -82,25 +82,25 @@ # endif #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -131,18 +131,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM3240G-EVAL board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -157,7 +157,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -165,7 +165,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -219,7 +219,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -243,7 +243,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -265,7 +265,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -280,7 +280,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -289,7 +289,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -298,7 +298,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/stm3240g-eval/src/stm32_userleds.c b/boards/arm/stm32/stm3240g-eval/src/stm32_userleds.c index a7e508e73c..57fcdf3779 100644 --- a/boards/arm/stm32/stm3240g-eval/src/stm32_userleds.c +++ b/boards/arm/stm32/stm3240g-eval/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm3240g_eval/src/stm32_userleds.c + * boards/arm/stm32/stm3240g-eval/src/stm32_userleds.c * * Copyright (C) 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32_tiny/include/board.h b/boards/arm/stm32/stm32_tiny/include/board.h index b41a6bcab1..7d44714764 100644 --- a/boards/arm/stm32/stm32_tiny/include/board.h +++ b/boards/arm/stm32/stm32_tiny/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32_tiny/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm32_tiny/include/board.h * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __ARCH_BOARD_BOARD_H -#define __ARCH_BOARD_BOARD_H +#ifndef __BOARD_ARM_STM32_STM32_TINY_INCLUDE_BOARD_H +#define __BOARD_ARM_STM32_STM32_TINY_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -49,11 +49,11 @@ #include "stm32_sdio.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ /* On-board crystal frequency is 8MHz (HSE) */ @@ -149,7 +149,7 @@ # define SDIO_SDXFR_CLKDIV (3 << SDIO_CLKCR_CLKDIV_SHIFT) #endif -/* LED definitions ******************************************************************/ +/* LED definitions **********************************************************/ /* The board has only one controllable LED */ #define LED_STARTED 0 /* No LEDs */ @@ -161,4 +161,4 @@ #define LED_ASSERTION 6 /* LED1 + LED2 */ #define LED_PANIC 7 /* LED1 / LED2 blinking */ -#endif /* __ARCH_BOARD_BOARD_H */ +#endif /* __ARCH_ARM_STM32_STM32_TINY_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm32_tiny/scripts/Make.defs b/boards/arm/stm32/stm32_tiny/scripts/Make.defs index 7a24b622f7..caa5a7db08 100644 --- a/boards/arm/stm32/stm32_tiny/scripts/Make.defs +++ b/boards/arm/stm32/stm32_tiny/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32_tiny/scripts/Make.defs +# boards/arm/stm32/stm32_tiny/scripts/Make.defs # # Copyright (C) 2011, 2012-2013, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32_tiny/scripts/ld.script b/boards/arm/stm32/stm32_tiny/scripts/ld.script index 3b027a19ba..b69f692631 100644 --- a/boards/arm/stm32/stm32_tiny/scripts/ld.script +++ b/boards/arm/stm32/stm32_tiny/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32_tiny/scripts/ld.script + * boards/arm/stm32/stm32_tiny/scripts/ld.script * * Copyright (C) 2011-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32_tiny/src/Makefile b/boards/arm/stm32/stm32_tiny/src/Makefile index 41dec9e791..cbf94d9d65 100644 --- a/boards/arm/stm32/stm32_tiny/src/Makefile +++ b/boards/arm/stm32/stm32_tiny/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32_tiny/src/Makefile +# boards/arm/stm32/stm32_tiny/src/Makefile # # Copyright (C) 2009-2013 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32_tiny/src/stm32_appinit.c b/boards/arm/stm32/stm32_tiny/src/stm32_appinit.c index e4dacea565..6b28814700 100644 --- a/boards/arm/stm32/stm32_tiny/src/stm32_appinit.c +++ b/boards/arm/stm32/stm32_tiny/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32_tiny/src/stm32_appinit.c + * boards/arm/stm32/stm32_tiny/src/stm32_appinit.c * * Copyright (C) 2009, 2011, 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32_tiny/src/stm32_boot.c b/boards/arm/stm32/stm32_tiny/src/stm32_boot.c index 96c39b6077..f6d1609db7 100644 --- a/boards/arm/stm32/stm32_tiny/src/stm32_boot.c +++ b/boards/arm/stm32/stm32_tiny/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32_tiny/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/stm32_tiny/src/stm32_boot.c * * Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -48,19 +48,19 @@ #include "up_arch.h" #include "stm32_tiny.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -68,7 +68,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/stm32_tiny/src/stm32_leds.c b/boards/arm/stm32/stm32_tiny/src/stm32_leds.c index e8c297ba3d..06d6f39fc0 100644 --- a/boards/arm/stm32/stm32_tiny/src/stm32_leds.c +++ b/boards/arm/stm32/stm32_tiny/src/stm32_leds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32_tiny/src/stm32_leds.c + * boards/arm/stm32/stm32_tiny/src/stm32_leds.c * * Copyright (C) 2009, 2011, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Laurent Latil diff --git a/boards/arm/stm32/stm32_tiny/src/stm32_nrf24l01.c b/boards/arm/stm32/stm32_tiny/src/stm32_nrf24l01.c index 7b7d4b757d..88e645ec39 100644 --- a/boards/arm/stm32/stm32_tiny/src/stm32_nrf24l01.c +++ b/boards/arm/stm32/stm32_tiny/src/stm32_nrf24l01.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32_tiny/src/stm32_nrf24l01.c +/**************************************************************************** + * boards/arm/stm32/stm32_tiny/src/stm32_nrf24l01.c * * Copyright (C) 2009, 2013, 2017 Gregory Nutt. All rights reserved. * Author: Laurent Latil @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,17 +53,17 @@ #include "stm32.h" #include "stm32_tiny.h" -/************************************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************************************/ + ****************************************************************************/ static int stm32tiny_wl_irq_attach(xcpt_t isr, FAR void *arg); static void stm32tiny_wl_chip_enable(bool enable); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static FAR struct nrf24l01_config_s nrf_cfg = { @@ -74,9 +74,9 @@ static FAR struct nrf24l01_config_s nrf_cfg = static xcpt_t g_isr; static FAR void *g_arg; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ static int stm32tiny_wl_irq_attach(xcpt_t isr, FAR void *arg) { @@ -93,9 +93,9 @@ static void stm32tiny_wl_chip_enable(bool enable) stm32_gpiowrite(GPIO_NRF24L01_CE, enable); } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ void stm32_wlinitialize(void) { diff --git a/boards/arm/stm32/stm32_tiny/src/stm32_pwm.c b/boards/arm/stm32/stm32_tiny/src/stm32_pwm.c index e6dcbd0ba7..1b7d95bec1 100644 --- a/boards/arm/stm32/stm32_tiny/src/stm32_pwm.c +++ b/boards/arm/stm32/stm32_tiny/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32_tiny/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/stm32_tiny/src/stm32_pwm.c * * Copyright (C) 2012-2013, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32_pwm.h" #include "stm32_tiny.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ /* PWM * @@ -63,17 +63,17 @@ #ifdef CONFIG_PWM -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/stm32_tiny/src/stm32_spi.c b/boards/arm/stm32/stm32_tiny/src/stm32_spi.c index 4a709b640e..58217d26cf 100644 --- a/boards/arm/stm32/stm32_tiny/src/stm32_spi.c +++ b/boards/arm/stm32/stm32_tiny/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32_tiny/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/stm32_tiny/src/stm32_spi.c * * Copyright (C) 2009, 2011-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,17 +54,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the HY-MiniSTM32 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/stm32_tiny/src/stm32_tiny.h b/boards/arm/stm32/stm32_tiny/src/stm32_tiny.h index 07779cc9e6..24a569e808 100644 --- a/boards/arm/stm32/stm32_tiny/src/stm32_tiny.h +++ b/boards/arm/stm32/stm32_tiny/src/stm32_tiny.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32_tiny/src/stm32_tiny.h +/**************************************************************************** + * boards/arm/stm32/stm32_tiny/src/stm32_tiny.h * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Laurent Latil @@ -31,22 +31,22 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32_TINY_H -#define __BOARDS_ARM_STM32_TINY_H +#ifndef __BOARDS_ARM_STM32_STM32_TINY_SRC_STM32_TINY_H +#define __BOARDS_ARM_STM32_STM32_TINY_SRC_STM32_TINY_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* How many SPI modules does this chip support? The LM3S6918 supports 2 SPI * modules (others may support more -- in such case, the following must be @@ -99,62 +99,61 @@ # endif #endif -/************************************************************************************ +/**************************************************************************** * Public Types - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Hy-Mini STM32v board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins for the Hy-Mini STM32v board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_wlinitialize * * Description: * Called to configure wireless module (nRF24L01). * - ************************************************************************************/ + ****************************************************************************/ void stm32_wlinitialize(void); #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_HYMINI_STM32V_H */ - +#endif /* __BOARDS_ARM_STM32_STM32_TINY_SRC_STM32_TINY_H */ diff --git a/boards/arm/stm32/stm32_tiny/src/stm32_usbdev.c b/boards/arm/stm32/stm32_tiny/src/stm32_usbdev.c index 7c3a6a3a04..570aee92ef 100644 --- a/boards/arm/stm32/stm32_tiny/src/stm32_usbdev.c +++ b/boards/arm/stm32/stm32_tiny/src/stm32_usbdev.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32_tiny/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/stm32_tiny/src/stm32_usbdev.c * * Copyright (C) 2009-2011, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,25 +52,25 @@ #include "stm32.h" #include "stm32_tiny.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins for the Hy-Mini STM32v board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -80,7 +80,7 @@ void stm32_usbinitialize(void) stm32_configgpio(GPIO_USB_PULLUP); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbpullup * * Description: @@ -90,7 +90,7 @@ void stm32_usbinitialize(void) * Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be * NULL. * - ************************************************************************************/ + ****************************************************************************/ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) { @@ -99,7 +99,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -108,7 +108,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) { diff --git a/boards/arm/stm32/stm32butterfly2/include/board.h b/boards/arm/stm32/stm32butterfly2/include/board.h index 4e02e48e6b..bcd7bb8da6 100644 --- a/boards/arm/stm32/stm32butterfly2/include/board.h +++ b/boards/arm/stm32/stm32butterfly2/include/board.h @@ -1,5 +1,5 @@ -/******************************************************************************* - * boards/stm32butterfly2/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm32butterfly2/include/board.h * * Copyright (C) 2016 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ******************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32_BUTTERFLY2_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32_BUTTERFLY2_INCLUDE_BOARD_H 1 +#ifndef __BOARDS_ARM_STM32_STM32_BUTTERFLY2_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM32_BUTTERFLY2_INCLUDE_BOARD_H 1 -/******************************************************************************* +/**************************************************************************** * Included Files - ******************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,11 @@ #include "stm32_rcc.h" -/******************************************************************************* +/**************************************************************************** * Pre-processor Definitions - ******************************************************************************/ + ****************************************************************************/ -/* Clocking *******************************************************************/ +/* Clocking *****************************************************************/ /* HSI - 8 MHz RC factory-trimmed * LSI - 40 KHz RC (30-60KHz, uncalibrated) @@ -105,7 +105,8 @@ #define STM32_APB1_TIM6_CLKIN (2*STM32_PCLK1_FREQUENCY) #define STM32_APB1_TIM7_CLKIN (2*STM32_PCLK1_FREQUENCY) -/* LED definitions ************************************************************/ +/* LED definitions **********************************************************/ + /* There are four LEDs on stm32butterfly2 board that can be controlled by * software. All pulled high and van be illuminated by driving the output low. * @@ -136,7 +137,9 @@ * * SYMBOL Val Meaning LED state * LED1 LED2 LED3 LED4 - * ----------------- --- ----------------------- ---- ---- ---- ---- */ + * ----------------- --- ----------------------- ---- ---- ---- ---- + */ + #define LED_STARTED 0 /* NuttX has been started ON OFF OFF OFF */ #define LED_HEAPALLOCATE 1 /* Heap has been allocated OFF ON OFF OFF */ #define LED_IRQSENABLED 2 /* Interrupts enabled OFF OFF ON OFF */ @@ -164,4 +167,4 @@ # error "CONFIG_STM32_SPI2 is not supported" #endif -#endif /* __BOARDS_ARM_STM32_BUTTERFLY2_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM32_BUTTERFLY2_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm32butterfly2/scripts/Make.defs b/boards/arm/stm32/stm32butterfly2/scripts/Make.defs index b9522be352..f4ee71e925 100644 --- a/boards/arm/stm32/stm32butterfly2/scripts/Make.defs +++ b/boards/arm/stm32/stm32butterfly2/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32butterfly2/scripts/Make.defs +# boards/arm/stm32/stm32butterfly2/scripts/Make.defs # # Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld b/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld index b0c5ec4bde..85c044a2f5 100644 --- a/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld +++ b/boards/arm/stm32/stm32butterfly2/scripts/dfu.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32butterfly2/scripts/dfu.ld + * boards/arm/stm32/stm32butterfly2/scripts/dfu.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32butterfly2/scripts/flash.ld b/boards/arm/stm32/stm32butterfly2/scripts/flash.ld index af875a489c..1fd7785714 100644 --- a/boards/arm/stm32/stm32butterfly2/scripts/flash.ld +++ b/boards/arm/stm32/stm32butterfly2/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32butterfly2/scripts/flash.ld + * boards/arm/stm32/stm32butterfly2/scripts/flash.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32butterfly2/src/Makefile b/boards/arm/stm32/stm32butterfly2/src/Makefile index 40b5e40093..5ac0a93755 100644 --- a/boards/arm/stm32/stm32butterfly2/src/Makefile +++ b/boards/arm/stm32/stm32butterfly2/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32butterfly2/src/Makefile +# boards/arm/stm32/stm32butterfly2/src/Makefile # # Copyright (C) 2016 Michał Łyszczek. All rights reserved. # Author: Michał Łyszczek diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_adc.c b/boards/arm/stm32/stm32butterfly2/src/stm32_adc.c index 600e1f0025..39c9f1073f 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_adc.c +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_adc.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32butterfly2/src/stm32_adc.c + * boards/arm/stm32/stm32butterfly2/src/stm32_adc.c * * Copyright (C) 2016 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek @@ -46,13 +46,13 @@ * Public Functions ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_boot.c b/boards/arm/stm32/stm32butterfly2/src/stm32_boot.c index 14e1d909e4..a7d90d43ec 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_boot.c +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_boot.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32butterfly2/src/boot.c + * boards/arm/stm32/stm32butterfly2/src/boot.c * * Copyright (C) 2016 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_butterfly2.h b/boards/arm/stm32/stm32butterfly2/src/stm32_butterfly2.h index f7b3522ff0..349066d8c0 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_butterfly2.h +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_butterfly2.h @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32butterfly2/src/stm32_butterfly2.h + * boards/arm/stm32/stm32butterfly2/src/stm32_butterfly2.h * * Copyright (C) 2016 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek @@ -32,8 +32,8 @@ * POSSIBILITY OF SUCH DAMAGE. ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32_BUTTERFLY2_SRC_STM32_BUTTERFLY2_H -#define __BOARDS_ARM_STM32_BUTTERFLY2_SRC_STM32_BUTTERFLY2_H 1 +#ifndef __BOARDS_ARM_STM32_STM32_BUTTERFLY2_SRC_STM32_BUTTERFLY2_H +#define __BOARDS_ARM_STM32_STM32_BUTTERFLY2_SRC_STM32_BUTTERFLY2_H 1 /***************************************************************************** * Included Files @@ -127,13 +127,13 @@ int stm32_usbhost_initialize(void); static inline int stm32_usbhost_initialize(void) { return 0; } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_ADC int stm32_adc_setup(void); @@ -141,5 +141,5 @@ int stm32_adc_setup(void); static inline int stm32_adc_setup(void) { return 0; } #endif -#endif /* __BOARDS_ARM_STM32_BUTTERFLY2_SRC_STM32_BUTTERFLY2_H */ +#endif /* __BOARDS_ARM_STM32_STM32_BUTTERFLY2_SRC_STM32_BUTTERFLY2_H */ diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_buttons.c b/boards/arm/stm32/stm32butterfly2/src/stm32_buttons.c index 6339c60b0c..dc335b81df 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_buttons.c +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_buttons.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32butterfly2/src/stm32_buttons.c + * boards/arm/stm32/stm32butterfly2/src/stm32_buttons.c * * Copyright (C) 2016 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_leds.c b/boards/arm/stm32/stm32butterfly2/src/stm32_leds.c index ed8238401b..dd3059425c 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_leds.c +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_leds.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32butterfly2/src/stm32_leds.c + * boards/arm/stm32/stm32butterfly2/src/stm32_leds.c * * Copyright (C) 2016 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_mmcsd.c b/boards/arm/stm32/stm32butterfly2/src/stm32_mmcsd.c index b08bba0c70..97244f6ae6 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_mmcsd.c +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_mmcsd.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32butterfly2/src/stm32_mmcsd.c + * boards/arm/stm32/stm32butterfly2/src/stm32_mmcsd.c * * Copyright (C) 2016-2017 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_spi.c b/boards/arm/stm32/stm32butterfly2/src/stm32_spi.c index f04696698c..5eb35e729f 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_spi.c +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_spi.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32butterfly2/src/stm32_spi.c + * boards/arm/stm32/stm32butterfly2/src/stm32_spi.c * * Copyright (C) 2016 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_usb.c b/boards/arm/stm32/stm32butterfly2/src/stm32_usb.c index 648f559294..fc51be3f6d 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_usb.c +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_usb.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32butterfly2/src/stm32_usb.c + * boards/arm/stm32/stm32butterfly2/src/stm32_usb.c * * Copyright (C) 2016 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_usbdev.c b/boards/arm/stm32/stm32butterfly2/src/stm32_usbdev.c index 15fe67377a..3e0d31add1 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_usbdev.c +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_usbdev.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32butterfly2/src/stm32_usbdev.c + * boards/arm/stm32/stm32butterfly2/src/stm32_usbdev.c * * Copyright (C) 2016 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_usbhost.c b/boards/arm/stm32/stm32butterfly2/src/stm32_usbhost.c index d78ab11cac..9d002312c7 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_usbhost.c +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_usbhost.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32butterfly2/src/stm32_usbhost.c + * boards/arm/stm32/stm32butterfly2/src/stm32_usbhost.c * * Copyright (C) 2016 Michał Łyszczek. All rights reserved. * Author: Michał Łyszczek diff --git a/boards/arm/stm32/stm32f103-minimum/README.txt b/boards/arm/stm32/stm32f103-minimum/README.txt index 1fee775f7a..9fb54dd5d7 100644 --- a/boards/arm/stm32/stm32f103-minimum/README.txt +++ b/boards/arm/stm32/stm32f103-minimum/README.txt @@ -197,7 +197,7 @@ Using 128KiB of Flash instead of 64KiB register. In order to enable 128KiB you need modify the linker script to reflect this - new size. Open the boards/stm32f103-minimum/scripts/ld.script and replace: + new size. Open the boards/arm/stm32/stm32f103-minimum/scripts/ld.script and replace: flash (rx) : ORIGIN = 0x08000000, LENGTH = 64K @@ -370,7 +370,7 @@ SPI NOR Flash support: Memory Management ---> [*] Small memory model - Also change the boards/stm32f103-minimum/scripts/ld.script file to use 128KB + Also change the boards/arm/stm32/stm32f103-minimum/scripts/ld.script file to use 128KB of Flash instead 64KB (since this board has a hidden 64KB flash) : MEMORY diff --git a/boards/arm/stm32/stm32f103-minimum/include/board.h b/boards/arm/stm32/stm32f103-minimum/include/board.h index 5696b8701a..6a47b585a6 100644 --- a/boards/arm/stm32/stm32f103-minimum/include/board.h +++ b/boards/arm/stm32/stm32f103-minimum/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,23 +32,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F103_MINIMUM_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F103_MINIMUM_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM32F103_MINIMUM_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM32F103_MINIMUM_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -194,4 +194,4 @@ #define RGBLED_BPWMTIMER 4 #define RGBLED_BPWMCHANNEL 4 -#endif /* __BOARDS_ARM_STM32F103_MINIMUM_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM32F103_MINIMUM_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm32f103-minimum/scripts/Make.defs b/boards/arm/stm32/stm32f103-minimum/scripts/Make.defs index df5ac43bb1..db79f219a6 100644 --- a/boards/arm/stm32/stm32f103-minimum/scripts/Make.defs +++ b/boards/arm/stm32/stm32f103-minimum/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f103-minimum/scripts/Make.defs +# boards/arm/stm32/stm32f103-minimum/scripts/Make.defs # # Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script index 7568804102..34083cadd0 100644 --- a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script +++ b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f103-minimum/scripts/ld.script + * boards/arm/stm32/stm32f103-minimum/scripts/ld.script * * Copyright (C) 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu index 868ea908bf..0d02204140 100644 --- a/boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu +++ b/boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f103-minimum/scripts/ld.script.dfu + * boards/arm/stm32/stm32f103-minimum/scripts/ld.script.dfu * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/Makefile b/boards/arm/stm32/stm32f103-minimum/src/Makefile index 6fe64772bd..822bd5e2d6 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/Makefile +++ b/boards/arm/stm32/stm32f103-minimum/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f103-minimum/src/Makefile +# boards/arm/stm32/stm32f103-minimum/src/Makefile # # Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_adc.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_adc.c index 681a92a2c3..c2b373fbb3 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_adc.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_adc.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* Up to 2 ADC interfaces are supported */ @@ -76,9 +76,9 @@ #define ADC1_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Identifying number of each ADC channel to be used with Variable Resistor (Pontentiometer)*/ @@ -90,17 +90,17 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {0}; /* ADC12_IN0 */ static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC12_IN0}; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_apa102.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_apa102.c index 24dcdefd65..f14f00cd1d 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_apa102.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_apa102.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f103-minium/src/stm32_apa102.c + * boards/arm/stm32/stm32f103-minium/src/stm32_apa102.c * * Copyright (C) 2017 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -58,11 +58,11 @@ #define APA102_SPI_PORTNO 1 /* On SPI1 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_apa102init * * Description: @@ -74,7 +74,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_apa102init(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_apds9960.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_apds9960.c index 0665434c79..9a83894f89 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_apds9960.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_apds9960.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_apds9960.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_apds9960.c * * Copyright (C) 2017 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,15 +51,15 @@ #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_APDS9960) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define APDS9960_I2C_PORTNO 1 /* On I2C1 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ struct stm32_apds9960config_s { @@ -73,16 +73,16 @@ struct stm32_apds9960config_s FAR xcpt_t isr; /* ISR Handler */ }; -/************************************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************************************/ + ****************************************************************************/ static int apds9960_irq_attach(FAR struct apds9960_config_s *state, xcpt_t isr, FAR void *arg); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* A reference to a structure of this type must be passed to the APDS-9960 * driver. This structure provides information about the configuration @@ -102,9 +102,9 @@ static struct stm32_apds9960config_s g_apds9960config = }, }; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ /* Attach the APDS-9960 interrupt handler to the GPIO interrupt */ @@ -126,11 +126,11 @@ static int apds9960_irq_attach(FAR struct apds9960_config_s *state, xcpt_t isr, return OK; } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_apds9960initialize * * Description: @@ -142,7 +142,7 @@ static int apds9960_irq_attach(FAR struct apds9960_config_s *state, xcpt_t isr, * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_apds9960initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_appinit.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_appinit.c index 2ff9780e60..05a1ecfc27 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_appinit.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f103-minimum/src/stm32_appinit.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_appinit.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_at24.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_at24.c index 59be2239ca..d3caece497 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_at24.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_at24.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f103-minimum/src/stm32_at24.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_at24.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_autoleds.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_autoleds.c index 808c7e78d1..c6811328ec 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_autoleds.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f103-minimum/src/stm32_autoleds.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_autoleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Laurent Latil diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_bmp180.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_bmp180.c index 81d6dcb9ba..645efadb06 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_bmp180.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_bmp180.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_bmp180.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_bmp180.c * * Copyright (C) 2018 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,17 +51,17 @@ #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_BMP180) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define MPL115A_I2C_PORTNO 1 /* On I2C1 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_bmp180initialize * * Description: @@ -73,7 +73,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_bmp180initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_boot.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_boot.c index fc57e6a65b..fa1f0c2385 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_boot.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_boot.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -48,11 +48,11 @@ #include "up_arch.h" #include "stm32f103_minimum.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -60,7 +60,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { @@ -88,7 +88,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -99,7 +99,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_bringup.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_bringup.c index da884476ee..20ad915d91 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_bringup.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f103-minimum/src/stm32_bringup.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_bringup.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_buttons.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_buttons.c index ce74092f69..ed0c278763 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_buttons.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f103-minimum/src/stm32_buttons.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_buttons.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_gpio.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_gpio.c index 9693e4027b..ce29a7f66c 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_gpio.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_gpio.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f103-minimum/src/stm32_gpio.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_gpio.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Copyright (C) 2017 Alan Carvalho de Assis. All rights reserved. diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_hcsr04.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_hcsr04.c index e87046f97d..28bd97bfe0 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_hcsr04.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_hcsr04.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_hcsr04.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_hcsr04.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Copyright (C) 2017 Alan Carvalho de Assis. All rights reserved. @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -57,17 +57,17 @@ # error STM32 TIM1 is not defined #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Defintions - ************************************************************************************/ + ****************************************************************************/ /* Use TIM1 as free running timer for HC-SR04 sensor */ #define HCSR04_FRTIMER 1 -/************************************************************************************ +/**************************************************************************** * Private Types - ************************************************************************************/ + ****************************************************************************/ struct stm32_hcsr04config_s { @@ -83,9 +83,9 @@ struct stm32_hcsr04config_s bool falling; /* Falling edge enabled */ }; -/************************************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************************************/ + ****************************************************************************/ static int hcsr04_irq_attach(FAR struct hcsr04_config_s *state, xcpt_t isr, FAR void *arg); @@ -98,9 +98,9 @@ static void hcsr04_set_trigger(FAR const struct hcsr04_config_s *state, bool on); static int64_t hcsr04_get_clock(FAR const struct hcsr04_config_s *state); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* A reference to a structure of this type must be passed to the HC-SR04 * driver. This structure provides information about the configuration @@ -128,9 +128,9 @@ static struct stm32_hcsr04config_s g_hcsr04config = struct stm32_freerun_s g_freerun; struct timespec ts; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ /* Attach the HC-SR04 interrupt handler to the GPIO interrupt */ @@ -218,9 +218,9 @@ static int64_t hcsr04_get_clock(FAR const struct hcsr04_config_s *state) return ((ts.tv_sec * 1000000) + (ts.tv_nsec / 1000)); } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32_hcsr04_initialize diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_lcd.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_lcd.c index c046a6f815..0f7c9c1ee3 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_lcd.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_lcd.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f103-minimum/src/stm32_lcd.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_lcd.c * * Copyright (C) 2016 Uniquix Tecnologia. All rights reserved. * Author: Alan Carvalho de Assis diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_lm75.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_lm75.c index e58203306d..779495dcc9 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_lm75.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_lm75.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_lm75.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_lm75.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,11 +50,11 @@ #if defined(CONFIG_I2C) && defined(CONFIG_LM75_I2C) && defined(CONFIG_STM32_I2C1) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_lm75initialize * * Description: @@ -66,7 +66,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_lm75initialize(FAR const char *devpath) { @@ -98,7 +98,7 @@ int stm32_lm75initialize(FAR const char *devpath) return ret; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_lm75attach * * Description: @@ -111,7 +111,7 @@ int stm32_lm75initialize(FAR const char *devpath) * Returned Value: * Zero (OK) returned on success; a negated errno value is returned on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_lm75attach(xcpt_t irqhandler, void *arg) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_max6675.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_max6675.c index 1208db50bd..011596437e 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_max6675.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_max6675.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_max6675.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_max6675.c * * Copyright (C) 2018 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,17 +51,17 @@ #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_MAX6675) && defined(CONFIG_STM32_SPI1) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define MAX6675_SPI_PORTNO 1 /* On SPI1 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_max6675initialize * * Description: @@ -73,7 +73,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_max6675initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_max7219.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_max7219.c index 5ac211ebc0..1a2b5f1769 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_max7219.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_max7219.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f103-minimum/src/stm32_max7219.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_max7219.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_mcp2515.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_mcp2515.c index ef8cb8abe2..886e77f1b9 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_mcp2515.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_mcp2515.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_mcp2515.c + * boards/arm/stm32/stm32f4discovery/src/stm32_mcp2515.c * * Copyright (C) 2017 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -169,11 +169,11 @@ static int mcp2515_attach(FAR struct mcp2515_config_s *state, return OK; } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_mcp2515initialize * * Description: @@ -185,7 +185,7 @@ static int mcp2515_attach(FAR struct mcp2515_config_s *state, * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_mcp2515initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_mfrc522.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_mfrc522.c index 3c70aed48d..b861cca54d 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_mfrc522.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_mfrc522.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_mfrc522.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_mfrc522.c * * Copyright (C) 2015 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,17 +51,17 @@ #if defined(CONFIG_SPI) && defined(CONFIG_STM32_SPI1) && defined(CONFIG_CL_MFRC522) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define MFRC522_SPI_PORTNO 1 /* On SPI1 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_mfrc522initialize * * Description: @@ -73,7 +73,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_mfrc522initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_mmcsd.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_mmcsd.c index 0e2b3bc367..fd570e7aea 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_mmcsd.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_mmcsd.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32f103-minimum/src/stm32_mmcsd.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_mmcsd.c * * Copyright (C) 2017 Greg Nutt. All rights reserved. * Author: Alan Carvalho de Assis diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_nrf24l01.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_nrf24l01.c index 10d97c3205..ec3139053e 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_nrf24l01.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_nrf24l01.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum//src/stm32_nrf24l01.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum//src/stm32_nrf24l01.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Laurent Latil @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -56,16 +56,16 @@ #ifdef CONFIG_WL_NRF24L01 -/************************************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************************************/ + ****************************************************************************/ static int stm32tiny_wl_irq_attach(xcpt_t isr, FAR void *arg); static void stm32tiny_wl_chip_enable(bool enable); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static FAR struct nrf24l01_config_s nrf_cfg = { @@ -76,9 +76,9 @@ static FAR struct nrf24l01_config_s nrf_cfg = static xcpt_t g_isr; static FAR void *g_arg; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ static int stm32tiny_wl_irq_attach(xcpt_t isr, FAR void *arg) { @@ -95,11 +95,11 @@ static void stm32tiny_wl_chip_enable(bool enable) stm32_gpiowrite(GPIO_NRF24L01_CE, enable); } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_wlinitialize * * Description: @@ -111,7 +111,7 @@ static void stm32tiny_wl_chip_enable(bool enable) * Returned Value: * None * - ************************************************************************************/ + ****************************************************************************/ void stm32_wlinitialize(void) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_nunchuck.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_nunchuck.c index 7e11974e4f..68ff188714 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_nunchuck.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_nunchuck.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_nunchuck.c + * boards/arm/stm32/stm32f4discovery/src/stm32_nunchuck.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Alan Carvalho de Assis diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_pcd8544.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_pcd8544.c index ead1b2dc2f..36189b50f1 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_pcd8544.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_pcd8544.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f103-minimum/src/stm32_pcd8544.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_pcd8544.c * * Copyright (C) 2011, 2013, 2015, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_pwm.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_pwm.c index ddf3ac30b3..980154e59a 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_pwm.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_pwm.c * * Copyright (C) 2013, 2015, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #include "stm32_pwm.h" #include "stm32f103_minimum.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ /* PWM * @@ -86,17 +86,17 @@ # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_qencoder.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_qencoder.c index 79b708b8e2..74ac5a65d9 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_qencoder.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_qencoder.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_qencoder.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_qencoder.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,18 +50,18 @@ #include "stm32_qencoder.h" #include "stm32f103_minimum.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_qencoder_initialize * * Description: * All STM32 architectures must provide the following interface to work with * examples/qencoder. * - ************************************************************************************/ + ****************************************************************************/ int stm32_qencoder_initialize(FAR const char *devpath, int timer) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_rgbled.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_rgbled.c index 14a0c524f2..5e9d1a2220 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_rgbled.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_rgbled.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_rgbled.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_rgbled.c * * Copyright (C) 2016, 2018 Gregory Nutt. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32_pwm.h" #include "stm32f103_minimum.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #define HAVE_RGBLED 1 @@ -101,17 +101,17 @@ #ifdef HAVE_RGBLED -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_rgbled_setup * * Description: * Initial for support of a connected RGB LED using PWM. * - ************************************************************************************/ + ****************************************************************************/ int stm32_rgbled_setup(void) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_spi.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_spi.c index ba738bd611..38dfbaf473 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_spi.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_spi.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,17 +54,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the HY-MiniSTM32 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_ssd1306.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_ssd1306.c index 24eb5edc1c..4810e1bae9 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_ssd1306.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_ssd1306.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f103-minimum/src/stm32_ssd1306.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_ssd1306.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_tone.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_tone.c index 8364ddecbe..d9f72f35d3 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_tone.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_tone.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103minimum/src/stm32_tone.c +/**************************************************************************** + * boards/arm/stm32/stm32f103minimum/src/stm32_tone.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32_pwm.h" #include "stm32f103_minimum.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #define HAVE_TONE 1 @@ -85,17 +85,17 @@ #ifdef HAVE_TONE -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_tone_setup * * Description: * Configure and initialize the tone generator. * - ************************************************************************************/ + ****************************************************************************/ int stm32_tone_setup(void) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_usbdev.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_usbdev.c index 22531013c1..7e5526597a 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_usbdev.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_usbdev.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_usbdev.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,17 +52,17 @@ #include "stm32.h" #include "stm32f103_minimum.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins for the STM32F103 Minimum board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -71,7 +71,7 @@ void stm32_usbinitialize(void) stm32_configgpio(GPIO_USB_PULLUP); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbpullup * * Description: @@ -81,7 +81,7 @@ void stm32_usbinitialize(void) * Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be * NULL. * - ************************************************************************************/ + ****************************************************************************/ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) { @@ -90,7 +90,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -99,7 +99,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_usbmsc.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_usbmsc.c index a4e1c4bf1a..cdf5719bcc 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_usbmsc.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_usbmsc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f103-minimum/src/stm32_usbmsc.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_usbmsc.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_userleds.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_userleds.c index 8903aba015..51eab241e1 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_userleds.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f103-minimum/src/stm32_userleds.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_userleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_veml6070.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_veml6070.c index 353c033389..c7dd4ae9d2 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_veml6070.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_veml6070.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32_veml6070.c +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32_veml6070.c * * Copyright (C) 2016 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,17 +51,17 @@ #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_VEML6070) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define VEML6070_I2C_PORTNO 1 /* On I2C1 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_veml6070initialize * * Description: @@ -73,7 +73,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_veml6070initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c index 554fd29fa3..a29d70e146 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f103-minimum/src/stm32_w25.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_zerocross.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_zerocross.c index 71872ae342..8b076783ae 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_zerocross.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_zerocross.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_zerocross.c + * boards/arm/stm32/stm32f4discovery/src/stm32_zerocross.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32f103_minimum.h b/boards/arm/stm32/stm32f103-minimum/src/stm32f103_minimum.h index d7af54c961..83f4b5a2c4 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32f103_minimum.h +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32f103_minimum.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f103-minimum/src/stm32f103_minimum.h +/**************************************************************************** + * boards/arm/stm32/stm32f103-minimum/src/stm32f103_minimum.h * * Copyright (C) 2016, 2018 Gregory Nutt. All rights reserved. * Author: Laurent Latil @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F103_MINIMUM_SRC_STM32F103_MINIMUM_H -#define __BOARDS_ARM_STM32F103_MINIMUM_SRC_STM32F103_MINIMUM_H +#ifndef __BOARDS_ARM_STM32_STM32F103_MINIMUM_SRC_STM32F103_MINIMUM_H +#define __BOARDS_ARM_STM32_STM32F103_MINIMUM_SRC_STM32F103_MINIMUM_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -46,9 +46,9 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define HAVE_AT24 1 @@ -219,9 +219,9 @@ #define GPIO_INT1 (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_PORTA|GPIO_PIN2) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -269,25 +269,25 @@ int stm32_gpio_initialize(void); int stm32_zerocross_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_apds9960initialize * * Description: * Initialize APDS-9960 gesture sensor * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_SENSORS_APDS9960 int stm32_apds9960initialize(FAR const char *devpath); @@ -306,23 +306,23 @@ int stm32_apds9960initialize(FAR const char *devpath); int stm32_bmp180initialize(FAR const char *devpath); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Hy-Mini STM32v board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_mmcsd_initialize * * Description: * Initializes SPI-based SD card * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_MMCSD int stm32_mmcsd_initialize(int minor); @@ -340,47 +340,47 @@ int stm32_mmcsd_initialize(int minor); int nunchuck_initialize(FAR char *devname); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_hcsr04_initialize * * Description: * Called to initialize the HC-SR04 sensor * - ************************************************************************************/ + ****************************************************************************/ int stm32_hcsr04_initialize(FAR const char *devname); -/************************************************************************************ +/**************************************************************************** * Name: stm32_lm75initialize * * Description: * Called to initialize LM75 temperature sensor * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_LM75_I2C int stm32_lm75initialize(FAR const char *devpath); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_max6675initialize * * Description: * Called to initialize MAX6675 temperature sensor * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_SENSORS_MAX6675 int stm32_max6675initialize(FAR const char *devpath); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_w25initialize * * Description: * Called to initialize Winbond W25 memory * - ************************************************************************************/ + ****************************************************************************/ int stm32_w25initialize(int minor); @@ -416,53 +416,53 @@ int stm32_qencoder_initialize(FAR const char *devpath, int timer); int stm32_rgbled_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_apa102init * * Description: * Initialize and register the APA102 LED Strip driver * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_LEDS_APA102 int stm32_apa102init(FAR const char *devpath); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_mcp2515initialize * * Description: * Initialize and register the MCP2515 CAN driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_CAN_MCP2515 int stm32_mcp2515initialize(FAR const char *devpath); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called to setup USB-related GPIO pins for the Hy-Mini STM32v board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_wlinitialize * * Description: @@ -474,48 +474,48 @@ int stm32_pwm_setup(void); * Returned Value: * None * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_WL_NRF24L01 void stm32_wlinitialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_mfrc522initialize * * Description: * Function used to initialize the MFRC522 RFID Transceiver * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_CL_MFRC522 int stm32_mfrc522initialize(FAR const char *devpath); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_tone_setup * * Description: * Function used to initialize a PWM and Oneshot timers to Audio Tone Generator. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_AUDIO_TONE int stm32_tone_setup(void); #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_veml6070initialize * * Description: * Called to configure an I2C and to register VEML6070 for the stm32f103-minimum * board. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_SENSORS_VEML6070 int stm32_veml6070initialize(FAR const char *devpath); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32F103_MINIMUM_SRC_STM32F103_MINIMUM_H */ +#endif /* __BOARDS_ARM_STM32_STM32F103_MINIMUM_SRC_STM32F103_MINIMUM_H */ diff --git a/boards/arm/stm32/stm32f334-disco/include/board.h b/boards/arm/stm32/stm32f334-disco/include/board.h index 90514f77a8..a5de992d2d 100644 --- a/boards/arm/stm32/stm32f334-disco/include/board.h +++ b/boards/arm/stm32/stm32f334-disco/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/include/board.h + * boards/arm/stm32/stm32f334-disco/include/board.h * include/arch/board/board.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F334_DISCO_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F334_DISCO_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM32F334_DISCO_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM32F334_DISCO_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -316,4 +316,4 @@ #endif /* CONFIG_EXAMPLES_SMPS */ -#endif /* __BOARDS_ARM_STM32F334_DISCO_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM32F334_DISCO_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm32f334-disco/scripts/Make.defs b/boards/arm/stm32/stm32f334-disco/scripts/Make.defs index 6b026183d0..a5be622c4c 100644 --- a/boards/arm/stm32/stm32f334-disco/scripts/Make.defs +++ b/boards/arm/stm32/stm32f334-disco/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f334-disco/scripts/Make.defs +# boards/arm/stm32/stm32f334-disco/scripts/Make.defs # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f334-disco/scripts/ld.script b/boards/arm/stm32/stm32f334-disco/scripts/ld.script index 2938b8352f..33facf72ee 100644 --- a/boards/arm/stm32/stm32f334-disco/scripts/ld.script +++ b/boards/arm/stm32/stm32f334-disco/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/scripts/ld.script + * boards/arm/stm32/stm32f334-disco/scripts/ld.script * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/stm32f334-disco/src/Makefile b/boards/arm/stm32/stm32f334-disco/src/Makefile index 29af705ce9..4cd7f7669f 100644 --- a/boards/arm/stm32/stm32f334-disco/src/Makefile +++ b/boards/arm/stm32/stm32f334-disco/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f334-disco/src/Makefile +# boards/arm/stm32/stm32f334-disco/src/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32_adc.c b/boards/arm/stm32/stm32f334-disco/src/stm32_adc.c index 2643b4c4e8..e5bc3e3054 100644 --- a/boards/arm/stm32/stm32f334-disco/src/stm32_adc.c +++ b/boards/arm/stm32/stm32f334-disco/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32_adc.c + * boards/arm/stm32/stm32f334-disco/src/stm32_adc.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -169,13 +169,13 @@ static const uint32_t g_pinlist2[3] = * Public Functions ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32_appinit.c b/boards/arm/stm32/stm32f334-disco/src/stm32_appinit.c index fa1d6019cd..7640e53097 100644 --- a/boards/arm/stm32/stm32f334-disco/src/stm32_appinit.c +++ b/boards/arm/stm32/stm32f334-disco/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32_appinitialize.c + * boards/arm/stm32/stm32f334-disco/src/stm32_appinitialize.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32_autoleds.c b/boards/arm/stm32/stm32f334-disco/src/stm32_autoleds.c index 3d4023f828..d04c77c997 100644 --- a/boards/arm/stm32/stm32f334-disco/src/stm32_autoleds.c +++ b/boards/arm/stm32/stm32f334-disco/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32_autoleds.c + * boards/arm/stm32/stm32f334-disco/src/stm32_autoleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32_boot.c b/boards/arm/stm32/stm32f334-disco/src/stm32_boot.c index abcc960e3b..4084872d6f 100644 --- a/boards/arm/stm32/stm32f334-disco/src/stm32_boot.c +++ b/boards/arm/stm32/stm32f334-disco/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32_boot.c + * boards/arm/stm32/stm32f334-disco/src/stm32_boot.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32_comp.c b/boards/arm/stm32/stm32f334-disco/src/stm32_comp.c index 8e2afdc2dd..588df9f5fc 100644 --- a/boards/arm/stm32/stm32f334-disco/src/stm32_comp.c +++ b/boards/arm/stm32/stm32f334-disco/src/stm32_comp.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32_comp.c + * boards/arm/stm32/stm32f334-disco/src/stm32_comp.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32_hrtim.c b/boards/arm/stm32/stm32f334-disco/src/stm32_hrtim.c index 349a5cc653..e193ec436d 100644 --- a/boards/arm/stm32/stm32f334-disco/src/stm32_hrtim.c +++ b/boards/arm/stm32/stm32f334-disco/src/stm32_hrtim.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32_hrtim.c + * boards/arm/stm32/stm32f334-disco/src/stm32_hrtim.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32_opamp.c b/boards/arm/stm32/stm32f334-disco/src/stm32_opamp.c index 5cce12f8ef..f03e95c280 100644 --- a/boards/arm/stm32/stm32f334-disco/src/stm32_opamp.c +++ b/boards/arm/stm32/stm32f334-disco/src/stm32_opamp.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32_opamp.c + * boards/arm/stm32/stm32f334-disco/src/stm32_opamp.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32_powerled.c b/boards/arm/stm32/stm32f334-disco/src/stm32_powerled.c index ff02cb91ee..3de48f1c79 100644 --- a/boards/arm/stm32/stm32f334-disco/src/stm32_powerled.c +++ b/boards/arm/stm32/stm32f334-disco/src/stm32_powerled.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32_powerled.c + * boards/arm/stm32/stm32f334-disco/src/stm32_powerled.c * * Copyright (C) 2017, 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32_smps.c b/boards/arm/stm32/stm32f334-disco/src/stm32_smps.c index 25c9da0f6f..ce94a8170a 100644 --- a/boards/arm/stm32/stm32f334-disco/src/stm32_smps.c +++ b/boards/arm/stm32/stm32f334-disco/src/stm32_smps.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32_smps.c + * boards/arm/stm32/stm32f334-disco/src/stm32_smps.c * * Copyright (C) 2017, 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f334-disco/src/stm32f334-disco.h b/boards/arm/stm32/stm32f334-disco/src/stm32f334-disco.h index 7c134dba27..289bbe99b3 100644 --- a/boards/arm/stm32/stm32f334-disco/src/stm32f334-disco.h +++ b/boards/arm/stm32/stm32f334-disco/src/stm32f334-disco.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32f334-disco.h + * boards/arm/stm32/stm32f334-disco/src/stm32f334-disco.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F334_DISCO_SRC_STM32F334_DISCO_H -#define __BOARDS_ARM_STM32F334_DISCO_SRC_STM32F334_DISCO_H +#ifndef __BOARDS_ARM_STM32_STM32F334_DISCO_SRC_STM32F334_DISCO_H +#define __BOARDS_ARM_STM32_STM32F334_DISCO_SRC_STM32F334_DISCO_H /**************************************************************************** * Included Files @@ -135,25 +135,25 @@ int stm32_timer_driver_setup(FAR const char *devpath, int timer); int stm32_dac_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); @@ -219,4 +219,4 @@ int stm32_powerled_setup(void); int stm32_smps_setup(void); #endif -#endif /* __BOARDS_ARM_STM32F334_DISCO_SRC_STM32F334_DISCO_H */ +#endif /* __BOARDS_ARM_STM32_STM32F334_DISCO_SRC_STM32F334_DISCO_H */ diff --git a/boards/arm/stm32/stm32f3discovery/README.txt b/boards/arm/stm32/stm32f3discovery/README.txt index 101e92bcbc..d706b374e9 100644 --- a/boards/arm/stm32/stm32f3discovery/README.txt +++ b/boards/arm/stm32/stm32f3discovery/README.txt @@ -127,7 +127,7 @@ the following lines in each Make.defs file: Configuration Changes --------------------- -Below are all of the configuration changes that I had to make to boards/stm3240g-eval/nsh2 +Below are all of the configuration changes that I had to make to boards/arm/stm32/stm3240g-eval/nsh2 in order to successfully build NuttX using the Atollic toolchain WITH FPU support: -CONFIG_ARCH_FPU=n : Enable FPU support diff --git a/boards/arm/stm32/stm32f3discovery/include/board.h b/boards/arm/stm32/stm32f3discovery/include/board.h index 9724f0c96c..a4a17dec30 100644 --- a/boards/arm/stm32/stm32f3discovery/include/board.h +++ b/boards/arm/stm32/stm32f3discovery/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f3discovery/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm32f3discovery/include/board.h * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F3DISCOVERY_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F3DISCOVERY_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM32F3DISCOVERY_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM32F3DISCOVERY_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -49,9 +49,9 @@ #include "stm32_rcc.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -272,4 +272,4 @@ #define GPIO_I2C2_SDA GPIO_I2C2_SDA_1 #endif -#endif /* __BOARDS_ARM_STM32F3DISCOVERY_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM32F3DISCOVERY_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm32f3discovery/scripts/Make.defs b/boards/arm/stm32/stm32f3discovery/scripts/Make.defs index 405544562c..45b2631ded 100644 --- a/boards/arm/stm32/stm32f3discovery/scripts/Make.defs +++ b/boards/arm/stm32/stm32f3discovery/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f3discovery/scripts/Make.defs +# boards/arm/stm32/stm32f3discovery/scripts/Make.defs # # Copyright (C) 2013, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f3discovery/scripts/gnu-elf.ld b/boards/arm/stm32/stm32f3discovery/scripts/gnu-elf.ld index d5f7d6667e..3ef66435b8 100644 --- a/boards/arm/stm32/stm32f3discovery/scripts/gnu-elf.ld +++ b/boards/arm/stm32/stm32f3discovery/scripts/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f3discovery/scripts/gnu-elf.ld + * boards/arm/stm32/stm32f3discovery/scripts/gnu-elf.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f3discovery/scripts/ld.script b/boards/arm/stm32/stm32f3discovery/scripts/ld.script index e6d835adf8..4dfae50de1 100644 --- a/boards/arm/stm32/stm32f3discovery/scripts/ld.script +++ b/boards/arm/stm32/stm32f3discovery/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f3discovery/scripts/ld.script + * boards/arm/stm32/stm32f3discovery/scripts/ld.script * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f3discovery/src/Makefile b/boards/arm/stm32/stm32f3discovery/src/Makefile index b0439733a8..36d392778f 100644 --- a/boards/arm/stm32/stm32f3discovery/src/Makefile +++ b/boards/arm/stm32/stm32f3discovery/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f3discovery/src/Makefile +# boards/arm/stm32/stm32f3discovery/src/Makefile # # Copyright (C) 2013, 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32_appinit.c b/boards/arm/stm32/stm32f3discovery/src/stm32_appinit.c index 6543edf40a..eabef27038 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32_appinit.c +++ b/boards/arm/stm32/stm32f3discovery/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f3discovery/src/stm32_appinit.c + * boards/arm/stm32/stm32f3discovery/src/stm32_appinit.c * * Copyright (C) 2013, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32_autoleds.c b/boards/arm/stm32/stm32f3discovery/src/stm32_autoleds.c index e9d8b6daa6..027ea4ebbe 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32_autoleds.c +++ b/boards/arm/stm32/stm32f3discovery/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f3discovery/src/stm32_autoleds.c + * boards/arm/stm32/stm32f3discovery/src/stm32_autoleds.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32_boot.c b/boards/arm/stm32/stm32f3discovery/src/stm32_boot.c index bcb75b2c51..e83f5d99d2 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32_boot.c +++ b/boards/arm/stm32/stm32f3discovery/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f3discovery/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/stm32f3discovery/src/stm32_boot.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ #include "up_arch.h" #include "stm32f3discovery.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -59,7 +59,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32_bringup.c b/boards/arm/stm32/stm32f3discovery/src/stm32_bringup.c index d22531d044..bac522630e 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32_bringup.c +++ b/boards/arm/stm32/stm32f3discovery/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f3discovery/src/stm32_bringup.c + * boards/arm/stm32/stm32f3discovery/src/stm32_bringup.c * * Copyright (C) 2013, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32_buttons.c b/boards/arm/stm32/stm32f3discovery/src/stm32_buttons.c index dfe8d96e1d..c034afeb30 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32_buttons.c +++ b/boards/arm/stm32/stm32f3discovery/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f3discovery/src/stm32_buttons.c + * boards/arm/stm32/stm32f3discovery/src/stm32_buttons.c * * Copyright (C) 2013, 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -121,7 +121,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -141,7 +141,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32_pwm.c b/boards/arm/stm32/stm32f3discovery/src/stm32_pwm.c index 459458ab49..1cc382733a 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32_pwm.c +++ b/boards/arm/stm32/stm32f3discovery/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f3discovery/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/stm32f3discovery/src/stm32_pwm.c * * Copyright (C) 2013, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32_pwm.h" #include "stm32f3discovery.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ /* PWM * @@ -85,17 +85,17 @@ # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32_qencoder.c b/boards/arm/stm32/stm32f3discovery/src/stm32_qencoder.c index fdf61acfd7..b5ae71104c 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32_qencoder.c +++ b/boards/arm/stm32/stm32f3discovery/src/stm32_qencoder.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f3discovery/src/stm32_qencoder.c +/**************************************************************************** + * boards/arm/stm32/stm32f3discovery/src/stm32_qencoder.c * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,18 +50,18 @@ #include "stm32_qencoder.h" #include "stm32f3discovery.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_qencoder_initialize * * Description: * All STM32 architectures must provide the following interface to work with * examples/qencoder. * - ************************************************************************************/ + ****************************************************************************/ int stm32_qencoder_initialize(FAR const char *devpath, int timer) { diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32_spi.c b/boards/arm/stm32/stm32f3discovery/src/stm32_spi.c index 9032ce83f5..123820653e 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32_spi.c +++ b/boards/arm/stm32/stm32f3discovery/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f3discovery/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/stm32f3discovery/src/stm32_spi.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,17 +54,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32f3discovery board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32_usb.c b/boards/arm/stm32/stm32f3discovery/src/stm32_usb.c index 2b6c21c470..6c32f4861b 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32_usb.c +++ b/boards/arm/stm32/stm32f3discovery/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f3discovery/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/stm32f3discovery/src/stm32_usb.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,9 +55,9 @@ #ifdef CONFIG_STM32_USB -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV # define HAVE_USB 1 @@ -66,33 +66,33 @@ # undef HAVE_USB #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F3Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { /* Does the STM32 F3 hava an external soft pull-up? */ } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbpullup * * Description: @@ -100,7 +100,7 @@ void stm32_usbinitialize(void) * connect and disconnect), then the board software must provide stm32_pullup. * See include/nuttx/usb/usbdev.h for additional description of this method. * - ************************************************************************************/ + ****************************************************************************/ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) { @@ -108,7 +108,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) return OK; } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -117,7 +117,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) { diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32_userleds.c b/boards/arm/stm32/stm32f3discovery/src/stm32_userleds.c index 2ad64bbcb4..4f427a8f0c 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32_userleds.c +++ b/boards/arm/stm32/stm32f3discovery/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f3discovery/src/stm32_userleds.c + * boards/arm/stm32/stm32f3discovery/src/stm32_userleds.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f3discovery/src/stm32f3discovery.h b/boards/arm/stm32/stm32f3discovery/src/stm32f3discovery.h index 155c4decc9..fd4c0db979 100644 --- a/boards/arm/stm32/stm32f3discovery/src/stm32f3discovery.h +++ b/boards/arm/stm32/stm32f3discovery/src/stm32f3discovery.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/stm32f3discovery/src/stm32f3discovery.h +/**************************************************************************** + * boards/arm/stm32/stm32f3discovery/src/stm32f3discovery.h * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H -#define __BOARDS_ARM_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H +#ifndef __BOARDS_ARM_STM32_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H +#define __BOARDS_ARM_STM32_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include @@ -48,10 +48,10 @@ #include -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ -/* Configuration ************************************************************************************/ + ****************************************************************************/ +/* Configuration ****************************************************************************/ /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -128,21 +128,21 @@ #define GPIO_MEMS_INT1 (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTE|GPIO_PIN0) #define GPIO_MEMS_INT2 (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTE|GPIO_PIN1) -/**************************************************************************************************** +/**************************************************************************** * Public Types - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_bringup * * Description: @@ -154,40 +154,40 @@ * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ****************************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32f3discovery board. * - ****************************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F3Discovery board. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_USB void weak_function stm32_usbinitialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); @@ -206,5 +206,5 @@ int stm32_qencoder_initialize(FAR const char *devpath, int timer); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H */ +#endif /* __BOARDS_ARM_STM32_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H */ diff --git a/boards/arm/stm32/stm32f411e-disco/include/board.h b/boards/arm/stm32/stm32f411e-disco/include/board.h index 83b7110f48..ddc9909b41 100644 --- a/boards/arm/stm32/stm32f411e-disco/include/board.h +++ b/boards/arm/stm32/stm32f411e-disco/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f411e-disco/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm32f411e-disco/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Konstantin Berezenko @@ -33,14 +33,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F411E_DISCO_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F411E_DISCO_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM32F411E_DISCO_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM32F411E_DISCO_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -49,9 +49,9 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* @@ -327,4 +327,4 @@ #define BUTTON_USER_BIT (1 << BUTTON_USER) -#endif /* __BOARDS_ARM_STM32F411E_DISCO_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM32F411E_DISCO_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm32f411e-disco/scripts/Make.defs b/boards/arm/stm32/stm32f411e-disco/scripts/Make.defs index 5ff6f14001..963c41fc5b 100644 --- a/boards/arm/stm32/stm32f411e-disco/scripts/Make.defs +++ b/boards/arm/stm32/stm32f411e-disco/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f411e-disco/scripts/Make.defs +# boards/arm/stm32/stm32f411e-disco/scripts/Make.defs # # Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld b/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld index fb08b12aae..02f08158a7 100644 --- a/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld +++ b/boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f411e-disco/scripts/f411ve.ld + * boards/arm/stm32/stm32f411e-disco/scripts/f411ve.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f411e-disco/src/Makefile b/boards/arm/stm32/stm32f411e-disco/src/Makefile index 1c8b813871..701ef32dec 100644 --- a/boards/arm/stm32/stm32f411e-disco/src/Makefile +++ b/boards/arm/stm32/stm32f411e-disco/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f411e-disco/src/Makefile +# boards/arm/stm32/stm32f411e-disco/src/Makefile # # Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f411e-disco/src/stm32_appinit.c b/boards/arm/stm32/stm32f411e-disco/src/stm32_appinit.c index 5acf6cad95..7e785b9cd3 100644 --- a/boards/arm/stm32/stm32f411e-disco/src/stm32_appinit.c +++ b/boards/arm/stm32/stm32f411e-disco/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f411e-disco/src/stm32_appinit.c + * boards/arm/stm32/stm32f411e-disco/src/stm32_appinit.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f411e-disco/src/stm32_boot.c b/boards/arm/stm32/stm32f411e-disco/src/stm32_boot.c index 57951b255b..d96d8bb18e 100644 --- a/boards/arm/stm32/stm32f411e-disco/src/stm32_boot.c +++ b/boards/arm/stm32/stm32f411e-disco/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f411e-disco/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/stm32f411e-disco/src/stm32_boot.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,11 +50,11 @@ #include "up_arch.h" #include "stm32f411e-disco.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -62,7 +62,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/stm32f411e-disco/src/stm32_bringup.c b/boards/arm/stm32/stm32f411e-disco/src/stm32_bringup.c index 4d6b93ca0b..6e3009c758 100644 --- a/boards/arm/stm32/stm32f411e-disco/src/stm32_bringup.c +++ b/boards/arm/stm32/stm32f411e-disco/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f411e-disco/src/stm32_bringup.c + * boards/arm/stm32/stm32f411e-disco/src/stm32_bringup.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f411e-disco/src/stm32_usb.c b/boards/arm/stm32/stm32f411e-disco/src/stm32_usb.c index 95937b3b00..0ec0379137 100644 --- a/boards/arm/stm32/stm32f411e-disco/src/stm32_usb.c +++ b/boards/arm/stm32/stm32f411e-disco/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f411e-disco/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/stm32f411e-disco/src/stm32_usb.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -34,11 +34,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -62,9 +62,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if !defined(CONFIG_USBDEV) && !defined(CONFIG_USBHOST) # warning "CONFIG_STM32_OTGFS is enabled but neither CONFIG_USBDEV nor CONFIG_USBHOST" @@ -78,25 +78,25 @@ # define CONFIG_STM32F411DISCO_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -127,18 +127,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F411 Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -153,7 +153,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -161,7 +161,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -259,7 +259,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -283,7 +283,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -305,7 +305,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -320,7 +320,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -329,7 +329,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -338,7 +338,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/stm32f411e-disco/src/stm32f411e-disco.h b/boards/arm/stm32/stm32f411e-disco/src/stm32f411e-disco.h index feb6dda976..934e659994 100644 --- a/boards/arm/stm32/stm32f411e-disco/src/stm32f411e-disco.h +++ b/boards/arm/stm32/stm32f411e-disco/src/stm32f411e-disco.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f411e-disco/src/stm32f411e-disco.h + * boards/arm/stm32/stm32f411e-disco/src/stm32f411e-disco.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Frank Bennett @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F411E_DISCO_SRC_STM32F411E_DISCO_H -#define __BOARDS_ARM_STM32F411E_DISCO_SRC_STM32F411E_DISCO_H +#ifndef __BOARDS_ARM_STM32_STM32F411E_DISCO_SRC_STM32F411E_DISCO_H +#define __BOARDS_ARM_STM32_STM32F411E_DISCO_SRC_STM32F411E_DISCO_H /**************************************************************************** * Included Files @@ -187,4 +187,4 @@ int stm32_usbhost_initialize(void); int stm32_bringup(void); -#endif /* __BOARDS_ARM_STM32F411E_DISCO_SRC_STM32F411E_DISCO_H */ +#endif /* __BOARDS_ARM_STM32_STM32F411E_DISCO_SRC_STM32F411E_DISCO_H */ diff --git a/boards/arm/stm32/stm32f429i-disco/README.txt b/boards/arm/stm32/stm32f429i-disco/README.txt index 1a40829811..adc4bd5871 100644 --- a/boards/arm/stm32/stm32f429i-disco/README.txt +++ b/boards/arm/stm32/stm32f429i-disco/README.txt @@ -51,7 +51,7 @@ Development Environment The Development environments for the STM32F429I-DISCO board are identical to the environments for other STM32F boards. For full details on the environment options and setup, see the README.txt file in the -config/stm32f4discovery directory. +boards/arm/stm32/stm32f4discovery directory. Setup and Programming Flash =========================== @@ -295,7 +295,7 @@ the following lines in each Make.defs file: Configuration Changes --------------------- -Below are all of the configuration changes that I had to make to boards/stm32f429i-disco/nsh2 +Below are all of the configuration changes that I had to make to boards/arm/stm32/stm32f429i-disco/nsh2 in order to successfully build NuttX using the Atollic toolchain WITH FPU support: -CONFIG_ARCH_FPU=n : Enable FPU support diff --git a/boards/arm/stm32/stm32f429i-disco/include/board.h b/boards/arm/stm32/stm32f429i-disco/include/board.h index 2668de6db4..9d37d6e885 100644 --- a/boards/arm/stm32/stm32f429i-disco/include/board.h +++ b/boards/arm/stm32/stm32f429i-disco/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f429i-disco/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm32f429i-disco/include/board.h * include/arch/board/board.h * * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F429I_DISCO_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F429I_DISCO_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM32F429I_DISCO_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM32F429I_DISCO_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include "stm32_sdio.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* The STM32F4 Discovery board features a single 8MHz crystal. Space is provided @@ -464,4 +464,4 @@ #define ADC1_DMA_CHAN DMAMAP_ADC1_1 -#endif /* __BOARDS_ARM_STM32F429I_DISCO_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM32F429I_DISCO_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/Make.defs b/boards/arm/stm32/stm32f429i-disco/scripts/Make.defs index d0ce05bc36..bdd749ed88 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/Make.defs +++ b/boards/arm/stm32/stm32f429i-disco/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f429i-disco/scripts/Make.defs +# boards/arm/stm32/stm32f429i-disco/scripts/Make.defs # # Copyright (C) 2013, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/gnu-elf.ld b/boards/arm/stm32/stm32f429i-disco/scripts/gnu-elf.ld index ab141daaa0..69b840fd4c 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/gnu-elf.ld +++ b/boards/arm/stm32/stm32f429i-disco/scripts/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/scripts/gnu-elf.ld + * boards/arm/stm32/stm32f429i-disco/scripts/gnu-elf.ld * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld b/boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld index 78f1440470..7eca3bdce6 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/scripts/kernel-space.ld + * boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/ld.script b/boards/arm/stm32/stm32f429i-disco/scripts/ld.script index 1a31b890b0..ee9beffa40 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/ld.script +++ b/boards/arm/stm32/stm32f429i-disco/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/scripts/ld.script + * boards/arm/stm32/stm32f429i-disco/scripts/ld.script * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/memory.ld b/boards/arm/stm32/stm32f429i-disco/scripts/memory.ld index 867134cbc5..1ecedd538b 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/memory.ld +++ b/boards/arm/stm32/stm32f429i-disco/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/scripts/memory.ld + * boards/arm/stm32/stm32f429i-disco/scripts/memory.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -48,7 +48,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of * FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/stm32f429i-disco/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32/stm32f429i-disco/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld b/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld index 4bbb4ee7df..332f3cecb6 100644 --- a/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld +++ b/boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/scripts/user-space.ld + * boards/arm/stm32/stm32f429i-disco/scripts/user-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f429i-disco/src/Makefile b/boards/arm/stm32/stm32f429i-disco/src/Makefile index 1da8b03ec7..ff8de40e60 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/Makefile +++ b/boards/arm/stm32/stm32f429i-disco/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f429i-disco/src/Makefile +# boards/arm/stm32/stm32f429i-disco/src/Makefile # # Copyright (C) 2011-2013 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_adc.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_adc.c index e7f584a833..0bcb08ce2b 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_adc.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f303ze/src/stm32_adc.c + * boards/arm/stm32/stm32f429i-disco/src/stm32_adc.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_appinit.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_appinit.c index 7705084857..729bd954f7 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_appinit.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f429i-disco/src/stm32_appinit.c + * boards/arm/stm32/stm32f429i-disco/src/stm32_appinit.c * * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_autoleds.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_autoleds.c index 67f872ac72..b1c15c1945 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_autoleds.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/src/stm32_autoleds.c + * boards/arm/stm32/stm32f429i-disco/src/stm32_autoleds.c * * Copyright (C) 2011-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_boot.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_boot.c index 2920eed1d2..539bfdfdc5 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_boot.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f429i-disco/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/stm32f429i-disco/src/stm32_boot.c * * Copyright (C) 2011-2012, 2015-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,11 @@ #include "stm32f429i-disco.h" #include "stm32_ccm.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -60,7 +60,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c index af9924dd99..9c6a638c90 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f429i-disco/src/stm32_bringup.c + * boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c * * Copyright (C) 2012, 2015-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_buttons.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_buttons.c index a6ed23998c..984dcf96da 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_buttons.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/src/stm32_buttons.c + * boards/arm/stm32/stm32f429i-disco/src/stm32_buttons.c * * Copyright (C) 2011-2012, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -121,7 +121,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -141,7 +141,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_extmem.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_extmem.c index ab3ae31537..13039c864e 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_extmem.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_extmem.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f429i-disco/src/stm32_extmem.c +/**************************************************************************** + * boards/arm/stm32/stm32f429i-disco/src/stm32_extmem.c * * Copyright (C) 2013 Ken Pettit. All rights reserved. * Author: Ken Pettit @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include "stm32.h" #include "stm32f429i-disco.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_FMC #warning "FMC is not enabled" @@ -76,13 +76,13 @@ FMC_SDCMR_MDR_CAS_LATENCY_3 |\ FMC_SDCMR_MDR_WBL_SINGLE -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* GPIO configurations common to most external memories */ @@ -104,21 +104,21 @@ static const uint32_t g_sdram_config[] = { #define NUM_SDRAM_GPIOS (sizeof(g_sdram_config) / sizeof(uint32_t)) -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_sdram_initialize * * Description: * Called from stm32_bringup to initialize external SDRAM access. * - ************************************************************************************/ + ****************************************************************************/ void stm32_sdram_initialize(void) { diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_highpri.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_highpri.c index 91d72d2541..119c303fd4 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_highpri.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_highpri.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/src/stm32_highpri.c + * boards/arm/stm32/stm32f429i-disco/src/stm32_highpri.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_idle.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_idle.c index e4df120d4f..6ca33e5cee 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_idle.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_idle.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/src/stm32_idle.c + * boards/arm/stm32/stm32f429i-disco/src/stm32_idle.c * * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -223,13 +223,13 @@ errout: # define stm32_idlepm() #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_alarmcb * * Description: * RTC alarm service routine * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM) static void stm32_alarmcb(void) diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c index 8365ba409d..8dd5eeb4f8 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/src/stm32_ili93414ws.c + * boards/arm/stm32/stm32f429i-disco/src/stm32_ili93414ws.c * * Driver for the ILI9341 Single Chip LCD driver connected * via 4 wire serial (spi) mcu interface diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_l3gd20.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_l3gd20.c index 116cb73c3f..b0b6326a26 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_l3gd20.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_l3gd20.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/src/stm32_l3gd20.c + * boards/arm/stm32/stm32f429i-disco/src/stm32_l3gd20.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_lcd.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_lcd.c index 78b2a342f3..73a8289c26 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_lcd.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_lcd.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f429i-disco/src/stm32_lcd.c +/**************************************************************************** + * boards/arm/stm32/stm32f429i-disco/src/stm32_lcd.c * * Copyright (C) 2014-2015 Marco Krahl. All rights reserved. * Author: Marco Krahl @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #include "stm32f429i-disco.h" #include "stm32_ltdc.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32F429I_DISCO_ILI9341_LCDDEVICE # define ILI9341_LCD_DEVICE CONFIG_STM32F429I_DISCO_ILI9341_LCDDEVICE @@ -277,9 +277,9 @@ #define ILI9341_YRES BOARD_LTDC_HEIGHT #endif /* CONFIG_STM32F429I_DISCO_ILI9341_FBIFACE */ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32F429I_DISCO_ILI9341_LCDIFACE FAR struct lcd_dev_s *g_lcd = NULL; @@ -289,18 +289,18 @@ FAR struct lcd_dev_s *g_lcd = NULL; FAR struct ili9341_lcd_s *g_ltdc = NULL; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32F429I_DISCO_ILI9341_FBIFACE -/************************************************************************************ +/**************************************************************************** * Name: stm32_ili9341_initialize * * Description: * Initialize the ili9341 LCD controller to the RGB interface mode. * - ************************************************************************************/ + ****************************************************************************/ static int stm32_ili9341_initialize(void) { @@ -409,12 +409,12 @@ static int stm32_ili9341_initialize(void) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32F429I_DISCO_ILI9341_LCDIFACE -/************************************************************************************ +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: @@ -424,7 +424,7 @@ static int stm32_ili9341_initialize(void) * * Returned Value: * - ************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { @@ -436,7 +436,7 @@ void board_lcd_uninitialize(void) } -/************************************************************************************ +/**************************************************************************** * Name: board_lcd_getdev * * Description: @@ -449,7 +449,7 @@ void board_lcd_uninitialize(void) * Returned Value: * Reference to the LCD object if exist otherwise NULL * - ************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -461,7 +461,7 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return NULL; } -/************************************************************************************ +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -475,7 +475,7 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) * On success - Ok * On error - Error Code * - ************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_ostest.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_ostest.c index c47cc972cc..14985086b4 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_ostest.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_ostest.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f429i-disco/src/stm32_ostest.c +/**************************************************************************** + * boards/arm/stm32/stm32f429i-disco/src/stm32_ostest.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include "up_internal.h" #include "stm32f429i-disco.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #undef HAVE_FPU @@ -68,19 +68,19 @@ # error "CONFIG_TESTING_OSTEST_FPUSIZE has the wrong size" #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static uint32_t g_saveregs[XCPTCONTEXT_REGS]; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /* Given an array of size CONFIG_TESTING_OSTEST_FPUSIZE, this function will return * the current FPU registers. */ diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_pwm.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_pwm.c index 868c1d7cbf..add34682cf 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_pwm.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f302r8/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/stm32f429i-disco/src/stm32_pwm.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #include "stm32_pwm.h" #include "stm32f429i-disco.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ /* PWM Timer */ @@ -73,17 +73,17 @@ # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_spi.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_spi.c index cd7987b53e..b5e7576031 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_spi.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f429i-disco/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/stm32f429i-disco/src/stm32_spi.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -56,25 +56,25 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) ||\ defined(CONFIG_STM32_SPI4) || defined(CONFIG_STM32_SPI5) -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_SPI5 FAR struct spi_dev_s *g_spidev5 = NULL; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32f429i-disco board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_stmpe811.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_stmpe811.c index 3190827d5e..1c0b6ad2d6 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_stmpe811.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_stmpe811.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f429i-disco/src/stm32_stmpe811.c +/**************************************************************************** + * boards/arm/stm32/stm32f429i-disco/src/stm32_stmpe811.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_usb.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_usb.c index 352191d22b..9624a7652f 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_usb.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f429i-disco/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/stm32f429i-disco/src/stm32_usbdev.c * * Copyright (C) 2013, 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,9 +59,9 @@ #ifdef CONFIG_STM32_OTGHS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -78,25 +78,25 @@ # define CONFIG_STM32F429IDISCO_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -127,18 +127,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F4Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -153,7 +153,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -161,7 +161,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -225,7 +225,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -249,7 +249,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -271,7 +271,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -286,7 +286,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -295,7 +295,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -304,7 +304,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_userleds.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_userleds.c index 5f2293b5b2..b757c0409a 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_userleds.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/src/stm32_userleds.c + * boards/arm/stm32/stm32f429i-disco/src/stm32_userleds.c * * Copyright (C) 2011, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32f429i-disco.h b/boards/arm/stm32/stm32f429i-disco/src/stm32f429i-disco.h index 178f394465..26825588c9 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32f429i-disco.h +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32f429i-disco.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f429i-disco/src/stm32f429i-disco.h + * boards/arm/stm32/stm32f429i-disco/src/stm32f429i-disco.h * * Copyright (C) 2011-2012, 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F429I_DISCO_SRC_STM32F429I_DISCO__H -#define __BOARDS_ARM_STM32F429I_DISCO_SRC_STM32F429I_DISCO__H +#ifndef __BOARDS_ARM_STM32_STM32F429I_DISCO_SRC_STM32F429I_DISCO__H +#define __BOARDS_ARM_STM32_STM32F429I_DISCO_SRC_STM32F429I_DISCO__H /**************************************************************************** * Included Files @@ -274,13 +274,13 @@ int stm32_usbhost_initialize(void); int stm32_tsc_setup(int minor); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_sdram_initialize * * Description: * Called from stm32_bringup to initialize external SDRAM access. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32_FMC void stm32_sdram_initialize(void); @@ -402,4 +402,4 @@ int stm32_adc_setup(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32F429I_DISCO_SRC_STM32F429I_DISCO_H */ +#endif /* __BOARDS_ARM_STM32_STM32F429I_DISCO_SRC_STM32F429I_DISCO_H */ diff --git a/boards/arm/stm32/stm32f429i-disco/tools/fbcalc.sh b/boards/arm/stm32/stm32f429i-disco/tools/fbcalc.sh index ad55475e18..8f6d18f1d1 100755 --- a/boards/arm/stm32/stm32f429i-disco/tools/fbcalc.sh +++ b/boards/arm/stm32/stm32f429i-disco/tools/fbcalc.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash ############################################################################# - # boards/stm32f429-disco/tools/fbcalc.sh + # boards/arm/stm32/stm32f429-disco/tools/fbcalc.sh # # Copyright (C) 2018 Marco Krahl. All rights reserved. # Author: Marco Krahl diff --git a/boards/arm/stm32/stm32f4discovery/README.txt b/boards/arm/stm32/stm32f4discovery/README.txt index 5ff84a3c75..0141c242cc 100644 --- a/boards/arm/stm32/stm32f4discovery/README.txt +++ b/boards/arm/stm32/stm32f4discovery/README.txt @@ -348,7 +348,7 @@ the following lines in each Make.defs file: Configuration Changes --------------------- -Below are all of the configuration changes that I had to make to boards/stm3240g-eval/nsh2 +Below are all of the configuration changes that I had to make to boards/arm/stm32/stm3240g-eval/nsh2 in order to successfully build NuttX using the Atollic toolchain WITH FPU support: -CONFIG_ARCH_FPU=n : Enable FPU support @@ -497,7 +497,7 @@ MAPPING TO STM32 F4: 4 Also the reset pin for the CS43L22 audio Codec. NOTE: The configuration to test this LCD configuration is available at -boards/stm32f4discovery/nxlines. As of this writing, I have not seen the +boards/arm/stm32/stm32f4discovery/nxlines. As of this writing, I have not seen the LCD working so I probably have some things wrong. I might need to use a bit-banging interface. Below is the pin configuration @@ -593,7 +593,7 @@ that I am using: Darcy Gong recently added support for the UG-2864HSWEG01 OLED which is also an option with this configuration. I have little technical information about -the UG-2864HSWEG01 interface (see boards/stm32f4discovery/src/up_ug2864hsweg01.c). +the UG-2864HSWEG01 interface (see boards/arm/stm32/stm32f4discovery/src/up_ug2864hsweg01.c). HCI UART ======== @@ -1402,7 +1402,7 @@ Configuration Sub-directories The HCI UART selection can be changed by re-configuring and assigning the different U[S]ART to the HCI. The U[S]ART pin selections can be changed by modifying the disambiguation definitions in - boards/stm32f4discovery/include/board.h + boards/arm/stm32/stm32f4discovery/include/board.h I have been testing with the DVK_BT960_SA board via J10 as follows: @@ -2120,7 +2120,7 @@ Configuration Sub-directories CONFIG_ARCH_CUSTOM_PMINIT=y CONFIG_ARCH_CUSTOM_PMINIT moves the PM initialization from - arch/arm/src/stm32/stm32_pminitialiaze.c to boards/stm3210-eval/src/stm32_pm.c. + arch/arm/src/stm32/stm32_pminitialiaze.c to boards/arm/stm32/stm3210-eval/src/stm32_pm.c. This allows us to support board-specific PM initialization. CONFIG_ARCH_IDLE_CUSTOM=y @@ -2133,7 +2133,7 @@ Configuration Sub-directories The configuration CONFIG_ARCH_IDLE_CUSTOM allows us to "steal" the normal STM32 IDLE loop (of arch/arm/src/stm32/stm32_idle.c) and replace - this with our own custom IDLE loop (at boards/stm3210-eval/src/up_idle.c). + this with our own custom IDLE loop (at boards/arm/stm32/stm3210-eval/src/up_idle.c). 3. Here are some additional things to note in the configuration: diff --git a/boards/arm/stm32/stm32f4discovery/include/board.h b/boards/arm/stm32/stm32f4discovery/include/board.h index 9c23a9d06a..24c46c8710 100644 --- a/boards/arm/stm32/stm32f4discovery/include/board.h +++ b/boards/arm/stm32/stm32f4discovery/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/include/board.h * * Copyright (C) 2012, 2014-2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F4DISCOVERY_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F4DISCOVERY_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM32F4DISCOVERY_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM32F4DISCOVERY_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,9 +47,9 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* The STM32F4 Discovery board features a single 8MHz crystal. Space is provided @@ -400,4 +400,4 @@ #define DMAMAP_SDIO DMAMAP_SDIO_1 -#endif /* __BOARDS_ARM_STM32F4DISCOVERY_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM32F4DISCOVERY_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm32f4discovery/kernel/Makefile b/boards/arm/stm32/stm32f4discovery/kernel/Makefile index 84fc3aadba..b432fb32db 100644 --- a/boards/arm/stm32/stm32f4discovery/kernel/Makefile +++ b/boards/arm/stm32/stm32f4discovery/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f4discovery/kernel/Makefile +# boards/arm/stm32/stm32f4discovery/kernel/Makefile # # Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/kernel/stm32_userspace.c b/boards/arm/stm32/stm32f4discovery/kernel/stm32_userspace.c index 17da8d26ce..0d02797165 100644 --- a/boards/arm/stm32/stm32f4discovery/kernel/stm32_userspace.c +++ b/boards/arm/stm32/stm32f4discovery/kernel/stm32_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/kernel/stm32_userspace.c + * boards/arm/stm32/stm32f4discovery/kernel/stm32_userspace.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/scripts/Make.defs b/boards/arm/stm32/stm32f4discovery/scripts/Make.defs index 30f25cae23..48179cb2a5 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/Make.defs +++ b/boards/arm/stm32/stm32f4discovery/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f4discovery/scripts/Make.defs +# boards/arm/stm32/stm32f4discovery/scripts/Make.defs # # Copyright (C) 2011-2012, 2016-2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/scripts/gnu-elf.ld b/boards/arm/stm32/stm32f4discovery/scripts/gnu-elf.ld index 4d6a05e159..803a21de8b 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/gnu-elf.ld +++ b/boards/arm/stm32/stm32f4discovery/scripts/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/scripts/gnu-elf.ld + * boards/arm/stm32/stm32f4discovery/scripts/gnu-elf.ld * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld b/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld index ee37abafb4..5eba73825c 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld +++ b/boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/scripts/kernel-space.ld + * boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/scripts/ld.script b/boards/arm/stm32/stm32f4discovery/scripts/ld.script index 432f982306..e32f6559ce 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/ld.script +++ b/boards/arm/stm32/stm32f4discovery/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/scripts/ld.script + * boards/arm/stm32/stm32f4discovery/scripts/ld.script * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/scripts/memory.ld b/boards/arm/stm32/stm32f4discovery/scripts/memory.ld index 19d3c11b4d..4ab6e62073 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/memory.ld +++ b/boards/arm/stm32/stm32f4discovery/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/scripts/memory.ld + * boards/arm/stm32/stm32f4discovery/scripts/memory.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -47,7 +47,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of * FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/stm32f4discovery/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32/stm32f4discovery/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld b/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld index a01d06fa61..b98cbe941f 100644 --- a/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld +++ b/boards/arm/stm32/stm32f4discovery/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/scripts/user-space.ld + * boards/arm/stm32/stm32f4discovery/scripts/user-space.ld * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/Makefile b/boards/arm/stm32/stm32f4discovery/src/Makefile index f520731fec..641af544ee 100644 --- a/boards/arm/stm32/stm32f4discovery/src/Makefile +++ b/boards/arm/stm32/stm32f4discovery/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f4discovery/src/Makefile +# boards/arm/stm32/stm32f4discovery/src/Makefile # # Copyright (C) 2011-2013, 2015-2016, 2018-2019 Gregory Nutt. All rights # reserved. diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_appinit.c b/boards/arm/stm32/stm32f4discovery/src/stm32_appinit.c index a6e9174506..c5a9935d52 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_appinit.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f4discovery/src/stm32_appinit.c + * boards/arm/stm32/stm32f4discovery/src/stm32_appinit.c * * Copyright (C) 2012, 2014, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_autoleds.c b/boards/arm/stm32/stm32f4discovery/src/stm32_autoleds.c index bbfb98d8c2..b79b2aeb59 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_autoleds.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_autoleds.c + * boards/arm/stm32/stm32f4discovery/src/stm32_autoleds.c * * Copyright (C) 2011-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_bh1750fvi.c b/boards/arm/stm32/stm32f4discovery/src/stm32_bh1750fvi.c index 2a12a9233d..ab4ee0ee6e 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_bh1750fvi.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_bh1750fvi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_bh1750fvi.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_bh1750fvi.c * * Copyright (C) 2016 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,17 +51,17 @@ #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_BH1750FVI) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define BH1750FVI_I2C_PORTNO 1 /* On I2C1 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_bh1750initialize * * Description: @@ -73,7 +73,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_bh1750initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_bmp180.c b/boards/arm/stm32/stm32f4discovery/src/stm32_bmp180.c index 691174c904..d1f7f3f721 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_bmp180.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_bmp180.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_bmp180.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_bmp180.c * * Copyright (C) 2015 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,17 +51,17 @@ #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_BMP180) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define MPL115A_I2C_PORTNO 1 /* On I2C1 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_bmp180initialize * * Description: @@ -73,7 +73,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_bmp180initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_boot.c b/boards/arm/stm32/stm32f4discovery/src/stm32_boot.c index 5611c6dfc8..0bf7104266 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_boot.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_boot.c + * boards/arm/stm32/stm32f4discovery/src/stm32_boot.c * * Copyright (C) 2011-2012, 2015, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c b/boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c index e9408703f1..874b77afba 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f4discovery/src/stm32_bringup.c + * boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c * * Copyright (C) 2012, 2014-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_buttons.c b/boards/arm/stm32/stm32f4discovery/src/stm32_buttons.c index c0422e23f5..529c9aae68 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_buttons.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_buttons.c + * boards/arm/stm32/stm32f4discovery/src/stm32_buttons.c * * Copyright (C) 2011-2012, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -122,7 +122,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -142,7 +142,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_can.c b/boards/arm/stm32/stm32f4discovery/src/stm32_can.c index a3e421c061..8d2bd869ca 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_can.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_can.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ @@ -71,17 +71,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_critmon.c b/boards/arm/stm32/stm32f4discovery/src/stm32_critmon.c index d11eb472cc..d9eff96a98 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_critmon.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_critmon.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * config/stm32f4discovery/src/stm32_netinit.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_netinit.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,22 +51,22 @@ #ifdef CONFIG_SCHED_CRITMONITOR -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: up_critmon_gettime - ************************************************************************************/ + ****************************************************************************/ uint32_t up_critmon_gettime(void) { return getreg32(DWT_CYCCNT); } -/************************************************************************************ +/**************************************************************************** * Name: up_critmon_gettime - ************************************************************************************/ + ****************************************************************************/ void up_critmon_convert(uint32_t elapsed, FAR struct timespec *ts) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_cs43l22.c b/boards/arm/stm32/stm32f4discovery/src/stm32_cs43l22.c index e6ef92ec96..cda2594479 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_cs43l22.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_cs43l22.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_cs43l22.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_cs43l22.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Taras Drozdovskiy @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_ethernet.c b/boards/arm/stm32/stm32f4discovery/src/stm32_ethernet.c index 957dbbe2fc..a661ef6b30 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_ethernet.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_ethernet.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_ethernet.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_ethernet.c * * Copyright (C) 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -65,9 +65,9 @@ #if defined(CONFIG_STM32F4DISBB) && defined(CONFIG_STM32_ETHMAC) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define STM32_ETHMAC_DEVNAME "eth0" @@ -88,22 +88,22 @@ # define phyinfo(x...) #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef HAVE_NETMONITOR static xcpt_t g_ethmac_handler; static void *g_ethmac_arg; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_emac0_phy_enable - ************************************************************************************/ + ****************************************************************************/ #ifdef HAVE_NETMONITOR static void stm32_emac0_phy_enable(bool enable) @@ -126,17 +126,17 @@ static void stm32_emac0_phy_enable(bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_netinitialize * * Description: * Configure board resources to support networking. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_netinitialize(void) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_extmem.c b/boards/arm/stm32/stm32f4discovery/src/stm32_extmem.c index ce6f4dbb2a..d751b167b2 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_extmem.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_extmem.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4disovery/src/stm32_extmem.c +/**************************************************************************** + * boards/arm/stm32/stm32f4disovery/src/stm32_extmem.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include "stm32.h" #include "stm32f4discovery.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32_FSMC # warning "FSMC is not enabled" @@ -66,9 +66,9 @@ #define STM32_FSMC_NADDRCONFIGS 26 #define STM32_FSMC_NDATACONFIGS 16 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* GPIO configurations common to most external memories */ @@ -88,25 +88,25 @@ static const uint32_t g_dataconfig[STM32_FSMC_NDATACONFIGS] = GPIO_FSMC_D12, GPIO_FSMC_D13, GPIO_FSMC_D14, GPIO_FSMC_D15 }; -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for external memory usage * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemgpios(const uint32_t *gpios, int ngpios) { @@ -120,26 +120,26 @@ void stm32_extmemgpios(const uint32_t *gpios, int ngpios) } } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemaddr * * Description: * Initialize adress line GPIOs for external memory access * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemaddr(int naddrs) { stm32_extmemgpios(g_addressconfig, naddrs); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemdata * * Description: * Initialize data line GPIOs for external memory access * - ************************************************************************************/ + ****************************************************************************/ void stm32_extmemdata(int ndata) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_hciuart.c b/boards/arm/stm32/stm32f4discovery/src/stm32_hciuart.c index 8b86cba383..72892a622e 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_hciuart.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_hciuart.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_xen1210.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_xen1210.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_idle.c b/boards/arm/stm32/stm32f4discovery/src/stm32_idle.c index 46c2df0164..65f6a2814a 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_idle.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_idle.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_idle.c + * boards/arm/stm32/stm32f4discovery/src/stm32_idle.c * * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -220,13 +220,13 @@ errout: # define stm32_idlepm() #endif -/************************************************************************************ +/**************************************************************************** * Name: up_alarmcb * * Description: * RTC alarm service routine * - ************************************************************************************/ + ****************************************************************************/ #if 0 /* Not used */ static void up_alarmcb(void) diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_lis3dsh.c b/boards/arm/stm32/stm32f4discovery/src/stm32_lis3dsh.c index 27318fbeea..c4e2404f69 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_lis3dsh.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_lis3dsh.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_lis3dsh.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_lis3dsh.c * * Copyright (C) 2017 Florian Olbrich. All rights reserved. * Author: Florian Olbrich @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,18 +50,18 @@ #if defined(CONFIG_STM32F4DISCO_LIS3DSH) && defined(CONFIG_LIS3DSH) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define GPIO_STM32F4DISCO_LIS3DSH_EXT0 \ (GPIO_INPUT|GPIO_FLOAT|GPIO_AF0|GPIO_SPEED_50MHz|GPIO_PORTE|GPIO_PIN0) -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: attach_disc_lis3dsh * * Description: @@ -77,7 +77,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int attach_disc_lis3dsh(FAR struct lis3dsh_config_s *config, xcpt_t interrupt_handler) { return stm32_gpiosetevent(GPIO_STM32F4DISCO_LIS3DSH_EXT0, @@ -88,11 +88,11 @@ int attach_disc_lis3dsh(FAR struct lis3dsh_config_s *config, xcpt_t interrupt_ha NULL ); } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_lis3dshinitialize * * Description: @@ -104,7 +104,7 @@ int attach_disc_lis3dsh(FAR struct lis3dsh_config_s *config, xcpt_t interrupt_ha * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_lis3dshinitialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_max31855.c b/boards/arm/stm32/stm32f4discovery/src/stm32_max31855.c index 14f6d69867..9dd0ebbaeb 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_max31855.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_max31855.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_max31855.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_max31855.c * * Copyright (C) 2015 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,11 +51,11 @@ #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_MAX31855) && defined(CONFIG_STM32_SPI2) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_max31855initialize * * Description: @@ -69,7 +69,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_max31855initialize(FAR const char *devpath, int bus, uint16_t devid) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_max6675.c b/boards/arm/stm32/stm32f4discovery/src/stm32_max6675.c index 7a9ccaa64f..4e30c2cfd6 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_max6675.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_max6675.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_max6675.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_max6675.c * * Copyright (C) 2015 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,17 +51,17 @@ #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_MAX6675) && defined(CONFIG_STM32_SPI2) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define MAX6675_SPI_PORTNO 2 /* On SPI2 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_max6675initialize * * Description: @@ -73,7 +73,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_max6675initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_max7219.c b/boards/arm/stm32/stm32f4discovery/src/stm32_max7219.c index 1417274244..9344d7721e 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_max7219.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_max7219.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f103-minimum/src/stm32_max7219.c + * boards/arm/stm32/stm32f103-minimum/src/stm32_max7219.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_max7219_leds.c b/boards/arm/stm32/stm32f4discovery/src/stm32_max7219_leds.c index f99a144d95..a125081050 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_max7219_leds.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_max7219_leds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_max7219_leds.c + * boards/arm/stm32/stm32f4discovery/src/stm32_max7219_leds.c * * Copyright (C) 2018 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -58,11 +58,11 @@ #define MAX7219_SPI_PORTNO 1 /* On SPI1 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_max7219init * * Description: @@ -74,7 +74,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_max7219init(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_mlx90614.c b/boards/arm/stm32/stm32f4discovery/src/stm32_mlx90614.c index a0a561256d..fb2283fe14 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_mlx90614.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_mlx90614.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_mlx90614.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_mlx90614.c * * Copyright (C) 2016 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,19 +51,19 @@ #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_MLX90614) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define MLX90614_I2C_PORTNO 1 /* On I2C1 */ #define MLX90614_ADDRESS 0x5a /* Default I2C Address, can be chanced in EEPROM */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_mlx90614init * * Description: @@ -75,7 +75,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_mlx90614init(FAR const char *devpath) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_netinit.c b/boards/arm/stm32/stm32f4discovery/src/stm32_netinit.c index 36ee755f93..da25c2c029 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_netinit.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_netinit.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * config/stm32f4discovery/src/stm32_netinit.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_netinit.c * * Copyright (C) 2017 Masayuki Ishikawa. All rights reserved. * Author: Masayuki Ishikawa @@ -31,21 +31,21 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: up_netinitialize - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) void up_netinitialize(void) diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_nunchuck.c b/boards/arm/stm32/stm32f4discovery/src/stm32_nunchuck.c index 6cd88ac53b..d04d698808 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_nunchuck.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_nunchuck.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_nunchuck.c + * boards/arm/stm32/stm32f4discovery/src/stm32_nunchuck.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Alan Carvalho de Assis diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_ostest.c b/boards/arm/stm32/stm32f4discovery/src/stm32_ostest.c index a18e4b6109..8a3e59fbe7 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_ostest.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_ostest.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_ostest.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_ostest.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include "up_internal.h" #include "stm32f4discovery.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ @@ -69,15 +69,15 @@ # error "CONFIG_TESTING_OSTEST_FPUSIZE has the wrong size" #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static uint32_t g_saveregs[XCPTCONTEXT_REGS]; -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /* Given an array of size CONFIG_TESTING_OSTEST_FPUSIZE, this function will return * the current FPU registers. diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_pca9635.c b/boards/arm/stm32/stm32f4discovery/src/stm32_pca9635.c index 8d707a1708..45f90827f9 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_pca9635.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_pca9635.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_pca9635.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_pca9635.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_pm.c b/boards/arm/stm32/stm32f4discovery/src/stm32_pm.c index 187b5bfac2..cd7a3ec6c7 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_pm.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_pm.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_pm.c + * boards/arm/stm32/stm32f4discovery/src/stm32_pm.c * * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_pmbuttons.c b/boards/arm/stm32/stm32f4discovery/src/stm32_pmbuttons.c index 49ed33ba8c..e09e291ed2 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_pmbuttons.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_pmbuttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_pm_buttons.c + * boards/arm/stm32/stm32f4discovery/src/stm32_pm_buttons.c * * Copyright (C) 2012, 2015-2017 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_pwm.c b/boards/arm/stm32/stm32f4discovery/src/stm32_pwm.c index a7d8ffff5b..0734ebd7ba 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_pwm.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_pwm.c * * Copyright (C) 2011, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #include "stm32_pwm.h" #include "stm32f4discovery.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ /* PWM * @@ -83,17 +83,17 @@ # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_qencoder.c b/boards/arm/stm32/stm32f4discovery/src/stm32_qencoder.c index b2531494e4..17686bf923 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_qencoder.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_qencoder.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_qencoder.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_qencoder.c * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,18 +50,18 @@ #include "stm32_qencoder.h" #include "stm32f4discovery.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_qencoder_initialize * * Description: * All STM32 architectures must provide the following interface to work with * examples/qencoder. * - ************************************************************************************/ + ****************************************************************************/ int stm32_qencoder_initialize(FAR const char *devpath, int timer) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_reset.c b/boards/arm/stm32/stm32f4discovery/src/stm32_reset.c index e6071824ad..9001a6201e 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_reset.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_reset.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f4discovery/src/stm32_reset.c + * boards/arm/stm32/stm32f4discovery/src/stm32_reset.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_rgbled.c b/boards/arm/stm32/stm32f4discovery/src/stm32_rgbled.c index c3cbf29f0c..2e4ddc37d7 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_rgbled.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_rgbled.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_rgbled.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_rgbled.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32_pwm.h" #include "stm32f4discovery.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #define HAVE_RGBLED 1 @@ -89,17 +89,17 @@ #ifdef HAVE_RGBLED -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_rgbled_setup * * Description: * Configure the RGB LED. * - ************************************************************************************/ + ****************************************************************************/ int stm32_rgbled_setup(void) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_romfs.h b/boards/arm/stm32/stm32f4discovery/src/stm32_romfs.h index 960d5442d3..97e041e7dc 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_romfs.h +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_romfs.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_romfs.h + * boards/arm/stm32/stm32f4discovery/src/stm32_romfs.h * * Copyright (C) 2017 Tomasz Wozniak. All rights reserved. * Author: Tomasz Wozniak @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F4DISCOVERY_SRC_STM32_ROMFS_H -#define __BOARDS_ARM_STM32F4DISCOVERY_SRC_STM32_ROMFS_H +#ifndef __BOARDS_ARM_STM32_STM32F4DISCOVERY_SRC_STM32_ROMFS_H +#define __BOARDS_ARM_STM32_STM32F4DISCOVERY_SRC_STM32_ROMFS_H /**************************************************************************** * Included Files @@ -73,4 +73,4 @@ int stm32_romfs_initialize(void); #endif /* CONFIG_STM32_ROMFS */ -#endif /* __BOARDS_ARM_STM32F4DISCOVERY_SRC_STM32_ROMFS_H */ +#endif /* __BOARDS_ARM_STM32_STM32F4DISCOVERY_SRC_STM32_ROMFS_H */ diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_romfs_initialize.c b/boards/arm/stm32/stm32f4discovery/src/stm32_romfs_initialize.c index 0662103c69..9f63db65ad 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_romfs_initialize.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_romfs_initialize.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32f4discovery/src/stm32_romfs_initialize.c + * boards/arm/stm32/stm32f4discovery/src/stm32_romfs_initialize.c * This file provides contents of an optional ROMFS volume, mounted at boot. * * Copyright (C) 2017 Tomasz Wozniak. All rights reserved. diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_sdio.c b/boards/arm/stm32/stm32f4discovery/src/stm32_sdio.c index 75e87866d6..5bcfedb811 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_sdio.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_sdio.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f4discovery/src/stm32_sdio.c + * boards/arm/stm32/stm32f4discovery/src/stm32_sdio.c * * Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_spi.c b/boards/arm/stm32/stm32f4discovery/src/stm32_spi.c index 6601cd7391..b46512f7d3 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_spi.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_spi.c * * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,17 +55,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32f4discovery board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_ssd1289.c b/boards/arm/stm32/stm32f4discovery/src/stm32_ssd1289.c index dc7396e1a3..4210714a60 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_ssd1289.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_ssd1289.c @@ -1,5 +1,5 @@ -/************************************************************************************** - * boards/stm32fdiscover/src/stm32_ssd1289.c +/**************************************************************************** + * boards/arm/stm32/stm32fdiscover/src/stm32_ssd1289.c * * This logic supports the connection of an SSD1289-based LCD to the STM32F4Discovery * board. @@ -34,11 +34,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Included Files - **************************************************************************************/ + ****************************************************************************/ #include @@ -63,9 +63,9 @@ #ifdef CONFIG_LCD_SSD1289 -/************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - **************************************************************************************/ + ****************************************************************************/ /* Configuration **********************************************************************/ #ifndef CONFIG_STM32_FSMC @@ -93,9 +93,9 @@ #define LCD_NADDRLINES 1 /* A16 */ #define LCD_NDATALINES 16 /* D0-15 */ -/************************************************************************************** +/**************************************************************************** * Private Function Protototypes - **************************************************************************************/ + ****************************************************************************/ /* Low Level LCD access */ @@ -108,10 +108,10 @@ static uint16_t stm32_read(FAR struct ssd1289_lcd_s *dev); static void stm32_write(FAR struct ssd1289_lcd_s *dev, uint16_t data); static void stm32_backlight(FAR struct ssd1289_lcd_s *dev, int power); -/************************************************************************************** +/**************************************************************************** * Private Data - **************************************************************************************/ -/* LCD pin mapping (see boards/stm324discovery/README.txt + ****************************************************************************/ +/* LCD pin mapping (see boards/arm/stm32/stm324discovery/README.txt * MAPPING TO STM32 F4: * * ---------------- ------------- ---------------------------------- @@ -179,56 +179,56 @@ static struct ssd1289_lcd_s g_ssd1289 = static FAR struct lcd_dev_s *g_ssd1289drvr; -/************************************************************************************** +/**************************************************************************** * Private Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: stm32_select * * Description: * Select the LCD device * - **************************************************************************************/ + ****************************************************************************/ static void stm32_select(FAR struct ssd1289_lcd_s *dev) { /* Does not apply to this hardware */ } -/************************************************************************************** +/**************************************************************************** * Name: stm32_deselect * * Description: * De-select the LCD device * - **************************************************************************************/ + ****************************************************************************/ static void stm32_deselect(FAR struct ssd1289_lcd_s *dev) { /* Does not apply to this hardware */ } -/************************************************************************************** +/**************************************************************************** * Name: stm32_deselect * * Description: * Set the index register * - **************************************************************************************/ + ****************************************************************************/ static void stm32_index(FAR struct ssd1289_lcd_s *dev, uint8_t index) { putreg16((uint16_t)index, LCD_INDEX); } -/************************************************************************************** +/**************************************************************************** * Name: stm32_read * * Description: * Read LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_SSD1289_WRONLY static uint16_t stm32_read(FAR struct ssd1289_lcd_s *dev) @@ -237,39 +237,39 @@ static uint16_t stm32_read(FAR struct ssd1289_lcd_s *dev) } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm32_write * * Description: * Write LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ static void stm32_write(FAR struct ssd1289_lcd_s *dev, uint16_t data) { putreg16((uint16_t)data, LCD_DATA); } -/************************************************************************************** +/**************************************************************************** * Name: stm32_write * * Description: * Write LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ static void stm32_backlight(FAR struct ssd1289_lcd_s *dev, int power) { #warning "Missing logic" } -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize to the LCD * - ************************************************************************************/ + ****************************************************************************/ void stm32_selectlcd(void) { @@ -308,11 +308,11 @@ void stm32_selectlcd(void) putreg32(FSMC_BCR_MBKEN | FSMC_BCR_SRAM | FSMC_BCR_MWID16 | FSMC_BCR_WREN, STM32_FSMC_BCR1); } -/************************************************************************************** +/**************************************************************************** * Public Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -320,7 +320,7 @@ void stm32_selectlcd(void) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - **************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -363,14 +363,14 @@ int board_lcd_initialize(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows support * for multiple LCD devices. * - **************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -378,13 +378,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return g_ssd1289drvr; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Unitialize the LCD support * - **************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_ssd1351.c b/boards/arm/stm32/stm32f4discovery/src/stm32_ssd1351.c index 18bfeeb9d3..f638148448 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_ssd1351.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_ssd1351.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_ssd1351.c + * boards/arm/stm32/stm32f4discovery/src/stm32_ssd1351.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Omni Hoverboards Inc. All rights reserved. diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_st7032.c b/boards/arm/stm32/stm32f4discovery/src/stm32_st7032.c index efea5948fa..4927910cb0 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_st7032.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_st7032.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_st7032.c + * boards/arm/stm32/stm32f4discovery/src/stm32_st7032.c * * Copyright (C) 2018 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_st7567.c b/boards/arm/stm32/stm32f4discovery/src/stm32_st7567.c index a55b7cf899..389dd382e7 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_st7567.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_st7567.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_st7567.c + * boards/arm/stm32/stm32f4discovery/src/stm32_st7567.c * * Copyright (C) 2016 Uniquix Tecnologia. All rights reserved. * Author: Alan Carvalho de Assis diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_timer.c b/boards/arm/stm32/stm32f4discovery/src/stm32_timer.c index 3586a181aa..b41f7e1a24 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_timer.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_timer.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f4discovery/src/stm32_timer.c + * boards/arm/stm32/stm32f4discovery/src/stm32_timer.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_ug2864ambag01.c b/boards/arm/stm32/stm32f4discovery/src/stm32_ug2864ambag01.c index c67a570388..91e9c2eade 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_ug2864ambag01.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_ug2864ambag01.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f4discovery/src/stm32_ug2864ambag01.c + * boards/arm/stm32/stm32f4discovery/src/stm32_ug2864ambag01.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_ug2864hsweg01.c b/boards/arm/stm32/stm32f4discovery/src/stm32_ug2864hsweg01.c index 024c909418..cf42a54743 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_ug2864hsweg01.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_ug2864hsweg01.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f4discovery/src/stm32_ug2864hsweg01.c + * boards/arm/stm32/stm32f4discovery/src/stm32_ug2864hsweg01.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_uid.c b/boards/arm/stm32/stm32f4discovery/src/stm32_uid.c index cc2df0ba95..1f4d0c3b5f 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_uid.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_uid.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_uid.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_uid.c * * Copyright (C) 2015 Marawan Ragab. All rights reserved. * Author: Marawan Ragab @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -44,17 +44,17 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifndef OK # define OK 0 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_BOARDCTL_UNIQUEID) int board_uniqueid(uint8_t *uniqueid) diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_usb.c b/boards/arm/stm32/stm32f4discovery/src/stm32_usb.c index 9aaa3f9e58..a71cb384ed 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_usb.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_usb.c * * Copyright (C) 2012-2013, 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,9 +59,9 @@ #ifdef CONFIG_STM32_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -78,25 +78,25 @@ # define CONFIG_STM32F4DISCO_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -127,18 +127,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F4Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -153,7 +153,7 @@ void stm32_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_initialize * * Description: @@ -161,7 +161,7 @@ void stm32_usbinitialize(void) * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_usbhost_initialize(void) @@ -259,7 +259,7 @@ int stm32_usbhost_initialize(void) } #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_usbhost_vbusdrive * * Description: @@ -283,7 +283,7 @@ int stm32_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST void stm32_usbhost_vbusdrive(int iface, bool enable) @@ -305,7 +305,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -320,7 +320,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -329,7 +329,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -338,7 +338,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_usbmsc.c b/boards/arm/stm32/stm32f4discovery/src/stm32_usbmsc.c index af78129073..22e1838d74 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_usbmsc.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_usbmsc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_usbmsc.c + * boards/arm/stm32/stm32f4discovery/src/stm32_usbmsc.c * * Copyright (C) 2012, 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_userleds.c b/boards/arm/stm32/stm32f4discovery/src/stm32_userleds.c index 23653efdbd..5aaf1a7694 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_userleds.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_userleds.c + * boards/arm/stm32/stm32f4discovery/src/stm32_userleds.c * * Copyright (C) 2011, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_xen1210.c b/boards/arm/stm32/stm32f4discovery/src/stm32_xen1210.c index f247e2358c..389f55ddec 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_xen1210.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_xen1210.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_xen1210.c +/**************************************************************************** + * boards/arm/stm32/stm32f4discovery/src/stm32_xen1210.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files @@ -233,14 +233,14 @@ static void xen1210_clear(FAR struct xen1210_config_s *state) * Public Functions ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: xen1210_pwm_setup * * Description: * All STM32 architectures must provide the following interface to work with * examples/pwm. * - ************************************************************************************/ + ****************************************************************************/ int xen1210_pwm_setup(void) { diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_zerocross.c b/boards/arm/stm32/stm32f4discovery/src/stm32_zerocross.c index 1dbfeab5b3..baba88b433 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_zerocross.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_zerocross.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32_zerocross.c + * boards/arm/stm32/stm32f4discovery/src/stm32_zerocross.c * * Copyright (C) 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32f4discovery.h b/boards/arm/stm32/stm32f4discovery/src/stm32f4discovery.h index 0692af3636..696b2194bb 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32f4discovery.h +++ b/boards/arm/stm32/stm32f4discovery/src/stm32f4discovery.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/src/stm32f4discovery.h + * boards/arm/stm32/stm32f4discovery/src/stm32f4discovery.h * * Copyright (C) 2011-2012, 2015-2016, 2018 Gregory Nutt. All rights * reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F4DISCOVERY_SRC_STM32F4DISCOVERY_H -#define __BOARDS_ARM_STM32F4DISCOVERY_SRC_STM32F4DISCOVERY_H +#ifndef __BOARDS_ARM_STM32_STM32F4DISCOVERY_SRC_STM32F4DISCOVERY_H +#define __BOARDS_ARM_STM32_STM32F4DISCOVERY_SRC_STM32F4DISCOVERY_H /**************************************************************************** * Included Files @@ -633,13 +633,13 @@ void stm32_pm_buttons(void); int stm32_sdio_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_netinitialize * * Description: * Configure board resources to support networking. * - ************************************************************************************/ + ****************************************************************************/ #ifdef HAVE_NETMONITOR void weak_function stm32_netinitialize(void); @@ -690,14 +690,14 @@ int stm32_max31855initialize(FAR const char *devpath, int bus, uint16_t devid); #endif -/*********************************************************************************** +/**************************************************************************** * Name: stm32_mlx90614init * * Description: * Called to configure an I2C and to register MLX90614 for the stm32f103-minimum * board. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_SENSORS_MLX90614 int stm32_mlx90614init(FAR const char *devpath); @@ -841,4 +841,4 @@ int hciuart_dev_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32F4DISCOVERY_SRC_STM32F4DISCOVERY_H */ +#endif /* __BOARDS_ARM_STM32_STM32F4DISCOVERY_SRC_STM32F4DISCOVERY_H */ diff --git a/boards/arm/stm32/stm32ldiscovery/include/board.h b/boards/arm/stm32/stm32ldiscovery/include/board.h index 350005e0f9..326b4ebec3 100644 --- a/boards/arm/stm32/stm32ldiscovery/include/board.h +++ b/boards/arm/stm32/stm32ldiscovery/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32ldiscovery/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm32ldiscovery/include/board.h * * Copyright (C) 2013, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32LDISCOVERY_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32LDISCOVERY_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM32LDISCOVERY_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM32LDISCOVERY_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,9 +48,9 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ /* Four different clock sources can be used to drive the system clock (SYSCLK): @@ -273,9 +273,9 @@ #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -307,4 +307,4 @@ int stm32_slcd_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32LDISCOVERY_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM32LDISCOVERY_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm32ldiscovery/scripts/Make.defs b/boards/arm/stm32/stm32ldiscovery/scripts/Make.defs index 447275ddad..d3b653f345 100644 --- a/boards/arm/stm32/stm32ldiscovery/scripts/Make.defs +++ b/boards/arm/stm32/stm32ldiscovery/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32l1discovery/nsh/Make.defs +# boards/arm/stm32/stm32l1discovery/nsh/Make.defs # # Copyright (C) 2013, 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32ldiscovery/scripts/gnu-elf.ld b/boards/arm/stm32/stm32ldiscovery/scripts/gnu-elf.ld index d5f7d6667e..3ef66435b8 100644 --- a/boards/arm/stm32/stm32ldiscovery/scripts/gnu-elf.ld +++ b/boards/arm/stm32/stm32ldiscovery/scripts/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f3discovery/scripts/gnu-elf.ld + * boards/arm/stm32/stm32f3discovery/scripts/gnu-elf.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld index 88ab05444a..b5fa1228ba 100644 --- a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld +++ b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rb.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32fldiscovery/scripts/stm32l152rb.ld + * boards/arm/stm32/stm32fldiscovery/scripts/stm32l152rb.ld * * Copyright (C) 2013, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld index 87d182b410..32b5674b97 100644 --- a/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld +++ b/boards/arm/stm32/stm32ldiscovery/scripts/stm32l152rc.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32fldiscovery/scripts/stm32l152rc.ld + * boards/arm/stm32/stm32fldiscovery/scripts/stm32l152rc.ld * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32ldiscovery/src/Makefile b/boards/arm/stm32/stm32ldiscovery/src/Makefile index 6d62e15b56..56ba00fae3 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/Makefile +++ b/boards/arm/stm32/stm32ldiscovery/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32ldiscovery/src/Makefile +# boards/arm/stm32/stm32ldiscovery/src/Makefile # # Copyright (C) 2013 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_appinit.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_appinit.c index b580dc334e..006a2222e6 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_appinit.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32ldiscovery/src/stm32_appinit.c + * boards/arm/stm32/stm32ldiscovery/src/stm32_appinit.c * * Copyright (C) 2013, 2016, 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_autoleds.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_autoleds.c index 00ff9ff08a..db59e10e5c 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_autoleds.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32ldiscovery/src/stm32_autoleds.c + * boards/arm/stm32/stm32ldiscovery/src/stm32_autoleds.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_boot.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_boot.c index 7f192c6a55..c0c7301fd5 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_boot.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32ldiscovery/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/stm32ldiscovery/src/stm32_boot.c * * Copyright (C) 2013, 2015, 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,19 +47,19 @@ #include "up_arch.h" #include "stm32ldiscovery.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -67,7 +67,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { @@ -89,7 +89,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -100,7 +100,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_bringup.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_bringup.c index 092bad05f3..3016a92ba9 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_bringup.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32ldiscovery/src/stm32_bringup.c + * boards/arm/stm32/stm32ldiscovery/src/stm32_bringup.c * * Copyright (C) 2013, 2016, 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_buttons.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_buttons.c index eb2d34e86a..3f14082930 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_buttons.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32ldiscovery/src/board_buttons.c + * boards/arm/stm32/stm32ldiscovery/src/board_buttons.c * * Copyright (C) 2013-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -122,7 +122,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -142,7 +142,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c index a5194d9558..bbd74feb72 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32ldiscovery/src/stm32_lcd.c + * boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_pwm.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_pwm.c index 876e8ecf7f..ae8533ba87 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_pwm.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32ldiscovery/src/up_pwm.c +/**************************************************************************** + * boards/arm/stm32/stm32ldiscovery/src/up_pwm.c * * Copyright (C) 2013, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "stm32_pwm.h" #include "stm32ldiscovery.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration *******************************************************************/ /* PWM * @@ -85,17 +85,17 @@ # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_qencoder.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_qencoder.c index bf2be62ce4..cf70b729f8 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_qencoder.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_qencoder.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32ldiscovery/src/up_qencoder.c +/**************************************************************************** + * boards/arm/stm32/stm32ldiscovery/src/up_qencoder.c * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,18 +50,18 @@ #include "stm32_qencoder.h" #include "stm32ldiscovery.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_qencoder_initialize * * Description: * All STM32 architectures must provide the following interface to work with * examples/qencoder. * - ************************************************************************************/ + ****************************************************************************/ int stm32_qencoder_initialize(FAR const char *devpath, int timer) { diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_spi.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_spi.c index 5193de6f51..e8b5b21798 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_spi.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32ldiscovery/src/up_spi.c +/**************************************************************************** + * boards/arm/stm32/stm32ldiscovery/src/up_spi.c * arch/arm/src/board/up_spi.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,17 +55,17 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32ldiscovery board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_userleds.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_userleds.c index d35767827a..71bc164d96 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_userleds.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32ldiscovery/src/stm32_userleds.c + * boards/arm/stm32/stm32ldiscovery/src/stm32_userleds.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32ldiscovery.h b/boards/arm/stm32/stm32ldiscovery/src/stm32ldiscovery.h index 103b2be414..85bf0953c4 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32ldiscovery.h +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32ldiscovery.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/stm32ldiscovery/src/stm32ldiscovery.h +/**************************************************************************** + * boards/arm/stm32/stm32ldiscovery/src/stm32ldiscovery.h * arch/arm/src/board/stm32ldiscovery.h * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H -#define __BOARDS_ARM_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H +#ifndef __BOARDS_ARM_STM32_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H +#define __BOARDS_ARM_STM32_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include @@ -47,10 +47,10 @@ #include -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ -/* Configuration ************************************************************************************/ + ****************************************************************************/ +/* Configuration ****************************************************************************/ /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -85,7 +85,7 @@ #define GPIO_LED2 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_10MHz | \ GPIO_OUTPUT_CLEAR | GPIO_PORTB | GPIO_PIN6) -/* Button definitions *******************************************************************************/ +/* Button definitions ****************************************************************************/ /* The STM32L-Discovery supports two buttons; only one button is controllable by software: * * B1 USER: user and wake-up button connected to the I/O PA0 of the STM32F303VCT6. @@ -100,7 +100,7 @@ #define GPIO_BTN_USER (GPIO_INPUT | GPIO_FLOAT | GPIO_EXTI | GPIO_PORTA | GPIO_PIN0) -/* LCD definitions **********************************************************************************/ +/* LCD definitions ****************************************************************************/ /* LCD. The STM32L152RBT6 supports either a 4x32 or 8x28. The STM32L-Discovery * has an LCD 24 segments, 4 commons. On that board, LCD pins are mapped as * follows: @@ -221,19 +221,19 @@ #define BOARD_SLCD_NSEG 24 #define BOARD_SLCD_NGPIOS 28 -/**************************************************************************************************** +/**************************************************************************** * Public Types - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32_bringup @@ -255,23 +255,23 @@ int stm32_bringup(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32ldiscovery board. * - ****************************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); @@ -290,5 +290,5 @@ int stm32_qencoder_initialize(FAR const char *devpath, int timer); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H */ +#endif /* __BOARDS_ARM_STM32_STM32F3DISCOVERY_SRC_STM32F3DISCOVERY_H */ diff --git a/boards/arm/stm32/stm32vldiscovery/README.txt b/boards/arm/stm32/stm32vldiscovery/README.txt index 8f532ddb19..913dfe1446 100644 --- a/boards/arm/stm32/stm32vldiscovery/README.txt +++ b/boards/arm/stm32/stm32vldiscovery/README.txt @@ -17,7 +17,7 @@ LEDs It is asumed that STMicro STM32F100RB generic board board has one LED on PA0. You should configure the port and pin number in -boards/stm32vldiscovery/src/stm32vldiscovery.h. This LED is not used by +boards/arm/stm32/stm32vldiscovery/src/stm32vldiscovery.h. This LED is not used by the board port unless CONFIG_ARCH_LEDS is defined. In that case, the usage by the board port is defined in include/board.h and src/up_leds.c. The LED is used to encode OS-related events as follows: diff --git a/boards/arm/stm32/stm32vldiscovery/include/board.h b/boards/arm/stm32/stm32vldiscovery/include/board.h index 4a8d2967f7..b56e2dd71a 100644 --- a/boards/arm/stm32/stm32vldiscovery/include/board.h +++ b/boards/arm/stm32/stm32vldiscovery/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32vldiscovery/include/board.h +/**************************************************************************** + * boards/arm/stm32/stm32vldiscovery/include/board.h * * Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32VLDISCOVERY_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32VLDISCOVERY_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32_STM32VLDISCOVERY_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_STM32VLDISCOVERY_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -48,9 +48,9 @@ #include "stm32_rcc.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -144,4 +144,4 @@ #define BUTTON_0_BIT (1 << BUTTON_0) -#endif /* __BOARDS_ARM_STM32VLDISCOVERY_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_STM32VLDISCOVERY_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/stm32vldiscovery/scripts/Make.defs b/boards/arm/stm32/stm32vldiscovery/scripts/Make.defs index c10635731b..8abb6b062a 100644 --- a/boards/arm/stm32/stm32vldiscovery/scripts/Make.defs +++ b/boards/arm/stm32/stm32vldiscovery/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32vldiscovery/scripts/Make.defs +# boards/arm/stm32/stm32vldiscovery/scripts/Make.defs # # Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld b/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld index 20452541bd..8ed0336a6e 100644 --- a/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld +++ b/boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32vldiscovery/scripts/stm32vldiscovery.ld + * boards/arm/stm32/stm32vldiscovery/scripts/stm32vldiscovery.ld * * Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32vldiscovery/src/Makefile b/boards/arm/stm32/stm32vldiscovery/src/Makefile index 2716f824a7..81dbcd6414 100644 --- a/boards/arm/stm32/stm32vldiscovery/src/Makefile +++ b/boards/arm/stm32/stm32vldiscovery/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32vldiscovery/src/Makefile +# boards/arm/stm32/stm32vldiscovery/src/Makefile # # Copyright (C) 2012 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32vldiscovery/src/stm32_boot.c b/boards/arm/stm32/stm32vldiscovery/src/stm32_boot.c index 597deeecc6..9fbd364790 100644 --- a/boards/arm/stm32/stm32vldiscovery/src/stm32_boot.c +++ b/boards/arm/stm32/stm32vldiscovery/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32vldiscovery/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/stm32vldiscovery/src/stm32_boot.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ #include "up_arch.h" #include "stm32vldiscovery.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -59,7 +59,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/stm32vldiscovery/src/stm32_buttons.c b/boards/arm/stm32/stm32vldiscovery/src/stm32_buttons.c index a913f46a74..0d62711566 100644 --- a/boards/arm/stm32/stm32vldiscovery/src/stm32_buttons.c +++ b/boards/arm/stm32/stm32vldiscovery/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32vldiscovery/src/stm32_buttons.c + * boards/arm/stm32/stm32vldiscovery/src/stm32_buttons.c * * Copyright (C) 2012, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -84,7 +84,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -104,7 +104,7 @@ uint32_t board_buttons(void) * BUTTON_* and JOYSTICK_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/stm32vldiscovery/src/stm32_leds.c b/boards/arm/stm32/stm32vldiscovery/src/stm32_leds.c index 4c1229c8ce..3dae0af0df 100644 --- a/boards/arm/stm32/stm32vldiscovery/src/stm32_leds.c +++ b/boards/arm/stm32/stm32vldiscovery/src/stm32_leds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32vldiscovery/src/stm32_leds.c + * boards/arm/stm32/stm32vldiscovery/src/stm32_leds.c * * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/stm32vldiscovery/src/stm32vldiscovery.h b/boards/arm/stm32/stm32vldiscovery/src/stm32vldiscovery.h index 2e9d00fcd3..57a0114a16 100644 --- a/boards/arm/stm32/stm32vldiscovery/src/stm32vldiscovery.h +++ b/boards/arm/stm32/stm32vldiscovery/src/stm32vldiscovery.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32vldiscovery/src/stm32vldiscovery.h + * boards/arm/stm32/stm32vldiscovery/src/stm32vldiscovery.h * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32VL_DISCOVERY_SRC_STM32VLDISCOVERY_H -#define __BOARDS_ARM_STM32VL_DISCOVERY_SRC_STM32VLDISCOVERY_H +#ifndef __BOARDS_ARM_STM32_STM32VL_DISCOVERY_SRC_STM32VLDISCOVERY_H +#define __BOARDS_ARM_STM32_STM32VL_DISCOVERY_SRC_STM32VLDISCOVERY_H /**************************************************************************** * Pre-processor Definitions @@ -63,4 +63,4 @@ void stm32_led_initialize(void); #endif -#endif /* __BOARDS_ARM_STM32VL_DISCOVERY_SRC_STM32VLDISCOVERY_H */ +#endif /* __BOARDS_ARM_STM32_STM32VL_DISCOVERY_SRC_STM32VLDISCOVERY_H */ diff --git a/boards/arm/stm32/viewtool-stm32f107/include/board-stm32f103vct6.h b/boards/arm/stm32/viewtool-stm32f107/include/board-stm32f103vct6.h index ad61e32d52..f8018250d4 100644 --- a/boards/arm/stm32/viewtool-stm32f107/include/board-stm32f103vct6.h +++ b/boards/arm/stm32/viewtool-stm32f107/include/board-stm32f103vct6.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtool-stm32f107/include/board-stm32f103vct6.h +/**************************************************************************** + * boards/arm/stm32/viewtool-stm32f107/include/board-stm32f103vct6.h * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F103VCT6_H -#define __BOARDS_ARM_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F103VCT6_H 1 +#ifndef __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F103VCT6_H +#define __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F103VCT6_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,9 +48,9 @@ #include "stm32_rcc.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -122,9 +122,9 @@ #define BOARD_TIM7_FREQUENCY STM32_HCLK_FREQUENCY #define BOARD_TIM8_FREQUENCY STM32_HCLK_FREQUENCY -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -136,9 +136,9 @@ extern "C" { #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -146,4 +146,4 @@ extern "C" { #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F103VCT6_H */ +#endif /* __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F103VCT6_H */ diff --git a/boards/arm/stm32/viewtool-stm32f107/include/board-stm32f107vct6.h b/boards/arm/stm32/viewtool-stm32f107/include/board-stm32f107vct6.h index 08ce4f5071..5d41fd3701 100644 --- a/boards/arm/stm32/viewtool-stm32f107/include/board-stm32f107vct6.h +++ b/boards/arm/stm32/viewtool-stm32f107/include/board-stm32f107vct6.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtool-stm32f107/include/board-stm32f107vct6.h +/**************************************************************************** + * boards/arm/stm32/viewtool-stm32f107/include/board-stm32f107vct6.h * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F107VCT6_H -#define __BOARDS_ARM_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F107VCT6_H 1 +#ifndef __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F107VCT6_H +#define __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F107VCT6_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,9 +48,9 @@ #include "stm32_rcc.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -126,9 +126,9 @@ # define STM32_PLL_PLL3MUL RCC_CFGR2_PLL3MULx10 /* MCO 5MHz * 10 = 50MHz */ #endif -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -140,9 +140,9 @@ extern "C" { #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -150,4 +150,4 @@ extern "C" { #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F107VCT6_H */ +#endif /* __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_INCLUDE_BOARD_STM32F107VCT6_H */ diff --git a/boards/arm/stm32/viewtool-stm32f107/include/board.h b/boards/arm/stm32/viewtool-stm32f107/include/board.h index 7551f5b19f..55153ab4ae 100644 --- a/boards/arm/stm32/viewtool-stm32f107/include/board.h +++ b/boards/arm/stm32/viewtool-stm32f107/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtool-stm32f107/include/board.h +/**************************************************************************** + * boards/arm/stm32/viewtool-stm32f107/include/board.h * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_VIEWTOOL_STM32F107_INCLUDE_BOARD_H -#define __BOARDS_ARM_VIEWTOOL_STM32F107_INCLUDE_BOARD_H 1 +#ifndef __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_INCLUDE_BOARD_H 1 -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,9 +50,9 @@ #include "stm32_sdio.h" #include "stm32.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -130,4 +130,4 @@ #define BUTTON_SW3_BIT (1 << BUTTON_SW3) #define BUTTON_SW4_BIT (1 << BUTTON_SW4) -#endif /* __BOARDS_ARM_VIEWTOOL_STM32F107_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32/viewtool-stm32f107/scripts/Make.defs b/boards/arm/stm32/viewtool-stm32f107/scripts/Make.defs index 786213231e..1ff52c07cc 100644 --- a/boards/arm/stm32/viewtool-stm32f107/scripts/Make.defs +++ b/boards/arm/stm32/viewtool-stm32f107/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/viewtool-stm32f107/scripts/Make.defs +# boards/arm/stm32/viewtool-stm32f107/scripts/Make.defs # # Copyright (C) 2013, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld b/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld index 36378e453b..b2d58d78d4 100644 --- a/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld +++ b/boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/viewtool-stm32f107/scripts/dfu.ld + * boards/arm/stm32/viewtool-stm32f107/scripts/dfu.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld b/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld index e080ed3170..081b46933a 100644 --- a/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld +++ b/boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/viewtool-stm32f107/scripts/flash.ld + * boards/arm/stm32/viewtool-stm32f107/scripts/flash.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/viewtool-stm32f107/src/Makefile b/boards/arm/stm32/viewtool-stm32f107/src/Makefile index 6a61a1e4d1..ed2288547f 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/Makefile +++ b/boards/arm/stm32/viewtool-stm32f107/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/viewtool-stm32f107/src/Makefile +# boards/arm/stm32/viewtool-stm32f107/src/Makefile # # Copyright (C) 2013, 2017-2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_ads7843e.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_ads7843e.c index 42805b68d3..28cb8b2a10 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_ads7843e.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_ads7843e.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtools-stm32f107/src/stm32_ads7843e.c +/**************************************************************************** + * boards/arm/stm32/viewtools-stm32f107/src/stm32_ads7843e.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_appinit.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_appinit.c index 8d2d086855..4ddc8c57e1 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_appinit.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/viewtool-stm32f107/src/stm32_appinit.c + * boards/arm/stm32/viewtool-stm32f107/src/stm32_appinit.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_boot.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_boot.c index ebc891791c..e11f247876 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_boot.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtool-stm32f107/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32/viewtool-stm32f107/src/stm32_boot.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -44,11 +44,11 @@ #include "up_arch.h" #include "viewtool_stm32f107.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -56,7 +56,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_bringup.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_bringup.c index 92a83267a9..ac815573b6 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_bringup.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/viewtool-stm32f107/src/stm32_bringup.c + * boards/arm/stm32/viewtool-stm32f107/src/stm32_bringup.c * * Copyright (C) 2013, 2016-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_buttons.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_buttons.c index 6d2bdcd05a..0ae184ed13 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_buttons.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/viewtool-stm32f107/src/stm32_buttons.c + * boards/arm/stm32/viewtool-stm32f107/src/stm32_buttons.c * * Copyright (C) 2013, 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -122,7 +122,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -142,7 +142,7 @@ uint32_t board_buttons(void) * BUTTON_* and JOYSTICK_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_can.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_can.c index bf0f232d70..5c08cbb024 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_can.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtool-stm32f107/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32/viewtool-stm32f107/src/stm32_can.c * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,9 +53,9 @@ #ifdef CONFIG_CAN -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ /* The STM32F107VC supports CAN1 and CAN2 */ @@ -70,17 +70,17 @@ # define CAN_PORT 2 #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_can_setup * * Description: * Initialize CAN and register the CAN device * - ************************************************************************************/ + ****************************************************************************/ int stm32_can_setup(void) { diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_ft80x.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_ft80x.c index 20781cef2d..b1a201a59c 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_ft80x.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_ft80x.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtools-stm32f107/src/stm32_ft80x.c +/**************************************************************************** + * boards/arm/stm32/viewtools-stm32f107/src/stm32_ft80x.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_highpri.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_highpri.c index 5c2bb5428a..d44c7c4b15 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_highpri.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_highpri.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/viewtool-stm32f107/src/stm32_highpri.c + * boards/arm/stm32/viewtool-stm32f107/src/stm32_highpri.c * * Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_leds.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_leds.c index ed49b2614f..92576d55ec 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_leds.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_leds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/viewtool-stm32f107/src/stm32_leds.c + * boards/arm/stm32/viewtool-stm32f107/src/stm32_leds.c * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -229,7 +229,7 @@ void board_autoled_off(int led) } #endif -/************************************************************************************ +/**************************************************************************** * Name: board_userled_initialize, board_userled, and board_userled_all * * Description: @@ -242,7 +242,7 @@ void board_autoled_off(int led) * If CONFIG_ARCH_LEDS is not defined, then both LEDs are available for application * use. * - ************************************************************************************/ + ****************************************************************************/ void board_userled_initialize(void) { diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_max3421e.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_max3421e.c index ee68341903..6130897f1f 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_max3421e.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_max3421e.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtools-stm32f107/src/stm32_max3421e.c +/**************************************************************************** + * boards/arm/stm32/viewtools-stm32f107/src/stm32_max3421e.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_mmcsd.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_mmcsd.c index d40b86899c..559cd6370e 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_mmcsd.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_mmcsd.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/viewtool-stm32f107/src/up_mmcsd.c + * boards/arm/stm32/viewtool-stm32f107/src/up_mmcsd.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_mpl115a.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_mpl115a.c index a682b52734..9c67e11dc6 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_mpl115a.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_mpl115a.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/greenbone/src/stm32_mpl115a.c +/**************************************************************************** + * boards/arm/stm32/viewtool-stm32f107/src/stm32_mpl115a.c * * Copyright (C) 2015 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,17 +51,17 @@ #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_MPL115A) && defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define MPL115A_SPI_PORTNO 3 /* On SPI3 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_mpl115ainitialize * * Description: @@ -73,7 +73,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_mpl115ainitialize(FAR const char *devpath) { diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_spi.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_spi.c index 6fc5a35253..38880faaf1 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_spi.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtool-stm32f107/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32/viewtool-stm32f107/src/stm32_spi.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,18 +53,18 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Viewtool stm32f103/107 * board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_ssd1289.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_ssd1289.c index 560c34d014..3374dae0f1 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_ssd1289.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_ssd1289.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtool-stm32f107/src/ssd1289.c +/**************************************************************************** + * boards/arm/stm32/viewtool-stm32f107/src/ssd1289.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,9 +55,9 @@ #ifdef CONFIG_LCD_SSD1289 -/************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - **************************************************************************************/ + ****************************************************************************/ /* Configuration **********************************************************************/ #ifndef CONFIG_STM32_FSMC @@ -87,9 +87,9 @@ #define LCD_INDEX 0x60000000 /* RS = 0 */ #define LCD_DATA 0x60020000 /* RS = 1 */ -/************************************************************************************** +/**************************************************************************** * Private Function Prototypes - **************************************************************************************/ + ****************************************************************************/ /* Low Level LCD access */ static void stm32_select(FAR struct ssd1289_lcd_s *dev); @@ -103,9 +103,9 @@ static void stm32_backlight(FAR struct ssd1289_lcd_s *dev, int power); static void stm32_extmemgpios(const uint16_t *gpios, int ngpios); -/************************************************************************************** +/**************************************************************************** * Private Data - **************************************************************************************/ + ****************************************************************************/ /* LCD * * An LCD may be connected via J11. Only the STM32F103 supports the FSMC signals @@ -216,56 +216,56 @@ static struct ssd1289_lcd_s g_ssd1289 = static FAR struct lcd_dev_s *g_ssd1289drvr; -/************************************************************************************** +/**************************************************************************** * Private Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: stm32_select * * Description: * Select the LCD device * - **************************************************************************************/ + ****************************************************************************/ static void stm32_select(FAR struct ssd1289_lcd_s *dev) { /* Does not apply to this hardware */ } -/************************************************************************************** +/**************************************************************************** * Name: stm32_deselect * * Description: * De-select the LCD device * - **************************************************************************************/ + ****************************************************************************/ static void stm32_deselect(FAR struct ssd1289_lcd_s *dev) { /* Does not apply to this hardware */ } -/************************************************************************************** +/**************************************************************************** * Name: stm32_index * * Description: * Set the index register * - **************************************************************************************/ + ****************************************************************************/ static void stm32_index(FAR struct ssd1289_lcd_s *dev, uint8_t index) { putreg16((uint16_t)index, LCD_INDEX); } -/************************************************************************************** +/**************************************************************************** * Name: stm32_read * * Description: * Read LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_SSD1289_WRONLY static uint16_t stm32_read(FAR struct ssd1289_lcd_s *dev) @@ -274,27 +274,27 @@ static uint16_t stm32_read(FAR struct ssd1289_lcd_s *dev) } #endif -/************************************************************************************** +/**************************************************************************** * Name: stm32_write * * Description: * Write LCD data (GRAM data or register contents) * - **************************************************************************************/ + ****************************************************************************/ static void stm32_write(FAR struct ssd1289_lcd_s *dev, uint16_t data) { putreg16((uint16_t)data, LCD_DATA); } -/************************************************************************************** +/**************************************************************************** * Name: stm32_backlight * * Description: * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on). * Used here to set pwm duty on timer used for backlight. * - **************************************************************************************/ + ****************************************************************************/ static void stm32_backlight(FAR struct ssd1289_lcd_s *dev, int power) { @@ -418,13 +418,13 @@ static void init_lcd_backlight(void) lcdinfo("DMAR: %04x\n", getreg32(STM32_TIM3_DMAR)); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_selectlcd * * Description: * Initialize the memory controller (FSMC) * - ************************************************************************************/ + ****************************************************************************/ static void stm32_selectlcd(void) { @@ -460,13 +460,13 @@ static void stm32_selectlcd(void) stm32_configgpio(GPIO_LCD_RESET); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for NOR or SRAM * - ************************************************************************************/ + ****************************************************************************/ static void stm32_extmemgpios(const uint16_t *gpios, int ngpios) { @@ -480,11 +480,11 @@ static void stm32_extmemgpios(const uint16_t *gpios, int ngpios) } } -/************************************************************************************** +/**************************************************************************** * Public Functions - **************************************************************************************/ + ****************************************************************************/ -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_initialize * * Description: @@ -492,7 +492,7 @@ static void stm32_extmemgpios(const uint16_t *gpios, int ngpios) * initialized, display memory cleared, and the LCD ready to use, but with the power * setting at 0 (full off). * - **************************************************************************************/ + ****************************************************************************/ int board_lcd_initialize(void) { @@ -527,14 +527,14 @@ int board_lcd_initialize(void) return OK; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_getdev * * Description: * Return a a reference to the LCD object for the specified LCD. This allows support * for multiple LCD devices. * - **************************************************************************************/ + ****************************************************************************/ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) { @@ -542,13 +542,13 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev) return g_ssd1289drvr; } -/************************************************************************************** +/**************************************************************************** * Name: board_lcd_uninitialize * * Description: * Unitialize the LCD support * - **************************************************************************************/ + ****************************************************************************/ void board_lcd_uninitialize(void) { diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_usbdev.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_usbdev.c index bea5429b61..e24262f077 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_usbdev.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_usbdev.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/viewtool-stm32f107/src/stm32_usbdev.c +/**************************************************************************** + * boards/arm/stm32/viewtool-stm32f107/src/stm32_usbdev.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,30 +50,30 @@ #if defined(CONFIG_STM32_OTGFS) || defined(CONFIG_STM32_USB) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbdev_initialize * * Description: * Called from stm32_boardinitialize very early in initialization to setup USB- * related GPIO pins for the Viewtool STM32F107 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbdev_initialize(void) { @@ -84,7 +84,7 @@ void stm32_usbdev_initialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbpullup * * Description: @@ -94,7 +94,7 @@ void stm32_usbdev_initialize(void) * Alternatively, if no pull-up GPIO the following EXTERN can be redefined to be * NULL. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_CHIP_STM32F103VC int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) @@ -105,7 +105,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -114,7 +114,7 @@ int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) { diff --git a/boards/arm/stm32/viewtool-stm32f107/src/stm32_usbmsc.c b/boards/arm/stm32/viewtool-stm32f107/src/stm32_usbmsc.c index 2f4e88d271..6a940d994e 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/stm32_usbmsc.c +++ b/boards/arm/stm32/viewtool-stm32f107/src/stm32_usbmsc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/viewtool-stm32f107/src/stm32_usbmsc.c + * boards/arm/stm32/viewtool-stm32f107/src/stm32_usbmsc.c * * Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32/viewtool-stm32f107/src/viewtool_stm32f107.h b/boards/arm/stm32/viewtool-stm32f107/src/viewtool_stm32f107.h index d94e3c6de4..c9bd3dd0fa 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/viewtool_stm32f107.h +++ b/boards/arm/stm32/viewtool-stm32f107/src/viewtool_stm32f107.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/viewtool-stm32f107/src/viewtool_stm32f107.h + * boards/arm/stm32/viewtool-stm32f107/src/viewtool_stm32f107.h * * Copyright (C) 2013-2014, 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_VIEWTOOL_STM32F107_SRC_H -#define __BOARDS_ARM_VIEWTOOL_STM32F107_SRC_H +#ifndef __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_SRC_H +#define __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_SRC_H /**************************************************************************** * Included Files @@ -512,4 +512,4 @@ int stm32_max3421e_setup(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_VIEWTOOL_STM32F107_SRC_H */ +#endif /* __BOARDS_ARM_STM32_VIEWTOOL_STM32F107_SRC_H */ diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/include/board.h b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/include/board.h index 7ba48b37af..eea2f1095e 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/include/board.h +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l072z-lrwan1/include/board.h + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/include/board.h * include/arch/board/board.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_B_L072Z_LRWAN1_INCLUDE_BOARD_H -#define __BOARDS_ARM_B_L072Z_LRWAN1_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -109,6 +109,7 @@ /* TODO: timers */ /* LED definitions **********************************************************/ + /* The Nucleo LO73RZ board has three LEDs. Two of these are controlled by * logic on the board and are not available for software control: * @@ -162,6 +163,7 @@ #define LED_PANIC 1 /* Button definitions *******************************************************/ + /* The Nucleo LO73RZ supports two buttons; only one button is controllable * by software: * @@ -254,8 +256,9 @@ #define GPIO_I2C1_SCL GPIO_I2C1_SCL_2 /* PB8 */ /* DMA channels *************************************************************/ + /* ADC */ #define ADC1_DMA_CHAN DMACHAN_ADC1_1 /* DMA1_CH1 */ -#endif /* __BOARDS_ARM_NUCLEO_LO73RZ_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/Make.defs b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/Make.defs index e4c9252245..6bf54527d4 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/Make.defs +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/b-l072z-lrwan1/scripts/Make.defs +# boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/Make.defs # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script index dc2518110f..a993448890 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l072z-lrwan1/scripts/ld.script + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/scripts/ld.script * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/Makefile b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/Makefile index f9ee45f261..3a34759694 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/Makefile +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/b-l072z-lrwan1/src/Makefile +# boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/Makefile # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/b-l072z-lrwan1.h b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/b-l072z-lrwan1.h index 32ae94a522..1a91933685 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/b-l072z-lrwan1.h +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/b-l072z-lrwan1.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l072z-lrwan1/src/b-l072z-lrwan1.h + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/b-l072z-lrwan1.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H -#define __BOARDS_ARM_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H +#ifndef __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H +#define __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H /**************************************************************************** * Included Files @@ -47,6 +47,7 @@ ****************************************************************************/ /* LED definitions **********************************************************/ + /* The Nucleo L073RZ board has three LEDs. Two of these are controlled by * logic on the board and are not available for software control: * @@ -76,6 +77,7 @@ #define LED_DRIVER_PATH "/dev/userleds" /* Button definitions *******************************************************/ + /* The Nucleo L073RZ supports two buttons; only one button is controllable * by software: * @@ -126,7 +128,7 @@ * Public Function Prototypes ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_bringup * * Description: @@ -138,17 +140,17 @@ * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-H743ZI board. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32F0L0G0_SPI void stm32_spidev_initialize(void); @@ -165,16 +167,16 @@ void stm32_spidev_initialize(void); int stm32_lpwaninitialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -#endif /* __BOARDS_ARM_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_B_L072Z_LRWAN1_SRC_B_L072Z_LRWAN1_H */ diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_adc.c b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_adc.c index 55edf8c2d6..823fe5ad55 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_adc.c +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l072z-lrwan1/src/stm32_adc.c + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_adc.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_appinit.c b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_appinit.c index 31d0c7f442..78470e97d7 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_appinit.c +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l072z-lrwan1/src/stm32_appinitialize.c + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_appinitialize.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_autoleds.c b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_autoleds.c index 68c250a15b..2325f2d050 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_autoleds.c +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l072z-lrwan1/src/stm32_autoleds.c + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_autoleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_boot.c b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_boot.c index d27f496c28..6642e06af6 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_boot.c +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l072z-lrwan1/src/stm32_boot.c + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_boot.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -91,7 +91,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -102,7 +102,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_bringup.c b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_bringup.c index fa85d260e6..a61fcfd855 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_bringup.c +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l072z-lrwan1/src/stm32_bringup.c + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_bringup.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_spi.c b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_spi.c index 89285100d5..126b9b304f 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_spi.c +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l072z-lrwan1/src/stm32_spi.c + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_spi.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -76,13 +76,13 @@ * Public Functions ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_ssd1306.c b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_ssd1306.c index 6234d0a80b..edbe0e3c99 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_ssd1306.c +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_ssd1306.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/b-l072z-lrwan1/src/stm32_ssd1306.c + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_ssd1306.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_sx127x.c b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_sx127x.c index 9041862db4..52977415e3 100644 --- a/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_sx127x.c +++ b/boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_sx127x.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l072z-lrwan1/src/stm32_boot.c + * boards/arm/stm32f0l0g0/b-l072z-lrwan1/src/stm32_boot.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -287,4 +287,3 @@ int stm32_lpwaninitialize(void) errout: return ret; } - diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/include/board.h b/boards/arm/stm32f0l0g0/nucleo-f072rb/include/board.h index 2a93499a5c..d34d4e33d7 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/include/board.h +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f072rb/include/board.h +/**************************************************************************** + * boards/arm/stm32f0l0g0/nucleo-f072rb/include/board.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F072RB_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_F072RB_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F0L0G0_NUCLEO_F072RB_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F0L0G0_NUCLEO_F072RB_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,12 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ + /* Four different clock sources can be used to drive the system clock (SYSCLK): * * - HSI high-speed internal oscillator clock @@ -165,6 +166,7 @@ #define STM32_APB1_TIM17_CLKIN (STM32_PCLK1_FREQUENCY) /* LED definitions ******************************************************************/ + /* LEDs * * The Nucleo-64 board has one user controllable LED, User LD2. This green @@ -216,6 +218,7 @@ #define LED_PANIC 1 /* Button definitions ***************************************************************/ + /* Buttons * * B1 USER: the user button is connected to the I/O PC13 (pin 2) of the STM32 @@ -228,6 +231,7 @@ #define BUTTON_USER_BIT (1 << BUTTON_USER) /* Alternate Pin Functions **********************************************************/ + /* USART 1 */ #define GPIO_USART1_TX GPIO_USART1_TX_2 /* PA9 CN10 pin 21 */ @@ -245,4 +249,4 @@ /* I2C2 */ -#endif /* __BOARDS_ARM_NUCLEO_F072RB_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_NUCLEO_F072RB_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/Make.defs b/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/Make.defs index 911506147c..295f2f1d5c 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/Make.defs +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f072rb/scripts/Make.defs +# boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/Make.defs # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld b/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld index 87477a08ed..42a96098e4 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f072rb/scripts/flash.ld + * boards/arm/stm32f0l0g0/nucleo-f072rb/scripts/flash.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/Makefile b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/Makefile index ad7c3548ad..5839e94eb7 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/Makefile +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f072rb/src/Makefile +# boards/arm/stm32f0l0g0/nucleo-f072rb/src/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/nucleo-f072rb.h b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/nucleo-f072rb.h index 0cd8ffe7aa..7c999d532e 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/nucleo-f072rb.h +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/nucleo-f072rb.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f072rb/src/nucleo-f072rb.h + * boards/arm/stm32f0l0g0/nucleo-f072rb/src/nucleo-f072rb.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F072RB_SRC_NUCLEO_F072RB_H -#define __BOARDS_ARM_NUCLEO_F072RB_SRC_NUCLEO_F072RB_H +#ifndef __BOARDS_ARM_STM32F0L0G0_NUCLEO_F072RB_SRC_NUCLEO_F072RB_H +#define __BOARDS_ARM_STM32F0L0G0_NUCLEO_F072RB_SRC_NUCLEO_F072RB_H /**************************************************************************** * Included Files @@ -52,6 +52,7 @@ ****************************************************************************/ /* Configuration ************************************************************/ + /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -66,6 +67,7 @@ #endif /* Nucleo-F072RB GPIOs ******************************************************/ + /* LED. User LD2: the green LED is a user LED connected to Arduino signal * D13 corresponding to MCU I/O PA5 (pin 21) or PB13 (pin 34) depending on * the STM32 target. @@ -78,6 +80,7 @@ GPIO_OUTPUT_CLEAR | GPIO_PORTA | GPIO_PIN5) /* Button definitions *******************************************************/ + /* B1 USER: the user button is connected to the I/O PC13 (pin 2) of the STM32 * microcontroller. */ @@ -120,4 +123,4 @@ int stm32_bringup(void); #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_F072RB_SRC_NUCLEO_F072RB_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_NUCLEO_F072RB_SRC_NUCLEO_F072RB_H */ diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_appinit.c b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_appinit.c index ea68c64f49..2dbeb83b73 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_appinit.c +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-f072rb/src/stm32_appinit.c + * boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_appinit.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_autoleds.c b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_autoleds.c index 108031db7b..2f676371a8 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_autoleds.c +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f072rb/src/stm32_autoleds.c + * boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_autoleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_boot.c b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_boot.c index 983611ec8d..d6d28c5aab 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_boot.c +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f072rb/src/stm32f072rb_boot.c +/**************************************************************************** + * boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32f072rb_boot.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,11 @@ #include "up_arch.h" #include "nucleo-f072rb.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -60,7 +60,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_bringup.c b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_bringup.c index e3d4f24670..0bb9fc964c 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_bringup.c +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-f072rb/src/stm32_bringup.c + * boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_bringup.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_buttons.c b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_buttons.c index 687c22b0b6..ff48bf16f2 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_buttons.c +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f072rb/src/stm32_buttons.c + * boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_buttons.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -90,7 +90,7 @@ uint32_t board_buttons(void) return !released; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -110,7 +110,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_userleds.c b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_userleds.c index 78cd63d8d6..8927cf861b 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_userleds.c +++ b/boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f072rb/src/stm32_userleds.c + * boards/arm/stm32f0l0g0/nucleo-f072rb/src/stm32_userleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/include/board.h b/boards/arm/stm32f0l0g0/nucleo-f091rc/include/board.h index 0f6bcf5fab..27c3125235 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/include/board.h +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f091rc/include/board.h +/**************************************************************************** + * boards/arm/stm32f0l0g0/nucleo-f091rc/include/board.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F091RC_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_F091RC_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F0L0G0_NUCLEO_F091RC_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F0L0G0_NUCLEO_F091RC_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,12 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Clocking *****************************************************************/ -/* Clocking *************************************************************************/ /* Four different clock sources can be used to drive the system clock (SYSCLK): * * - HSI high-speed internal oscillator clock @@ -164,7 +165,8 @@ #define STM32_APB1_TIM16_CLKIN (STM32_PCLK1_FREQUENCY) #define STM32_APB1_TIM17_CLKIN (STM32_PCLK1_FREQUENCY) -/* LED definitions ******************************************************************/ +/* LED definitions **********************************************************/ + /* LEDs * * The Nucleo-64 board has one user controlable LED, User LD2. This green @@ -215,7 +217,8 @@ #define LED_ASSERTION 2 #define LED_PANIC 1 -/* Button definitions ***************************************************************/ +/* Button definitions *******************************************************/ + /* Buttons * * B1 USER: the user button is connected to the I/O PC13 (pin 2) of the STM32 @@ -227,7 +230,7 @@ #define BUTTON_USER_BIT (1 << BUTTON_USER) -/* Alternate Pin Functions **********************************************************/ +/* Alternate Pin Functions **************************************************/ /* I2C */ @@ -250,4 +253,4 @@ #define GPIO_USART2_TX GPIO_USART2_TX_3 #define GPIO_USART2_RX GPIO_USART2_RX_3 -#endif /* __BOARDS_ARM_NUCLEO_F091RC_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_NUCLEO_F091RC_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/Make.defs b/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/Make.defs index 8a016978e9..9607ffcec7 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/Make.defs +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f091rc/scripts/Make.defs +# boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/Make.defs # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld b/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld index edbe7e728b..2e3bc87a7f 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f091rc/scripts/flash.ld + * boards/arm/stm32f0l0g0/nucleo-f091rc/scripts/flash.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/Makefile b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/Makefile index 2d2a0d79fe..3ff40169cf 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/Makefile +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-f091rc/src/Makefile +# boards/arm/stm32f0l0g0/nucleo-f091rc/src/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/nucleo-f091rc.h b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/nucleo-f091rc.h index 31b8661956..0992e611d6 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/nucleo-f091rc.h +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/nucleo-f091rc.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f091rc/src/nucleo-f091rc.h + * boards/arm/stm32f0l0g0/nucleo-f091rc/src/nucleo-f091rc.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_F091RC_SRC_NUCLEO_F091RC_H -#define __BOARDS_ARM_NUCLEO_F091RC_SRC_NUCLEO_F091RC_H +#ifndef __BOARDS_ARM_STM32F0L0G0_NUCLEO_F091RC_SRC_NUCLEO_F091RC_H +#define __BOARDS_ARM_STM32F0L0G0_NUCLEO_F091RC_SRC_NUCLEO_F091RC_H /**************************************************************************** * Included Files @@ -52,6 +52,7 @@ ****************************************************************************/ /* Configuration ************************************************************/ + /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -66,6 +67,7 @@ #endif /* Nucleo-F091RC GPIOs ******************************************************/ + /* LED. User LD2: the green LED is a user LED connected to Arduino signal * D13 corresponding to MCU I/O PA5 (pin 21) or PB13 (pin 34) depending on * the STM32 target. @@ -78,6 +80,7 @@ GPIO_OUTPUT_CLEAR | GPIO_PORTA | GPIO_PIN5) /* Button definitions *******************************************************/ + /* B1 USER: the user button is connected to the I/O PC13 (pin 2) of the STM32 * microcontroller. */ @@ -155,4 +158,4 @@ int stm32_lpwaninitialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_F091RC_SRC_NUCLEO_F091RC_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_NUCLEO_F091RC_SRC_NUCLEO_F091RC_H */ diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_appinit.c b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_appinit.c index b2b7ab2473..ef9809b0c7 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_appinit.c +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-f091rc/src/stm32_appinit.c + * boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_appinit.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_autoleds.c b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_autoleds.c index 86b5a3aaf7..99f362137c 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_autoleds.c +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f091rc/src/stm32_autoleds.c + * boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_autoleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_boot.c b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_boot.c index f7e6764dc4..213b7e05f7 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_boot.c +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-f091rc/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_boot.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,11 @@ #include "up_arch.h" #include "nucleo-f091rc.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -60,7 +60,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_bringup.c b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_bringup.c index 5745b7b18e..5a78c90efd 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_bringup.c +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-f091rc/src/stm32_bringup.c + * boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_bringup.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_buttons.c b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_buttons.c index 8f4ec22d4d..18143c7609 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_buttons.c +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f091rc/src/stm32_buttons.c + * boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_buttons.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -90,7 +90,7 @@ uint32_t board_buttons(void) return !released; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -110,7 +110,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_spi.c b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_spi.c index f71f303c5e..04bc46f6bf 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_spi.c +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f091rc/src/stm32_spi.c + * boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_spi.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_sx127x.c b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_sx127x.c index 71d63acc74..558a1205d3 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_sx127x.c +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_sx127x.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f091rc/src/stm32_sx127x.c + * boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_sx127x.c * This logic is specific for RFM98 modules (433MHz) * * Copyright (C) 2019 Gregory Nutt. All rights reserved. diff --git a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_userleds.c b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_userleds.c index 09daf74412..26c63b6173 100644 --- a/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_userleds.c +++ b/boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-f091rc/src/stm32_userleds.c + * boards/arm/stm32f0l0g0/nucleo-f091rc/src/stm32_userleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/include/board.h b/boards/arm/stm32f0l0g0/nucleo-g071rb/include/board.h index b2599c69a8..cd77737d24 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/include/board.h +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-g071rb/include/board.h + * boards/arm/stm32f0l0g0/nucleo-g071rb/include/board.h * include/arch/board/board.h * * Copyright (C) 2019 Gregory Nutt. All rights reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_G071RB_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_G071RB_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F0L0G0_NUCLEO_G071RB_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F0L0G0_NUCLEO_G071RB_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -136,6 +136,7 @@ /* TODO: timers */ /* LED definitions **********************************************************/ + /* The Nucleo LO73RZ board has three LEDs. Two of these are controlled by * logic on the board and are not available for software control: * @@ -189,6 +190,7 @@ #define LED_PANIC 1 /* Button definitions *******************************************************/ + /* The Nucleo LO73RZ supports two buttons; only one button is controllable * by software: * @@ -215,8 +217,9 @@ #define GPIO_USART2_TX GPIO_USART2_TX_1 /* PA2 */ /* DMA channels *************************************************************/ + /* ADC */ #define ADC1_DMA_CHAN DMACHAN_ADC1 /* DMA1_CH1 */ -#endif /* __BOARDS_ARM_NUCLEO_LO73RZ_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_NUCLEO_LO73RZ_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/Make.defs b/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/Make.defs index a893d70f99..c312d6af74 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/Make.defs +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-g071rb/scripts/Make.defs +# boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/Make.defs # # Copyright (C) 2019 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script b/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script index 91f9538e24..f9e0264be0 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-g071rb/scripts/ld.script + * boards/arm/stm32f0l0g0/nucleo-g071rb/scripts/ld.script * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/Makefile b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/Makefile index 6c6231639a..a2f73636f1 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/Makefile +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-g071rb/src/Makefile +# boards/arm/stm32f0l0g0/nucleo-g071rb/src/Makefile # # Copyright (C) 2019 Gregory Nutt. All rights reserved. # Author: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/nucleo-g071rb.h b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/nucleo-g071rb.h index 83e0977da7..6ad0fb550b 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/nucleo-g071rb.h +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/nucleo-g071rb.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-g071rb/src/nucleo-g071rb.h + * boards/arm/stm32f0l0g0/nucleo-g071rb/src/nucleo-g071rb.h * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_G071RB_SRC_NUCLEO_G071RB_H -#define __BOARDS_ARM_NUCLEO_G071RB_SRC_NUCLEO_G071RB_H +#ifndef __BOARDS_ARM_STM32F0L0G0_NUCLEO_G071RB_SRC_NUCLEO_G071RB_H +#define __BOARDS_ARM_STM32F0L0G0_NUCLEO_G071RB_SRC_NUCLEO_G071RB_H /**************************************************************************** * Included Files @@ -47,6 +47,7 @@ ****************************************************************************/ /* LED definitions **********************************************************/ + /* The Nucleo G071RB board has three LEDs. Two of these are controlled by * logic on the board and are not available for software control: * @@ -70,6 +71,7 @@ #define LED_DRIVER_PATH "/dev/userleds" /* Button definitions *******************************************************/ + /* The Nucleo G071RB supports two buttons; only one button is controllable * by software: * @@ -107,8 +109,8 @@ * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -#endif /* __BOARDS_ARM_NUCLEO_G071RB_SRC_NUCLEO_G071RB_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_NUCLEO_G071RB_SRC_NUCLEO_G071RB_H */ diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_appinit.c b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_appinit.c index 2d54cff3cb..1485e78241 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_appinit.c +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-g071rb/src/stm32_appinitialize.c + * boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_appinitialize.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_autoleds.c b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_autoleds.c index 6e8dc6b35d..f65d9c10df 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_autoleds.c +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-g071rb/src/stm32_autoleds.c + * boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_autoleds.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_boot.c b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_boot.c index 6c53575555..8fe94470af 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_boot.c +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-g071rb/src/stm32_boot.c + * boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_boot.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -74,7 +74,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -85,7 +85,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_bringup.c b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_bringup.c index b34c63915c..cf4b616d0b 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_bringup.c +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-g071rb/src/stm32_bringup.c + * boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_bringup.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -66,6 +66,7 @@ /**************************************************************************** * Public Functions ****************************************************************************/ + /**************************************************************************** * Name: stm32_bringup * diff --git a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_buttons.c b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_buttons.c index 7a448080ca..bba5fab69e 100644 --- a/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_buttons.c +++ b/boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-g071rb/src/stm32_buttons.c + * boards/arm/stm32f0l0g0/nucleo-g071rb/src/stm32_buttons.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -91,7 +91,7 @@ uint32_t board_buttons(void) return !released; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -111,7 +111,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/include/board.h b/boards/arm/stm32f0l0g0/nucleo-l073rz/include/board.h index fcb4a38e05..ac88438e4e 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/include/board.h +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/include/board.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l073rz/include/board.h + * boards/arm/stm32f0l0g0/nucleo-l073rz/include/board.h * include/arch/board/board.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L073RZ_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_L073RZ_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F0L0G0_NUCLEO_L073RZ_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F0L0G0_NUCLEO_L073RZ_INCLUDE_BOARD_H /**************************************************************************** * Included Files @@ -110,6 +110,7 @@ /* TODO: timers */ /* LED definitions **********************************************************/ + /* The Nucleo LO73RZ board has three LEDs. Two of these are controlled by * logic on the board and are not available for software control: * @@ -163,6 +164,7 @@ #define LED_PANIC 1 /* Button definitions *******************************************************/ + /* The Nucleo LO73RZ supports two buttons; only one button is controllable * by software: * @@ -206,8 +208,9 @@ #define GPIO_USART2_TX GPIO_USART2_TX_1 /* PA2 */ /* DMA channels *************************************************************/ + /* ADC */ #define ADC1_DMA_CHAN DMACHAN_ADC1 /* DMA1_CH1 */ -#endif /* __BOARDS_ARM_NUCLEO_LO73RZ_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_NUCLEO_LO73RZ_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/Make.defs b/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/Make.defs index 2f6f14002f..d4ca4ac9f1 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/Make.defs +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l073rz/scripts/Make.defs +# boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/Make.defs # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script b/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script index 18ee4cd80c..2d3b74b28c 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l073rz/scripts/ld.script + * boards/arm/stm32f0l0g0/nucleo-l073rz/scripts/ld.script * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/Makefile b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/Makefile index b3f9ddf787..9c477ba170 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/Makefile +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l073rz/src/Makefile +# boards/arm/stm32f0l0g0/nucleo-l073rz/src/Makefile # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/nucleo-l073rz.h b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/nucleo-l073rz.h index 1f09e15f9a..3276b6c2b5 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/nucleo-l073rz.h +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/nucleo-l073rz.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l073rz/src/nucleo-l073rz.h + * boards/arm/stm32f0l0g0/nucleo-l073rz/src/nucleo-l073rz.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L073RZ_SRC_NUCLEO_L073RZ_H -#define __BOARDS_ARM_NUCLEO_L073RZ_SRC_NUCLEO_L073RZ_H +#ifndef __BOARDS_ARM_STM32F0L0G0_NUCLEO_L073RZ_SRC_NUCLEO_L073RZ_H +#define __BOARDS_ARM_STM32F0L0G0_NUCLEO_L073RZ_SRC_NUCLEO_L073RZ_H /**************************************************************************** * Included Files @@ -47,6 +47,7 @@ ****************************************************************************/ /* LED definitions **********************************************************/ + /* The Nucleo L073RZ board has three LEDs. Two of these are controlled by * logic on the board and are not available for software control: * @@ -70,6 +71,7 @@ #define LED_DRIVER_PATH "/dev/userleds" /* Button definitions *******************************************************/ + /* The Nucleo L073RZ supports two buttons; only one button is controllable * by software: * @@ -141,7 +143,7 @@ * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); @@ -191,4 +193,4 @@ int stm32_lpwaninitialize(void); int stm32_mfrc522initialize(FAR const char *devpath); #endif -#endif /* __BOARDS_ARM_NUCLEO_L073RZ_SRC_NUCLEO_L073RZ_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_NUCLEO_L073RZ_SRC_NUCLEO_L073RZ_H */ diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_appinit.c b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_appinit.c index 08b9865833..075ad92ceb 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_appinit.c +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l073rz/src/stm32_appinitialize.c + * boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_appinitialize.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_autoleds.c b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_autoleds.c index 4045e743c1..4c3b4babf2 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_autoleds.c +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l073rz/src/stm32_autoleds.c + * boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_autoleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_boot.c b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_boot.c index e50c76956b..f1696f1dec 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_boot.c +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_boot.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l073rz/src/stm32_boot.c + * boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_boot.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -90,7 +90,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -101,7 +101,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_bringup.c b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_bringup.c index ebe47604a9..7f827bf674 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_bringup.c +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l073rz/src/stm32_bringup.c + * boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_bringup.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Authors: Mateusz Szafoni @@ -66,6 +66,7 @@ /**************************************************************************** * Public Functions ****************************************************************************/ + /**************************************************************************** * Name: stm32_bringup * diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_buttons.c b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_buttons.c index baf9bfdb8d..34a8f09017 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_buttons.c +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l073rz/src/stm32_buttons.c + * boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_buttons.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -91,7 +91,7 @@ uint32_t board_buttons(void) return !released; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -111,7 +111,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_mfrc522.c b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_mfrc522.c index 5988e2197b..6aa37b0dec 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_mfrc522.c +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_mfrc522.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l073rz/src/stm32_mfrc522.c +/**************************************************************************** + * boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_mfrc522.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,17 +51,17 @@ #if defined(CONFIG_SPI) && defined(CONFIG_STM32F0L0G0_SPI2) && defined(CONFIG_CL_MFRC522) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define MFRC522_SPI_PORTNO 2 /* On SPI2 */ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_mfrc522initialize * * Description: @@ -73,7 +73,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_mfrc522initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_nrf24l01.c b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_nrf24l01.c index b36eac36f1..5c7309ec28 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_nrf24l01.c +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_nrf24l01.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l073rz/src/stm32_nrf24l01.c +/**************************************************************************** + * boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_nrf24l01.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,22 +53,22 @@ #include "stm32.h" #include "nucleo-l073rz.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define NRF24L01_SPI 1 -/************************************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************************************/ + ****************************************************************************/ static int nrf24l01_irq_attach(xcpt_t isr, FAR void *arg); static void nrf24l01_chip_enable(bool enable); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static struct nrf24l01_config_s nrf_cfg = { @@ -79,9 +79,9 @@ static struct nrf24l01_config_s nrf_cfg = static xcpt_t g_isr; static FAR void *g_arg; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ static int nrf24l01_irq_attach(xcpt_t isr, FAR void *arg) { @@ -98,9 +98,9 @@ static void nrf24l01_chip_enable(bool enable) stm32_gpiowrite(GPIO_NRF24L01_CE, enable); } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ int stm32_wlinitialize(void) { diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_spi.c b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_spi.c index e317219278..bf61de4ea7 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_spi.c +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l073rz/src/stm32_spi.c + * boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_spi.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -76,13 +76,13 @@ * Public Functions ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_sx127x.c b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_sx127x.c index 95403ec4e3..389f674fa7 100644 --- a/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_sx127x.c +++ b/boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_sx127x.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l073rz/src/stm32_sx127x.c + * boards/arm/stm32f0l0g0/nucleo-l073rz/src/stm32_sx127x.c * This logic is specific for the RFM98 modules (433MHz) * * Copyright (C) 2019 Gregory Nutt. All rights reserved. @@ -222,4 +222,3 @@ int stm32_lpwaninitialize(void) errout: return ret; } - diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/include/board.h b/boards/arm/stm32f0l0g0/stm32f051-discovery/include/board.h index 850babe3ff..7f3dfa30cd 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/include/board.h +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f051-discovery/include/board.h +/**************************************************************************** + * boards/arm/stm32f0l0g0/stm32f051-discovery/include/board.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F051_DISCOVERY_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F051_DISCOVERY_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F0L0G0_STM32F051_DISCOVERY_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F0L0G0_STM32F051_DISCOVERY_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,12 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Clocking *****************************************************************/ -/* Clocking *************************************************************************/ /* Four different clock sources can be used to drive the system clock (SYSCLK): * * - HSI high-speed internal oscillator clock @@ -164,7 +165,8 @@ #define STM32_APB1_TIM16_CLKIN (STM32_PCLK1_FREQUENCY) #define STM32_APB1_TIM17_CLKIN (STM32_PCLK1_FREQUENCY) -/* LED definitions ******************************************************************/ +/* LED definitions **********************************************************/ + /* The STM32F0-Discovery board has four LEDs. Two of these are controlled by * logic on the board and are not available for software control: * @@ -220,7 +222,8 @@ #define LED_ASSERTION 2 #define LED_PANIC 3 -/* Button definitions ***************************************************************/ +/* Button definitions *******************************************************/ + /* The STM32F0-Discovery supports two buttons; only one button is controllable by * software: * @@ -233,7 +236,8 @@ #define BUTTON_USER_BIT (1 << BUTTON_USER) -/* Alternate Pin Functions **********************************************************/ +/* Alternate Pin Functions **************************************************/ + /* USART 1 */ #define GPIO_USART1_TX GPIO_USART1_TX_1 @@ -244,4 +248,4 @@ #define GPIO_I2C1_SCL GPIO_I2C1_SCL_1 #define GPIO_I2C1_SDA GPIO_I2C1_SDA_1 -#endif /* __BOARDS_ARM_STM32F051_DISCOVERY_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_STM32F051_DISCOVERY_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/Make.defs b/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/Make.defs index a87d706a04..3e3fd79840 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/Make.defs +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f051-discovery/scripts/Make.defs +# boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/Make.defs # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld b/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld index 6fde9f43d0..5cc1753fb4 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f051-discovery/scripts/flash.ld + * boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/flash.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/gnu-elf.ld b/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/gnu-elf.ld index ba317bcc27..05873cb019 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/gnu-elf.ld +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f051-discovery/scripts/gnu-elf.ld + * boards/arm/stm32f0l0g0/stm32f051-discovery/scripts/gnu-elf.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/Makefile b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/Makefile index 33dd7e6cd9..cd3bd1cd2d 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/Makefile +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f051-discovery/src/Makefile +# boards/arm/stm32f0l0g0/stm32f051-discovery/src/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_appinit.c b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_appinit.c index fdfa1f5d29..0b48b2647d 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_appinit.c +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f051-discovery/src/stm32_appinit.c + * boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_appinit.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_autoleds.c b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_autoleds.c index 7da3ceb0ac..a790aecdec 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_autoleds.c +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f051-discovery/src/stm32_autoleds.c + * boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_autoleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_boot.c b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_boot.c index 6a5f0b8ba2..7f100b6302 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_boot.c +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f051-discovery/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_boot.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,11 @@ #include "up_arch.h" #include "stm32f051-discovery.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -60,7 +60,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_bringup.c b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_bringup.c index a5ea2cebe3..a960fbe0e9 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_bringup.c +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f051-discovery/src/stm32_bringup.c + * boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_bringup.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_buttons.c b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_buttons.c index b682bc6d49..748564f1aa 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_buttons.c +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f051-discovery/src/board_buttons.c + * boards/arm/stm32f0l0g0/stm32f051-discovery/src/board_buttons.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -122,7 +122,7 @@ uint8_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -142,7 +142,7 @@ uint8_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_userleds.c b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_userleds.c index 8a6b0dbbb4..a6fd1e0e1e 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_userleds.c +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f051-discovery/src/stm32_userleds.c + * boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32_userleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32f051-discovery.h b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32f051-discovery.h index 5de0f67f10..f6d6a31317 100644 --- a/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32f051-discovery.h +++ b/boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32f051-discovery.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/stm32f051-discovery/src/stm32f051-discovery.h +/**************************************************************************** + * boards/arm/stm32f0l0g0/stm32f051-discovery/src/stm32f051-discovery.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F051_DISCOVERY_SRC_STM32F051_DISCOVERY_H -#define __BOARDS_ARM_STM32F051_DISCOVERY_SRC_STM32F051_DISCOVERY_H +#ifndef __BOARDS_ARM_STM32F0G0L0_STM32F051_DISCOVERY_SRC_STM32F051_DISCOVERY_H +#define __BOARDS_ARM_STM32F0G0L0_STM32F051_DISCOVERY_SRC_STM32F051_DISCOVERY_H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include @@ -47,11 +47,12 @@ #include "stm32_gpio.h" -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ -/* Configuration ************************************************************************************/ /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -65,12 +66,15 @@ # undef CONFIG_STM32F0L0G0_SPI3 #endif -/* STM32F0Discovery GPIOs ***************************************************************************/ -/* The STM32F0Discovery board has four LEDs. Two of these are controlled by logic on the board and +/* STM32F0Discovery GPIOs ***************************************************/ + +/* The STM32F0Discovery board has four LEDs. + * Two of these are controlled by logic on the board and * are not available for software control: * - * LD1 COM: LD2 default status is red. LD2 turns to green to indicate that communications are in - * progress between the PC and the ST-LINK/V2. + * LD1 COM: LD2 default status is red. LD2 turns to green to indicate + * that communications are in progress between the PC and + * the ST-LINK/V2. * LD2 PWR: Red LED indicates that the board is powered. * * And two LEDs can be controlled by software: @@ -86,8 +90,10 @@ #define GPIO_LED2 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_MEDIUM | \ GPIO_OUTPUT_CLEAR | GPIO_PORTC | GPIO_PIN8) -/* Button definitions *******************************************************************************/ -/* The STM32F0Discovery supports two buttons; only one button is controllable by software: +/* Button definitions *******************************************************/ + +/* The STM32F0Discovery supports two buttons; only one button is controllable + * by software: * * B1 USER: user and wake-up button connected to the I/O PA0 of the STM32F303VCT6. * B2 RESET: pushbutton connected to NRST is used to RESET the STM32F303VCT6. @@ -101,19 +107,19 @@ #define GPIO_BTN_USER (GPIO_INPUT | GPIO_FLOAT | GPIO_EXTI | GPIO_PORTA | GPIO_PIN0) -/**************************************************************************************************** +/**************************************************************************** * Public Types - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32_bringup @@ -132,4 +138,4 @@ int stm32_bringup(void); #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32F051_DISCOVERY_SRC_STM32F051_DISCOVERY_H */ +#endif /* __BOARDS_ARM_STM32F0G0L0_STM32F051_DISCOVERY_SRC_STM32F051_DISCOVERY_H */ diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/include/board.h b/boards/arm/stm32f0l0g0/stm32f072-discovery/include/board.h index 49f1dd1380..032b808d89 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/include/board.h +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f072-discovery/include/board.h +/**************************************************************************** + * boards/arm/stm32f0l0g0/stm32f072-discovery/include/board.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F072_DISCOVERY_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F072_DISCOVERY_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F0L0G0_STM32F072_DISCOVERY_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F0L0G0_STM32F072_DISCOVERY_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,12 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Clocking *****************************************************************/ -/* Clocking *************************************************************************/ /* Four different clock sources can be used to drive the system clock (SYSCLK): * * - HSI high-speed internal oscillator clock @@ -164,7 +165,8 @@ #define STM32_APB1_TIM16_CLKIN (STM32_PCLK1_FREQUENCY) #define STM32_APB1_TIM17_CLKIN (STM32_PCLK1_FREQUENCY) -/* LED definitions ******************************************************************/ +/* LED definitions **********************************************************/ + /* The STM32F0-Discovery board has four LEDs. Two of these are controlled by * logic on the board and are not available for software control: * @@ -224,7 +226,8 @@ #define LED_ASSERTION 2 #define LED_PANIC 3 -/* Button definitions ***************************************************************/ +/* Button definitions *******************************************************/ + /* The STM32F0-Discovery supports two buttons; only one button is controllable by * software: * @@ -238,6 +241,7 @@ #define BUTTON_USER_BIT (1 << BUTTON_USER) /* Alternate Pin Functions **********************************************************/ + /* USART 1 */ #define GPIO_USART1_TX GPIO_USART1_TX_1 @@ -248,4 +252,4 @@ #define GPIO_I2C1_SCL GPIO_I2C1_SCL_1 #define GPIO_I2C1_SDA GPIO_I2C1_SDA_1 -#endif /* __BOARDS_ARM_STM32F072_DISCOVERY_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_STM32F072_DISCOVERY_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/Make.defs b/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/Make.defs index ea3f6d8bbd..75eb8ec1b0 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/Make.defs +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f072-discovery/scripts/Make.defs +# boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/Make.defs # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld b/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld index 267033f2aa..ca9adfa67b 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f072-discovery/scripts/flash.ld + * boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/flash.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/gnu-elf.ld b/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/gnu-elf.ld index 9414bf1939..cc7a478e54 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/gnu-elf.ld +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f072-discovery/scripts/gnu-elf.ld + * boards/arm/stm32f0l0g0/stm32f072-discovery/scripts/gnu-elf.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/Makefile b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/Makefile index 44e7c374cc..e723448d5c 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/Makefile +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f072-discovery/src/Makefile +# boards/arm/stm32f0l0g0/stm32f072-discovery/src/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_appinit.c b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_appinit.c index fcf9d38c50..9bd88e65a1 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_appinit.c +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f072-discovery/src/stm32_appinit.c + * boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_appinit.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_autoleds.c b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_autoleds.c index 5726e87e30..967f0fede9 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_autoleds.c +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f072-discovery/src/stm32_autoleds.c + * boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_autoleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_boot.c b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_boot.c index bb57d441ca..b7e6a8e068 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_boot.c +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f072-discovery/src/stm32f072_boot.c +/**************************************************************************** + * boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32f072_boot.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,11 @@ #include "up_arch.h" #include "stm32f072-discovery.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -60,7 +60,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_bringup.c b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_bringup.c index 3a4e48d918..7f633321ab 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_bringup.c +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f072-discovery/src/stm32_bringup.c + * boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_bringup.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_buttons.c b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_buttons.c index 2525f4b3b3..b6c6c08ae8 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_buttons.c +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f072-discovery/src/board_buttons.c + * boards/arm/stm32f0l0g0/stm32f072-discovery/src/board_buttons.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -122,7 +122,7 @@ uint8_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -142,7 +142,7 @@ uint8_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_userleds.c b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_userleds.c index 3e8d43f3e7..af916c4199 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_userleds.c +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f072-discovery/src/stm32_userleds.c + * boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32_userleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32f072-discovery.h b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32f072-discovery.h index efc86cc3a9..9e82965be8 100644 --- a/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32f072-discovery.h +++ b/boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32f072-discovery.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/stm32f072-discovery/src/stm32f072-discovery.h +/**************************************************************************** + * boards/arm/stm32f0l0g0/stm32f072-discovery/src/stm32f072-discovery.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F072_DISCOVERY_SRC_STM32F072_DISCOVERY_H -#define __BOARDS_ARM_STM32F072_DISCOVERY_SRC_STM32F072_DISCOVERY_H +#ifndef __BOARDS_ARM_STM32F0L0G0_STM32F072_DISCOVERY_SRC_STM32F072_DISCOVERY_H +#define __BOARDS_ARM_STM32F0L0G0_STM32F072_DISCOVERY_SRC_STM32F072_DISCOVERY_H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include @@ -47,11 +47,12 @@ #include "stm32_gpio.h" -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ -/* Configuration ************************************************************************************/ /* How many SPI modules does this chip support? */ #if STM32_NSPI < 1 @@ -65,12 +66,15 @@ # undef CONFIG_STM32F0L0G0_SPI3 #endif -/* STM32F0Discovery GPIOs ***************************************************************************/ -/* The STM32F0Discovery board has four LEDs. Two of these are controlled by logic on the board and +/* STM32F0Discovery GPIOs ***************************************************/ + +/* The STM32F0Discovery board has four LEDs. + * Two of these are controlled by logic on the board and * are not available for software control: * - * LD1 COM: LD2 default status is red. LD2 turns to green to indicate that communications are in - * progress between the PC and the ST-LINK/V2. + * LD1 COM: LD2 default status is red. LD2 turns to green to indicate that + * communications are in progress between the PC and + * the ST-LINK/V2. * LD2 PWR: Red LED indicates that the board is powered. * * And two LEDs can be controlled by software: @@ -92,8 +96,10 @@ #define GPIO_LED4 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_MEDIUM | \ GPIO_OUTPUT_CLEAR | GPIO_PORTC | GPIO_PIN9) -/* Button definitions *******************************************************************************/ -/* The STM32F0Discovery supports two buttons; only one button is controllable by software: +/* Button definitions *******************************************************/ + +/* The STM32F0Discovery supports two buttons; + * only one button is controllable by software: * * B1 USER: user and wake-up button connected to the I/O PA0 of the STM32F303VCT6. * B2 RESET: pushbutton connected to NRST is used to RESET the STM32F303VCT6. @@ -107,19 +113,19 @@ #define GPIO_BTN_USER (GPIO_INPUT | GPIO_FLOAT | GPIO_EXTI | GPIO_PORTA | GPIO_PIN0) -/**************************************************************************************************** +/**************************************************************************** * Public Types - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32_bringup @@ -138,4 +144,4 @@ int stm32_bringup(void); #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32F072_DISCOVERY_SRC_STM32F072_DISCOVERY_H */ +#endif /* __BOARDS_ARM_STM32F0L0G0_STM32F072_DISCOVERY_SRC_STM32F072_DISCOVERY_H */ diff --git a/boards/arm/stm32f7/nucleo-144/include/board.h b/boards/arm/stm32f7/nucleo-144/include/board.h index 1b28d34a0e..a6b680aca4 100644 --- a/boards/arm/stm32f7/nucleo-144/include/board.h +++ b/boards/arm/stm32f7/nucleo-144/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-144/include/board.h +/**************************************************************************** + * boards/arm/stm32f7/nucleo-144/include/board.h * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -34,14 +34,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_144_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_144_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F7_NUCLEO_144_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F7_NUCLEO_144_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -56,11 +56,11 @@ #endif #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ /* The Nucleo-144 board provides the following clock sources: * @@ -253,10 +253,10 @@ # define GPIO_SDMMC2_D3 GPIO_SDMMC2_D3_1 #endif -/* DMA Channl/Stream Selections *****************************************************/ +/* DMA Channl/Stream Selections *********************************************/ -/* Stream selections are arbitrary for now but might become important in the future - * if we set aside more DMA channels/streams. +/* Stream selections are arbitrary for now but might become important in the + * future if we set aside more DMA channels/streams. * * SDMMC DMA is on DMA2 * @@ -287,13 +287,14 @@ #define BOARD_FLASH_WAITSTATES 7 -/* LED definitions ******************************************************************/ +/* LED definitions **********************************************************/ -/* The Nucleo-144 board has numerous LEDs but only three, LD1 a Green LED, LD2 a Blue - * LED and LD3 a Red LED, that can be controlled by software. The following - * definitions assume the default Solder Bridges are installed. +/* The Nucleo-144 board has numerous LEDs but only three, LD1 a Green LED, + * LD2 a Blue LED and LD3 a Red LED, that can be controlled by software. + * The following definitions assume the default Solder Bridges are installed. * - * If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in any way. + * If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs + * in any way. * The following definitions are used to access individual LEDs. */ @@ -339,17 +340,18 @@ * has halted. */ -/* Button definitions ***************************************************************/ +/* Button definitions *******************************************************/ -/* The STM32F7 Discovery supports one button: Pushbutton B1, labeled "User", is - * connected to GPIO PI11. A high value will be sensed when the button is depressed. +/* The STM32F7 Discovery supports one button: Pushbutton B1, labeled "User", + * is connected to GPIO PI11. + * A high value will be sensed when the button is depressed. */ #define BUTTON_USER 0 #define NUM_BUTTONS 1 #define BUTTON_USER_BIT (1 << BUTTON_USER) -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ /* TIM */ @@ -359,6 +361,7 @@ #define GPIO_TIM4_CH1OUT GPIO_TIM4_CH1OUT_1 #if defined(CONFIG_NUCLEO_CONSOLE_ARDUINO) + /* USART6: * * These configurations assume that you are using a standard Arduio RS-232 shield @@ -387,6 +390,7 @@ #endif #if defined(CONFIG_NUCLEO_CONSOLE_MORPHO_UART4) + /* UART4: * * This configuration assumes that you disabled Ethernet MII clocking @@ -510,5 +514,4 @@ #define GPIO_ETH_RMII_TXD0 GPIO_ETH_RMII_TXD0_2 #define GPIO_ETH_RMII_TXD1 GPIO_ETH_RMII_TXD1_1 -#endif /* __BOARDS_ARM_NUCLEO_144_INCLUDE_BOARD_H */ - +#endif /* __BOARDS_ARM_STM32F7_NUCLEO_144_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld b/boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld index 1a1cb33856..616ca1291c 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/scripts/f722-flash.ld + * boards/arm/stm32f7/nucleo-144/scripts/f722-flash.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,7 +33,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * Change Log: - * bf20171114 Created from boards/nucleo-144/scripts/f746-flash.ld + * bf20171114 Created from boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld ****************************************************************************/ /* The STM32F722ZE has 512 KiB of main FLASH memory. This FLASH memory diff --git a/boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld b/boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld index f7a25850f4..879143feb7 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/scripts/f746-flash.ld + * boards/arm/stm32f7/nucleo-144/scripts/f746-flash.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld b/boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld index 12f8e525e5..e935768265 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/scripts/f767-flash.ld + * boards/arm/stm32f7/nucleo-144/scripts/f767-flash.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld b/boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld index 7ecc15c01d..9ab4ef775e 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/scripts/kernel-space.ld + * boards/arm/stm32f7/nucleo-144/scripts/kernel-space.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/nucleo-144/scripts/memory.ld b/boards/arm/stm32f7/nucleo-144/scripts/memory.ld index a7909e7ebb..90c2a6f1a1 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/memory.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/scripts/memory.ld + * boards/arm/stm32f7/nucleo-144/scripts/memory.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/nucleo-144/scripts/user-space.ld b/boards/arm/stm32f7/nucleo-144/scripts/user-space.ld index cf3f5ba721..653c589e53 100644 --- a/boards/arm/stm32f7/nucleo-144/scripts/user-space.ld +++ b/boards/arm/stm32f7/nucleo-144/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/scripts/user-space.ld + * boards/arm/stm32f7/nucleo-144/scripts/user-space.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/nucleo-144/src/Makefile b/boards/arm/stm32f7/nucleo-144/src/Makefile index 3268844d6c..60c614898b 100644 --- a/boards/arm/stm32f7/nucleo-144/src/Makefile +++ b/boards/arm/stm32f7/nucleo-144/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-144/src/Makefile +# boards/arm/stm32f7/nucleo-144/src/Makefile # # Copyright (C) 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f7/nucleo-144/src/nucleo-144.h b/boards/arm/stm32f7/nucleo-144/src/nucleo-144.h index ec7e9fecbc..ef83af235e 100644 --- a/boards/arm/stm32f7/nucleo-144/src/nucleo-144.h +++ b/boards/arm/stm32f7/nucleo-144/src/nucleo-144.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-144/src/nucleo-144.h +/**************************************************************************** + * boards/arm/stm32f7/nucleo-144/src/nucleo-144.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -33,24 +33,24 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_144_SRC_NUCLEO_144_H -#define __BOARDS_ARM_NUCLEO_144_SRC_NUCLEO_144_H +#ifndef __BOARDS_ARM_STM32F7_NUCLEO_144_SRC_NUCLEO_144_H +#define __BOARDS_ARM_STM32F7_NUCLEO_144_SRC_NUCLEO_144_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Configuration ********************************************************************/ +/* Configuration ************************************************************/ /* procfs File System */ @@ -62,7 +62,7 @@ # endif #endif -/* Nucleo-144 GPIO Pin Definitions **************************************************/ +/* Nucleo-144 GPIO Pin Definitions ******************************************/ /* LED * @@ -96,7 +96,7 @@ #define GPIO_BTN_USER (GPIO_INPUT | GPIO_FLOAT | GPIO_EXTI | GPIO_PORTC | GPIO_PIN13) -/* SPI ***************************************************************************/ +/* SPI **********************************************************************/ #define GPIO_SPI_CS (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | \ GPIO_OUTPUT_SET) @@ -190,42 +190,42 @@ GPIO_OUTPUT_SET | GPIO_PORTB | GPIO_PIN1) #define GPIO_INT1 (GPIO_INPUT | GPIO_FLOAT | GPIO_PORTB | GPIO_PIN2) -/************************************************************************************ +/**************************************************************************** * Public data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_SPI) void stm32_spidev_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_bus_test * * Description: * Called to create the defined SPI buses and test them by initializing them * and sending the NUCLEO_SPI_TEST (no chip select). * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_NUCLEO_SPI_TEST) int stm32_spidev_bus_test(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_dma_alloc_init * * Description: @@ -234,7 +234,7 @@ int stm32_spidev_bus_test(void); * Returned Value: * 0 on success or -ENOMEM * - ************************************************************************************/ + ****************************************************************************/ void stm32_dma_alloc_init(void); @@ -254,50 +254,50 @@ int stm32_dma_alloc_init(void); int stm32_sdio_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32F7_OTGFS void stm32_usbinitialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_bbsram_int - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32F7_BBSRAM int stm32_bbsram_int(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_144_SRC_NUCLEO_144_H */ +#endif /* __BOARDS_ARM_STM32F7_NUCLEO_144_SRC_NUCLEO_144_H */ diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_adc.c b/boards/arm/stm32f7/nucleo-144/src/stm32_adc.c index 5b20a4ab0a..6a13fc6ece 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_adc.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-144/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32f7/nucleo-144/src/stm32_adc.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,11 +53,12 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ -/* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ #if STM32F7_NADC < 3 @@ -81,9 +82,9 @@ #define ADC1_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Identifying number of each ADC channel: Variable Resistor. * @@ -103,21 +104,21 @@ static const uint8_t g_chanlist[ADC1_NCHANNELS] = {3}; static const uint32_t g_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN3}; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_appinitialize.c b/boards/arm/stm32f7/nucleo-144/src/stm32_appinitialize.c index 7ec837acc4..f588263015 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_appinitialize.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-144/src/stm32_appinitialize.c + * boards/arm/stm32f7/nucleo-144/src/stm32_appinitialize.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_autoleds.c b/boards/arm/stm32f7/nucleo-144/src/stm32_autoleds.c index 6a79596997..8e342d677a 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_autoleds.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/src/stm32_autoleds.c + * boards/arm/stm32f7/nucleo-144/src/stm32_autoleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_bbsram.c b/boards/arm/stm32f7/nucleo-144/src/stm32_bbsram.c index 76330cc624..27d805819a 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_bbsram.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_bbsram.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/src/stm32_bbsram.c + * boards/arm/stm32f7/nucleo-144/src/stm32_bbsram.c * * Copyright (C) 2016, 2018 Gregory Nutt. All rights reserved. * Author: David Sidrane diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_boot.c b/boards/arm/stm32f7/nucleo-144/src/stm32_boot.c index 3639c8b91e..2a581c9b3c 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_boot.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-144/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32f7/nucleo-144/src/stm32_boot.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,11 @@ #include "up_arch.h" #include "nucleo-144.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -60,7 +60,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { @@ -81,7 +81,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -92,7 +92,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_buttons.c b/boards/arm/stm32f7/nucleo-144/src/stm32_buttons.c index ee076d8751..8cd86f73ef 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_buttons.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/src/stm32_buttons.c + * boards/arm/stm32f7/nucleo-144/src/stm32_buttons.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -82,7 +82,7 @@ uint32_t board_buttons(void) return stm32_gpioread(GPIO_BTN_USER) ? 1 : 0; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -102,7 +102,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_dma_alloc.c b/boards/arm/stm32f7/nucleo-144/src/stm32_dma_alloc.c index 3e9fec91dd..0355e802d0 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_dma_alloc.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_dma_alloc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/stc/stm32_dma_alloc.c + * boards/arm/stm32f7/nucleo-144/stc/stm32_dma_alloc.c * * Copyright (C) 2016 PX4 Development Team. All rights reserved. * @@ -32,9 +32,9 @@ * ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -46,9 +46,9 @@ #if defined(CONFIG_FAT_DMAMEMORY) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if !defined(CONFIG_GRAN) # error microSD DMA support requires CONFIG_GRAN @@ -56,9 +56,9 @@ #define BOARD_DMA_ALLOC_POOL_SIZE (8*512) -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static GRAN_HANDLE dma_allocator; @@ -74,18 +74,18 @@ static GRAN_HANDLE dma_allocator; static uint8_t g_dma_heap[BOARD_DMA_ALLOC_POOL_SIZE] __attribute__((aligned(64))); -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_dma_alloc_init * * Description: * All boards may optionally provide this API to instantiate a pool of * memory for uses with FAST FS DMA operations. * - ************************************************************************************/ + ****************************************************************************/ int stm32_dma_alloc_init(void) { diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_gpio.c b/boards/arm/stm32f7/nucleo-144/src/stm32_gpio.c index 5eac00af90..ec87c0db44 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_gpio.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_gpio.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/src/stm32_gpio.c + * boards/arm/stm32f7/nucleo-144/src/stm32_gpio.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Copyright (C) 2017 Alan Carvalho de Assis. All rights reserved. diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_pwm.c b/boards/arm/stm32f7/nucleo-144/src/stm32_pwm.c index 61bb6ae677..6f6b96d207 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_pwm.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-144/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32f7/nucleo-144/src/stm32_pwm.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,26 +53,26 @@ #include "stm32_pwm.h" #include "nucleo-144.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define HAVE_PWM 1 #ifndef CONFIG_PWM # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_reset.c b/boards/arm/stm32f7/nucleo-144/src/stm32_reset.c index 646e9a12e5..ce4349ddc0 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_reset.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_reset.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/src/stm32_reset.c + * boards/arm/stm32f7/nucleo-144/src/stm32_reset.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_romfs.h b/boards/arm/stm32f7/nucleo-144/src/stm32_romfs.h index b63a08b297..6b46a66d3d 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_romfs.h +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_romfs.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/src/stm32_romfs.h + * boards/arm/stm32f7/nucleo-144/src/stm32_romfs.h * * Copyright (C) 2017 Tomasz Wozniak. All rights reserved. * Author: Tomasz Wozniak @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO144_SRC_STM32_ROMFS_H -#define __BOARDS_ARM_NUCLEO144_SRC_STM32_ROMFS_H +#ifndef __BOARDS_ARM_STM32F7_NUCLEO144_SRC_STM32_ROMFS_H +#define __BOARDS_ARM_STM32F7_NUCLEO144_SRC_STM32_ROMFS_H /**************************************************************************** * Included Files @@ -73,4 +73,4 @@ int stm32_romfs_initialize(void); #endif /* CONFIG_STM32_ROMFS */ -#endif /* __BOARDS_ARM_NUCLEO144_SRC_STM32_ROMFS_H */ +#endif /* __BOARDS_ARM_STM32F7_NUCLEO144_SRC_STM32_ROMFS_H */ diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_romfs_initialize.c b/boards/arm/stm32f7/nucleo-144/src/stm32_romfs_initialize.c index 8739f685cb..82d17860fa 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_romfs_initialize.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_romfs_initialize.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/nucleo-144/src/stm32_romfs_initialize.c + * boards/arm/stm32f7/nucleo-144/src/stm32_romfs_initialize.c * This file provides contents of an optional ROMFS volume, mounted at boot. * * Copyright (C) 2017 Tomasz Wozniak. All rights reserved. diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_sdio.c b/boards/arm/stm32f7/nucleo-144/src/stm32_sdio.c index 9b1de7415f..77d8c7f287 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_sdio.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_sdio.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-144/src/stm32_sdio.c + * boards/arm/stm32f7/nucleo-144/src/stm32_sdio.c * * Copyright (C) 2014, 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_spi.c b/boards/arm/stm32f7/nucleo-144/src/stm32_spi.c index 3673865286..d162343bd0 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_spi.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-144/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32f7/nucleo-144/src/stm32_spi.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -57,9 +57,9 @@ #if defined(CONFIG_SPI) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define ARRAYSIZE(x) (sizeof((x)) / sizeof((x)[0])) @@ -105,9 +105,9 @@ # endif #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Indexed by NUCLEO_SPI_BUSx_CSx */ @@ -163,17 +163,17 @@ struct spi_dev_s *spi3; # endif #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_usb.c b/boards/arm/stm32f7/nucleo-144/src/stm32_usb.c index 87887a6303..1169ec91cd 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_usb.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards//nucleo-144/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32f7/nucleo-144/src/stm32_usb.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -61,9 +61,9 @@ #ifdef CONFIG_STM32F7_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -80,25 +80,25 @@ # define CONFIG_NUCLEO_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -129,18 +129,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -287,7 +287,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -302,7 +302,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -311,7 +311,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -320,7 +320,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32f7/nucleo-144/src/stm32_userleds.c b/boards/arm/stm32f7/nucleo-144/src/stm32_userleds.c index 9647ac8675..9968f3cdd5 100644 --- a/boards/arm/stm32f7/nucleo-144/src/stm32_userleds.c +++ b/boards/arm/stm32f7/nucleo-144/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/src/stm32_userleds.c + * boards/arm/stm32f7/nucleo-144/src/stm32_userleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746-ws/include/board.h b/boards/arm/stm32f7/stm32f746-ws/include/board.h index 4d4a21cdf7..b135ff98aa 100644 --- a/boards/arm/stm32f7/stm32f746-ws/include/board.h +++ b/boards/arm/stm32f7/stm32f746-ws/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f746-ws/include/board.h +/**************************************************************************** + * boards/arm/stm32f7/stm32f746-ws/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,14 +32,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F746_WS_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F746_WS_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F7_STM32F746_WS_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F7_STM32F746_WS_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,11 +54,12 @@ #endif #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Clocking *****************************************************************/ -/* Clocking *************************************************************************/ /* The STM32F7 Discovery board provides the following clock sources: * * X1: 24 MHz oscillator for USB OTG HS PHY and camera module (daughter board) @@ -225,12 +226,12 @@ #define BOARD_FLASH_WAITSTATES 7 -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ /* USART6: * - * These configurations assume that you are using a standard Arduio RS-232 shield - * with the serial interface with RX on pin D0 and TX on pin D1: + * These configurations assume that you are using a standard Arduio RS-232 + * shield with the serial interface with RX on pin D0 and TX on pin D1: * * -------- --------------- * STM32F7 @@ -293,4 +294,4 @@ # define STM32_SDMMC_SDXFR_CLKDIV (2 << STM32_SDMMC_CLKCR_CLKDIV_SHIFT) #endif -#endif /* __BOARDS_ARM_STM32F746_WS_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32F7_STM32F746_WS_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f7/stm32f746-ws/scripts/Make.defs b/boards/arm/stm32f7/stm32f746-ws/scripts/Make.defs index 61b08eef91..4c05ef3e58 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/Make.defs +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f746-ws/scripts/Make.defs +# boards/arm/stm32f7/stm32f746-ws/scripts/Make.defs # # Copyright (C) 2016, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld b/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld index 1f91d145a4..f2457cfd30 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746-ws/scripts/flash.ld + * boards/arm/stm32f7/stm32f746-ws/scripts/flash.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld b/boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld index 0801a8d029..85ba93f7d9 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746-ws/scripts/kernel-space.ld + * boards/arm/stm32f7/stm32f746-ws/scripts/kernel-space.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746-ws/scripts/memory.ld b/boards/arm/stm32f7/stm32f746-ws/scripts/memory.ld index 30db3cdd1a..831fd98389 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/memory.ld +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746-ws/scripts/memory.ld + * boards/arm/stm32f7/stm32f746-ws/scripts/memory.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -67,7 +67,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of * FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/stm32f746g-disco/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld b/boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld index b70db7519d..79abc16042 100644 --- a/boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746-ws/scripts/user-space.ld + * boards/arm/stm32f7/stm32f746-ws/scripts/user-space.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746-ws/src/Makefile b/boards/arm/stm32f7/stm32f746-ws/src/Makefile index 80a24e32ea..8732e3f420 100644 --- a/boards/arm/stm32f7/stm32f746-ws/src/Makefile +++ b/boards/arm/stm32f7/stm32f746-ws/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f746-ws/src/Makefile +# boards/arm/stm32f7/stm32f746-ws/src/Makefile # # Copyright (C) 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746-ws/src/stm32_appinitialize.c b/boards/arm/stm32f7/stm32f746-ws/src/stm32_appinitialize.c index 8079b43f69..95a499f0de 100644 --- a/boards/arm/stm32f7/stm32f746-ws/src/stm32_appinitialize.c +++ b/boards/arm/stm32f7/stm32f746-ws/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f746-ws/src/stm32_appinitilaize.c + * boards/arm/stm32f7/stm32f746-ws/src/stm32_appinitilaize.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746-ws/src/stm32_boot.c b/boards/arm/stm32f7/stm32f746-ws/src/stm32_boot.c index b29592cedd..be0f3eb516 100644 --- a/boards/arm/stm32f7/stm32f746-ws/src/stm32_boot.c +++ b/boards/arm/stm32f7/stm32f746-ws/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f746-ws/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f746-ws/src/stm32_boot.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ #include "up_arch.h" #include "stm32f746-ws.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -59,7 +59,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { @@ -77,7 +77,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -88,7 +88,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32f7/stm32f746-ws/src/stm32_dma_alloc.c b/boards/arm/stm32f7/stm32f746-ws/src/stm32_dma_alloc.c index cbbe6a069d..d39e40ee68 100644 --- a/boards/arm/stm32f7/stm32f746-ws/src/stm32_dma_alloc.c +++ b/boards/arm/stm32f7/stm32f746-ws/src/stm32_dma_alloc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/stc/stm32_dma_alloc.c + * boards/arm/stm32f7/stm32f746-ws/stc/stm32_dma_alloc.c * * Copyright (C) 2016 PX4 Development Team. All rights reserved. * @@ -32,9 +32,9 @@ * ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -46,9 +46,9 @@ #if defined(CONFIG_FAT_DMAMEMORY) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if !defined(CONFIG_GRAN) # error microSD DMA support requires CONFIG_GRAN @@ -56,9 +56,9 @@ #define BOARD_DMA_ALLOC_POOL_SIZE (8*512) -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static GRAN_HANDLE dma_allocator; @@ -74,18 +74,18 @@ static GRAN_HANDLE dma_allocator; static uint8_t g_dma_heap[BOARD_DMA_ALLOC_POOL_SIZE] __attribute__((aligned(64))); -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_dma_alloc_init * * Description: * All boards may optionally provide this API to instantiate a pool of * memory for uses with FAST FS DMA operations. * - ************************************************************************************/ + ****************************************************************************/ int stm32_dma_alloc_init(void) { diff --git a/boards/arm/stm32f7/stm32f746-ws/src/stm32_sdmmc.c b/boards/arm/stm32f7/stm32f746-ws/src/stm32_sdmmc.c index daca5a160f..bb199ec557 100644 --- a/boards/arm/stm32f7/stm32f746-ws/src/stm32_sdmmc.c +++ b/boards/arm/stm32f7/stm32f746-ws/src/stm32_sdmmc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f746-ws/src/stm32_sdmmc.c + * boards/arm/stm32f7/stm32f746-ws/src/stm32_sdmmc.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -53,6 +53,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* Configuration ************************************************************/ /* Card detections requires card support and a card detection GPIO */ @@ -131,6 +132,7 @@ int stm32_sdio_initialize(void) #endif /* Mount the SDIO-based MMC/SD block driver */ + /* First, get an instance of the SDIO interface */ finfo("Initializing SDIO slot %d\n", SDIO_SLOTNO); diff --git a/boards/arm/stm32f7/stm32f746-ws/src/stm32_spi.c b/boards/arm/stm32f7/stm32f746-ws/src/stm32_spi.c index fe6d5eefdd..79b9f1e2ae 100644 --- a/boards/arm/stm32f7/stm32f746-ws/src/stm32_spi.c +++ b/boards/arm/stm32f7/stm32f746-ws/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-144/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f746-ws/src/stm32_spi.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -57,17 +57,17 @@ defined(CONFIG_STM32F7_SPI3) || defined(CONFIG_STM32F7_SPI4) || \ defined(CONFIG_STM32F7_SPI5) || defined(CONFIG_STM32F7_SPI6) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32f746g-disco board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32f7/stm32f746-ws/src/stm32_usb.c b/boards/arm/stm32f7/stm32f746-ws/src/stm32_usb.c index a8fdbd6ccf..e3e72eaed7 100644 --- a/boards/arm/stm32f7/stm32f746-ws/src/stm32_usb.c +++ b/boards/arm/stm32f7/stm32f746-ws/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f746-ws/src/stm32_usb.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,9 +59,9 @@ #ifdef CONFIG_STM32F7_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -78,25 +78,25 @@ # define CONFIG_STM32F7F4DISCO_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -127,18 +127,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the STM32F4Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -297,7 +297,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -312,7 +312,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -321,7 +321,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -330,7 +330,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32f7/stm32f746-ws/src/stm32f746-ws.h b/boards/arm/stm32f7/stm32f746-ws/src/stm32f746-ws.h index 5b0b45d0fc..c922f04115 100644 --- a/boards/arm/stm32f7/stm32f746-ws/src/stm32f746-ws.h +++ b/boards/arm/stm32f7/stm32f746-ws/src/stm32f746-ws.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/stm32f746-ws/src/stm32f746-ws.h +/**************************************************************************** + * boards/arm/stm32f7/stm32f746-ws/src/stm32f746-ws.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,22 +32,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __BOARDS_ARM_STM32F746_WS_SRC_STM32F746_WS_H #define __BOARDS_ARM_STM32F746_WS_SRC_STM32F746_WS_H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include #include -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ + ****************************************************************************/ + /* procfs File System */ #ifdef CONFIG_FS_PROCFS @@ -58,13 +59,16 @@ # endif #endif -/* STM32F736G Discovery GPIOs ***********************************************************************/ -/* The STM32F746G-DISCO board has numerous LEDs but only one, LD1 located near the reset button, that - * can be controlled by software (LD2 is a power indicator, LD3-6 indicate USB status, LD7 is - * controlled by the ST-Link). +/* STM32F736G Discovery GPIOs ***********************************************/ + +/* The STM32F746G-DISCO board has numerous LEDs but only one, + * LD1 located near the reset button, that can be controlled by software + * (LD2 is a power indicator, LD3-6 indicate USB status, LD7 is controlled by + * the ST-Link). * - * LD1 is controlled by PI1 which is also the SPI2_SCK at the Arduino interface. One end of LD1 is - * grounded so a high output on PI1 will illuminate the LED. + * LD1 is controlled by PI1 which is also the SPI2_SCK at the Arduino + * interface. One end of LD1 is grounded so a high output on PI1 will + * illuminate the LED. */ #define GPIO_LD1 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | GPIO_OUTPUT_CLEAR | \ @@ -76,8 +80,9 @@ #define LED_DRIVER_PATH "/dev/userleds" -/* Pushbutton B1, labelled "User", is connected to GPIO PC13. A high value will be sensed when the - * button is depressed. Note that the EXTI interrupt is configured. +/* Pushbutton B1, labelled "User", is connected to GPIO PC13. + * A high value will be sensed when the button is depressed. + * Note that the EXTI interrupt is configured. */ #define GPIO_BTN_USER (GPIO_INPUT | GPIO_FLOAT | GPIO_EXTI | GPIO_PORTC | GPIO_PIN13) @@ -88,23 +93,24 @@ #define SDIO_SLOTNO 0 #define SDIO_MINOR 0 -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: - * Called to configure SPI chip select GPIO pins for the stm32f746g-disco board. + * Called to configure SPI chip select GPIO pins for the stm32f746g-disco + * board. * - ****************************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); @@ -120,7 +126,7 @@ void weak_function stm32_spidev_initialize(void); int stm32_sdio_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_dma_alloc_init * * Description: @@ -129,7 +135,7 @@ int stm32_sdio_initialize(void); * Returned Value: * 0 on success or -ENOMEM * - ************************************************************************************/ + ****************************************************************************/ #if defined (CONFIG_FAT_DMAMEMORY) int stm32_dma_alloc_init(void); diff --git a/boards/arm/stm32f7/stm32f746g-disco/README.txt b/boards/arm/stm32f7/stm32f746g-disco/README.txt index 0a3bf41f6d..fa12e363ef 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/README.txt +++ b/boards/arm/stm32f7/stm32f746g-disco/README.txt @@ -55,7 +55,7 @@ Development Environment The Development environments for the STM32F746G-DISCO board are identical to the environments for other STM32F boards. For full details on the environment options and setup, see the README.txt file in the - config/stm32f746g-disco directory. + boards/stm32f746g-disco directory. LEDs and Buttons ================ diff --git a/boards/arm/stm32f7/stm32f746g-disco/include/board.h b/boards/arm/stm32f7/stm32f746g-disco/include/board.h index 8f2cb67c6d..0cd0e9ba1a 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/include/board.h +++ b/boards/arm/stm32f7/stm32f746g-disco/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f746g-disco/include/board.h +/**************************************************************************** + * boards/arm/stm32f7/stm32f746g-disco/include/board.h * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F746G_DISCO_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F746G_DISCO_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F7_STM32F746G_DISCO_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F7_STM32F746G_DISCO_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -46,11 +46,12 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Clocking *****************************************************************/ -/* Clocking *************************************************************************/ /* The STM32F7 Discovery board provides the following clock sources: * * X1: 24 MHz oscillator for USB OTG HS PHY and camera module (daughter board) @@ -252,10 +253,11 @@ #define BOARD_FLASH_WAITSTATES 7 -/* LED definitions ******************************************************************/ -/* The STM32F746G-DISCO board has numerous LEDs but only one, LD1 located near the - * reset button, that can be controlled by software (LD2 is a power indicator, LD3-6 - * indicate USB status, LD7 is controlled by the ST-Link). +/* LED definitions **********************************************************/ + +/* The STM32F746G-DISCO board has numerous LEDs but only one, LD1 located + * near the reset button, that can be controlled by software (LD2 is a power + * indicator, LD3-6 indicate USB status, LD7 is controlled by the ST-Link). * * LD1 is controlled by PI1 which is also the SPI2_SCK at the Arduino interface. * One end of LD1 is grounded so a high output on PI1 will illuminate the LED. @@ -304,21 +306,23 @@ #define LED_ASSERTION 2 /* LD1=no change */ #define LED_PANIC 3 /* LD1=flashing */ -/* Button definitions ***************************************************************/ -/* The STM32F7 Discovery supports one button: Pushbutton B1, labelled "User", is - * connected to GPIO PI11. A high value will be sensed when the button is depressed. +/* Button definitions *******************************************************/ + +/* The STM32F7 Discovery supports one button: + * Pushbutton B1, labelled "User", is connected to GPIO PI11. + * A high value will be sensed when the button is depressed. */ #define BUTTON_USER 0 #define NUM_BUTTONS 1 #define BUTTON_USER_BIT (1 << BUTTON_USER) -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ /* USART6: * - * These configurations assume that you are using a standard Arduio RS-232 shield - * with the serial interface with RX on pin D0 and TX on pin D1: + * These configurations assume that you are using a standard Arduio RS-232 + * shield with the serial interface with RX on pin D0 and TX on pin D1: * * -------- --------------- * STM32F7 @@ -390,7 +394,7 @@ #define GPIO_ETH_RMII_TXD0 GPIO_ETH_RMII_TXD0_2 #define GPIO_ETH_RMII_TXD1 GPIO_ETH_RMII_TXD1_2 -/* LCD definitions ******************************************************************/ +/* LCD definitions **********************************************************/ #define BOARD_LTDC_WIDTH 480 #define BOARD_LTDC_HEIGHT 272 @@ -451,4 +455,4 @@ #define GPIO_LTDC_DE GPIO_LTDC_DE_3 #define GPIO_LTDC_CLK GPIO_LTDC_CLK_3 -#endif /* __BOARDS_ARM_STM32F746G_DISCO_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32F7_STM32F746G_DISCO_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f7/stm32f746g-disco/kernel/Makefile b/boards/arm/stm32f7/stm32f746g-disco/kernel/Makefile index 7fd8d46eb4..5b142bcbf9 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/kernel/Makefile +++ b/boards/arm/stm32f7/stm32f746g-disco/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f746g-disco/kernel/Makefile +# boards/arm/stm32f7/stm32f746g-disco/kernel/Makefile # # Copyright (C) 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/kernel/stm32_userspace.c b/boards/arm/stm32f7/stm32f746g-disco/kernel/stm32_userspace.c index adb4e3b749..8d3b81ea36 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/kernel/stm32_userspace.c +++ b/boards/arm/stm32f7/stm32f746g-disco/kernel/stm32_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746g-disco/kernel/stm32_userspace.c + * boards/arm/stm32f7/stm32f746g-disco/kernel/stm32_userspace.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -51,6 +51,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* Configuration ************************************************************/ #ifndef CONFIG_NUTTX_USERSPACE diff --git a/boards/arm/stm32f7/stm32f746g-disco/scripts/Make.defs b/boards/arm/stm32f7/stm32f746g-disco/scripts/Make.defs index 9fcf38aadb..af64cec49b 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/Make.defs +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f746g-disco/scripts/Make.defs +# boards/arm/stm32f7/stm32f746g-disco/scripts/Make.defs # # Copyright (C) 2015, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld b/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld index b99120155f..42ccf71831 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746g-disco/scripts/flash.ld + * boards/arm/stm32f7/stm32f746g-disco/scripts/flash.ld * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld b/boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld index 5f68bb362b..48218638f5 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746g-disco/scripts/kernel-space.ld + * boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/scripts/memory.ld b/boards/arm/stm32f7/stm32f746g-disco/scripts/memory.ld index ea0baa9f8f..382f1a2b19 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/memory.ld +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746g-disco/scripts/memory.ld + * boards/arm/stm32f7/stm32f746g-disco/scripts/memory.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -67,7 +67,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of * FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/stm32f746g-disco/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32f7/stm32f746g-disco/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld b/boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld index 2189bb4f71..4e3307a0f4 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746g-disco/scripts/user-space.ld + * boards/arm/stm32f7/stm32f746g-disco/scripts/user-space.ld * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/Makefile b/boards/arm/stm32f7/stm32f746g-disco/src/Makefile index 81e1e7dd4b..48003ed68b 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/Makefile +++ b/boards/arm/stm32f7/stm32f746g-disco/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f746g-disco/src/Makefile +# boards/arm/stm32f7/stm32f746g-disco/src/Makefile # # Copyright (C) 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_adc.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_adc.c index 800b000684..3010803bda 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_adc.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_adc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f334-disco/src/stm32_adc.c + * boards/arm/stm32f7/stm32f334-disco/src/stm32_adc.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Ivan Ucherdzhiev diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_appinitialize.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_appinitialize.c index 2586b7b796..d48f735bc0 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_appinitialize.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f746g-disco/src/stm32_appinitilaize.c + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_appinitilaize.c * * Copyright (C) 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_autoleds.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_autoleds.c index 2e329d2766..d7a7cf8fbf 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_autoleds.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746g-disco/src/stm32_autoleds.c + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_autoleds.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_boot.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_boot.c index dee0e667c5..584171ceae 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_boot.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f746g-disco/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_boot.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ #include "up_arch.h" #include "stm32f746g-disco.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -59,7 +59,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { @@ -95,7 +95,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -106,7 +106,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_bringup.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_bringup.c index 265b0de2d5..55bce20828 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_bringup.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f476g-disco/src/stm32_bringup.c + * boards/arm/stm32f7/stm32f476g-disco/src/stm32_bringup.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_buttons.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_buttons.c index 6711c61ad3..0eafcfabcb 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_buttons.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746g-disco/src/stm32_buttons.c + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_buttons.c * * Copyright (C) 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -80,7 +80,7 @@ uint32_t board_buttons(void) return stm32_gpioread(GPIO_BTN_USER) ? 1 : 0; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -100,7 +100,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_extmem.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_extmem.c index bf6d98bba2..4cf675406d 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_extmem.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_extmem.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f746g-disco/src/stm32_extmem.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_extmem.c * * Copyright (C) 2018 Marcin Wyrwas. All rights reserved. * Author: Marcin Wyrwas @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,9 +53,9 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifndef CONFIG_STM32F7_FMC # warning "FMC is not enabled" @@ -79,9 +79,9 @@ FMC_SDRAM_MODEREG_WRITEBURST_MODE_SINGLE -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* GPIO configurations common to most external memories */ @@ -102,25 +102,25 @@ static const uint32_t g_dataconfig[STM32_FMC_NDATACONFIGS] = GPIO_FMC_D12, GPIO_FMC_D13, GPIO_FMC_D14, GPIO_FMC_D15 }; -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_extmemgpios * * Description: * Initialize GPIOs for external memory usage * - ************************************************************************************/ + ****************************************************************************/ static void stm32_extmemgpios(const uint32_t *gpios, int ngpios) { @@ -134,13 +134,13 @@ static void stm32_extmemgpios(const uint32_t *gpios, int ngpios) } } -/************************************************************************************ +/**************************************************************************** * Name: stm32_sdramcommand * * Description: * Initialize data line GPIOs for external memory access * - ************************************************************************************/ + ****************************************************************************/ static void stm32_sdramcommand(uint32_t command) { @@ -161,13 +161,13 @@ static void stm32_sdramcommand(uint32_t command) } } -/************************************************************************************ +/**************************************************************************** * Name: stm32_enablefmc * * Description: * enable clocking to the FMC module * - ************************************************************************************/ + ****************************************************************************/ void stm32_enablefmc(void) { @@ -229,13 +229,13 @@ void stm32_enablefmc(void) putreg32(1668 << 1, STM32_FMC_SDRTR); } -/************************************************************************************ +/**************************************************************************** * Name: stm32_disablefmc * * Description: * enable clocking to the FMC module * - ************************************************************************************/ + ****************************************************************************/ void stm32_disablefmc(void) { diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_lcd.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_lcd.c index 5595dc2394..68d29f3eba 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_lcd.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_lcd.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f746g-disco/src/stm32_lcd.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_lcd.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_ostest.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_ostest.c index 6db4fc207b..df2de5ef5f 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_ostest.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_ostest.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f746g-disco/src/stm32_ostest.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_ostest.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include "up_internal.h" #include "stm32f746g-disco.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #undef HAVE_FPU @@ -68,19 +68,19 @@ # error "CONFIG_TESTING_OSTEST_FPUSIZE has the wrong size" #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static uint32_t g_saveregs[XCPTCONTEXT_REGS]; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /* Given an array of size CONFIG_TESTING_OSTEST_FPUSIZE, this function will return * the current FPU registers. */ diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_spi.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_spi.c index e36f395fb1..df272cd58a 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_spi.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f746g-disco/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_spi.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -57,17 +57,17 @@ defined(CONFIG_STM32F7_SPI3) || defined(CONFIG_STM32F7_SPI4) || \ defined(CONFIG_STM32F7_SPI5) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32f746g-disco board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_sporadic.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_sporadic.c index 27053b2b6e..1047554a8f 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_sporadic.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_sporadic.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746g-disco/src/stm32_sporadic.c + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_sporadic.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_touchscreen.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_touchscreen.c index dabec111c6..054a31bcfe 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_touchscreen.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_touchscreen.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f746g-disco/src/stm32_touchscreen.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_touchscreen.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_userleds.c b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_userleds.c index cc2a58037d..961cff29ce 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32_userleds.c +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f746g-disco/src/stm32_userleds.c + * boards/arm/stm32f7/stm32f746g-disco/src/stm32_userleds.c * * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/stm32f746g-disco.h b/boards/arm/stm32f7/stm32f746g-disco/src/stm32f746g-disco.h index fafcaea83a..f254997e3e 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/stm32f746g-disco.h +++ b/boards/arm/stm32f7/stm32f746g-disco/src/stm32f746g-disco.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/stm32f746g-disco/src/stm32f746g-disco.h +/**************************************************************************** + * boards/arm/stm32f7/stm32f746g-disco/src/stm32f746g-disco.h * * Copyright (C) 2015, 2017 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -31,22 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F746G_DISCO_SRC_STM32F746G_DISCO__H -#define __BOARDS_ARM_STM32F746G_DISCO_SRC_STM32F746G_DISCO__H +#ifndef __BOARDS_ARM_STM32F7_STM32F746G_DISCO_SRC_STM32F746G_DISCO__H +#define __BOARDS_ARM_STM32F7_STM32F746G_DISCO_SRC_STM32F746G_DISCO__H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include #include -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ + ****************************************************************************/ + /* procfs File System */ #ifdef CONFIG_FS_PROCFS @@ -57,20 +58,24 @@ # endif #endif -/* STM32F736G Discovery GPIOs ***********************************************************************/ -/* The STM32F746G-DISCO board has numerous LEDs but only one, LD1 located near the reset button, that - * can be controlled by software (LD2 is a power indicator, LD3-6 indicate USB status, LD7 is +/* STM32F736G Discovery GPIOs ***********************************************/ + +/* The STM32F746G-DISCO board has numerous LEDs but only one, + * LD1 located near the reset button, that can be controlled by software + * (LD2 is a power indicator, LD3-6 indicate USB status, LD7 is * controlled by the ST-Link). * - * LD1 is controlled by PI1 which is also the SPI2_SCK at the Arduino interface. One end of LD1 is - * grounded so a high output on PI1 will illuminate the LED. + * LD1 is controlled by PI1 which is also the SPI2_SCK at the Arduino + * interface. + * One end of LD1 is grounded so a high output on PI1 will illuminate the LED. */ #define GPIO_LD1 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | GPIO_OUTPUT_CLEAR | \ GPIO_PORTI | GPIO_PIN1) -/* Pushbutton B1, labelled "User", is connected to GPIO PI11. A high value will be sensed when the - * button is depressed. Note that the EXTI interrupt is configured. +/* Pushbutton B1, labelled "User", is connected to GPIO PI11. + * A high value will be sensed when the button is depressed. + * Note that the EXTI interrupt is configured. */ #define MIN_IRQBUTTON BUTTON_USER @@ -79,9 +84,11 @@ #define GPIO_BTN_USER (GPIO_INPUT | GPIO_FLOAT | GPIO_EXTI | GPIO_PORTI | GPIO_PIN11) -/* Sporadic scheduler instrumentation. This configuration has been used for evaluating the NuttX - * sporadic scheduler. In this evaluation, two GPIO outputs are used. One indicating the priority - * (high or low) of the sporadic thread and one indicating where the thread is running or not. +/* Sporadic scheduler instrumentation. + * This configuration has been used for evaluating the NuttX sporadic scheduler. + * In this evaluation, two GPIO outputs are used. One indicating the priority + * (high or low) of the sporadic thread and one indicating where the thread is + * running or not. * * There is nothing special about the pin selections: * @@ -99,17 +106,17 @@ #define GPIO_LCD_BL (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\ GPIO_OUTPUT_SET|GPIO_PORTK|GPIO_PIN3) -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_bringup * * Description: @@ -121,39 +128,39 @@ * CONFIG_BOARD_LATE_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ****************************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32f746g-disco board. * - ****************************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/**************************************************************************************************** +/**************************************************************************** * Name: arch_sporadic_initialize * * Description: * This configuration has been used for evaluating the NuttX sporadic scheduler. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_SPORADIC_INSTRUMENTATION void arch_sporadic_initialize(void); @@ -207,4 +214,4 @@ int stm32_tsc_setup(int minor); #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32F746G_DISCO_SRC_STM32F746G_DISCO_H */ +#endif /* __BOARDS_ARM_STM32F7_STM32F746G_DISCO_SRC_STM32F746G_DISCO_H */ diff --git a/boards/arm/stm32f7/stm32f769i-disco/README.txt b/boards/arm/stm32f7/stm32f769i-disco/README.txt index 23beed00b4..4cc227443c 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/README.txt +++ b/boards/arm/stm32f7/stm32f769i-disco/README.txt @@ -53,7 +53,7 @@ Development Environment The Development environments for the STM32F769I-DISCO board are identical to the environments for other STM32F boards. For full details on the environment options and setup, see the README.txt file in the - config/stm32f769i-disco directory. + boards/arm/stm32f7/stm32f769i-disco directory. LEDs and Buttons ================ diff --git a/boards/arm/stm32f7/stm32f769i-disco/include/board.h b/boards/arm/stm32f7/stm32f769i-disco/include/board.h index 7df14d1da4..baa44a080a 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/include/board.h +++ b/boards/arm/stm32f7/stm32f769i-disco/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f769i-disco/include/board.h +/**************************************************************************** + * boards/arm/stm32f7/stm32f769i-disco/include/board.h * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F769I_DISCO_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32F769I_DISCO_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32F7_STM32F769I_DISCO_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32F7_STM32F769I_DISCO_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,11 +51,12 @@ # include "stm32_sdmmc.h" #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Clocking *****************************************************************/ -/* Clocking *************************************************************************/ /* The STM32F7 Discovery board provides the following clock sources: * * X2: 25 MHz oscillator for STM32F769NIH6 microcontroller and Ethernet PHY. @@ -264,7 +265,8 @@ #define BOARD_FLASH_WAITSTATES 7 -/* LED definitions ******************************************************************/ +/* LED definitions **********************************************************/ + /* The STM32F769I-DISCO board has numerous LEDs but only one, LD1 located near the * reset button, that can be controlled by software (LD2 is a power indicator, LD3-6 * indicate USB status, LD7 is controlled by the ST-Link). @@ -316,7 +318,8 @@ #define LED_ASSERTION 2 /* LD1=no change */ #define LED_PANIC 3 /* LD1=flashing */ -/* Button definitions ***************************************************************/ +/* Button definitions *******************************************************/ + /* The STM32F7 Discovery supports one button: Pushbutton B1, labelled "User", is * connected to GPIO PA0. A high value will be sensed when the button is depressed. */ @@ -325,7 +328,7 @@ #define NUM_BUTTONS 1 #define BUTTON_USER_BIT (1 << BUTTON_USER) -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ /* USART6: * @@ -481,4 +484,4 @@ #define BOARD_LTDC_GCR_VSPOL 0 #define BOARD_LTDC_GCR_HSPOL 0 -#endif /* __BOARDS_ARM_STM32F769I_DISCO_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32F7_STM32F769I_DISCO_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32f7/stm32f769i-disco/kernel/Makefile b/boards/arm/stm32f7/stm32f769i-disco/kernel/Makefile index ae9b6192f3..b49ba78139 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/kernel/Makefile +++ b/boards/arm/stm32f7/stm32f769i-disco/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f769i-disco/kernel/Makefile +# boards/arm/stm32f7/stm32f769i-disco/kernel/Makefile # # Copyright (C) 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/kernel/stm32_userspace.c b/boards/arm/stm32f7/stm32f769i-disco/kernel/stm32_userspace.c index 84e50e753e..bc33ab4af3 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/kernel/stm32_userspace.c +++ b/boards/arm/stm32f7/stm32f769i-disco/kernel/stm32_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f769i-disco/kernel/stm32_userspace.c + * boards/arm/stm32f7/stm32f769i-disco/kernel/stm32_userspace.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -51,6 +51,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* Configuration ************************************************************/ #ifndef CONFIG_NUTTX_USERSPACE diff --git a/boards/arm/stm32f7/stm32f769i-disco/scripts/Make.defs b/boards/arm/stm32f7/stm32f769i-disco/scripts/Make.defs index 9c8bed3a8f..07c37ac747 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/Make.defs +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f769i-disco/scripts/Make.defs +# boards/arm/stm32f7/stm32f769i-disco/scripts/Make.defs # # Copyright (C) 2015, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld b/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld index 9e6a25d1f0..251abf44d6 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f769i-disco/scripts/flash.ld + * boards/arm/stm32f7/stm32f769i-disco/scripts/flash.ld * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld b/boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld index e68d62b75c..f01116255a 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f769i-disco/scripts/kernel-space.ld + * boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/scripts/memory.ld b/boards/arm/stm32f7/stm32f769i-disco/scripts/memory.ld index 383066fc9a..aa79e5e4e6 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/memory.ld +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f769i-disco/scripts/memory.ld + * boards/arm/stm32f7/stm32f769i-disco/scripts/memory.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -67,7 +67,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of * FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/stm32f769i-disco/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32f7/stm32f769i-disco/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld b/boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld index 2160c23854..98a18421cf 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld +++ b/boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f769i-disco/scripts/user-space.ld + * boards/arm/stm32f7/stm32f769i-disco/scripts/user-space.ld * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/Makefile b/boards/arm/stm32f7/stm32f769i-disco/src/Makefile index ded75cde1f..80db1811b4 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/Makefile +++ b/boards/arm/stm32f7/stm32f769i-disco/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32f769i-disco/src/Makefile +# boards/arm/stm32f7/stm32f769i-disco/src/Makefile # # Copyright (C) 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_appinitialize.c b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_appinitialize.c index 4376cbf293..e9357623f9 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_appinitialize.c +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f769i-disco/src/stm32_appinitialize.c + * boards/arm/stm32f7/stm32f769i-disco/src/stm32_appinitialize.c * * Copyright (C) 2015-2016, 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_autoleds.c b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_autoleds.c index 33e184dc4f..21950ccd45 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_autoleds.c +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f769i-disco/src/stm32_autoleds.c + * boards/arm/stm32f7/stm32f769i-disco/src/stm32_autoleds.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_boot.c b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_boot.c index fdb41d4e24..8b027d6d08 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_boot.c +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f769i-disco/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f769i-disco/src/stm32_boot.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,19 +47,19 @@ #include "up_arch.h" #include "stm32f769i-disco.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -67,7 +67,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { @@ -99,7 +99,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -110,7 +110,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_bringup.c b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_bringup.c index cf7c9a5a33..b5d6964081 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_bringup.c +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/stm32f769i-disco/src/stm32_bringup.c + * boards/arm/stm32f7/stm32f769i-disco/src/stm32_bringup.c * * Copyright (C) 2012, 2014-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_buttons.c b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_buttons.c index b6edd33e88..e7f393e5e5 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_buttons.c +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f769i-disco/src/stm32_buttons.c + * boards/arm/stm32f7/stm32f769i-disco/src/stm32_buttons.c * * Copyright (C) 2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -78,7 +78,7 @@ uint32_t board_buttons(void) return stm32_gpioread(GPIO_BTN_USER) ? 1 : 0; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -98,7 +98,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_ostest.c b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_ostest.c index a079bfab55..961d563c83 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_ostest.c +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_ostest.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f769i-disco/src/stm32_ostest.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f769i-disco/src/stm32_ostest.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include "up_internal.h" #include "stm32f769i-disco.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #undef HAVE_FPU @@ -68,19 +68,19 @@ # error "CONFIG_TESTING_OSTEST_FPUSIZE has the wrong size" #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static uint32_t g_saveregs[XCPTCONTEXT_REGS]; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /* Given an array of size CONFIG_TESTING_OSTEST_FPUSIZE, this function will return * the current FPU registers. diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_pwm.c b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_pwm.c index 2b261ae83f..f94097abbb 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_pwm.c +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f769i-disco/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f769i-disco/src/stm32_pwm.c * * Copyright (C) 2011, 2016, 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,9 +51,9 @@ #include "stm32_pwm.h" #include "stm32f769i-disco.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define HAVE_PWM 1 @@ -61,17 +61,17 @@ # undef HAVE_PWM #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32_pwm_setup(void) { diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_spi.c b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_spi.c index 72e1800e64..3885799aea 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_spi.c +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f769i-disco/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32f7/stm32f769i-disco/src/stm32_spi.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -57,17 +57,17 @@ defined(CONFIG_STM32F7_SPI3) || defined(CONFIG_STM32F7_SPI4) || \ defined(CONFIG_STM32F7_SPI5) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32f769i-disco board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_sporadic.c b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_sporadic.c index 7802c46427..f94cf40a49 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_sporadic.c +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_sporadic.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f769i-disco/src/stm32_sporadic.c + * boards/arm/stm32f7/stm32f769i-disco/src/stm32_sporadic.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_userleds.c b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_userleds.c index 6f52be935e..92fc9770ab 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32_userleds.c +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f769i-disco/src/stm32_userleds.c + * boards/arm/stm32f7/stm32f769i-disco/src/stm32_userleds.c * * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32f7/stm32f769i-disco/src/stm32f769i-disco.h b/boards/arm/stm32f7/stm32f769i-disco/src/stm32f769i-disco.h index 16f512dab9..24dbbad274 100644 --- a/boards/arm/stm32f7/stm32f769i-disco/src/stm32f769i-disco.h +++ b/boards/arm/stm32f7/stm32f769i-disco/src/stm32f769i-disco.h @@ -1,5 +1,5 @@ -/**************************************************************************************************** - * boards/stm32f769i-disco/src/stm32f769i-disco.h +/**************************************************************************** + * boards/arm/stm32f7/stm32f769i-disco/src/stm32f769i-disco.h * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -31,22 +31,22 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ****************************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32F769I_DISCO_SRC_STM32F769I_DISCO__H -#define __BOARDS_ARM_STM32F769I_DISCO_SRC_STM32F769I_DISCO__H +#ifndef __BOARDS_ARM_STM32F7_STM32F769I_DISCO_SRC_STM32F769I_DISCO__H +#define __BOARDS_ARM_STM32F7_STM32F769I_DISCO_SRC_STM32F769I_DISCO__H -/**************************************************************************************************** +/**************************************************************************** * Included Files - ****************************************************************************************************/ + ****************************************************************************/ #include #include #include -/**************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ****************************************************************************************************/ + ****************************************************************************/ /* procfs File System */ #ifdef CONFIG_FS_PROCFS @@ -57,7 +57,8 @@ # endif #endif -/* STM32F769 Discovery GPIOs ***********************************************************************/ +/* STM32F769 Discovery GPIOs ************************************************/ + /* The STM32F769I-DISCO has one user controllable LED: LD3. * * LD3 is controlled by PA12 which is also the SPI2_SCK at the Arduino interface. @@ -96,17 +97,17 @@ #define STM32F769I_DISCO_PWMTIMER 1 #define STM32F769I_DISCO_PWMCHANNEL 4 -/**************************************************************************************************** +/**************************************************************************** * Public data - ****************************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/**************************************************************************************************** +/**************************************************************************** * Public Functions - ****************************************************************************************************/ + ****************************************************************************/ -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_bringup * * Description: @@ -118,44 +119,43 @@ * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ****************************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32_pwm_setup(void); #endif -/**************************************************************************************************** +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the stm32f769i-disco board. * - ****************************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void); -/**************************************************************************************************** +/**************************************************************************** * Name: arch_sporadic_initialize * * Description: * This configuration has been used for evaluating the NuttX sporadic scheduler. * - ****************************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_SPORADIC_INSTRUMENTATION void arch_sporadic_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32F769I_DISCO_SRC_STM32F769I_DISCO_H */ - +#endif /* __BOARDS_ARM_STM32F7_STM32F769I_DISCO_SRC_STM32F769I_DISCO_H */ diff --git a/boards/arm/stm32h7/nucleo-h743zi/include/board.h b/boards/arm/stm32h7/nucleo-h743zi/include/board.h index 62ecc0f128..f05d67ff73 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/include/board.h +++ b/boards/arm/stm32h7/nucleo-h743zi/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-h743zi/include/board.h +/**************************************************************************** + * boards/arm/stm32h7/nucleo-h743zi/include/board.h * * Copyright (C) 2018, 2019 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -33,14 +33,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_H743ZI_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_H743ZI_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32H7_NUCLEO_H743ZI_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32H7_NUCLEO_H743ZI_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,12 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Clocking *****************************************************************/ -/* Clocking *************************************************************************/ /* The Nucleo-144 board provides the following clock sources: * * MCO: 8 MHz from MCO output of ST-LINK is used as input clock (default) @@ -278,7 +279,7 @@ #define BOARD_FLASH_WAITSTATES 4 -/* SDMMC definitions ****************************************************************/ +/* SDMMC definitions ********************************************************/ /* Init 400kHz, PLL1Q/(2*250) */ @@ -291,13 +292,14 @@ #define STM32_SDMMC_CLKCR_EDGE STM32_SDMMC_CLKCR_NEGEDGE -/* Ethernet definitions ****************************************************************/ +/* Ethernet definitions *****************************************************/ #define GPIO_ETH_RMII_TXD0 GPIO_ETH_RMII_TXD0_2 /* PG13 */ #define GPIO_ETH_RMII_TXD1 GPIO_ETH_RMII_TXD1_1 /* PB 13 */ #define GPIO_ETH_RMII_TX_EN GPIO_ETH_RMII_TX_EN_2 -/* LED definitions ******************************************************************/ +/* LED definitions **********************************************************/ + /* The Nucleo-144 board has numerous LEDs but only three, LD1 a Green LED, LD2 a Blue * LED and LD3 a Red LED, that can be controlled by software. The following * definitions assume the default Solder Bridges are installed. @@ -348,16 +350,19 @@ * has halted. */ -/* Button definitions ***************************************************************/ +/* Button definitions *******************************************************/ + /* The NUCLEO board supports one button: Pushbutton B1, labeled "User", is - * connected to GPIO PI11. A high value will be sensed when the button is depressed. + * connected to GPIO PI11. + * A high value will be sensed when the button is depressed. */ #define BUTTON_USER 0 #define NUM_BUTTONS 1 #define BUTTON_USER_BIT (1 << BUTTON_USER) -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ + /* USART3 (Nucleo Virtual Console) */ #define GPIO_USART3_RX GPIO_USART3_RX_3 /* PD9 */ @@ -396,14 +401,14 @@ #define GPIO_TIM1_CH3NOUT GPIO_TIM1_CH3NOUT_3 /* PE12 - D39 */ #define GPIO_TIM1_CH4OUT GPIO_TIM1_CH4OUT_2 /* PE14 - D38 */ -/* DMA ******************************************************************************/ +/* DMA **********************************************************************/ #define DMAMAP_SPI3_RX DMAMAP_DMA12_SPI3RX_0 /* DMA1 */ #define DMAMAP_SPI3_TX DMAMAP_DMA12_SPI3TX_0 /* DMA1 */ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -416,9 +421,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -426,4 +431,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_H743ZI_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32H7_NUCLEO_H743ZI_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32h7/nucleo-h743zi/kernel/Makefile b/boards/arm/stm32h7/nucleo-h743zi/kernel/Makefile index ce623ea696..2ed4b0d284 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/kernel/Makefile +++ b/boards/arm/stm32h7/nucleo-h743zi/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-h743zi/kernel/Makefile +# boards/arm/stm32h7/nucleo-h743zi/kernel/Makefile # # Copyright (C) 2019 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/kernel/stm32_userspace.c b/boards/arm/stm32h7/nucleo-h743zi/kernel/stm32_userspace.c index a12f2ac0da..216773ff65 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/kernel/stm32_userspace.c +++ b/boards/arm/stm32h7/nucleo-h743zi/kernel/stm32_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-h743zi/kernel/stm32_userspace.c + * boards/arm/stm32h7/nucleo-h743zi/kernel/stm32_userspace.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -51,6 +51,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* Configuration ************************************************************/ #ifndef CONFIG_NUTTX_USERSPACE diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/Make.defs b/boards/arm/stm32h7/nucleo-h743zi/scripts/Make.defs index d2fac51d25..12411074c5 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/Make.defs +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-h743zi/scripts/Make.defs +# boards/arm/stm32h7/nucleo-h743zi/scripts/Make.defs # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld index fd2b785179..0760ba9b2f 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-h743zi/scripts/flash.ld + * boards/arm/stm32h7/nucleo-h743zi/scripts/flash.ld * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld index e6e7ad9118..a80758ebe1 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/kernel.space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-h743zi/scripts/kernel-space.ld + * boards/arm/stm32h7/nucleo-h743zi/scripts/kernel-space.ld * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/memory.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/memory.ld index 52a8a4d129..cbd26422d1 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/memory.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-h743zi/scripts/memory.ld + * boards/arm/stm32h7/nucleo-h743zi/scripts/memory.ld * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld b/boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld index e165aa6b45..9f156a0de9 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld +++ b/boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** -* boards/nucleo-h743zi/scripts/user-space.ld +* boards/arm/stm32h7/nucleo-h743zi/scripts/user-space.ld * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/Makefile b/boards/arm/stm32h7/nucleo-h743zi/src/Makefile index 3307318d15..51bbd65400 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/Makefile +++ b/boards/arm/stm32h7/nucleo-h743zi/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-h743zi/src/Makefile +# boards/arm/stm32h7/nucleo-h743zi/src/Makefile # # Copyright (C) 2018 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h b/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h index 493cfd18b6..987dea9cbc 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h +++ b/boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-h743zi/src/nucleo-h743zi.h +/**************************************************************************** + * boards/arm/stm32h7/nucleo-h743zi/src/nucleo-h743zi.h * # Copyright (C) 2017, 2019 Gwenhael Goavec-Merou. All rights reserved. # Authors: Gwenhael Goavec-Merou @@ -32,23 +32,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_H743ZI_SRC_NUCLEO_H743ZI_H -#define __BOARDS_ARM_NUCLEO_H743ZI_SRC_NUCLEO_H743ZI_H +#ifndef __BOARDS_ARM_STM32H7_NUCLEO_H743ZI_SRC_NUCLEO_H743ZI_H +#define __BOARDS_ARM_STM32H7_NUCLEO_H743ZI_SRC_NUCLEO_H743ZI_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* procfs File System */ @@ -61,7 +61,7 @@ #endif #define HAVE_RTC_DRIVER 1 -/* Configuration ********************************************************************/ +/* Configuration ************************************************************/ /* LED * @@ -149,11 +149,11 @@ #define OLED_I2C_PORT 2 -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_bringup * * Description: @@ -165,42 +165,42 @@ * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y : * Called from the NSH library * - ************************************************************************************/ + ****************************************************************************/ int stm32_bringup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-H743ZI board. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32H7_SPI void stm32_spidev_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32H7_OTGFS void stm32_usbinitialize(void); @@ -263,4 +263,4 @@ int stm32_lsm9ds1_initialize(char *devpath); int stm32_pca9635_initialize(void); #endif -#endif /* __BOARDS_ARM_NUCLEO_H743ZI_SRC_NUCLEO_H743ZI_H */ +#endif /* __BOARDS_ARM_STM32H7_NUCLEO_H743ZI_SRC_NUCLEO_H743ZI_H */ diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_adc.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_adc.c index 43ec9afb7a..313e40c438 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_adc.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-h743zi/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_adc.c * * Copyright (C) 2016, 2019 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,11 +54,12 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ -/* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ #if defined(CONFIG_STM32H7_ADC1) || defined(CONFIG_STM32H7_ADC2) || defined(CONFIG_STM32H7_ADC3) @@ -71,9 +72,9 @@ #define ADC1_NCHANNELS 5 #define ADC3_NCHANNELS 1 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32H7_ADC1 /* Identifying number of each ADC channel: Variable Resistor. @@ -113,21 +114,21 @@ static const uint8_t g_adc3_chanlist[ADC1_NCHANNELS] = {6}; static const uint32_t g_adc3_pinlist[ADC3_NCHANNELS] = {GPIO_ADC3_INP6}; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_appinitialize.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_appinitialize.c index 2612700a9c..9ab8ae651d 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_appinitialize.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-h743zi/src/stm32_appinitialize.c + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_appinitialize.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_autoleds.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_autoleds.c index f6007ea72f..a9299bbe68 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_autoleds.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-h743zi/src/stm32_autoleds.c + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_autoleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_boot.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_boot.c index 18ee8d3f42..cae22ca868 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_boot.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-h743zi/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_boot.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,11 @@ #include "stm32_start.h" #include "nucleo-h743zi.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_boardinitialize * * Description: @@ -60,7 +60,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32_boardinitialize(void) { @@ -83,7 +83,7 @@ void stm32_boardinitialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -94,7 +94,7 @@ void stm32_boardinitialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c index a30bb064aa..43dc215f1f 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-h743zi/src/stm32_bringup.c + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_buttons.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_buttons.c index 6d7e4e2c48..ef482f8c57 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_buttons.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-h743zi/src/stm32_buttons.c + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_buttons.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm303agr.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm303agr.c index beb147665a..24259e8f1c 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm303agr.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm303agr.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/nucleo-h743zi/src/stm32_lsm303agr.c + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm303agr.c * * Copyright (C) 2018 Greg Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm6dsl.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm6dsl.c index dc3fb24e54..a9306b4ad4 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm6dsl.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm6dsl.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/nucleo-h743zi/src/stm32_lsm6dsl.c + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm6dsl.c * * Copyright (C) 2018 Greg Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm9ds1.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm9ds1.c index 694fa76e04..c20eb1aed0 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm9ds1.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm9ds1.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/nucleo-h743zi/src/stm32_lsm9ds1.c + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_lsm9ds1.c * * Copyright (C) 2019 Greg Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_nrf24l01.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_nrf24l01.c index b2a80a5d18..31b271e31d 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_nrf24l01.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_nrf24l01.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-h743zi/src/stm32_nrf24l01.c +/**************************************************************************** + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_nrf24l01.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,22 +53,22 @@ #include "stm32.h" #include "nucleo-h743zi.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define NRF24L01_SPI 3 -/************************************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************************************/ + ****************************************************************************/ static int nrf24l01_irq_attach(xcpt_t isr, FAR void *arg); static void nrf24l01_chip_enable(bool enable); -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static struct nrf24l01_config_s nrf_cfg = { @@ -79,9 +79,9 @@ static struct nrf24l01_config_s nrf_cfg = static xcpt_t g_isr; static FAR void *g_arg; -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ static int nrf24l01_irq_attach(xcpt_t isr, FAR void *arg) { @@ -98,9 +98,9 @@ static void nrf24l01_chip_enable(bool enable) stm32_gpiowrite(GPIO_NRF24L01_CE, enable); } -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ int stm32_wlinitialize(void) { diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_pca9635.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_pca9635.c index 92a6ef5ca9..01cb2039ce 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_pca9635.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_pca9635.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-h743zi/src/stm32_pca9635.c +/**************************************************************************** + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_pca9635.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -31,7 +31,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Included Files diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_spi.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_spi.c index a99ed9ce4f..751fccf1b6 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_spi.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-h743zi/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_spi.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -56,17 +56,17 @@ #ifdef CONFIG_STM32H7_SPI -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_ssd1306.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_ssd1306.c index cd52bc3c04..3041570de4 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_ssd1306.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_ssd1306.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-h743zi/src/stm32_ssd1306.c + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_ssd1306.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_usb.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_usb.c index ee536ab600..502d113a3a 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_usb.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-h743zi/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_usb.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Mateusz Szafoni @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -60,9 +60,9 @@ #ifdef CONFIG_STM32H7_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -79,25 +79,25 @@ # define CONFIG_NUCLEOH743ZI_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -128,18 +128,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -286,7 +286,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -301,7 +301,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -310,7 +310,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -319,7 +319,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_userleds.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_userleds.c index 923e26733c..cb49d792a2 100644 --- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_userleds.c +++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-h743zi/src/stm32_userleds.c + * boards/arm/stm32h7/nucleo-h743zi/src/stm32_userleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32l4/b-l475e-iot01a/include/b-l475e-iot01a_clock.h b/boards/arm/stm32l4/b-l475e-iot01a/include/b-l475e-iot01a_clock.h index ec09a6a2e8..b35fa5c601 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/include/b-l475e-iot01a_clock.h +++ b/boards/arm/stm32l4/b-l475e-iot01a/include/b-l475e-iot01a_clock.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/b-l475e-iot01a/include/b-l475e-iot01a_clock.h +/**************************************************************************** + * boards/arm/stm32l4/b-l475e-iot01a/include/b-l475e-iot01a_clock.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * @@ -30,23 +30,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_B_L475E_IOT01A_INCLUDE_B_L475E_IOT01A_CLOCK_H -#define __BOARDS_ARM_B_L475E_IOT01A_INCLUDE_B_L475E_IOT01A_CLOCK_H +#ifndef __BOARDS_ARM_STM32L4_B_L475E_IOT01A_INCLUDE_B_L475E_IOT01A_CLOCK_H +#define __BOARDS_ARM_STM32L4_B_L475E_IOT01A_INCLUDE_B_L475E_IOT01A_CLOCK_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -277,6 +277,7 @@ /* Timers driven from APB1 will be twice PCLK1, when * NOT define STM32L4_RCC_CFGR_PPRE1 as RCC_CFGR_PPRE1_HCLK. */ + /* REVISIT : this can be configured */ #define STM32L4_APB1_TIM2_CLKIN STM32L4_PCLK1_FREQUENCY @@ -294,6 +295,7 @@ #define STM32L4_PCLK2_FREQUENCY (STM32L4_HCLK_FREQUENCY / 1) /* Timers driven from APB2 will be twice PCLK2 */ + /* REVISIT : this can be configured */ #define STM32L4_APB2_TIM1_CLKIN STM32L4_PCLK2_FREQUENCY @@ -306,6 +308,7 @@ * otherwise frequency is 2xAPBx. * Note: TIM1,8 are on APB2, others on APB1 */ + /* REVISIT : this can be configured */ /* TODO SDMMC */ @@ -490,9 +493,9 @@ #define BOARD_LPTIM1_FREQUENCY STM32L4_APB1_LPTIM1_CLKIN #define BOARD_LPTIM2_FREQUENCY STM32L4_APB1_LPTIM2_CLKIN -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -505,9 +508,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -515,4 +518,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_B_L475E_IOT01A_INCLUDE_B_L475E_IOT01A_CLOCK */ +#endif /* __BOARDS_ARMSTM32L4__B_L475E_IOT01A_INCLUDE_B_L475E_IOT01A_CLOCK */ diff --git a/boards/arm/stm32l4/b-l475e-iot01a/include/board.h b/boards/arm/stm32l4/b-l475e-iot01a/include/board.h index 83c5f11ddf..51864d5a96 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/include/board.h +++ b/boards/arm/stm32l4/b-l475e-iot01a/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/b-l475e-iot01a/include/board.h +/**************************************************************************** + * boards/arm/stm32l4/b-l475e-iot01a/include/board.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_B_L475E_IOT01A_INCLUDE_BOARD_H -#define __BOARDS_ARM_B_L475E_IOT01A_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32L4_B_L475E_IOT01A_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32L4_B_L475E_IOT01A_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -46,15 +46,16 @@ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ #include -/* LED definitions ******************************************************************/ +/* LED definitions **********************************************************/ + /* LEDs * * Two user LEDs are available on pins PA5 and PB14. @@ -95,13 +96,14 @@ * 2Hz, then a fatal error has been detected and the system has halted. */ -/* SPSGRF-915 Spirit1 library definitions ***********************************(*******/ +/* SPSGRF-915 Spirit1 library definitions ***********************************/ /* The TX_WAIT_PCKT_PERIOD should equal the max packet tx time. */ #define SPIRIT_TX_WAIT_PCKT_PERIOD 50 -/* The RX_WAIT_ACK_PERIOD is the period within which the ACK packet must be received. +/* The RX_WAIT_ACK_PERIOD is the period within which the ACK packet must be + * received. * ca PACKET_LENGTH / DATA_RATE + ELABORATION_TIME + SPI_OPERATIONS_USED. */ @@ -131,7 +133,7 @@ #define SPIRIT_VERSION SPIRIT_VERSION_3_0 -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ /* USART1: Connected to STLink Debug via PB6, PB7 */ @@ -173,9 +175,9 @@ #define GPIO_QSPI_IO3 (GPIO_QSPI_BK1_IO3_2 | GPIO_FLOAT | GPIO_PUSHPULL | GPIO_SPEED_100MHz) #define GPIO_QSPI_SCK (GPIO_QSPI_CLK_2 | GPIO_FLOAT | GPIO_PUSHPULL | GPIO_SPEED_100MHz) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -188,9 +190,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -198,4 +200,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_B_L475E_IOT01A_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32L4_B_L475E_IOT01A_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32l4/b-l475e-iot01a/scripts/Make.defs b/boards/arm/stm32l4/b-l475e-iot01a/scripts/Make.defs index 433f30d36e..77504b3da4 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/scripts/Make.defs +++ b/boards/arm/stm32l4/b-l475e-iot01a/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/b-l475e-iot01a/scripts/Make.defs +# boards/arm/stm32l4/b-l475e-iot01a/scripts/Make.defs # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # diff --git a/boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld b/boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld index 44bdc44f33..725f06f3c5 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld +++ b/boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l475e-iot01a/scripts/flash.ld + * boards/arm/stm32l4/b-l475e-iot01a/scripts/flash.ld * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * diff --git a/boards/arm/stm32l4/b-l475e-iot01a/src/Makefile b/boards/arm/stm32l4/b-l475e-iot01a/src/Makefile index ecd8929bff..bf04e2ebdd 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/src/Makefile +++ b/boards/arm/stm32l4/b-l475e-iot01a/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/b-l475e-iot01a/src/Makefile +# boards/arm/stm32l4/b-l475e-iot01a/src/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # diff --git a/boards/arm/stm32l4/b-l475e-iot01a/src/b-l475e-iot01a.h b/boards/arm/stm32l4/b-l475e-iot01a/src/b-l475e-iot01a.h index 773ab7f374..aa55ab71a3 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/src/b-l475e-iot01a.h +++ b/boards/arm/stm32l4/b-l475e-iot01a/src/b-l475e-iot01a.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l475e-iot01a/src/b-l475e-iot01a.h + * boards/arm/stm32l4/b-l475e-iot01a/src/b-l475e-iot01a.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_B_L475E_IOT01A_SRC_B_L475E_IOT01A_H -#define __BOARDS_ARM_B_L475E_IOT01A_SRC_B_L475E_IOT01A_H +#ifndef __BOARDS_ARM_STM32L4_B_L475E_IOT01A_SRC_B_L475E_IOT01A_H +#define __BOARDS_ARM_STM32L4_B_L475E_IOT01A_SRC_B_L475E_IOT01A_H /**************************************************************************** * Included Files @@ -93,6 +93,7 @@ #endif /* GPIO Definitions *********************************************************/ + /* LEDs */ #define GPIO_LED1 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz |\ @@ -206,4 +207,4 @@ int stm32l4_spirit_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_B_L475E_IOT01A_SRC_B_L475E_IOT01A_H */ +#endif /* __BOARDS_ARM_STM32L4_B_L475E_IOT01A_SRC_B_L475E_IOT01A_H */ diff --git a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_appinit.c b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_appinit.c index 012ae4ceae..b630cbc625 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_appinit.c +++ b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/b-l475e-iot01a/src/stm32_appinit.c + * boards/arm/stm32l4/b-l475e-iot01a/src/stm32_appinit.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_autoleds.c b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_autoleds.c index b02c68b35f..9db6bb88df 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_autoleds.c +++ b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l475e-iot01a/src/stm32_autoleds.c + * boards/arm/stm32l4/b-l475e-iot01a/src/stm32_autoleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_boot.c b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_boot.c index cadb72a82c..4a7992656a 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_boot.c +++ b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/b-l475e-iot01a/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32l4/b-l475e-iot01a/src/stm32_boot.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -46,11 +46,11 @@ #include "stm32l4_start.h" #include "b-l475e-iot01a.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: @@ -58,7 +58,7 @@ * point is called early in the initialization -- after all memory has been * configured and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void) { diff --git a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_bringup.c b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_bringup.c index 221c919556..f36942d19a 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_bringup.c +++ b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/b-l475e-iot01a/src/stm32_bringup.c + * boards/arm/stm32l4/b-l475e-iot01a/src/stm32_bringup.c * * Copyright (C) 2017-2019 Gregory Nutt. All rights reserved. * Author: Simon Piriou diff --git a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_spi.c b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_spi.c index 823bf3ccc6..a377d9489d 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_spi.c +++ b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-f475e-iot01a/src/stm32_spi.c + * boards/arm/stm32l4/b-f475e-iot01a/src/stm32_spi.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,9 +33,9 @@ * ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -52,9 +52,9 @@ #include "b-l475e-iot01a.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Currently no devices are defined on SPI1 or SPI2 */ @@ -69,9 +69,9 @@ #if defined(CONFIG_STM32L4_SPI1) || defined(CONFIG_STM32L4_SPI2) || defined(CONFIG_STM32L4_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ @@ -87,18 +87,18 @@ struct spi_dev_s *g_spi2; struct spi_dev_s *g_spi3; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-F401RE and * Nucleo-F411RE boards. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32l4_spidev_initialize(void) { diff --git a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_spirit.c b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_spirit.c index b380e8e2cc..b74a5cff9e 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_spirit.c +++ b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_spirit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l475e-iot01a/src/stm32_spirit.c + * boards/arm/stm32l4/b-l475e-iot01a/src/stm32_spirit.c * * Copyright (C) 2017 Gregory Nutt, All rights reserver * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_timer.c b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_timer.c index 9c261b6f62..d5d9202b32 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_timer.c +++ b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_timer.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/b-l475e-iot01a/src/stm32_timer.c + * boards/arm/stm32l4/b-l475e-iot01a/src/stm32_timer.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Goden Freemans diff --git a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_userleds.c b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_userleds.c index db887d30ec..a1e34f9a37 100644 --- a/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_userleds.c +++ b/boards/arm/stm32l4/b-l475e-iot01a/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/b-l475e-iot01a/src/stm32_userleds.c + * boards/arm/stm32l4/b-l475e-iot01a/src/stm32_userleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Simon Piriou diff --git a/boards/arm/stm32l4/nucleo-l432kc/include/board.h b/boards/arm/stm32l4/nucleo-l432kc/include/board.h index dd30752819..5ffac629c3 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/include/board.h +++ b/boards/arm/stm32l4/nucleo-l432kc/include/board.h @@ -1,5 +1,5 @@ /******************************************************************************* - * boards/nucleo-l432kc/include/board.h + * boards/arm/stm32l4/nucleo-l432kc/include/board.h * * Copyright (C) 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,8 +33,8 @@ * ******************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L432KC_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_L432KC_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L432KC_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L432KC_INCLUDE_BOARD_H /******************************************************************************* * Included File @@ -267,4 +267,4 @@ void stm32l4_board_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_L432KC_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_L432KC_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32l4/nucleo-l432kc/include/nucleo-l432kc.h b/boards/arm/stm32l4/nucleo-l432kc/include/nucleo-l432kc.h index d118a245ad..c1036d25fa 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/include/nucleo-l432kc.h +++ b/boards/arm/stm32l4/nucleo-l432kc/include/nucleo-l432kc.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l432kc/include/nucleo-l432kc.h +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l432kc/include/nucleo-l432kc.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,23 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L432KC_INCLUDE_NUCLEO_L432KC_H -#define __BOARDS_ARM_NUCLEO_L432KC_INCLUDE_NUCLEO_L432KC_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L432KC_INCLUDE_NUCLEO_L432KC_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L432KC_INCLUDE_NUCLEO_L432KC_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if 1 # define HSI_CLOCK_CONFIG /* HSI-16 clock configuration */ @@ -59,7 +59,7 @@ # define MSI_CLOCK_CONFIG /* MSI @ 4 MHz autotrimmed via LSE */ #endif -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ #if defined(HSI_CLOCK_CONFIG) /* The NUCLEOL432KC supports both HSE and LSE crystals (X2 and X3). However, as @@ -497,9 +497,9 @@ #define BOARD_LPTIM1_FREQUENCY STM32L4_HCLK_FREQUENCY #define BOARD_LPTIM2_FREQUENCY STM32L4_HCLK_FREQUENCY -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -512,9 +512,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -522,4 +522,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_L432KC_INCLUDE_NUCLEO_L432KC_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_L432KC_INCLUDE_NUCLEO_L432KC_H */ diff --git a/boards/arm/stm32l4/nucleo-l432kc/scripts/Make.defs b/boards/arm/stm32l4/nucleo-l432kc/scripts/Make.defs index 26b56ee524..a70a4948cd 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/scripts/Make.defs +++ b/boards/arm/stm32l4/nucleo-l432kc/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l432kc/scripts/Make.defs +# boards/arm/stm32l4/nucleo-l432kc/scripts/Make.defs # # Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld b/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld index f93412d8ba..fc723c4054 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld +++ b/boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l432kc/scripts/l432kc.ld + * boards/arm/stm32l4/nucleo-l432kc/scripts/l432kc.ld * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/Makefile b/boards/arm/stm32l4/nucleo-l432kc/src/Makefile index 849374e198..9c0c71b4d1 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/Makefile +++ b/boards/arm/stm32l4/nucleo-l432kc/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l432kc/src/Makefile +# boards/arm/stm32l4/nucleo-l432kc/src/Makefile # # Copyright (C) 2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/nucleo-l432kc.h b/boards/arm/stm32l4/nucleo-l432kc/src/nucleo-l432kc.h index a420b4d411..0a80417295 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/nucleo-l432kc.h +++ b/boards/arm/stm32l4/nucleo-l432kc/src/nucleo-l432kc.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l432kc/src/nucleo-l432kc.h +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l432kc/src/nucleo-l432kc.h * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Authors: Frank Bennett @@ -33,24 +33,25 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L432KC_SRC_NUCLEO_L432KC_H -#define __BOARDS_ARM_NUCLEO_L432KC_SRC_NUCLEO_L432KC_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L432KC_SRC_NUCLEO_L432KC_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L432KC_SRC_NUCLEO_L432KC_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ -/* Configuration ********************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ #define HAVE_PROC 1 #define HAVE_RTC_DRIVER 1 @@ -114,9 +115,9 @@ #define GPIO_ZEROCROSS (GPIO_INPUT|GPIO_FLOAT|GPIO_PORTA|GPIO_PIN0) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ @@ -127,9 +128,9 @@ extern struct spi_dev_s *g_spi1; extern struct spi_dev_s *g_spi2; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32l4_gpio_initialize @@ -143,69 +144,69 @@ extern struct spi_dev_s *g_spi2; int stm32l4_gpio_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_spiinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_usbinitialize * * Description: * Called to setup USB-related GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_usbinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32l4_pwm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32l4_adc_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_dac7571initialize * * Description: * Initialize and register the DAC7571 driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_DAC7571 int stm32_dac7571initialize(FAR const char *devpath); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_at45dbinitialize * * Description: * Initialize and register the AT45DB driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_MTD_AT45DB int stm32_at45dbinitialize(int minor); @@ -271,4 +272,4 @@ int board_timer_driver_initialize(FAR const char *devpath, int timer); int stm32l4_qencoder_initialize(FAR const char *devpath, int timer); #endif -#endif /* __BOARDS_ARM_NUCLEO_L432KC_SRC_NUCLEO_L432KC_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_L432KC_SRC_NUCLEO_L432KC_H */ diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_adc.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_adc.c index 7870a73781..cdfaad8d17 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_adc.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_adc.c @@ -1,5 +1,5 @@ /******************************************************************************* - * boards/nucleo-l432kc/src/stm32_adc.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_adc.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c index c47201ca9b..9d0321934c 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l432kc/src/stm32l4_appinit.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32l4_appinit.c * * Copyright (C) 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -400,4 +400,3 @@ int board_uniqueid(uint8_t *uniqueid) return OK; } #endif - diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_at45db.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_at45db.c index 8e9197a715..7f9c86d474 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_at45db.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_at45db.c @@ -1,5 +1,5 @@ /******************************************************************************* - * config/nucleo-l432kc/src/stm32_at45.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_at45.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_autoleds.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_autoleds.c index 737a0b6806..40b58f1c0d 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_autoleds.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l432kc/src/stm32l4_autoleds.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32l4_autoleds.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_boot.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_boot.c index 603f8fec36..7c8d6649fb 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_boot.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_boot.c @@ -1,5 +1,5 @@ /******************************************************************************* - * boards/nucleo-l432kc/src/stm32l4_boot.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32l4_boot.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_buttons.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_buttons.c index b9b7403640..a183eefa15 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_buttons.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l432kc/src/stm32_buttons.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_buttons.c * * Copyright (C) 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_dac7571.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_dac7571.c index b6af21282d..edf0118c61 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_dac7571.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_dac7571.c @@ -1,5 +1,5 @@ /******************************************************************************* - * boards/nucleo-l432kc/src/stm32_dac7571.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_dac7571.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_gpio.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_gpio.c index 419fa32e80..bd9b91a23e 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_gpio.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_gpio.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l432kc/src/stm32_gpio.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_gpio.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Copyright (C) 2017 Alan Carvalho de Assis. All rights reserved. diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina219.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina219.c index d5cb9fc10c..9578912f2c 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina219.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina219.c @@ -1,5 +1,5 @@ /******************************************************************************* - * boards/nucleo-l432kc/src/stm32_ina219.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina219.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina226.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina226.c index d944647269..99848e15b5 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina226.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina226.c @@ -1,5 +1,5 @@ /******************************************************************************* - * boards/nucleo-l432kc/src/stm32_ina226.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_ina226.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_pwm.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_pwm.c index 91d10ceebe..8b795014e7 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_pwm.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_pwm.c @@ -1,5 +1,5 @@ /******************************************************************************* - * boards/nucleo-l432kc/src/stm32l4_pwm.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32l4_pwm.c * * Copyright (C) 2011, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -270,4 +270,3 @@ int stm32l4_pwm_setup(void) } #endif /* CONFIG_PWM */ - diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_qencoder.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_qencoder.c index a51c7a6dea..e495f033db 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_qencoder.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_qencoder.c @@ -1,5 +1,5 @@ /******************************************************************************* - * boards/nucleo-l432kc/src/stm32_qencoder.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_qencoder.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_spi.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_spi.c index eaf0ac16b6..e74f176796 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_spi.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l432kc/src/stm32l4_spi.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32l4_spi.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,9 +33,9 @@ * ****************************************************************************/ -/******************************************************************************* +/**************************************************************************** * Included Files - ******************************************************************************/ + ****************************************************************************/ #include @@ -55,9 +55,10 @@ #if defined(CONFIG_STM32L4_SPI1) || defined(CONFIG_STM32L4_SPI2) -/******************************************************************************* +/**************************************************************************** * Public Data - ******************************************************************************/ + ****************************************************************************/ + /* Global driver instances */ #ifdef CONFIG_STM32L4_SPI1 @@ -67,17 +68,17 @@ struct spi_dev_s *g_spi1; struct spi_dev_s *g_spi2; #endif -/******************************************************************************* +/**************************************************************************** * Public Functions - ******************************************************************************/ + ****************************************************************************/ -/******************************************************************************* +/**************************************************************************** * Name: stm32l4_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-L432KC board. * - ******************************************************************************/ + ****************************************************************************/ void stm32l4_spiinitialize(void) { diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_timer.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_timer.c index f7183936d6..38aeabb225 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_timer.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_timer.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-l432kc/src/stm32_timer.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_timer.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_userleds.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_userleds.c index c81222d195..dfb71ee5af 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_userleds.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l432kc/src/stm32_userleds.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_userleds.c * * Copyright (C) 2014-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_zerocross.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_zerocross.c index 4457fb7981..a737278582 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_zerocross.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_zerocross.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l432kc/src/stm32_zerocross.c + * boards/arm/stm32l4/nucleo-l432kc/src/stm32_zerocross.c * * Copyright (C) 2018-2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -191,4 +191,3 @@ int stm32_zerocross_initialize(void) } #endif /* CONFIG_SENSORS_ZEROCROSS */ - diff --git a/boards/arm/stm32l4/nucleo-l452re/include/board.h b/boards/arm/stm32l4/nucleo-l452re/include/board.h index f96ec01070..4970dcf7df 100644 --- a/boards/arm/stm32l4/nucleo-l452re/include/board.h +++ b/boards/arm/stm32l4/nucleo-l452re/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l452re/include/board.h +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l452re/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,33 +31,34 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L452RE_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_L452RE_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L452RE_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L452RE_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ #if defined(CONFIG_ARCH_CHIP_STM32L452RE) # include #endif -/* DMA Channel/Stream Selections ****************************************************/ -/* Stream selections are arbitrary for now but might become important in the future - * is we set aside more DMA channels/streams. +/* DMA Channel/Stream Selections ********************************************/ + +/* Stream selections are arbitrary for now but might become important in + * the future is we set aside more DMA channels/streams. */ /* Values defined in arch/arm/src/stm32l4/hardware/stm32l4x3xx_dma.h */ @@ -75,7 +76,7 @@ #define ADC1_DMA_CHAN DMACHAN_ADC1_1 -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ /* USART1: * RXD: PA10 CN9 pin 3, CN10 pin 33 @@ -248,9 +249,9 @@ #define GPIO_TIM1_CH2OUT GPIO_TIM1_CH2OUT_1 #define GPIO_TIM1_CH2NOUT GPIO_TIM1_CH2N_1 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -263,19 +264,20 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: - * All STM32L4 architectures must provide the following entry point. This entry point - * is called early in the initialization -- after all memory has been configured - * and mapped but before any devices have been initialized. + * All STM32L4 architectures must provide the following entry point. + * This entry point is called early in the initialization -- after all + * memory has been configured and mapped but before any devices + * have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void); @@ -285,4 +287,4 @@ void stm32l4_board_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_L452RE_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_L452RE_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32l4/nucleo-l452re/include/nucleo-l452re.h b/boards/arm/stm32l4/nucleo-l452re/include/nucleo-l452re.h index 82c74b6091..defbc800b4 100644 --- a/boards/arm/stm32l4/nucleo-l452re/include/nucleo-l452re.h +++ b/boards/arm/stm32l4/nucleo-l452re/include/nucleo-l452re.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l452re/include/nucleo-l452re.h +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l452re/include/nucleo-l452re.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,23 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L452RE_INCLUDE_NUCLEO_L452RE_H -#define __BOARDS_ARM_NUCLEO_L452RE_INCLUDE_NUCLEO_L452RE_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L452RE_INCLUDE_NUCLEO_L452RE_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L452RE_INCLUDE_NUCLEO_L452RE_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Clocking *************************************************************************/ @@ -486,9 +486,9 @@ #define BOARD_LPTIM1_FREQUENCY STM32L4_HCLK_FREQUENCY #define BOARD_LPTIM2_FREQUENCY STM32L4_HCLK_FREQUENCY -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -501,9 +501,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -511,4 +511,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_L452RE_INCLUDE_NUCLEO_L452RE_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_L452RE_INCLUDE_NUCLEO_L452RE_H */ diff --git a/boards/arm/stm32l4/nucleo-l452re/scripts/Make.defs b/boards/arm/stm32l4/nucleo-l452re/scripts/Make.defs index e340796371..b1cbe81492 100644 --- a/boards/arm/stm32l4/nucleo-l452re/scripts/Make.defs +++ b/boards/arm/stm32l4/nucleo-l452re/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l452re/scripts/Make.defs +# boards/arm/stm32l4/nucleo-l452re/scripts/Make.defs # # Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld b/boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld index 7c1c74fdd3..b66a357ecd 100644 --- a/boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld +++ b/boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l452re/scripts/l452re-flash.ld + * boards/arm/stm32l4/nucleo-l452re/scripts/l452re-flash.ld * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l452re/src/Makefile b/boards/arm/stm32l4/nucleo-l452re/src/Makefile index 69e2e30b25..0553b14e06 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/Makefile +++ b/boards/arm/stm32l4/nucleo-l452re/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l452re/src/Makefile +# boards/arm/stm32l4/nucleo-l452re/src/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l452re/src/nucleo-l452re.h b/boards/arm/stm32l4/nucleo-l452re/src/nucleo-l452re.h index dc330bf0d9..ce9b7f61a8 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/nucleo-l452re.h +++ b/boards/arm/stm32l4/nucleo-l452re/src/nucleo-l452re.h @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l452re/src/nucleo-l452re.h + * boards/arm/stm32l4/nucleo-l452re/src/nucleo-l452re.h * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -34,8 +34,8 @@ * ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L452RE_SRC_NUCLEO_L452RE_H -#define __BOARDS_ARM_NUCLEO_L452RE_SRC_NUCLEO_L452RE_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L452RE_SRC_NUCLEO_L452RE_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L452RE_SRC_NUCLEO_L452RE_H /**************************************************************************** * Included Files @@ -91,6 +91,7 @@ #endif /* Nucleo-L452RE GPIOs ******************************************************/ + /* LED. User LD2: the green LED is a user LED connected to Arduino signal * D13 corresponding to MCU I/O PA5 (pin 21) or PB13 (pin 34) depending on * the STM32 target. @@ -104,8 +105,9 @@ /* Button definitions *******************************************************/ -/* B1 USER: the user button is connected to the I/O PC13 (pin 2) of the STM32 - * microcontroller. + +/* B1 USER: the user button is connected to the I/O PC13 (pin 2) of the STM32 + * microcontroller. */ #define MIN_IRQBUTTON BUTTON_USER @@ -129,33 +131,33 @@ * Public Functions ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_adc_setup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_measure_voltages * * Description: * Read internal reference voltage, internal VBAT and one external voltage. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_adc_measure_voltages(uint32_t *vrefint, uint32_t *vbat, uint32_t *vext); -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_dac_setup * * Description: * Initialize DAC and register the DAC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_dac_setup(void); @@ -176,4 +178,4 @@ int stm32l4_dac_setup(void); int stm32_bringup(void); #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_L452RE_SRC_NUCLEO_L452RE_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_L452RE_SRC_NUCLEO_L452RE_H */ diff --git a/boards/arm/stm32l4/nucleo-l452re/src/stm32_adc.c b/boards/arm/stm32l4/nucleo-l452re/src/stm32_adc.c index d68c13247f..ddad9350c1 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/stm32_adc.c +++ b/boards/arm/stm32l4/nucleo-l452re/src/stm32_adc.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/nucleo-l452re/src/stm32_adc.c + * boards/arm/stm32l4/nucleo-l452re/src/stm32_adc.c * * Copyright (C) 2017 Haltian Ltd. All rights reserved. * Authors: Juha Niskanen @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -57,11 +57,11 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* STM32 chip specific calibration values *******************************************/ +/* STM32 chip specific calibration values ***********************************/ /* Voltage used for calibration of internal analog reference voltage (Vrefint) */ @@ -110,7 +110,7 @@ # define STM32_TSENSE_TSCAL2 (*(int16_t *)((uint32_t)0x1fff75ca)) #endif -/* Configuration ********************************************************************/ +/* Configuration ************************************************************/ /* These are internal to STM32L4 */ @@ -128,9 +128,9 @@ # warning "Reading multiple channels without DMA might cause overruns!" #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static struct adc_dev_s *g_adc; @@ -152,17 +152,17 @@ static const uint32_t g_pinlist[ADC1_NCHANNELS] = GPIO_MEASURE_ADC, }; -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_measure_voltages * * Description: * Read internal reference voltage, internal VBAT and one external voltage. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_adc_measure_voltages(uint32_t *vrefint, uint32_t *vbat, uint32_t *vext) { @@ -260,7 +260,8 @@ int stm32l4_adc_measure_voltages(uint32_t *vrefint, uint32_t *vbat, uint32_t *ve break; default: - aerr("ERROR: ADC got value from unknown channel %d\n", sample[i].am_channel); + aerr("ERROR: ADC got value from unknown channel %d\n", + sample[i].am_channel); break; } } @@ -273,9 +274,9 @@ out: return ret; } -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_setup - ************************************************************************************/ + ****************************************************************************/ int stm32l4_adc_setup(void) { diff --git a/boards/arm/stm32l4/nucleo-l452re/src/stm32_appinit.c b/boards/arm/stm32l4/nucleo-l452re/src/stm32_appinit.c index 7d7d1a09a1..a74450cacf 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/stm32_appinit.c +++ b/boards/arm/stm32l4/nucleo-l452re/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-l452re/src/stm32_appinit.c + * boards/arm/stm32l4/nucleo-l452re/src/stm32_appinit.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l452re/src/stm32_autoleds.c b/boards/arm/stm32l4/nucleo-l452re/src/stm32_autoleds.c index 4266ec0d63..a0d00b54e6 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/stm32_autoleds.c +++ b/boards/arm/stm32l4/nucleo-l452re/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l452re/src/stm32_autoleds.c + * boards/arm/stm32l4/nucleo-l452re/src/stm32_autoleds.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l452re/src/stm32_boot.c b/boards/arm/stm32l4/nucleo-l452re/src/stm32_boot.c index a94e0567e0..b4b003dd28 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/stm32_boot.c +++ b/boards/arm/stm32l4/nucleo-l452re/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l452re/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l452re/src/stm32_boot.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -49,11 +49,11 @@ #include -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: @@ -61,7 +61,7 @@ * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void) { diff --git a/boards/arm/stm32l4/nucleo-l452re/src/stm32_bringup.c b/boards/arm/stm32l4/nucleo-l452re/src/stm32_bringup.c index dbe3ec9655..f5ab73b333 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/stm32_bringup.c +++ b/boards/arm/stm32l4/nucleo-l452re/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-l452re/src/stm32_bringup.c + * boards/arm/stm32l4/nucleo-l452re/src/stm32_bringup.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l452re/src/stm32_buttons.c b/boards/arm/stm32l4/nucleo-l452re/src/stm32_buttons.c index 503a72f4f3..66bea72931 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/stm32_buttons.c +++ b/boards/arm/stm32l4/nucleo-l452re/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l452re/src/stm32_buttons.c + * boards/arm/stm32l4/nucleo-l452re/src/stm32_buttons.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -91,7 +91,7 @@ uint32_t board_buttons(void) return !released; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -111,7 +111,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32l4/nucleo-l452re/src/stm32_dac.c b/boards/arm/stm32l4/nucleo-l452re/src/stm32_dac.c index 95789ce0cd..72db877d9c 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/stm32_dac.c +++ b/boards/arm/stm32l4/nucleo-l452re/src/stm32_dac.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/nucleo-l452re/src/stm32_dac.c + * boards/arm/stm32l4/nucleo-l452re/src/stm32_dac.c * * Copyright (C) 2017 Haltian Ltd. All rights reserved. * Authors: Juha Niskanen @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -50,19 +50,19 @@ #include -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static struct dac_dev_s *g_dac; -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_dac_setup - ************************************************************************************/ + ****************************************************************************/ int stm32l4_dac_setup(void) { diff --git a/boards/arm/stm32l4/nucleo-l452re/src/stm32_spi.c b/boards/arm/stm32l4/nucleo-l452re/src/stm32_spi.c index cfb45452c7..47e4f077d2 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/stm32_spi.c +++ b/boards/arm/stm32l4/nucleo-l452re/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l452re/src/stm32_spi.c + * boards/arm/stm32l4/nucleo-l452re/src/stm32_spi.c * * Copyright (C) 2014, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,9 +33,9 @@ * ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -56,9 +56,9 @@ #if defined(CONFIG_STM32L4_SPI1) || defined(CONFIG_STM32L4_SPI2) || defined(CONFIG_STM32L4_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ #ifdef CONFIG_STM32L4_SPI1 @@ -68,17 +68,17 @@ struct spi_dev_s *g_spi1; struct spi_dev_s *g_spi2; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32l4_spiinitialize(void) { diff --git a/boards/arm/stm32l4/nucleo-l452re/src/stm32_userleds.c b/boards/arm/stm32l4/nucleo-l452re/src/stm32_userleds.c index 9eb62a5ef7..239a132dfa 100644 --- a/boards/arm/stm32l4/nucleo-l452re/src/stm32_userleds.c +++ b/boards/arm/stm32l4/nucleo-l452re/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l452re/src/stm32_userleds.c + * boards/arm/stm32l4/nucleo-l452re/src/stm32_userleds.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l476rg/include/board.h b/boards/arm/stm32l4/nucleo-l476rg/include/board.h index 9612f0281c..3a3e34fe6c 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/include/board.h +++ b/boards/arm/stm32l4/nucleo-l476rg/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l476rg/include/board.h +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l476rg/include/board.h * * Copyright (C) 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L476RG_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_L476RG_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L476RG_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L476RG_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -47,17 +47,18 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ #if defined(CONFIG_ARCH_CHIP_STM32L476RG) # include #endif -/* DMA Channel/Stream Selections ****************************************************/ +/* DMA Channel/Stream Selections ********************************************/ + /* Stream selections are arbitrary for now but might become important in the future * is we set aside more DMA channels/streams. */ @@ -79,7 +80,7 @@ #define ADC2_DMA_CHAN DMACHAN_ADC2_2 #define ADC3_DMA_CHAN DMACHAN_ADC3_2 -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ /* CAN1: (added 31-03 -- Ben vd Veen (DisruptiveNL) * RXD: PA11 @@ -260,9 +261,9 @@ #define GPIO_TIM1_CH2OUT GPIO_TIM1_CH2OUT_1 #define GPIO_TIM1_CH2NOUT GPIO_TIM1_CH2N_1 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -275,9 +276,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -285,4 +286,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_F476RG_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_F476RG_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32l4/nucleo-l476rg/include/nucleo-l476rg.h b/boards/arm/stm32l4/nucleo-l476rg/include/nucleo-l476rg.h index 4667b4114c..4a703c628d 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/include/nucleo-l476rg.h +++ b/boards/arm/stm32l4/nucleo-l476rg/include/nucleo-l476rg.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l476rg/include/nucleo-l476rg.h +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l476rg/include/nucleo-l476rg.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,23 +31,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L476RG_INCLUDE_NUCLEO_L476RG_H -#define __BOARDS_ARM_NUCLEO_L476RG_INCLUDE_NUCLEO_L476RG_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L476RG_INCLUDE_NUCLEO_L476RG_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L476RG_INCLUDE_NUCLEO_L476RG_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if 1 # define HSI_CLOCK_CONFIG /* HSI-16 clock configuration */ @@ -59,7 +59,7 @@ # define MSI_CLOCK_CONFIG /* MSI @ 4 MHz autotrimmed via LSE */ #endif -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ #if defined(HSI_CLOCK_CONFIG) /* The NUCLEOL476RG supports both HSE and LSE crystals (X2 and X3). However, as @@ -491,9 +491,9 @@ #define BOARD_LPTIM1_FREQUENCY (STM32L4_HCLK_FREQUENCY / 2) #define BOARD_LPTIM2_FREQUENCY (STM32L4_HCLK_FREQUENCY / 2) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -506,9 +506,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -516,4 +516,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_L476RG_INCLUDE_NUCLEO_L476RG_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_L476RG_INCLUDE_NUCLEO_L476RG_H */ diff --git a/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs b/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs index 049d5f6498..a41b7ca761 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs +++ b/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l476rg/scripts/Make.defs +# boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs # # Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld b/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld index d6d84f08e3..83ae5c67c2 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld +++ b/boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l476rg/scripts/l476rg.ld + * boards/arm/stm32l4/nucleo-l476rg/scripts/l476rg.ld * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/Makefile b/boards/arm/stm32l4/nucleo-l476rg/src/Makefile index b01eaaa277..66d2e70ae2 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/Makefile +++ b/boards/arm/stm32l4/nucleo-l476rg/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l476rg/src/Makefile +# boards/arm/stm32l4/nucleo-l476rg/src/Makefile # # Copyright (C) 2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/nucleo-l476rg.h b/boards/arm/stm32l4/nucleo-l476rg/src/nucleo-l476rg.h index f43e08dc50..89a6c1fc90 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/nucleo-l476rg.h +++ b/boards/arm/stm32l4/nucleo-l476rg/src/nucleo-l476rg.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l476rg/src/nucleo-l476rg.h +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l476rg/src/nucleo-l476rg.h * * Copyright (C) 2014, 2016, 2018 Gregory Nutt. All rights reserved. * Authors: Frank Bennett @@ -33,25 +33,25 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L476RG_SRC_NUCLEO_L476RG_H -#define __BOARDS_ARM_NUCLEO_L476RG_SRC_NUCLEO_L476RG_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L476RG_SRC_NUCLEO_L476RG_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L476RG_SRC_NUCLEO_L476RG_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Configuration ********************************************************************/ +/* Configuration ************************************************************/ #define HAVE_PROC 1 #define HAVE_RTC_DRIVER 1 @@ -271,9 +271,9 @@ #define GPIO_LSM6DSL_INT1 (GPIO_INPUT | GPIO_FLOAT | GPIO_PORTB | GPIO_PIN4) #define GPIO_LSM6DSL_INT2 (GPIO_INPUT | GPIO_FLOAT | GPIO_PORTB | GPIO_PIN5) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ @@ -287,27 +287,27 @@ extern struct spi_dev_s *g_spi2; extern struct sdio_dev_s *g_sdio; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_spiinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_usbinitialize * * Description: * Called to setup USB-related GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_usbinitialize(void); @@ -324,38 +324,38 @@ void stm32l4_usbinitialize(void); int stm32l4_gpio_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_can_setup -- DisruptiveNL * * Description: * Initialize CAN and register the CAN device. * Added by: Ben vd Veen (DisruptiveNL) -- www.nuttx.nl * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_CAN int stm32l4_can_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_PWM int stm32l4_pwm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32l4_adc_setup(void); @@ -445,4 +445,4 @@ int stm32_as726xinitialize(FAR const char *devpath); int stm32_bmp180initialize(FAR const char *devpath); #endif -#endif /* __BOARDS_ARM_NUCLEO_L476RG_SRC_NUCLEO_L476RG_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_L476RG_SRC_NUCLEO_L476RG_H */ diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_adc.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_adc.c index b3e09f381c..36ff0d83e8 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_adc.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l476rg/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_adc.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -54,9 +54,9 @@ #ifdef CONFIG_STM32L4_ADC1 -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* The number of ADC channels in the conversion list */ @@ -66,9 +66,9 @@ # define ADC1_NCHANNELS 1 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Identifying number of each ADC channel. */ #ifdef CONFIG_AJOYSTICK @@ -95,21 +95,21 @@ static const uint32_t g_adc1_pinlist[ADC1_NCHANNELS] = {GPIO_ADC1_IN1}; #endif /* CONFIG_ADC_DMA */ #endif /* CONFIG_AJOYSTICK */ -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_adc_setup(void) { diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_ajoystick.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_ajoystick.c index 14cff34e78..09dfa2f0c5 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_ajoystick.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_ajoystick.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l476rg/src/stm32_ajoystick.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_ajoystick.c * * Copyright (C) 2014, 2016-2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -56,6 +56,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* Check for pre-requisites and pin conflicts */ #ifdef CONFIG_AJOYSTICK @@ -126,6 +127,7 @@ static int ajoy_interrupt(int irq, FAR void *context, FAR void *arg); /**************************************************************************** * Private Data ****************************************************************************/ + /* Pin configuration for each Itead joystick button. Index using AJOY_* * button definitions in include/nuttx/input/ajoystick.h. */ @@ -454,6 +456,7 @@ int board_ajoy_initialize(void) iinfo("Initialize ADC driver: /dev/adc0\n"); /* NOTE: The ADC driver was initialized earlier in the bring-up sequence. */ + /* Open the ADC driver for reading. */ ret = file_open(&g_adcfile, "/dev/adc0", O_RDONLY); diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_appinit.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_appinit.c index d779a06022..7aa1bc2f46 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_appinit.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l476rg/src/stm32l4_appinit.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32l4_appinit.c * * Copyright (C) 2016, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_as726x.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_as726x.c index 33384630b3..fc0373f083 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_as726x.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_as726x.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l476rg/src/stm32_as726x.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_as726x.c * * Copyright (C) 2019 Fabian Justi. All rights reserved. * Author: Fabian Justi @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,15 +51,15 @@ #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_AS726X) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_as726xinitialize * * Description: @@ -71,7 +71,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_as726xinitialize(FAR const char *devpath) { diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_autoleds.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_autoleds.c index bd4c0e8b60..8a0e011abf 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_autoleds.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l476rg/src/stm32l4_autoleds.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32l4_autoleds.c * * Copyright (C) 2014-2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_bmp180.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_bmp180.c index 2a6f5c6631..610e015105 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_bmp180.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_bmp180.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l476rg/src/stm32_bmp180.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_bmp180.c * * Copyright (C) 2015 Alan Carvalho de Assis. All rights reserved. * Author: Alan Carvalho de Assis @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,11 +51,11 @@ #if defined(CONFIG_I2C) && defined(CONFIG_SENSORS_BMP180) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_bmp180initialize * * Description: @@ -67,7 +67,7 @@ * Returned Value: * Zero (OK) on success; a negated errno value on failure. * - ************************************************************************************/ + ****************************************************************************/ int stm32_bmp180initialize(FAR const char *devpath) { diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_boot.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_boot.c index 330977f55d..cb0528ad39 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_boot.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l476rg/src/stm32l4_boot.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l476rg/src/stm32l4_boot.c * * Copyright (C) 2014-2015, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,11 +51,11 @@ #include "up_arch.h" #include "nucleo-l476rg.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: @@ -63,7 +63,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void) { diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_buttons.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_buttons.c index bcede4f1b2..74b09d5d00 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_buttons.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l476rg/src/stm32_buttons.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_buttons.c * * Copyright (C) 2014-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -88,7 +88,7 @@ uint32_t board_buttons(void) return !released; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -108,7 +108,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_can.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_can.c index 521548d71f..7f33a704db 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_can.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_can.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm3220g-eval/src/stm32_can.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_can.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,13 +31,13 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ /* Added by: Ben vd Veen (DisruptiveNL) -- www.nuttx.nl */ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_cc1101.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_cc1101.c index abdaa6cf78..97a21aecf4 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_cc1101.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_cc1101.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l476rg/src/stm32_cc1101.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_cc1101.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: lihaichen diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_gpio.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_gpio.c index 9b9e93f5b4..81a963e1a7 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_gpio.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_gpio.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l476rg/src/stm32_gpio.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_gpio.c * * Copyright (C) 2017-2018 Gregory Nutt. All rights reserved. * Copyright (C) 2017 Alan Carvalho de Assis. All rights reserved. diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_lsm303agr.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_lsm303agr.c index 5273a421e9..70a7dca36e 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_lsm303agr.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_lsm303agr.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32l476rg/src/stm32_lsm303agr.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_lsm303agr.c * * Copyright (C) 2018 Greg Nutt. All rights reserved. * Author: Alan Carvalho de Assis @@ -80,10 +80,12 @@ int stm32l4_lsm303agr_initialize(char *devpath) return -ENODEV; } - ret = lsm303agr_sensor_register("/dev/lsm303mag0", i2c, LSM303AGRMAGNETO_ADDR); + ret = lsm303agr_sensor_register("/dev/lsm303mag0", i2c, + LSM303AGRMAGNETO_ADDR); if (ret < 0) { - snerr("ERROR: Failed to initialize LMS303AGR magneto driver %s\n", devpath); + snerr("ERROR: Failed to initialize LMS303AGR magneto driver %s\n", + devpath); return -ENODEV; } diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_lsm6dsl.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_lsm6dsl.c index b3dd7bf161..1db493a5dc 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_lsm6dsl.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_lsm6dsl.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/nucleo-l476rg/src/stm32_lsm6dsl.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_lsm6dsl.c * * Copyright (C) 2018 Greg Nutt. All rights reserved. * Author: Alan Carvalho de Assis @@ -89,7 +89,8 @@ int stm32l4_lsm6dsl_initialize(char *devpath) ret = lsm6dsl_sensor_register("/dev/lsm6dsl0", i2c, LSM6DSLACCEL_ADDR1); if (ret < 0) { - snerr("ERROR: Failed to initialize LMS6DSL accelero-gyro driver %s\n", devpath); + snerr("ERROR: Failed to initialize LMS6DSL accelero-gyro driver %s\n", + devpath); return -ENODEV; } diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_pcd8544.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_pcd8544.c index f0482e42af..2aaca06959 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_pcd8544.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_pcd8544.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-l476rg/src/stm32_pcd8544.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_pcd8544.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_pwm.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_pwm.c index 3a2eef8f69..a27515b2c0 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_pwm.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_pwm.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l476rg/src/stm32_pwm.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_pwm.c * * Copyright (C) 2011, 2015-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -34,11 +34,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,10 +55,12 @@ #include "stm32l4_pwm.h" #include "nucleo-l476rg.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ -/* Configuration *******************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ + /* PWM * * The STM3240G-Eval has no real on-board PWM devices, but the board can be @@ -68,17 +70,17 @@ #ifdef CONFIG_PWM -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_pwm_setup * * Description: * Initialize PWM and register the PWM device. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_pwm_setup(void) { @@ -269,4 +271,3 @@ int stm32l4_pwm_setup(void) } #endif /* CONFIG_PWM */ - diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_qencoder.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_qencoder.c index 313fdfe813..0b705ba2ef 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_qencoder.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_qencoder.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l476rg/src/stm32_qencoder.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_qencoder.c * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -34,11 +34,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,18 +53,18 @@ #include "stm32l4_qencoder.h" #include "nucleo-l476rg.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: qe_devinit * * Description: * All STM32L4 architectures must provide the following interface to work with * examples/qencoder. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_qencoder_initialize(FAR const char *devpath, int timer) { diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spi.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spi.c index 2887c6f934..2525ab7729 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spi.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l476rg/src/stm32l4_spi.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32l4_spi.c * * Copyright (C) 2014, 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,9 +33,9 @@ * ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -56,9 +56,9 @@ #if defined(CONFIG_STM32L4_SPI1) || defined(CONFIG_STM32L4_SPI2) || \ defined(CONFIG_STM32L4_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ #ifdef CONFIG_STM32L4_SPI1 @@ -68,17 +68,17 @@ struct spi_dev_s *g_spi1; struct spi_dev_s *g_spi2; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-L476RG board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32l4_spiinitialize(void) { diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spimmcsd.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spimmcsd.c index 52ec29046b..72d8d2f569 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spimmcsd.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spimmcsd.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/nucleo-l476rg/src/stm32_spimmcsd.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_spimmcsd.c * * Copyright (C) 2018 Greg Nutt. All rights reserved. * Author: Alan Carvalho de Assis @@ -128,4 +128,3 @@ int stm32l4_mmcsd_initialize(int minor) spiinfo("INFO: mmcsd card has been initialized successfully\n"); return OK; } - diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_timer.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_timer.c index 49aa521cb8..a0e2e98d16 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_timer.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_timer.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l476rg/src/stm32_timer.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_timer.c * * Copyright (C) 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_userleds.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_userleds.c index 3ad638599d..4e871d418b 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_userleds.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l476rg/src/stm32_userleds.c + * boards/arm/stm32l4/nucleo-l476rg/src/stm32_userleds.c * * Copyright (C) 2014-2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l496zg/README.txt b/boards/arm/stm32l4/nucleo-l496zg/README.txt index 3215b38180..473ed6fafc 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/README.txt +++ b/boards/arm/stm32l4/nucleo-l496zg/README.txt @@ -36,7 +36,7 @@ LQFP144 package. Variants with a STM32L4 MCU include: ------------- ------------------ This directory supports only the STM32L4 variants of Nucleo-144. For others, -see boards/nucleo-144 configuration. +see boards/arm/stm32l4/nucleo-l496zg configuration. Please read the User Manual UM2179: Getting started with STM32 Nucleo board software development tools and take note of the Powering options for the diff --git a/boards/arm/stm32l4/nucleo-l496zg/include/board.h b/boards/arm/stm32l4/nucleo-l496zg/include/board.h index 768f6d8400..009e8b474f 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/include/board.h +++ b/boards/arm/stm32l4/nucleo-l496zg/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l496zg/include/board.h +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l496zg/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -33,14 +33,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L496ZG_INCLUDE_BOARD_H -#define __BOARDS_ARM_NUCLEO_L496ZG_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L496ZG_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L496ZG_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,11 +55,12 @@ #endif #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Clocking *****************************************************************/ -/* Clocking *************************************************************************/ /* The Nucleo-144 board provides the following clock sources: * * MCO: 8 MHz from MCO output of ST-LINK is used as input clock @@ -159,6 +160,7 @@ #define STM32L4_PCLK1_FREQUENCY (STM32L4_HCLK_FREQUENCY/1) /* Timers driven from APB1 will be twice PCLK1 */ + /* REVISIT : this can be configured */ #define STM32L4_APB1_TIM2_CLKIN (2*STM32L4_PCLK1_FREQUENCY) @@ -174,6 +176,7 @@ #define STM32L4_PCLK2_FREQUENCY (STM32L4_HCLK_FREQUENCY/1) /* Timers driven from APB2 will be twice PCLK2 */ + /* REVISIT : this can be configured */ #define STM32L4_APB2_TIM1_CLKIN (2*STM32L4_PCLK2_FREQUENCY) @@ -186,6 +189,7 @@ * otherwise frequency is 2xAPBx. * Note: TIM1,8,15,16,17 are on APB2, others on APB1 */ + /* REVISIT : this can be configured */ #elif defined(HSE_CLOCK_CONFIG) @@ -266,6 +270,7 @@ #define STM32L4_PCLK1_FREQUENCY (STM32L4_HCLK_FREQUENCY/1) /* Timers driven from APB1 will be twice PCLK1 */ + /* REVISIT : this can be configured */ #define STM32L4_APB1_TIM2_CLKIN (2*STM32L4_PCLK1_FREQUENCY) @@ -281,6 +286,7 @@ #define STM32L4_PCLK2_FREQUENCY (STM32L4_HCLK_FREQUENCY/1) /* Timers driven from APB2 will be twice PCLK2 */ + /* REVISIT : this can be configured */ #define STM32L4_APB2_TIM1_CLKIN (2*STM32L4_PCLK2_FREQUENCY) @@ -293,6 +299,7 @@ * otherwise frequency is 2xAPBx. * Note: TIM1,8,15,16,17 are on APB2, others on APB1 */ + /* REVISIT : this can be configured */ #elif defined(MSI_CLOCK_CONFIG) @@ -374,6 +381,7 @@ #define STM32L4_PCLK1_FREQUENCY (STM32L4_HCLK_FREQUENCY/1) /* Timers driven from APB1 will be twice PCLK1 */ + /* REVISIT : this can be configured */ #define STM32L4_APB1_TIM2_CLKIN (2*STM32L4_PCLK1_FREQUENCY) @@ -389,6 +397,7 @@ #define STM32L4_PCLK2_FREQUENCY (STM32L4_HCLK_FREQUENCY/1) /* Timers driven from APB2 will be twice PCLK2 */ + /* REVISIT : this can be configured */ #define STM32L4_APB2_TIM1_CLKIN (2*STM32L4_PCLK2_FREQUENCY) @@ -401,6 +410,7 @@ * otherwise frequency is 2xAPBx. * Note: TIM1,8,15,16,17 are on APB2, others on APB1 */ + /* REVISIT : this can be configured */ #endif @@ -461,9 +471,10 @@ # define GPIO_SDMMC2_D3 GPIO_SDMMC2_D3_1 #endif -/* DMA Channel/Stream Selections *****************************************************/ -/* Stream selections are arbitrary for now but might become important in the future - * if we set aside more DMA channels/streams. +/* DMA Channel/Stream Selections ********************************************/ + +/* Stream selections are arbitrary for now but might become important in the + * future if we set aside more DMA channels/streams. * * SDMMC DMA is on DMA2 * @@ -494,12 +505,14 @@ #define BOARD_FLASH_WAITSTATES 7 -/* LED definitions ******************************************************************/ -/* The Nucleo-144 board has numerous LEDs but only three, LD1 a Green LED, LD2 a Blue - * LED and LD3 a Red LED, that can be controlled by software. The following - * definitions assume the default Solder Bridges are installed. +/* LED definitions **********************************************************/ + +/* The Nucleo-144 board has numerous LEDs but only three, LD1 a Green LED, + * LD2 a Blue LED and LD3 a Red LED, that can be controlled by software. + * The following definitions assume the default Solder Bridges are installed. * - * If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in any way. + * If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs + * in any way. * The following definitions are used to access individual LEDs. */ @@ -545,16 +558,18 @@ * has halted. */ -/* Button definitions ***************************************************************/ +/* Button definitions *******************************************************/ + /* The Nucleo-L496ZG supports one button: Pushbutton B1, labeled "User", is - * connected to GPIO PC13. A high value will be sensed when the button is depressed. + * connected to GPIO PC13. + * A high value will be sensed when the button is depressed. */ #define BUTTON_USER 0 #define NUM_BUTTONS 1 #define BUTTON_USER_BIT (1 << BUTTON_USER) -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ #define GPIO_USART2_TX GPIO_USART2_TX_2 #define GPIO_USART2_RX GPIO_USART2_RX_2 @@ -582,16 +597,20 @@ /* USART3: * Use USART3 and the USB virtual COM port -*/ + */ #if defined(CONFIG_NUCLEO_CONSOLE_VIRTUAL) /* LPUART1 is connector to Virtual COM port PG6 and PG7, but there is no lpserial. */ -//#define GPIO_USART2_TX GPIO_LPUART1_TX_3 -//#define GPIO_USART2_RX GPIO_LPUART1_RX_3 + +/* #define GPIO_USART2_TX GPIO_LPUART1_TX_3 */ + +/* #define GPIO_USART2_RX GPIO_LPUART1_RX_3 */ + # error "No Nucleo virtual console before lpserial is unimplemented" #endif /* DMA channels *************************************************************/ + /* ADC */ #define ADC1_DMA_CHAN DMACHAN_ADC1_1 @@ -652,9 +671,9 @@ #define GPIO_I2C4_SCL GPIO_I2C4_SCL_1 #define GPIO_I2C4_SDA GPIO_I2C4_SDA_1 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ #undef EXTERN @@ -666,11 +685,11 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: @@ -678,7 +697,7 @@ extern "C" * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void); @@ -688,4 +707,4 @@ void stm32l4_board_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_L496ZG_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_L496ZG_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32l4/nucleo-l496zg/scripts/Make.defs b/boards/arm/stm32l4/nucleo-l496zg/scripts/Make.defs index 59ac0ab624..32a5bf24e8 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/Make.defs +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-144/l496-nsh/Make.defs +# boards/arm/stm32l4/nucleo-144/l496-nsh/Make.defs # # Copyright (C) 2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld b/boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld index 7ecc15c01d..33ca2246bf 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/scripts/kernel-space.ld + * boards/arm/stm32l4/nucleo-144/scripts/kernel-space.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld b/boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld index 66c69094d7..a38ec27f68 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-l496zg/scripts/l496zg-flash.ld + * boards/arm/stm32l4/nucleo-l496zg/scripts/l496zg-flash.ld * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l496zg/scripts/memory.ld b/boards/arm/stm32l4/nucleo-l496zg/scripts/memory.ld index a7909e7ebb..51de55b359 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/memory.ld +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/scripts/memory.ld + * boards/arm/stm32l4/nucleo-144/scripts/memory.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld b/boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld index cf3f5ba721..be232aeb0c 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld +++ b/boards/arm/stm32l4/nucleo-l496zg/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/scripts/user-space.ld + * boards/arm/stm32l4/nucleo-144/scripts/user-space.ld * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/Makefile b/boards/arm/stm32l4/nucleo-l496zg/src/Makefile index f8427a05e4..89e5dc266d 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/Makefile +++ b/boards/arm/stm32l4/nucleo-l496zg/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/nucleo-l496zg/src/Makefile +# boards/arm/stm32l4/nucleo-l496zg/src/Makefile # # Copyright (C) 2015 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/nucleo-144.h b/boards/arm/stm32l4/nucleo-l496zg/src/nucleo-144.h index 72f2376fb9..c4cc79bc60 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/nucleo-144.h +++ b/boards/arm/stm32l4/nucleo-l496zg/src/nucleo-144.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l496zg/src/nucleo-144.h +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l496zg/src/nucleo-144.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -33,24 +33,24 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_NUCLEO_L496ZG_SRC_NUCLEO_144_H -#define __BOARDS_ARM_NUCLEO_L496ZG_SRC_NUCLEO_144_H +#ifndef __BOARDS_ARM_STM32L4_NUCLEO_L496ZG_SRC_NUCLEO_144_H +#define __BOARDS_ARM_STM32L4_NUCLEO_L496ZG_SRC_NUCLEO_144_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Configuration ********************************************************************/ +/* Configuration ************************************************************/ /* procfs File System */ @@ -62,12 +62,13 @@ # endif #endif -/* Nucleo-144 GPIO Pin Definitions **************************************************/ +/* Nucleo-144 GPIO Pin Definitions ******************************************/ + /* LED * - * The Nucleo-144 board has numerous LEDs but only three, LD1 a Green LED, LD2 a - * Blue LED and LD3 a Red LED, that can be controlled by software. The following definitions assume - * the default Solder Bridges are installed. + * The Nucleo-144 board has numerous LEDs but only three, LD1 a Green LED, + * LD2 a Blue LED and LD3 a Red LED, that can be controlled by software. + * The following definitions assume the default Solder Bridges are installed. */ #define GPIO_LD1 (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | GPIO_OUTPUT_CLEAR | \ @@ -95,7 +96,7 @@ #define GPIO_BTN_USER (GPIO_INPUT | GPIO_FLOAT | GPIO_EXTI | GPIO_PORTC | GPIO_PIN13) -/* SPI ***************************************************************************/ +/* SPI **********************************************************************/ #define GPIO_SPI_CS (GPIO_OUTPUT | GPIO_PUSHPULL | GPIO_SPEED_50MHz | \ GPIO_OUTPUT_SET) @@ -178,42 +179,42 @@ GPIO_PUSHPULL|GPIO_PORTG|GPIO_PIN5) #endif -/************************************************************************************ +/**************************************************************************** * Public data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_SPI) void stm32_spidev_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_bus_test * * Description: * Called to create the defined SPI buses and test them by initializing them * and sending the NUCLEO_SPI_TEST (no chip select). * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_NUCLEO_SPI_TEST) int stm32_spidev_bus_test(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_dma_alloc_init * * Description: @@ -222,7 +223,7 @@ int stm32_spidev_bus_test(void); * Returned Value: * 0 on success or -ENOMEM * - ************************************************************************************/ + ****************************************************************************/ void stm32_dma_alloc_init(void); @@ -242,54 +243,54 @@ int stm32_dma_alloc_init(void); int stm32_sdio_initialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32L4_OTGFS void stm32_usbinitialize(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ADC int stm32_adc_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_dac_setup * * Description: * Initialize DAC and register the DAC driver. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_DAC int stm32_dac_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_dfsdm_setup * * Description: * Initialize DFSDM and register the ADC drivers for DFSDM filters. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_ADC) && defined(CONFIG_STM32L4_DFSDM) int stm32_dfsdm_setup(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_NUCLEO_L496ZG_SRC_NUCLEO_144_H */ +#endif /* __BOARDS_ARM_STM32L4_NUCLEO_L496ZG_SRC_NUCLEO_144_H */ diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_adc.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_adc.c index 81adc81423..869807ae62 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_adc.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_adc.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-l496zg/src/stm32_adc.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_adc.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -53,11 +53,12 @@ #ifdef CONFIG_ADC -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ -/* Configuration ********************************************************************/ /* Up to 3 ADC interfaces are supported */ #if STM32L4_NADC < 3 @@ -80,9 +81,9 @@ #define ADC2_NCHANNELS 3 #define ADC3_NCHANNELS 2 -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Identifying number of each ADC channel: Variable Resistor. * @@ -112,21 +113,21 @@ static const uint8_t g_chanlist_adc3[ADC3_NCHANNELS] = {17,18}; /* TS and VBAT/ static const uint32_t g_pinlist_adc3[ADC3_NCHANNELS] = {0,0}; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32_adc_setup(void) { diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_appinitialize.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_appinitialize.c index a874b0ee35..7a9a0a36e5 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_appinitialize.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_appinitialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-144/src/stm32_appinitialize.c + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_appinitialize.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -173,6 +173,7 @@ int board_app_initialize(uintptr_t arg) #if defined(CONFIG_MMCSD) /* Configure SDIO */ + /* Initialize the SDIO block driver */ ret = stm32l4_sdio_initialize(); diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_autoleds.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_autoleds.c index 8b7621a4a6..c96596b5ec 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_autoleds.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/src/stm32_autoleds.c + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_autoleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_boot.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_boot.c index cd237e0e0e..9edfee6a3a 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_boot.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-144/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_boot.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -48,11 +48,11 @@ #include "up_arch.h" #include "nucleo-144.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: @@ -60,7 +60,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void) { @@ -81,7 +81,7 @@ void stm32l4_board_initialize(void) #endif } -/************************************************************************************ +/**************************************************************************** * Name: board_late_initialize * * Description: @@ -92,7 +92,7 @@ void stm32l4_board_initialize(void) * This additional initialization phase may be used, for example, to initialize * board-specific device drivers. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_BOARD_LATE_INITIALIZE void board_late_initialize(void) diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_buttons.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_buttons.c index ed43a89b2a..95ea9c16dd 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_buttons.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/src/stm32_buttons.c + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_buttons.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -82,7 +82,7 @@ uint32_t board_buttons(void) return stm32l4_gpioread(GPIO_BTN_USER) ? 1 : 0; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -102,7 +102,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dac.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dac.c index ea5b5a89d8..296de6b15a 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dac.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dac.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/nucleo-l496zg/src/stm32_dac.c + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_dac.c * * Copyright (C) 2017 Haltian Ltd. All rights reserved. * Authors: Juha Niskanen @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -50,9 +50,9 @@ #ifdef CONFIG_DAC -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_STM32L4_DAC1 static struct dac_dev_s *g_dac1; @@ -62,13 +62,13 @@ static struct dac_dev_s *g_dac1; static struct dac_dev_s *g_dac2; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_dac_setup - ************************************************************************************/ + ****************************************************************************/ int stm32_dac_setup(void) { diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dfsdm.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dfsdm.c index 6c3fa41602..cd53dc6f70 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dfsdm.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dfsdm.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/nucleo-l496zg/src/stm32_dfsdm.c + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_dfsdm.c * * Copyright (C) 2017 Haltian Ltd. All rights reserved. * Authors: Juha Niskanen @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -50,13 +50,13 @@ #if defined(CONFIG_ADC) && defined(CONFIG_STM32L4_DFSDM) -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_dfsdm_setup - ************************************************************************************/ + ****************************************************************************/ int stm32_dfsdm_setup(void) { diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dma_alloc.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dma_alloc.c index 3e9fec91dd..e5c91f447b 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dma_alloc.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_dma_alloc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/stc/stm32_dma_alloc.c + * boards/arm/stm32l4/nucleo-l496zg/stc/stm32_dma_alloc.c * * Copyright (C) 2016 PX4 Development Team. All rights reserved. * @@ -32,9 +32,9 @@ * ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -46,9 +46,9 @@ #if defined(CONFIG_FAT_DMAMEMORY) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if !defined(CONFIG_GRAN) # error microSD DMA support requires CONFIG_GRAN @@ -56,9 +56,9 @@ #define BOARD_DMA_ALLOC_POOL_SIZE (8*512) -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static GRAN_HANDLE dma_allocator; @@ -74,18 +74,18 @@ static GRAN_HANDLE dma_allocator; static uint8_t g_dma_heap[BOARD_DMA_ALLOC_POOL_SIZE] __attribute__((aligned(64))); -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_dma_alloc_init * * Description: * All boards may optionally provide this API to instantiate a pool of * memory for uses with FAST FS DMA operations. * - ************************************************************************************/ + ****************************************************************************/ int stm32_dma_alloc_init(void) { diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_sdio.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_sdio.c index 73354df50c..a19472ffc6 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_sdio.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_sdio.c @@ -1,5 +1,5 @@ /**************************************************************************** - * config/nucleo-144/src/stm32_sdio.c + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_sdio.c * * Copyright (C) 2014, 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_spi.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_spi.c index 7b874d04f2..dadf1f5b3f 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_spi.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_spi.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/nucleo-144/src/stm32_spi.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_spi.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -57,9 +57,9 @@ #if defined(CONFIG_SPI) -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #define ARRAYSIZE(x) (sizeof((x)) / sizeof((x)[0])) @@ -105,9 +105,9 @@ # endif #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ /* Indexed by NUCLEO_SPI_BUSx_CSx */ @@ -163,17 +163,17 @@ struct spi_dev_s *spi3; # endif #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spidev_initialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spidev_initialize(void) { diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_usb.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_usb.c index f65a29599a..d3dc07c57b 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_usb.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards//nucleo-144/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_usb.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -61,9 +61,9 @@ #ifdef CONFIG_STM32L4_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -80,25 +80,25 @@ # define CONFIG_NUCLEO_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -129,18 +129,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbinitialize * * Description: * Called from stm32_usbinitialize very early in inialization to setup USB-related * GPIO pins for the nucleo-144 board. * - ************************************************************************************/ + ****************************************************************************/ void stm32_usbinitialize(void) { @@ -287,7 +287,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_setup_overcurrent * * Description: @@ -302,7 +302,7 @@ void stm32_usbhost_vbusdrive(int iface, bool enable) * Zero (OK) is returned on success. Otherwise, a negated errno value is returned * to indicate the nature of the failure. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32_setup_overcurrent(xcpt_t handler, void *arg) @@ -311,7 +311,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_usbsuspend * * Description: @@ -320,7 +320,7 @@ int stm32_setup_overcurrent(xcpt_t handler, void *arg) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32l4_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_userleds.c b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_userleds.c index b43e658b25..30d76dd137 100644 --- a/boards/arm/stm32l4/nucleo-l496zg/src/stm32_userleds.c +++ b/boards/arm/stm32l4/nucleo-l496zg/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/nucleo-144/src/stm32_userleds.c + * boards/arm/stm32l4/nucleo-l496zg/src/stm32_userleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476-mdk/include/board.h b/boards/arm/stm32l4/stm32l476-mdk/include/board.h index 442d19d6d1..92eb75dcad 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/include/board.h +++ b/boards/arm/stm32l4/stm32l476-mdk/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476-mdk/include/board.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l476-mdk/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Copyright (C) 2016 Motorola Mobility, LLC. @@ -31,34 +31,35 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32L476_MDK_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32L476_MDK_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32L_STM32L476_MDK_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32L_STM32L476_MDK_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ #include -/* DMA Channel/Stream Selections ****************************************************/ -/* Stream selections are arbitrary for now but might become important in the future - * is we set aside more DMA channels/streams. +/* DMA Channel/Stream Selections ********************************************/ + +/* Stream selections are arbitrary for now but might become important in the + * future is we set aside more DMA channels/streams. */ -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ /* USART1: * RXD: PB7 @@ -107,10 +108,12 @@ #define GPIO_SPI2_SCK GPIO_SPI2_SCK_2 /* PB13 */ #define GPIO_SPI2_NSS GPIO_SPI2_NSS_2 /* PB12 */ -/* LED definitions ******************************************************************/ -/* The Reference Moto Mod contains three LEDs. Two LEDs, are by convention, used to - * indicate the Reference Moto Mod battery state of charge, and the other is - * available for you to use in your applications. +/* LED definitions **********************************************************/ + +/* The Reference Moto Mod contains three LEDs. + * Two LEDs, are by convention, used to indicate the Reference Moto Mod + * battery state of charge, and the other is available for you to use in your + * applications. * * 1. The red LED on PD7. Part of the (rear-firing) red/green LED. * 2. The green LED on PE7. Part of the (rear-firing) red/green LED. @@ -166,16 +169,17 @@ * then a fatal error has been detected and the system has halted. */ -/* Buttons **************************************************************************/ +/* Buttons ******************************************************************/ + /* The board only has one button */ #define BUTTON_POWER 0 #define NUM_BUTTONS 1 #define BUTTON_POWER_BIT (1 << BUTTON_POWER) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -188,10 +192,11 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ -/************************************************************************************ + ****************************************************************************/ + +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: @@ -199,7 +204,7 @@ extern "C" * point is called early in the initialization -- after all memory has been * configured and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void); @@ -209,4 +214,4 @@ void stm32l4_board_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32L476_MDK_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32L_STM32L476_MDK_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32l4/stm32l476-mdk/include/stm32l476-mdk-clocking.h b/boards/arm/stm32l4/stm32l476-mdk/include/stm32l476-mdk-clocking.h index 5a6d7965c1..f9448637af 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/include/stm32l476-mdk-clocking.h +++ b/boards/arm/stm32l4/stm32l476-mdk/include/stm32l476-mdk-clocking.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476-mdk/include/stm32l476-mdk-clocking.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l476-mdk/include/stm32l476-mdk-clocking.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Copyright (C) 2016 Motorola Mobility, LLC. All rights reserved. @@ -32,25 +32,25 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32L476_MDK_INCLUDE_STM32L476_MDK_CLOCKING_H -#define __BOARDS_ARM_STM32L476_MDK_INCLUDE_STM32L476_MDK_CLOCKING_H +#ifndef __BOARDS_ARM_STM32L4_STM32L476_MDK_INCLUDE_STM32L476_MDK_CLOCKING_H +#define __BOARDS_ARM_STM32L4_STM32L476_MDK_INCLUDE_STM32L476_MDK_CLOCKING_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ /* HSI - 16 MHz RC factory-trimmed * LSI - 32 KHz RC @@ -152,6 +152,7 @@ #define STM32L4_PCLK1_FREQUENCY (STM32L4_HCLK_FREQUENCY/1) /* Timers driven from APB1 will be twice PCLK1 */ + /* REVISIT : this can be configured */ #define STM32L4_APB1_TIM2_CLKIN (2*STM32L4_PCLK1_FREQUENCY) @@ -167,6 +168,7 @@ #define STM32L4_PCLK2_FREQUENCY (STM32L4_HCLK_FREQUENCY/1) /* Timers driven from APB2 will be twice PCLK2 */ + /* REVISIT : this can be configured */ #define STM32L4_APB2_TIM1_CLKIN (2*STM32L4_PCLK2_FREQUENCY) @@ -274,9 +276,9 @@ #define BOARD_LPTIM1_FREQUENCY (STM32L4_HCLK_FREQUENCY / 2) #define BOARD_LPTIM2_FREQUENCY (STM32L4_HCLK_FREQUENCY / 2) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -289,9 +291,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -299,4 +301,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32L476_MDK_INCLUDE_STM32L476_MDK_CLOCKING_H */ +#endif /* __BOARDS_ARM_STM32L4_STM32L476_MDK_INCLUDE_STM32L476_MDK_CLOCKING_H */ diff --git a/boards/arm/stm32l4/stm32l476-mdk/scripts/Make.defs b/boards/arm/stm32l4/stm32l476-mdk/scripts/Make.defs index 834dccc533..bc45c75392 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/scripts/Make.defs +++ b/boards/arm/stm32l4/stm32l476-mdk/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32l476-mdk/scripts/Make.defs +# boards/arm/stm32l4/stm32l476-mdk/scripts/Make.defs # # Copyright (C) 2016, 2017 Gregory Nutt. All rights reserved. # Author: dev@ziggurat29.com diff --git a/boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld b/boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld index 0f828d9f3c..c92fe0c656 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld +++ b/boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476-mdk/scripts/stm32l476-mdk.ld + * boards/arm/stm32l4/stm32l476-mdk/scripts/stm32l476-mdk.ld * * Copyright (C) 2016, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/Makefile b/boards/arm/stm32l4/stm32l476-mdk/src/Makefile index 1a46bbd19e..01d4a5868c 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/src/Makefile +++ b/boards/arm/stm32l4/stm32l476-mdk/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32l476-mdk/src/Makefile +# boards/arm/stm32l4/stm32l476-mdk/src/Makefile # # Copyright (C) 2014 Gregory Nutt. All rights reserved. # Author: dev@ziggurat29.com diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_appinit.c b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_appinit.c index 7fcc6896ca..779d1e9b51 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_appinit.c +++ b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476-mdk/src/stm32_appinit.c + * boards/arm/stm32l4/stm32l476-mdk/src/stm32_appinit.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_autoleds.c b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_autoleds.c index 2a49dce3d3..55802f2a12 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_autoleds.c +++ b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476-mdk/src/sam_autoleds.c + * boards/arm/stm32l4/stm32l476-mdk/src/sam_autoleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_boot.c b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_boot.c index 8b6e5b46d5..a97acdfeac 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_boot.c +++ b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476-mdk/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32l4/stm32l476-mdk/src/stm32_boot.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,11 +51,11 @@ #include "up_arch.h" #include "stm32l476-mdk.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: @@ -63,7 +63,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void) { diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_bringup.c b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_bringup.c index d3ee0c75cf..8c29ffc01d 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_bringup.c +++ b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_bringup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476-mdk/src/stm32_bringup.c + * boards/arm/stm32l4/stm32l476-mdk/src/stm32_bringup.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_buttons.c b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_buttons.c index be2bbd738e..ccc69045d5 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_buttons.c +++ b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476-mdk/src/stm32_buttons.c + * boards/arm/stm32l4/stm32l476-mdk/src/stm32_buttons.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: dev@ziggurat29.com diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_clockconfig.c b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_clockconfig.c index 83165478a1..7ff86c3288 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_clockconfig.c +++ b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_clockconfig.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476-mdk/src/stm32_clockconfig.c +/**************************************************************************** + * boards/arm/stm32l4/stm32l476-mdk/src/stm32_clockconfig.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: dev@ziggurat29.com @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ #include "up_arch.h" #include "stm32l476-mdk.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_board_clockconfig * * Description: @@ -62,7 +62,7 @@ * end for certain project configurations which have specialized clock * configurationsthat aren't appropriate to expose in the 'arch' default code. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_ARCH_BOARD_STM32L4_CUSTOM_CLOCKCONFIG) void stm32l4_board_clockconfig(void) diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_spi.c b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_spi.c index 7f0bd18acb..377944df7a 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_spi.c +++ b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476-mdk/src/stm32_spi.c + * boards/arm/stm32l4/stm32l476-mdk/src/stm32_spi.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,9 +33,9 @@ * ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,9 +55,10 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ + /* Global driver instances */ #ifdef CONFIG_STM32_SPI1 @@ -67,18 +68,18 @@ struct spi_dev_s *g_spi1; struct spi_dev_s *g_spi2; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins for the Nucleo-F401RE and * Nucleo-F411RE boards. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spiinitialize(void) { diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_userleds.c b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_userleds.c index 8f9e1fb3ff..7730285471 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/src/stm32_userleds.c +++ b/boards/arm/stm32l4/stm32l476-mdk/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476-mdk/src/sam_userleds.c + * boards/arm/stm32l4/stm32l476-mdk/src/sam_userleds.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h b/boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h index 343db3b096..1298ffba06 100644 --- a/boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h +++ b/boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476-mdk/src/stm32l476-mdk.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Frank Bennett @@ -34,24 +34,25 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __BOARDS_ARM_STM32L476_MDK_SRC_STM32L476_MDK_H #define __BOARDS_ARM_STM32L476_MDK_SRC_STM32L476_MDK_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ -/* Configuration ********************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ #define HAVE_PROC 1 #define HAVE_RTC_DRIVER 1 @@ -127,9 +128,9 @@ * Note that these are unshifted addresses. */ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ @@ -140,9 +141,9 @@ extern struct spi_dev_s *g_spi1; extern struct spi_dev_s *g_spi2; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ /**************************************************************************** * Name: stm32_bringup @@ -160,13 +161,13 @@ extern struct spi_dev_s *g_spi2; int stm32_bringup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spiinitialize(void); diff --git a/boards/arm/stm32l4/stm32l476vg-disco/include/board.h b/boards/arm/stm32l4/stm32l476vg-disco/include/board.h index b2e9aacd8e..1943cf4930 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/include/board.h +++ b/boards/arm/stm32l4/stm32l476vg-disco/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476vg-disco/include/board.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l476vg-disco/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: dev@ziggurat29.com @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32L476VG_DISCO_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32L476VG_DISCO_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -47,17 +47,18 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ #include -/* DMA Channel/Stream Selections ****************************************************/ -/* Stream selections are arbitrary for now but might become important in the future - * is we set aside more DMA channels/streams. +/* DMA Channel/Stream Selections ********************************************/ + +/* Stream selections are arbitrary for now but might become important in the + * future is we set aside more DMA channels/streams. */ /* Values defined in arch/arm/src/stm32l4/hardware/stm32l4x6xx_dma.h */ @@ -77,7 +78,7 @@ #endif -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ /* USART1: * RXD: PB7 @@ -274,9 +275,9 @@ #define BUTTON_RIGHT_BIT (1 << BUTTON_RIGHT) #define BUTTON_UP_BIT (1 << BUTTON_UP) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -289,18 +290,20 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ -/************************************************************************************ + ****************************************************************************/ + +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: - * All STM32L4 architectures must provide the following entry point. This entry point - * is called early in the initialization -- after all memory has been configured - * and mapped but before any devices have been initialized. + * All STM32L4 architectures must provide the following entry point. + * This entry point is called early in the initialization -- after all + * memory has been configured and mapped but before any devices have been + * initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void); @@ -310,4 +313,4 @@ void stm32l4_board_initialize(void); #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32L476VG_DISCO_INCLUDE_BOARD_H */ +#endif /* __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_INCLUDE_BOARD_H */ diff --git a/boards/arm/stm32l4/stm32l476vg-disco/include/boardctl.h b/boards/arm/stm32l4/stm32l476vg-disco/include/boardctl.h index 68a254880f..f949e874e2 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/include/boardctl.h +++ b/boards/arm/stm32l4/stm32l476vg-disco/include/boardctl.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476vg-disco/include/boardctl.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l476vg-disco/include/boardctl.h * * Copyright (C) 2016 dev@ziggurat29.com. All rights reserved. * Author: dev@ziggurat29.com @@ -31,10 +31,10 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32L476VG_DISCO_INCLUDE_BOARDCTL_H -#define __BOARDS_ARM_STM32L476VG_DISCO_INCLUDE_BOARDCTL_H +#ifndef __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_INCLUDE_BOARDCTL_H +#define __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_INCLUDE_BOARDCTL_H /**************************************************************************** * Included Files @@ -49,4 +49,4 @@ #define BIOC_ENTER_MEMMAP BOARDIOC_USER+1 #define BIOC_EXIT_MEMMAP BOARDIOC_USER+2 -#endif /* __BOARDS_ARM_STM32L476VG_DISCO_INCLUDE_BOARDCTL_H */ +#endif /* __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_INCLUDE_BOARDCTL_H */ diff --git a/boards/arm/stm32l4/stm32l476vg-disco/include/stm32l476vg-disco-clocking.h b/boards/arm/stm32l4/stm32l476vg-disco/include/stm32l476vg-disco-clocking.h index 359c2e2222..b07cec151b 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/include/stm32l476vg-disco-clocking.h +++ b/boards/arm/stm32l4/stm32l476vg-disco/include/stm32l476vg-disco-clocking.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476vg-disco/include/stm32l476vg-disco-clocking.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l476vg-disco/include/stm32l476vg-disco-clocking.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: dev@ziggurat29.com @@ -31,29 +31,30 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32L476VG_DISCO_INCLUDE_STM32L476VG_DISCO_CLOCKING_H -#define __BOARDS_ARM_STM32L476VG_DISCO_INCLUDE_STM32L476VG_DISCO_CLOCKING_H +#ifndef __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_INCLUDE_STM32L476VG_DISCO_CLOCKING_H +#define __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_INCLUDE_STM32L476VG_DISCO_CLOCKING_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ -/* The stm32l476vg-disco supports both HSE and LSE crystals. As shipped, the HSE - * crystal is not populated. Therefore the stm32l476vg-disco will need to run off the - * 16MHz HSI clock, or the 32khz-synced MSI, unless you install the HSE xtal. +/* The stm32l476vg-disco supports both HSE and LSE crystals. + * As shipped, the HSE crystal is not populated. + * Therefore the stm32l476vg-disco will need to run off the 16MHz HSI clock, + * or the 32khz-synced MSI, unless you install the HSE xtal. */ /* HSI - 16 MHz RC factory-trimmed @@ -370,9 +371,9 @@ #define BOARD_LPTIM1_FREQUENCY STM32L4_HCLK_FREQUENCY #define BOARD_LPTIM2_FREQUENCY STM32L4_HCLK_FREQUENCY -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -385,9 +386,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -395,4 +396,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32L476VG_DISCO_INCLUDE_STM32L476VG_DISCO_CLOCKING_H */ +#endif /* __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_INCLUDE_STM32L476VG_DISCO_CLOCKING_H */ diff --git a/boards/arm/stm32l4/stm32l476vg-disco/kernel/Makefile b/boards/arm/stm32l4/stm32l476vg-disco/kernel/Makefile index 0d08f2d500..a83e1ed7e2 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/kernel/Makefile +++ b/boards/arm/stm32l4/stm32l476vg-disco/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32l476vg_disco/kernel/Makefile +# boards/arm/stm32l4/stm32l476vg_disco/kernel/Makefile # # Copyright (C) 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476vg-disco/kernel/stm32l4_userspace.c b/boards/arm/stm32l4/stm32l476vg-disco/kernel/stm32l4_userspace.c index 70f0d752b7..5c2f957aca 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/kernel/stm32l4_userspace.c +++ b/boards/arm/stm32l4/stm32l476vg-disco/kernel/stm32l4_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476vg_disco/kernel/stm32l4_userspace.c + * boards/arm/stm32l4/stm32l476vg_disco/kernel/stm32l4_userspace.c * * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -51,6 +51,7 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* Configuration ************************************************************/ #ifndef CONFIG_NUTTX_USERSPACE diff --git a/boards/arm/stm32l4/stm32l476vg-disco/scripts/Make.defs b/boards/arm/stm32l4/stm32l476vg-disco/scripts/Make.defs index 3de8172c20..7ca1f1e430 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/Make.defs +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32l476vg-disco/scripts/Make.defs +# boards/arm/stm32l4/stm32l476vg-disco/scripts/Make.defs # # Copyright (C) 2016, 2017 Gregory Nutt. All rights reserved. # Author: dev@ziggurat29.com diff --git a/boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld b/boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld index ee37abafb4..4b1ff2144d 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/scripts/kernel-space.ld + * boards/arm/stm32l4/stm32f4discovery/scripts/kernel-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476vg-disco/scripts/memory.ld b/boards/arm/stm32l4/stm32l476vg-disco/scripts/memory.ld index 8e4f39adb8..44fbc55478 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/memory.ld +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476vg-disco/scripts/memory.ld + * boards/arm/stm32l4/stm32l476vg-disco/scripts/memory.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -47,7 +47,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of * FLASH and 4Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/stm32l476vg-disco/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32l4/stm32l476vg-disco/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld b/boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld index eda106d108..2f2fd345b0 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476vg-disco/scripts/stm32l476vg-disco.ld + * boards/arm/stm32l4/stm32l476vg-disco/scripts/stm32l476vg-disco.ld * * Copyright (C) 2016, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld b/boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld index a01d06fa61..e09041c5db 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld +++ b/boards/arm/stm32l4/stm32l476vg-disco/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32f4discovery/scripts/user-space.ld + * boards/arm/stm32l4/stm32f4discovery/scripts/user-space.ld * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/Makefile b/boards/arm/stm32l4/stm32l476vg-disco/src/Makefile index 2917259fd8..6403d8258f 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/src/Makefile +++ b/boards/arm/stm32l4/stm32l476vg-disco/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32l476vg-disco/src/Makefile +# boards/arm/stm32l4/stm32l476vg-disco/src/Makefile # # Copyright (C) 2014 Gregory Nutt. All rights reserved. # Author: dev@ziggurat29.com diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c index b99b5594b1..0bf3867d5b 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c +++ b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476vg-disco/src/stm32_appinit.c + * boards/arm/stm32l4/stm32l476vg-disco/src/stm32_appinit.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_autoleds.c b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_autoleds.c index 36e9b948aa..b7670cee9d 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_autoleds.c +++ b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476vg-disco/src/stm32_autoleds.c + * boards/arm/stm32l4/stm32l476vg-disco/src/stm32_autoleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: dev@ziggurat29.com diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_boot.c b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_boot.c index 8571f62d71..7ef7028de6 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_boot.c +++ b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476vg-disco/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32l4/stm32l476vg-disco/src/stm32_boot.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,11 +51,11 @@ #include "up_arch.h" #include "stm32l476vg-disco.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: @@ -63,7 +63,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void) { diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_buttons.c b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_buttons.c index 87c9fc8418..d433f1cbe9 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_buttons.c +++ b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476vg-disco/src/stm32_buttons.c + * boards/arm/stm32l4/stm32l476vg-disco/src/stm32_buttons.c * * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: dev@ziggurat29.com @@ -293,7 +293,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -313,7 +313,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_clockconfig.c b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_clockconfig.c index 5d4c2c3d0f..bfe26852ad 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_clockconfig.c +++ b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_clockconfig.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476vg-disco/src/stm32_clockconfig.c +/**************************************************************************** + * boards/arm/stm32l4/stm32l476vg-disco/src/stm32_clockconfig.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: dev@ziggurat29.com @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,11 +47,11 @@ #include "up_arch.h" #include "stm32l476vg-disco.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_board_clockconfig * * Description: @@ -62,7 +62,7 @@ * end for certain project configurations which have specialized clock configurations * that aren't appropriate to expose in the 'arch' default code. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_ARCH_BOARD_STM32L4_CUSTOM_CLOCKCONFIG) void stm32l4_board_clockconfig(void) diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_spi.c b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_spi.c index 65c41af2f7..a8ec21abf8 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_spi.c +++ b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476vg-disco/src/stm32_spi.c + * boards/arm/stm32l4/stm32l476vg-disco/src/stm32_spi.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,9 +33,9 @@ * ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -55,9 +55,9 @@ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ #ifdef CONFIG_STM32_SPI1 @@ -70,17 +70,17 @@ struct spi_dev_s *g_spi2; struct spi_dev_s *g_spi3; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spiinitialize(void) { diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_usb.c b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_usb.c index 0e121d503a..7cb40f8ee6 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_usb.c +++ b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32f4discovery/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32l4/stm32f4discovery/src/stm32_usb.c * * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,9 +59,9 @@ #ifdef CONFIG_STM32L4_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -78,25 +78,25 @@ # define CONFIG_STM32L4DISCO_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -127,18 +127,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_usbinitialize * * Description: * Called from stm32l4_usbinitialize very early in initialization to setup USB-related * GPIO pins for the STM32L4Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_usbinitialize(void) { @@ -153,15 +153,16 @@ void stm32l4_usbinitialize(void) #endif } -/*********************************************************************************** +/**************************************************************************** * Name: stm32l4_usbhost_initialize * * Description: - * Called at application startup time to initialize the USB host functionality. + * Called at application startup time to initialize the USB host +* functionality. * This function will start a thread that will monitor for device * connection/disconnection events. * - ***********************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST int stm32l4_usbhost_initialize(void) @@ -248,7 +249,7 @@ int stm32l4_usbhost_initialize(void) } #endif -/*********************************************************************************** +/***************************************************************************** * Name: stm32l4_usbhost_vbusdrive * * Description: @@ -272,7 +273,7 @@ int stm32l4_usbhost_initialize(void) * Returned Value: * None * - ***********************************************************************************/ + *****************************************************************************/ #ifdef CONFIG_USBHOST void stm32l4_usbhost_vbusdrive(int iface, bool enable) @@ -294,7 +295,7 @@ void stm32l4_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_setup_overcurrent * * Description: @@ -307,7 +308,7 @@ void stm32l4_usbhost_vbusdrive(int iface, bool enable) * Returned Value: * Old over current interrupt handler * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST xcpt_t stm32l4_setup_overcurrent(xcpt_t handler) @@ -317,7 +318,7 @@ xcpt_t stm32l4_setup_overcurrent(xcpt_t handler) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_usbsuspend * * Description: @@ -326,7 +327,7 @@ xcpt_t stm32l4_setup_overcurrent(xcpt_t handler) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32l4_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_userleds.c b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_userleds.c index 63fee84272..3da388456c 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_userleds.c +++ b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l476vg-disco/src/stm32_userleds.c + * boards/arm/stm32l4/stm32l476vg-disco/src/stm32_userleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32l476vg-disco.h b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32l476vg-disco.h index 6bfe4f6d69..2f05a7257a 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/src/stm32l476vg-disco.h +++ b/boards/arm/stm32l4/stm32l476vg-disco/src/stm32l476vg-disco.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476vg-disco/src/stm32l476vg-disco.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l476vg-disco/src/stm32l476vg-disco.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Frank Bennett @@ -34,23 +34,23 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32L476VG_DISCO_SRC_STM32L476VG_DISCO_H -#define __BOARDS_ARM_STM32L476VG_DISCO_SRC_STM32L476VG_DISCO_H +#ifndef __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_SRC_STM32L476VG_DISCO_H +#define __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_SRC_STM32L476VG_DISCO_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* Configuration ********************************************************************/ #define HAVE_PROC 1 @@ -235,9 +235,9 @@ #define DISCO_I2C_OBDEV_CS43L22 0x94 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ @@ -248,28 +248,28 @@ extern struct spi_dev_s *g_spi1; extern struct spi_dev_s *g_spi2; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spiinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_usbinitialize * * Description: * Called to setup USB-related GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_usbinitialize(void); -#endif /* __BOARDS_ARM_STM32L476VG_DISCO_SRC_STM32L476VG_DISCO_H */ +#endif /* __BOARDS_ARM_STM32L4_STM32L476VG_DISCO_SRC_STM32L476VG_DISCO_H */ diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/include/board.h b/boards/arm/stm32l4/stm32l4r9ai-disco/include/board.h index 08e1433a8d..8e62d26e54 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/include/board.h +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/include/board.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l4r9ai-disco/include/board.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l4r9ai-disco/include/board.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * @@ -30,14 +30,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32L4R9AI_DISCO_INCLUDE_BOARD_H -#define __BOARDS_ARM_STM32L4R9AI_DISCO_INCLUDE_BOARD_H +#ifndef __BOARDS_ARM_STM32L_STM32L4R9AI_DISCO_INCLUDE_BOARD_H +#define __BOARDS_ARM_STM32L_STM32L4R9AI_DISCO_INCLUDE_BOARD_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ @@ -46,17 +46,18 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ #include -/* DMA Channel/Stream Selections ****************************************************/ -/* Stream selections are arbitrary for now but might become important in the future - * is we set aside more DMA channels/streams. +/* DMA Channel/Stream Selections ********************************************/ + +/* Stream selections are arbitrary for now but might become important in the + * future is we set aside more DMA channels/streams. */ /* Values defined in arch/arm/src/stm32l4/hardware/stm32l4x6xx_dma.h */ @@ -86,7 +87,7 @@ #define ADC1_MEASURE_CHANNEL 12 #define GPIO_MEASURE_ADC (GPIO_ADC1_IN12) -/* Alternate function pin selections ************************************************/ +/* Alternate function pin selections ****************************************/ /* USART1: * RXD: PB7 @@ -264,9 +265,9 @@ #define BUTTON_RIGHT_BIT (1 << BUTTON_RIGHT) #define BUTTON_UP_BIT (1 << BUTTON_UP) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -279,18 +280,20 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ -/************************************************************************************ + ****************************************************************************/ + +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: - * All STM32L4 architectures must provide the following entry point. This entry point - * is called early in the initialization -- after all memory has been configured - * and mapped but before any devices have been initialized. + * All STM32L4 architectures must provide the following entry point. + * This entry point is called early in the initialization -- after all + * memory has been configured and mapped but before any devices have been + * initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void); diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/include/boardctl.h b/boards/arm/stm32l4/stm32l4r9ai-disco/include/boardctl.h index 994695e7cd..3833e1d4de 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/include/boardctl.h +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/include/boardctl.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l4r9ai-disco/include/boardctl.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l4r9ai-disco/include/boardctl.h * * Copyright (C) 2016 dev@ziggurat29.com. All rights reserved. * Author: dev@ziggurat29.com @@ -31,10 +31,10 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32L4R9AI_DISCO_INCLUDE_BOARDCTL_H -#define __BOARDS_ARM_STM32L4R9AI_DISCO_INCLUDE_BOARDCTL_H +#ifndef __BOARDS_ARM_STM32L4_STM32L4R9AI_DISCO_INCLUDE_BOARDCTL_H +#define __BOARDS_ARM_STM32L4_STM32L4R9AI_DISCO_INCLUDE_BOARDCTL_H /**************************************************************************** * Included Files @@ -49,4 +49,4 @@ #define BIOC_ENTER_MEMMAP BOARDIOC_USER+1 #define BIOC_EXIT_MEMMAP BOARDIOC_USER+2 -#endif /* __BOARDS_ARM_STM32L4R9AI_DISCO_INCLUDE_BOARDCTL_H */ +#endif /* __BOARDS_ARM_STM32L4_STM32L4R9AI_DISCO_INCLUDE_BOARDCTL_H */ diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/include/stm32l4r9ai-disco-clocking.h b/boards/arm/stm32l4/stm32l4r9ai-disco/include/stm32l4r9ai-disco-clocking.h index 8c3dc16ae5..700cdf644c 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/include/stm32l4r9ai-disco-clocking.h +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/include/stm32l4r9ai-disco-clocking.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l4r9ai-disco/include/stm32l4r9ai-disco-clocking.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l4r9ai-disco/include/stm32l4r9ai-disco-clocking.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Juha Niskanen @@ -31,25 +31,25 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32L4R9AI_DISCO_INCLUDE_STM32L4R9AI_DISCO_CLOCKING_H -#define __BOARDS_ARM_STM32L4R9AI_DISCO_INCLUDE_STM32L4R9AI_DISCO_CLOCKING_H +#ifndef __BOARDS_ARM_STM32L4_STM32L4R9AI_DISCO_INCLUDE_STM32L4R9AI_DISCO_CLOCKING_H +#define __BOARDS_ARM_STM32L4_STM32L4R9AI_DISCO_INCLUDE_STM32L4R9AI_DISCO_CLOCKING_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #ifndef __ASSEMBLY__ # include #endif -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Clocking *************************************************************************/ +/* Clocking *****************************************************************/ /* The stm32l4r9ai-disco supports both HSE and LSE crystals. As shipped, the HSE * is a 16 MHz crystal X2. Therefore the stm32l4r9ai-disco can run off the 16MHz @@ -414,9 +414,9 @@ #define BOARD_LPTIM1_FREQUENCY STM32L4_HCLK_FREQUENCY #define BOARD_LPTIM2_FREQUENCY STM32L4_HCLK_FREQUENCY -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -429,9 +429,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -439,4 +439,4 @@ extern "C" #endif #endif /* __ASSEMBLY__ */ -#endif /* __BOARDS_ARM_STM32L4R9AI_DISCO_INCLUDE_STM32L4R9AI_DISCO_CLOCKING_H */ +#endif /* __BOARDS_ARM_STM32L4_STM32L4R9AI_DISCO_INCLUDE_STM32L4R9AI_DISCO_CLOCKING_H */ diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/kernel/Makefile b/boards/arm/stm32l4/stm32l4r9ai-disco/kernel/Makefile index 08c60b8433..4d8b030248 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/kernel/Makefile +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/kernel/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32l4r9ai-disco/kernel/Makefile +# boards/arm/stm32l4/stm32l4r9ai-disco/kernel/Makefile # # Copyright (C) 2019 Gregory Nutt. All rights reserved. # Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/kernel/stm32l4_userspace.c b/boards/arm/stm32l4/stm32l4r9ai-disco/kernel/stm32l4_userspace.c index 46da61f536..aa5ae46fd1 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/kernel/stm32l4_userspace.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/kernel/stm32l4_userspace.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/kernel/stm32l4_userspace.c + * boards/arm/stm32l4/stm32l4r9ai-disco/kernel/stm32l4_userspace.c * * Copyright (C) 2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/Make.defs b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/Make.defs index 2be34e5080..0a59cb4df3 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/Make.defs +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32l4r9ai-disco/scripts/Make.defs +# boards/arm/stm32l4/stm32l4r9ai-disco/scripts/Make.defs # # Copyright (C) 2016, 2017 Gregory Nutt. All rights reserved. # Author: dev@ziggurat29.com diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld index b0eab37125..404adb456a 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/scripts/kernel-space.ld + * boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/memory.ld b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/memory.ld index 46c4c3f404..419a9e5e63 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/memory.ld +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/memory.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/scripts/memory.ld + * boards/arm/stm32l4/stm32l4r9ai-disco/scripts/memory.ld * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -48,7 +48,7 @@ * For MPU support, the kernel-mode NuttX section is assumed to be 128Kb of * FLASH and 16Kb of SRAM. That is an excessive amount for the kernel which * should fit into 64KB and, of course, can be optimized as needed (See - * also boards/stm32l4r9ai-disco/scripts/kernel-space.ld). Allowing the + * also boards/arm/stm32l4/stm32l4r9ai-disco/scripts/kernel-space.ld). Allowing the * additional does permit addition debug instrumentation to be added to the * kernel space without overflowing the partition. * diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld index 553fdc329a..10030bff46 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld + * boards/arm/stm32l4/stm32l4r9ai-disco/scripts/stm32l4r9ai-disco.ld * * Copyright (C) 2016, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld index 9d641ec5ce..27e585909c 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/scripts/user-space.ld + * boards/arm/stm32l4/stm32l4r9ai-disco/scripts/user-space.ld * * Copyright (C) 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/Makefile b/boards/arm/stm32l4/stm32l4r9ai-disco/src/Makefile index d5e0d36cd0..bc0195a6e4 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/Makefile +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/Makefile @@ -1,5 +1,5 @@ ############################################################################ -# boards/stm32l4r9ai-disco/src/Makefile +# boards/arm/stm32l4/stm32l4r9ai-disco/src/Makefile # # Copyright (C) 2014 Gregory Nutt. All rights reserved. # Author: dev@ziggurat29.com diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_adc.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_adc.c index a9a3b6cfa6..91b58196fd 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_adc.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_adc.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32l4r9ai-disco/src/stm32_adc.c + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_adc.c * * Copyright (C) 2017-2018 Haltian Ltd. All rights reserved. * Authors: Juha Niskanen @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -57,9 +57,9 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ /* STM32 chip specific calibration values *******************************************/ @@ -128,9 +128,9 @@ # warning "Reading multiple channels without DMA might cause overruns!" #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static struct adc_dev_s *g_adc; @@ -152,17 +152,17 @@ static const uint32_t g_pinlist[ADC1_NCHANNELS] = GPIO_MEASURE_ADC, }; -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_measure_voltages * * Description: * Read internal reference voltage, internal VBAT and one external voltage. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_adc_measure_voltages(uint32_t *vrefint, uint32_t *vbat, uint32_t *vext) { @@ -272,9 +272,9 @@ out: return ret; } -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_setup - ************************************************************************************/ + ****************************************************************************/ int stm32l4_adc_setup(void) { diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c index 7d054ea45b..b066cd78c9 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/src/stm32_appinit.c + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_autoleds.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_autoleds.c index 501cfc0e09..1fd0a44fc0 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_autoleds.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_autoleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/src/stm32_autoleds.c + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_autoleds.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_boot.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_boot.c index bdf4af511a..e913762d53 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_boot.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_boot.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l4r9ai-disco/src/stm32_boot.c +/**************************************************************************** + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_boot.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -32,11 +32,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -51,7 +51,7 @@ #include "up_arch.h" #include "stm32l4r9ai-disco.h" -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_board_initialize * * Description: @@ -59,7 +59,7 @@ * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_board_initialize(void) { diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_buttons.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_buttons.c index 09e42430af..84b97b12f7 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_buttons.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_buttons.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/src/stm32_buttons.c + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_buttons.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * @@ -292,7 +292,7 @@ uint32_t board_buttons(void) return ret; } -/************************************************************************************ +/**************************************************************************** * Button support. * * Description: @@ -312,7 +312,7 @@ uint32_t board_buttons(void) * BUTTON_* definitions in board.h for the meaning of enumeration * value. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_ARCH_IRQBUTTONS int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_clockconfig.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_clockconfig.c index c0cd0888cd..534a221c42 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_clockconfig.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_clockconfig.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l4r9ai-disco/src/stm32_clockconfig.c +/**************************************************************************** + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_clockconfig.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * @@ -30,11 +30,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -46,11 +46,11 @@ #include "up_arch.h" #include "stm32l4r9ai-disco.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_board_clockconfig * * Description: @@ -61,7 +61,7 @@ * end for certain project configurations which have specialized clock configurations * that aren't appropriate to expose in the 'arch' default code. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_ARCH_BOARD_STM32L4_CUSTOM_CLOCKCONFIG) void stm32l4_board_clockconfig(void) @@ -162,6 +162,7 @@ void stm32l4_board_clockconfig(void) regval = getreg32(STM32L4_RCC_PLLSAI2CFG); /* Enable the SAI2 PLL */ + /* Set the PLL dividers and multipliers to configure the SAI2 PLL */ regval = (STM32L4_PLLSAI2CFG_PLLN | STM32L4_PLLSAI2CFG_PLLP | diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_dac.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_dac.c index 270de40045..8314242c25 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_dac.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_dac.c @@ -1,5 +1,5 @@ /***************************************************************************** - * boards/stm32l4r9ai-disco/src/stm32_dac.c + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_dac.c * * Copyright (C) 2017-2018 Haltian Ltd. All rights reserved. * Authors: Juha Niskanen @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -50,19 +50,19 @@ #include -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ static struct dac_dev_s *g_dac; -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_dac_setup - ************************************************************************************/ + ****************************************************************************/ int stm32l4_dac_setup(void) { diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_dfsdm.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_dfsdm.c index 678a2db511..f6be8c6c54 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_dfsdm.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_dfsdm.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/src/stm32_dfsdm.c + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_dfsdm.c * * Copyright (C) 2019 Haltian Ltd. All rights reserved. * Authors: Juha Niskanen diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_spi.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_spi.c index 380683b826..2fa89f6e92 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_spi.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_spi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/src/stm32_spi.c + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_spi.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -33,9 +33,9 @@ * ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -56,9 +56,10 @@ #if defined(CONFIG_STM32L4_SPI1) || defined(CONFIG_STM32L4_SPI2) || defined(CONFIG_STM32L4_SPI3) -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ + /* Global driver instances */ #ifdef CONFIG_STM32L4_SPI1 @@ -71,17 +72,17 @@ struct spi_dev_s *g_spi2; struct spi_dev_s *g_spi3; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void weak_function stm32_spiinitialize(void) { diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_usb.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_usb.c index 299a817fbc..1da9324e9f 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_usb.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_usb.c @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l4r9ai-disco/src/stm32_usb.c +/**************************************************************************** + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_usb.c * * Copyright (C) 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -59,9 +59,9 @@ #ifdef CONFIG_STM32L4_OTGFS -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_USBDEV) || defined(CONFIG_USBHOST) # define HAVE_USB 1 @@ -78,25 +78,25 @@ # define CONFIG_STM32L4DISCO_USBHOST_STACKSIZE 1024 #endif -/************************************************************************************ +/**************************************************************************** * Private Data - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static struct usbhost_connection_s *g_usbconn; #endif -/************************************************************************************ +/**************************************************************************** * Private Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: usbhost_waiter * * Description: * Wait for USB devices to be connected. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST static int usbhost_waiter(int argc, char *argv[]) @@ -127,18 +127,18 @@ static int usbhost_waiter(int argc, char *argv[]) } #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_usbinitialize * * Description: * Called from stm32l4_usbinitialize very early in initialization to setup USB-related * GPIO pins for the STM32L4Discovery board. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_usbinitialize(void) { @@ -294,7 +294,7 @@ void stm32l4_usbhost_vbusdrive(int iface, bool enable) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_setup_overcurrent * * Description: @@ -307,7 +307,7 @@ void stm32l4_usbhost_vbusdrive(int iface, bool enable) * Returned Value: * Old over current interrupt handler * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBHOST xcpt_t stm32l4_setup_overcurrent(xcpt_t handler) @@ -317,7 +317,7 @@ xcpt_t stm32l4_setup_overcurrent(xcpt_t handler) } #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_usbsuspend * * Description: @@ -326,7 +326,7 @@ xcpt_t stm32l4_setup_overcurrent(xcpt_t handler) * This is an opportunity for the board logic to shutdown clocks, power, etc. * while the USB is suspended. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_USBDEV void stm32l4_usbsuspend(FAR struct usbdev_s *dev, bool resume) diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_userleds.c b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_userleds.c index 4f6531aceb..49968ec294 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_userleds.c +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_userleds.c @@ -1,5 +1,5 @@ /**************************************************************************** - * boards/stm32l4r9ai-disco/src/stm32_userleds.c + * boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32_userleds.c * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -102,8 +102,9 @@ static void led_pm_notify(struct pm_callback_s *cb, int domain, { /* Restore normal LEDs operation */ - //stm32l4_gpiowrite(GPIO_LED_RED, (ledset & BOARD_LED_RED_BIT) != 0); - //stm32l4_gpiowrite(GPIO_LED_GRN, (ledset & BOARD_LED_GRN_BIT) != 0); + /* stm32l4_gpiowrite(GPIO_LED_RED, (ledset & BOARD_LED_RED_BIT) != 0); */ + + /* stm32l4_gpiowrite(GPIO_LED_GRN, (ledset & BOARD_LED_GRN_BIT) != 0); */ } break; diff --git a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32l4r9ai-disco.h b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32l4r9ai-disco.h index 6379d6719d..0a6d6d9a68 100644 --- a/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32l4r9ai-disco.h +++ b/boards/arm/stm32l4/stm32l4r9ai-disco/src/stm32l4r9ai-disco.h @@ -1,5 +1,5 @@ -/************************************************************************************ - * boards/stm32l476vg-disco/src/stm32l476vg-disco.h +/**************************************************************************** + * boards/arm/stm32l4/stm32l476vg-disco/src/stm32l476vg-disco.h * * Copyright (C) 2016 Gregory Nutt. All rights reserved. * Authors: Frank Bennett @@ -34,24 +34,25 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __BOARDS_ARM_STM32L4R9AI_DISCO_SRC_STM32L4R9AI_DISCO_H -#define __BOARDS_ARM_STM32L4R9AI_DISCO_SRC_STM32L4R9AI_DISCO_H +#ifndef __BOARDS_ARM_STM32L4_STM32L4R9AI_DISCO_SRC_STM32L4R9AI_DISCO_H +#define __BOARDS_ARM_STM32L4_STM32L4R9AI_DISCO_SRC_STM32L4R9AI_DISCO_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ -/* Configuration ********************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ #define HAVE_PROC 1 #define HAVE_RTC_DRIVER 1 @@ -184,9 +185,9 @@ #define DISCO_I2C_OBDEV_CAMERA 0x60 #define DISCO_I2C_OBDEV_MFX_V3 0x84 -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ /* Global driver instances */ @@ -197,70 +198,70 @@ extern struct spi_dev_s *g_spi1; extern struct spi_dev_s *g_spi2; #endif -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_setup * * Description: * Initialize ADC and register the ADC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_adc_setup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_adc_measure_voltages * * Description: * Read internal reference voltage, internal VBAT and one external voltage. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_adc_measure_voltages(uint32_t *vrefint, uint32_t *vbat, uint32_t *vext); -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_dac_setup * * Description: * Initialize DAC and register the DAC driver. * - ************************************************************************************/ + ****************************************************************************/ int stm32l4_dac_setup(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32_dfsdm_setup * * Description: * Initialize DFSDM and register the ADC drivers for DFSDM filters. * - ************************************************************************************/ + ****************************************************************************/ #if defined(CONFIG_ADC) && defined(CONFIG_STM32L4_DFSDM) int stm32_dfsdm_setup(void); #endif -/************************************************************************************ +/**************************************************************************** * Name: stm32_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32_spiinitialize(void); -/************************************************************************************ +/**************************************************************************** * Name: stm32l4_usbinitialize * * Description: * Called to setup USB-related GPIO pins. * - ************************************************************************************/ + ****************************************************************************/ void stm32l4_usbinitialize(void); -#endif /* __BOARDS_ARM_STM32L4R9AI_DISCO_SRC_STM32L4R9AI_DISCO_H */ +#endif /* __BOARDS_ARM_STM32L4_STM32L4R9AI_DISCO_SRC_STM32L4R9AI_DISCO_H */