boards: avr: nxstyle fixes

Fixes to pass CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea
2021-03-16 20:59:08 +01:00
committed by Xiang Xiao
parent 3fd1126580
commit 9ced5cae84
9 changed files with 34 additions and 21 deletions
+9 -4
View File
@@ -36,8 +36,8 @@
/* Clocking *****************************************************************/ /* Clocking *****************************************************************/
/* Oscillator setup: RCOSC, OSC32, OSC0, OSC1. Only RCOSC, OSC0, or PLL0 can /* Oscillator setup: RCOSC, OSC32, OSC0, OSC1. Only RCOSC, OSC0, or PLL0
* drive the main clock. * can drive the main clock.
*/ */
/* The RCOSC frequency needs to be calibrated! */ /* The RCOSC frequency needs to be calibrated! */
@@ -128,9 +128,12 @@
/* LED definitions **********************************************************/ /* LED definitions **********************************************************/
/* The AVR32DEV1 board has 3 LEDs, two of which can be controlled through GPIO pins */ /* The AVR32DEV1 board has 3 LEDs,
* two of which can be controlled through GPIO pins
*/
/* ON OFF */ /* ON OFF */
/* LED1 LED2 LED1 LED2 */ /* LED1 LED2 LED1 LED2 */
#define LED_STARTED 0 /* OFF OFF OFF OFF */ #define LED_STARTED 0 /* OFF OFF OFF OFF */
#define LED_HEAPALLOCATE 0 /* OFF OFF OFF OFF */ #define LED_HEAPALLOCATE 0 /* OFF OFF OFF OFF */
@@ -143,7 +146,9 @@
/* Button definitions *******************************************************/ /* Button definitions *******************************************************/
/* The AVR32DEV1 board has 3 BUTTONs, two of which can be sensed through GPIO pins. */ /* The AVR32DEV1 board has 3 BUTTONs,
* two of which can be sensed through GPIO pins.
*/
#define BUTTON1 1 /* Bit 0: Button 1 */ #define BUTTON1 1 /* Bit 0: Button 1 */
#define BUTTON2 2 /* Bit 1: Button 2 */ #define BUTTON2 2 /* Bit 1: Button 2 */
@@ -52,8 +52,8 @@
* *
* Description: * Description:
* All AVR32 AT32UC3 architectures must provide the following entry point. * All AVR32 AT32UC3 architectures must provide the following entry point.
* This entry point is called early in the initialization - after all memory * This entry point is called early in the initialization - after all
* has been configured and mapped but before any devices have been * memory has been configured and mapped but before any devices have been
* initialized. * initialized.
* *
****************************************************************************/ ****************************************************************************/
+1 -1
View File
@@ -95,7 +95,7 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions Definitions
****************************************************************************/ ****************************************************************************/
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
@@ -51,8 +51,8 @@
* *
* Description: * Description:
* All AT90USB architectures must provide the following entry point. * All AT90USB architectures must provide the following entry point.
* This entry point is called early in the initialization - after all memory * This entry point is called early in the initialization - after all
* has been configured and mapped but before any devices have been * memory has been configured and mapped but before any devices have been
* initialized. * initialized.
* *
****************************************************************************/ ****************************************************************************/
@@ -53,7 +53,8 @@ void at90usb_boardinitialize(void)
{ {
#ifdef CONFIG_AVR_SPI #ifdef CONFIG_AVR_SPI
/* Configure SSP chip selects if 1) at least one SSP is enabled, and 2) the /* Configure SSP chip selects if 1) at least one SSP is enabled, and 2) the
* weak function at90usb_spidev_initialize() has been brought into the link. * weak function at90usb_spidev_initialize() has been brought into the
* link.
*/ */
if (at90usb_spidev_initialize) if (at90usb_spidev_initialize)
@@ -105,10 +105,10 @@ void weak_function at90usb_spidev_initialize(void)
* Name: avr_spiselect and avr_spistatus * Name: avr_spiselect and avr_spistatus
* *
* Description: * Description:
* The external functions, avr_spiselect and avr_spistatus must be provided * The external functions, avr_spiselect and avr_spistatus must be
* by board-specific logic. They are implementations of the select and * provided by board-specific logic. They are implementations of the
* status methods of the SPI interface defined by struct spi_ops_s * select and status methods of the SPI interface defined by struct
* (see include/nuttx/spi/spi.h). * spi_ops_s (see include/nuttx/spi/spi.h).
* All other methods (including avr_spibus_initialize()) are provided by * All other methods (including avr_spibus_initialize()) are provided by
* common AVR logic. * common AVR logic.
* To use this common SPI logic on your board: * To use this common SPI logic on your board:
@@ -116,8 +116,8 @@ void weak_function at90usb_spidev_initialize(void)
* 1. Provide logic in avr_spidev_initialize() to configure SPI * 1. Provide logic in avr_spidev_initialize() to configure SPI
* chip select pins. * chip select pins.
* 2. Provide avr_spiselect() and avr_spistatus() functions in your * 2. Provide avr_spiselect() and avr_spistatus() functions in your
* board-specific logic. These functions will perform chip selection and * board-specific logic. These functions will perform chip selection
* status operations in the way your board is configured. * and status operations in the way your board is configured.
* 3. Add a calls to at90usb_spidev_initialize() in your low level * 3. Add a calls to at90usb_spidev_initialize() in your low level
* application initialization logic * application initialization logic
* 4. The handle returned by avr_spibus_initialize() may then be used to * 4. The handle returned by avr_spibus_initialize() may then be used to
@@ -45,7 +45,8 @@ extern "C"
* Name: at90usb_spidev_initialize * Name: at90usb_spidev_initialize
* *
* Description: * Description:
* Called to configure SPI chip select GPIO pins for the Teensy++ 2.0 board. * Called to configure SPI chip select GPIO pins for the Teensy++ 2.0
* board.
* *
****************************************************************************/ ****************************************************************************/
@@ -37,8 +37,10 @@
/* Assume default CLKDIV8 fuse setting is overridden to CLKDIV1 */ /* Assume default CLKDIV8 fuse setting is overridden to CLKDIV1 */
//#define BOARD_XTAL_FREQ 20000000 /* 20MHz crystal */ /* #define BOARD_XTAL_FREQ 20000000 */ /* 20MHz crystal */
//#define BOARD_XTAL_FREQ 16700000 /* 16.7MHz crystal */
/* #define BOARD_XTAL_FREQ 16700000 */ /* 16.7MHz crystal */
#define BOARD_XTAL_FREQ 16000000 /* 16MHz crystal */ #define BOARD_XTAL_FREQ 16000000 /* 16MHz crystal */
#define BOARD_CPU_CLOCK BOARD_XTAL_FREQ /* F_CPU = 16MHz */ #define BOARD_CPU_CLOCK BOARD_XTAL_FREQ /* F_CPU = 16MHz */
@@ -34,6 +34,10 @@
#include "atmega2560.h" #include "atmega2560.h"
#include "arduino_mega2560.h" #include "arduino_mega2560.h"
/****************************************************************************
* Private Functions
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Name: board_autoled_initialize * Name: board_autoled_initialize
****************************************************************************/ ****************************************************************************/