diff --git a/arch/arm/src/stm32/stm32_alarm.h b/arch/arm/src/stm32/stm32_alarm.h index 67bf6482080..5407e3f171c 100644 --- a/arch/arm/src/stm32/stm32_alarm.h +++ b/arch/arm/src/stm32/stm32_alarm.h @@ -1,4 +1,4 @@ -/**************************************************************************** +/***************************************************************************** * arch/arm/src/stm32/stm32_alarm.h * * Copyright (C) 2011 Uros Platise. 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 __ARCH_ARM_SRC_STM32_STM32_ALARM_H #define __ARCH_ARM_SRC_STM32_STM32_ALARM_H -/**************************************************************************** +/***************************************************************************** * Included Files - ****************************************************************************/ + *****************************************************************************/ #include @@ -48,9 +48,9 @@ #ifdef CONFIG_RTC_ALARM -/**************************************************************************** +/***************************************************************************** * Public Types - ****************************************************************************/ + *****************************************************************************/ #ifndef __ASSEMBLY__ @@ -58,9 +58,9 @@ typedef CODE void (*alarmcb_t)(void); -/**************************************************************************** - * Public Functions - ****************************************************************************/ +/***************************************************************************** + * Public Function Prototypes + *****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -71,7 +71,7 @@ extern "C" #define EXTERN extern #endif -/**************************************************************************** +/***************************************************************************** * Name: stm32_rtc_setalarm * * Description: @@ -84,12 +84,12 @@ extern "C" * Returned Value: * Zero (OK) on success; a negated errno on failure * - ****************************************************************************/ + *****************************************************************************/ struct timespec; int stm32_rtc_setalarm(FAR const struct timespec *tp, alarmcb_t callback); -/**************************************************************************** +/***************************************************************************** * Name: stm32_rtc_cancelalarm * * Description: @@ -101,7 +101,7 @@ int stm32_rtc_setalarm(FAR const struct timespec *tp, alarmcb_t callback); * Returned Value: * Zero (OK) on success; a negated errno on failure * - ****************************************************************************/ + *****************************************************************************/ int stm32_rtc_cancelalarm(void); diff --git a/arch/arm/src/stm32/stm32_can.h b/arch/arm/src/stm32/stm32_can.h index 336d9451e01..f3ecfd2cb96 100644 --- a/arch/arm/src/stm32/stm32_can.h +++ b/arch/arm/src/stm32/stm32_can.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/stm32/stm32_can.h * * Copyright (C) 2009, 2011, 2015 Gregory Nutt. All rights reserved. @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_STM32_STM32_CAN_H #define __ARCH_ARM_SRC_STM32_STM32_CAN_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -47,10 +47,12 @@ #include -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ -/* Configuration ********************************************************************/ + ****************************************************************************/ + +/* Configuration ************************************************************/ + /* Up to 2 CAN interfaces are supported */ #if STM32_NCAN < 2 @@ -61,7 +63,8 @@ # undef CONFIG_STM32_CAN1 #endif -#if defined(CONFIG_CAN) && (defined(CONFIG_STM32_CAN1) || defined(CONFIG_STM32_CAN2)) +#if defined(CONFIG_CAN) && \ + (defined(CONFIG_STM32_CAN1) || defined(CONFIG_STM32_CAN2)) /* CAN BAUD */ @@ -96,15 +99,15 @@ # error "CONFIG_STM32_CAN_TSEG2 is out of range" #endif -/************************************************************************************ +/**************************************************************************** * Public Types - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #undef EXTERN #if defined(__cplusplus) @@ -115,9 +118,9 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ - * Public Functions - ************************************************************************************/ +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ /**************************************************************************** * Name: stm32_caninitialize diff --git a/arch/arm/src/stm32/stm32_capture.h b/arch/arm/src/stm32/stm32_capture.h index 225dbf7df14..177d2b50b10 100644 --- a/arch/arm/src/stm32/stm32_capture.h +++ b/arch/arm/src/stm32/stm32_capture.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/stm32/stm32_capture.h * * Copyright (C) 2015 Bouteville Pierre-Noel. All rights reserved. @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_STM32_STM32_CAPTURE_H #define __ARCH_ARM_SRC_STM32_STM32_CAPTURE_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -46,10 +46,11 @@ #include #include "hardware/stm32_tim.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ -/* Helpers **************************************************************************/ + ****************************************************************************/ + +/* Helpers ******************************************************************/ #define STM32_CAP_SETCLOCK(d,clk_src,psc,max) ((d)->ops->setclock(d,clk_src,psc,max)) #define STM32_CAP_SETCHANNEL(d,ch,cfg) ((d)->ops->setchannel(d,ch,cfg)) @@ -59,9 +60,9 @@ #define STM32_CAP_ACKFLAGS(d,f) ((d)->ops->ackflags(d,f)) #define STM32_CAP_GETFLAGS(d) ((d)->ops->getflags(d)) -/************************************************************************************ +/**************************************************************************** * Public Types - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -90,61 +91,60 @@ typedef enum STM32_CAP_MAPPED_MASK = (GTIM_CCMR1_CC1S_MASK), STM32_CAP_MAPPED_TI1 = (GTIM_CCMR_CCS_CCIN1), STM32_CAP_MAPPED_TI2 = (GTIM_CCMR_CCS_CCIN2), -/*TODO STM32_CAP_MAPPED_TRC = (GTIM_CCMR_CCS_CCINTRC), */ + +/* TODO STM32_CAP_MAPPED_TRC = (GTIM_CCMR_CCS_CCINTRC), */ /* Event prescaler */ STM32_CAP_INPSC_MASK = (GTIM_CCMR1_IC1PSC_MASK), - STM32_CAP_INPSC_NO = (0<