diff --git a/arch/arm/src/nrf52/chip.h b/arch/arm/src/nrf52/chip.h index be0405c3371..f9ee2195362 100644 --- a/arch/arm/src/nrf52/chip.h +++ b/arch/arm/src/nrf52/chip.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/chip.h * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,19 +16,20 @@ * License for the specific language governing permissions and limitations * under the License. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_NRF52_CHIP_H #define __ARCH_ARM_SRC_NRF52_CHIP_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include -/* Include the memory map and the chip definitions file. Other chip hardware files - * should then include this file for the proper setup. +/* Include the memory map and the chip definitions file. + * Other chip hardware files should then include this file for the proper + * setup. */ #include @@ -36,9 +37,9 @@ #include "hardware/nrf52_memorymap.h" /* If the common ARMv7-M vector handling logic is used, then it expects the - * following definition in this file that provides the number of supported external - * interrupts which, for this architecture, is provided in the arch/nrf52/chip.h - * header file. + * following definition in this file that provides the number of supported + * external interrupts which, for this architecture, is provided in the + * arch/nrf52/chip.h header file. */ #define ARMV7M_PERIPHERAL_INTERRUPTS NRF52_IRQ_NEXTINT diff --git a/arch/arm/src/nrf52/hardware/nrf52_gpio.h b/arch/arm/src/nrf52/hardware/nrf52_gpio.h index 57ab7717dde..0aff9f092f3 100644 --- a/arch/arm/src/nrf52/hardware/nrf52_gpio.h +++ b/arch/arm/src/nrf52/hardware/nrf52_gpio.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/hardware/nrf52_gpio.h * * Copyright (C) 2018 Gregory Nutt. All rights reserved. @@ -31,22 +31,22 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_GPIO_H #define __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_GPIO_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include "hardware/nrf52_memorymap.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_NRF52_HAVE_PORT1 # define NRF52_GPIO_NPORTS 2 @@ -59,7 +59,7 @@ #define NRF52_GPIO_NPINS 32 -/* Register offsets *****************************************************************/ +/* Register offsets *********************************************************/ #define NRF52_GPIO_OUT_OFFSET 0x0504 /* Write GPIO port */ #define NRF52_GPIO_OUTSET_OFFSET 0x0508 /* Set individual bits in GPIO port */ @@ -73,7 +73,7 @@ #define NRF52_GPIO_PIN_CNF_OFFSET(n) (0x0700 + (n << 2)) -/* Register addresses ***************************************************************/ +/* Register addresses *******************************************************/ #define NRF52_GPIO0_OUT (NRF52_GPIO_P0_BASE + NRF52_GPIO_OUT_OFFSET) #define NRF52_GPIO0_OUTSET (NRF52_GPIO_P0_BASE + NRF52_GPIO_OUTSET_OFFSET) @@ -95,7 +95,7 @@ # define NRF52_GPIO1_CNF(n) (NRF52_GPIO_P1_BASE + NRF52_GPIO_PIN_CNF_OFFSET(n)) #endif -/* Register bit definitions *********************************************************/ +/* Register bit definitions *************************************************/ #define GPIO_DETECTMODE_DEFAULT (0) #define GPIO_DETECTMODE_LDETECT (1) diff --git a/arch/arm/src/nrf52/hardware/nrf52_nfc.h b/arch/arm/src/nrf52/hardware/nrf52_nfc.h index d597ff8060c..3f204e897ca 100644 --- a/arch/arm/src/nrf52/hardware/nrf52_nfc.h +++ b/arch/arm/src/nrf52/hardware/nrf52_nfc.h @@ -1,4 +1,4 @@ -/************************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/hardware/nrf52_nfc.h * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,23 +16,23 @@ * License for the specific language governing permissions and limitations * under the License. * - ************************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_NFC_H #define __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_NFC_H -/************************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************************/ + ****************************************************************************/ #include #include "hardware/nrf52_memorymap.h" -/************************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************************/ + ****************************************************************************/ -/* Register offsets *****************************************************************************/ +/* Register offsets *********************************************************/ #define NRF52_NFC_TASKS_ACTIVATE_OFFSET 0x0000 /* Activate NFCT peripheral */ #define NRF52_NFC_TASKS_DISABLE_OFFSET 0x0004 /* Disable NFCT peripheral */ @@ -81,7 +81,7 @@ #define NRF52_NFC_SENSRES_OFFSET 0x05a0 /* NFC-A SENS_RES auto-response settings */ #define NRF52_NFC_SELRES_OFFSET 0x05a4 /* NFC-A SEL_RES auto-response settings */ -/* Register Addresses ***************************************************************************/ +/* Register Addresses *******************************************************/ #define NRF52_NFC_TASKS_ACTIVATE (NRF52_NFCT_BASE + NRF52_NFC_TASKS_ACTIVATE_OFFSET) #define NRF52_NFC_TASKS_DISABLE (NRF52_NFCT_BASE + NRF52_NFC_TASKS_DISABLE_OFFSET) @@ -130,6 +130,6 @@ #define NRF52_NFC_SENSRES (NRF52_NFCT_BASE + NRF52_NFC_SENSRES_OFFSET) #define NRF52_NFC_SELRES (NRF52_NFCT_BASE + NRF52_NFC_SELRESOFFSET) -/* Register Bitfield Definitions ****************************************************************/ +/* Register Bitfield Definitions ********************************************/ #endif /* __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_NFC_H */ diff --git a/arch/arm/src/nrf52/hardware/nrf52_rng.h b/arch/arm/src/nrf52/hardware/nrf52_rng.h index 3ec4a13bf07..466f86d4ae3 100644 --- a/arch/arm/src/nrf52/hardware/nrf52_rng.h +++ b/arch/arm/src/nrf52/hardware/nrf52_rng.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/hardware/nrf52_rng.h * * Copyright (C) 2019 Gregory Nutt. All rights reserved. @@ -31,24 +31,24 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_RNG_H #define __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_RNG_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include "hardware/nrf52_memorymap.h" #include "chip.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Register Offsets for RNG *********************************************************/ +/* Register Offsets for RNG *************************************************/ #define NRF52_RNG_TASKS_START_OFFSET 0x0000 /* RNG Task Start */ #define NRF52_RNG_TASKS_STOP_OFFSET 0x0004 /* RNG Task Stop */ @@ -59,7 +59,7 @@ #define NRF52_RNG_CONFIG_OFFSET 0x0504 /* RNG CONFIG Register */ #define NRF52_RNG_VALUE_OFFSET 0x0508 /* RNG Value Register */ -/* Register Addresses for RNG *******************************************************/ +/* Register Addresses for RNG ***********************************************/ #define NRF52_RNG_TASKS_START (NRF52_RNG_BASE + NRF52_RNG_TASKS_START_OFFSET) #define NRF52_RNG_TASKS_STOP (NRF52_RNG_BASE + NRF52_RNG_TASKS_STOP_OFFSET) @@ -72,7 +72,7 @@ #define NRF52_RNG_CONFIG (NRF52_RNG_BASE + NRF52_RNG_CONFIG_OFFSET) #define NRF52_RNG_VALUE (NRF52_RNG_BASE + NRF52_RNG_VALUE_OFFSET) -/* Register Bitfield Definitions ****************************************************/ +/* Register Bitfield Definitions ********************************************/ /* INTSET/INTCLR Register */ diff --git a/arch/arm/src/nrf52/hardware/nrf52_rtc.h b/arch/arm/src/nrf52/hardware/nrf52_rtc.h index b6c79e556db..6412f179cef 100644 --- a/arch/arm/src/nrf52/hardware/nrf52_rtc.h +++ b/arch/arm/src/nrf52/hardware/nrf52_rtc.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/hardware/nrf52_rtc.h * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,23 +16,23 @@ * License for the specific language governing permissions and limitations * under the License. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_RTC_H #define __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_RTC_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include "hardware/nrf52_memorymap.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Register offsets for RTC *********************************************************/ +/* Register offsets for RTC *************************************************/ #define NRF52_RTC_TASKS_START_OFFSET 0x0000 /* Start RTC counter */ #define NRF52_RTC_TASKS_STOP_OFFSET 0x0004 /* Stop RTC counter */ @@ -50,7 +50,7 @@ #define NRF52_RTC_PRESCALER_OFFSET 0x0508 /* 12 bit prescaler for counter frequency */ #define NRF52_RTC_CC_OFFSET(x) (0x0540 + ((x) * 0x04)) /* Compare register x */ -/* Register offsets for RTC *********************************************************/ +/* Register offsets for RTC *************************************************/ /* TASKS_START Register */ diff --git a/arch/arm/src/nrf52/hardware/nrf52_tim.h b/arch/arm/src/nrf52/hardware/nrf52_tim.h index edfcfd4f71d..464023aeee3 100644 --- a/arch/arm/src/nrf52/hardware/nrf52_tim.h +++ b/arch/arm/src/nrf52/hardware/nrf52_tim.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/hardware/nrf52_tim.h * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,27 +16,27 @@ * License for the specific language governing permissions and limitations * under the License. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_TIM_H #define __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_TIM_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include "hardware/nrf52_memorymap.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* TIMER constants ******************************************************************/ +/* TIMER constants **********************************************************/ #define TIMER_BASE_FERQUENCY (16000000) -/* Register offsets for TIM *********************************************************/ +/* Register offsets for TIM *************************************************/ #define NRF52_TIM_TASKS_START_OFFSET 0x0000 /* Start Timer */ #define NRF52_TIM_TASKS_STOP_OFFSET 0x0004 /* Stop Timer */ @@ -53,7 +53,7 @@ #define NRF52_TIM_PRESCALER_OFFSET 0x0510 /* Timer prescaler register */ #define NRF52_TIM_CC_OFFSET(x) (0x0540 + ((x) * 4)) /* Capture/Compare register x */ -/* Register offsets for TIM *********************************************************/ +/* Register offsets for TIM *************************************************/ /* TASKS_START Register */ diff --git a/arch/arm/src/nrf52/hardware/nrf52_wdt.h b/arch/arm/src/nrf52/hardware/nrf52_wdt.h index 78ef4ea7eb5..4e5e18b8a71 100644 --- a/arch/arm/src/nrf52/hardware/nrf52_wdt.h +++ b/arch/arm/src/nrf52/hardware/nrf52_wdt.h @@ -1,4 +1,4 @@ -/*************************************************************************************************** +/**************************************************************************** * arch/arm/src/nrf52/hardware/nrf52_wdt.h * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,23 +16,23 @@ * License for the specific language governing permissions and limitations * under the License. * - ***************************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_WDT_H #define __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_WDT_H -/*************************************************************************************************** +/**************************************************************************** * Included Files - ***************************************************************************************************/ + ****************************************************************************/ #include #include "hardware/nrf52_memorymap.h" -/*************************************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ***************************************************************************************************/ + ****************************************************************************/ -/* WDT Register Offsets ****************************************************************************/ +/* WDT Register Offsets *****************************************************/ /* Registers for the WDT function: */ @@ -54,7 +54,7 @@ #define NRF52_WDT_RR6_OFFSET 0x0618 /* Reload request 6 */ #define NRF52_WDT_RR7_OFFSET 0x061c /* Reload request 7 */ -/* WDT Register Addresses **************************************************************************/ +/* WDT Register Addresses ***************************************************/ #define NRF52_WDT_TASKS_START (NRF52_WDT_BASE + NRF52_WDT_TASKS_START_OFFSET) #define NRF52_WDT_EVENTS_TIMEOUT (NRF52_WDT_BASE + NRF52_WDT_EVENTS_TIMEOUT_OFFSET) @@ -74,7 +74,7 @@ #define NRF52_WDT_RR6 (NRF52_WDT_BASE + NRF52_WDT_RR6_OFFSET) #define NRF52_WDT_RR7 (NRF52_WDT_BASE + NRF52_WDT_RR7_OFFSET) -/* WDT Register Bitfield Definitions ***************************************************************/ +/* WDT Register Bitfield Definitions ****************************************/ /* INTENSET/INTENCLR Register */ diff --git a/arch/arm/src/nrf52/nrf52_config.h b/arch/arm/src/nrf52/nrf52_config.h index 431d507f3a1..33f6b65ea4e 100644 --- a/arch/arm/src/nrf52/nrf52_config.h +++ b/arch/arm/src/nrf52/nrf52_config.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/nrf52_config.h * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,28 +16,28 @@ * License for the specific language governing permissions and limitations * under the License. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_NRF52_NRF52_CONFIG_H #define __ARCH_ARM_SRC_NRF52_NRF52_CONFIG_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include #include "chip.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Configuration ********************************************************************/ +/* Configuration ************************************************************/ -/* Make sure that no unsupported UART, I2C master, or SPI master peripherals are - * enabled. +/* Make sure that no unsupported UART, I2C master, or SPI master peripherals + * are enabled. */ /* Map logical UART names (Just for simplicity of naming) */ diff --git a/arch/arm/src/nrf52/nrf52_gpio.h b/arch/arm/src/nrf52/nrf52_gpio.h index 40f4c2eae40..d8c84d9a478 100644 --- a/arch/arm/src/nrf52/nrf52_gpio.h +++ b/arch/arm/src/nrf52/nrf52_gpio.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/nrf52_gpio.h * * Copyright (C) 2018 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_NRF52_NRF52_GPIO_H #define __ARCH_ARM_SRC_NRF52_NRF52_GPIO_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -50,11 +50,11 @@ #include #include "hardware/nrf52_gpio.h" -/************************************************************************************ +/**************************************************************************** * Pre-processor Definitions - ************************************************************************************/ + ****************************************************************************/ -/* Bit-encoded input to nrf52_gpio_config() *****************************************/ +/* Bit-encoded input to nrf52_gpio_config() *********************************/ /* 32-Bit Encoding: .... .... .... .... FFSS DDDM MVPN NNNN * @@ -181,9 +181,9 @@ #define GPIO_PIN_DECODE(p) (((p) & GPIO_PIN_MASK) >> GPIO_PIN_SHIFT) #define GPIO_PORT_DECODE(p) (((p) & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT) -/************************************************************************************ +/**************************************************************************** * Public Types - ************************************************************************************/ + ****************************************************************************/ typedef uint32_t nrf52_pinset_t; @@ -193,9 +193,9 @@ enum nrf52_gpio_detectmode_e NRF52_GPIO_DETECTMODE_LDETECT, }; -/************************************************************************************ +/**************************************************************************** * Public Data - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ #undef EXTERN @@ -207,57 +207,58 @@ extern "C" #define EXTERN extern #endif -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: nrf52_gpio_config * * Description: * Configure a GPIO pin based on bit-encoded description of the pin. * - ************************************************************************************/ + ****************************************************************************/ int nrf52_gpio_config(nrf52_pinset_t cfgset); -/************************************************************************************ +/**************************************************************************** * Name: nrf52_gpio_unconfig * * Description: * Unconfigure a GPIO pin based on bit-encoded description of the pin. * - ************************************************************************************/ + ****************************************************************************/ int nrf52_gpio_unconfig(nrf52_pinset_t cfgset); -/************************************************************************************ +/**************************************************************************** * Name: rnf52_gpio_write * * Description: * Write one or zero to the selected GPIO pin * - ************************************************************************************/ + ****************************************************************************/ void nrf52_gpio_write(nrf52_pinset_t pinset, bool value); -/************************************************************************************ +/**************************************************************************** * Name: nrf52_gpio_read * * Description: * Read one or zero from the selected GPIO pin * - ************************************************************************************/ + ****************************************************************************/ bool nrf52_gpio_read(nrf52_pinset_t pinset); -/************************************************************************************ +/**************************************************************************** * Function: nf52_gpio_dump * * Description: - * Dump all GPIO registers associated with the base address of the provided pinset. + * Dump all GPIO registers associated with the base address of the provided + * pinset. * - ************************************************************************************/ + ****************************************************************************/ #ifdef CONFIG_DEBUG_GPIO_INFO int nrf52_gpio_dump(nrf52_pinset_t pinset, const char *msg); diff --git a/arch/arm/src/nrf52/nrf52_nvmc.h b/arch/arm/src/nrf52/nrf52_nvmc.h index 96ccd7ae958..effea592431 100644 --- a/arch/arm/src/nrf52/nrf52_nvmc.h +++ b/arch/arm/src/nrf52/nrf52_nvmc.h @@ -10,32 +10,33 @@ * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following conditions are + * met: * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_NRF52_NRF52_NVMC_H #define __ARCH_ARM_SRC_NRF52_NRF52_NVMC_H diff --git a/arch/arm/src/nrf52/nrf52_start.h b/arch/arm/src/nrf52/nrf52_start.h index 519a3af49b8..6689662f097 100644 --- a/arch/arm/src/nrf52/nrf52_start.h +++ b/arch/arm/src/nrf52/nrf52_start.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/nrf52_start.h * * Copyright (C) 2018 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_NRF52_NRF52_START_H #define __ARCH_ARM_SRC_NRF52_NRF52_START_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include #include @@ -52,20 +52,20 @@ #ifndef __ASSEMBLY__ -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Name: nrf52_board_initialize * * Description: - * All NRF52xxx architectures must provide the following entry point. This entry - * point is called early in the initialization -- after clocking and memory have - * been configured but before caches have been enabled and before any devices have - * been initialized. + * All NRF52xxx architectures must provide the following entry point. + * This entry point is called early in the initialization -- after clocking + * and memory have been configured but before caches have been enabled and + * before any devices have been initialized. * - ************************************************************************************/ + ****************************************************************************/ void nrf52_board_initialize(void); diff --git a/arch/arm/src/nrf52/nrf52_uid.c b/arch/arm/src/nrf52/nrf52_uid.c index 135d8178155..8571435c7a5 100644 --- a/arch/arm/src/nrf52/nrf52_uid.c +++ b/arch/arm/src/nrf52/nrf52_uid.c @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/nrf52_uid.c * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,11 +16,11 @@ * License for the specific language governing permissions and limitations * under the License. * - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include @@ -30,9 +30,9 @@ #include "hardware/nrf52_ficr.h" -/************************************************************************************ +/**************************************************************************** * Public Functions - ************************************************************************************/ + ****************************************************************************/ void nrf52_get_uniqueid(uint8_t uniqueid[]) { diff --git a/arch/arm/src/nrf52/nrf52_uid.h b/arch/arm/src/nrf52/nrf52_uid.h index cfa46fdbd88..94aa9c72c75 100644 --- a/arch/arm/src/nrf52/nrf52_uid.h +++ b/arch/arm/src/nrf52/nrf52_uid.h @@ -1,4 +1,4 @@ -/************************************************************************************ +/**************************************************************************** * arch/arm/src/nrf52/nrf52_uid.h * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,20 +16,20 @@ * License for the specific language governing permissions and limitations * under the License. * - ************************************************************************************/ + ****************************************************************************/ #ifndef __ARCH_ARM_SRC_NRF52_UID_H #define __ARCH_ARM_SRC_NRF52_UID_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include -/************************************************************************************ +/**************************************************************************** * Public Function Prototypes - ************************************************************************************/ + ****************************************************************************/ void nrf52_get_uniqueid(uint8_t uniqueid[]);