mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
boards: avr: nxstyle fixes
Fixes to pass CI Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
committed by
Xiang Xiao
parent
3fd1126580
commit
9ced5cae84
@@ -36,8 +36,8 @@
|
||||
|
||||
/* Clocking *****************************************************************/
|
||||
|
||||
/* Oscillator setup: RCOSC, OSC32, OSC0, OSC1. Only RCOSC, OSC0, or PLL0 can
|
||||
* drive the main clock.
|
||||
/* Oscillator setup: RCOSC, OSC32, OSC0, OSC1. Only RCOSC, OSC0, or PLL0
|
||||
* can drive the main clock.
|
||||
*/
|
||||
|
||||
/* The RCOSC frequency needs to be calibrated! */
|
||||
@@ -50,8 +50,8 @@
|
||||
#define AVR32_FOSC0 12000000 /* OSC0 frequency in Hz */
|
||||
#define AVR32_OSC0STARTUP 3 /* OSC0 startup time in RCOSC periods. */
|
||||
|
||||
/* #define AVR32_FOSC1 12000000 OSC1 frequency: Hz.
|
||||
* #define AVR32_OSC1STARTUP 3 OSC1 startup time in RCOSC periods.
|
||||
/* #define AVR32_FOSC1 12000000 OSC1 frequency: Hz.
|
||||
* #define AVR32_OSC1STARTUP 3 OSC1 startup time in RCOSC periods.
|
||||
*/
|
||||
|
||||
/* PLL setup
|
||||
@@ -128,9 +128,12 @@
|
||||
|
||||
/* 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 */
|
||||
|
||||
/* LED1 LED2 LED1 LED2 */
|
||||
#define LED_STARTED 0 /* OFF OFF OFF OFF */
|
||||
#define LED_HEAPALLOCATE 0 /* OFF OFF OFF OFF */
|
||||
@@ -143,7 +146,9 @@
|
||||
|
||||
/* 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 BUTTON2 2 /* Bit 1: Button 2 */
|
||||
|
||||
@@ -52,8 +52,8 @@
|
||||
*
|
||||
* Description:
|
||||
* All AVR32 AT32UC3 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
|
||||
* This entry point is called early in the initialization - after all
|
||||
* memory has been configured and mapped but before any devices have been
|
||||
* initialized.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
* Public Functions Definitions
|
||||
****************************************************************************/
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
@@ -51,8 +51,8 @@
|
||||
*
|
||||
* Description:
|
||||
* All AT90USB 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
|
||||
* This entry point is called early in the initialization - after all
|
||||
* memory has been configured and mapped but before any devices have been
|
||||
* initialized.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -53,7 +53,8 @@ void at90usb_boardinitialize(void)
|
||||
{
|
||||
#ifdef CONFIG_AVR_SPI
|
||||
/* 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)
|
||||
|
||||
@@ -105,10 +105,10 @@ void weak_function at90usb_spidev_initialize(void)
|
||||
* Name: avr_spiselect and avr_spistatus
|
||||
*
|
||||
* Description:
|
||||
* The external functions, avr_spiselect and avr_spistatus must be provided
|
||||
* by board-specific logic. They are implementations of the select and
|
||||
* status methods of the SPI interface defined by struct spi_ops_s
|
||||
* (see include/nuttx/spi/spi.h).
|
||||
* The external functions, avr_spiselect and avr_spistatus must be
|
||||
* provided by board-specific logic. They are implementations of the
|
||||
* select and status methods of the SPI interface defined by struct
|
||||
* spi_ops_s (see include/nuttx/spi/spi.h).
|
||||
* All other methods (including avr_spibus_initialize()) are provided by
|
||||
* common AVR logic.
|
||||
* 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
|
||||
* chip select pins.
|
||||
* 2. Provide avr_spiselect() and avr_spistatus() functions in your
|
||||
* board-specific logic. These functions will perform chip selection and
|
||||
* status operations in the way your board is configured.
|
||||
* board-specific logic. These functions will perform chip selection
|
||||
* and status operations in the way your board is configured.
|
||||
* 3. Add a calls to at90usb_spidev_initialize() in your low level
|
||||
* application initialization logic
|
||||
* 4. The handle returned by avr_spibus_initialize() may then be used to
|
||||
|
||||
@@ -45,7 +45,8 @@ extern "C"
|
||||
* Name: at90usb_spidev_initialize
|
||||
*
|
||||
* 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 */
|
||||
|
||||
//#define BOARD_XTAL_FREQ 20000000 /* 20MHz crystal */
|
||||
//#define BOARD_XTAL_FREQ 16700000 /* 16.7MHz crystal */
|
||||
/* #define BOARD_XTAL_FREQ 20000000 */ /* 20MHz crystal */
|
||||
|
||||
/* #define BOARD_XTAL_FREQ 16700000 */ /* 16.7MHz crystal */
|
||||
|
||||
#define BOARD_XTAL_FREQ 16000000 /* 16MHz crystal */
|
||||
#define BOARD_CPU_CLOCK BOARD_XTAL_FREQ /* F_CPU = 16MHz */
|
||||
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
#include "atmega2560.h"
|
||||
#include "arduino_mega2560.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_autoled_initialize
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user