mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Cleanup of configs/teensy-2.0/src files
This commit is contained in:
@@ -49,14 +49,6 @@
|
|||||||
#include "at90usb.h"
|
#include "at90usb.h"
|
||||||
#include "teensy-20.h"
|
#include "teensy-20.h"
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
@@ -73,20 +65,20 @@
|
|||||||
|
|
||||||
void at90usb_boardinitialize(void)
|
void at90usb_boardinitialize(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_AVR_SPI
|
||||||
/* Configure SSP chip selects if 1) at least one SSP is enabled, and 2) the weak
|
/* 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.
|
* function at90usb_spidev_initialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_AVR_SPI
|
|
||||||
if (at90usb_spidev_initialize)
|
if (at90usb_spidev_initialize)
|
||||||
{
|
{
|
||||||
at90usb_spidev_initialize();
|
at90usb_spidev_initialize();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
|
||||||
at90usb_led_initialize();
|
at90usb_led_initialize();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,19 +57,15 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* CONFIG_DEBUG_LEDS enables debug output from this file (needs CONFIG_DEBUG_FEATURES
|
/* CONFIG_DEBUG_LEDS enables debug output from this file */
|
||||||
* with CONFIG_DEBUG_INFO too)
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_LEDS
|
#ifdef CONFIG_DEBUG_LEDS
|
||||||
# define lederr llerr
|
# define lederr llerr
|
||||||
# ifdef CONFIG_DEBUG_INFO
|
# define ledwarn llwarn
|
||||||
# define ledinfo llerr
|
# define ledinfo llinfo
|
||||||
# else
|
|
||||||
# define ledinfo(x...)
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define lederr(x...)
|
# define lederr(x...)
|
||||||
|
# define ledwarn(x...)
|
||||||
# define ledinfo(x...)
|
# define ledinfo(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -79,10 +75,6 @@
|
|||||||
|
|
||||||
static bool g_ncoff;
|
static bool g_ncoff;
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
#include <nuttx/mmcsd.h>
|
#include <nuttx/mmcsd.h>
|
||||||
#include <nuttx/spi/spi.h>
|
#include <nuttx/spi/spi.h>
|
||||||
|
|
||||||
|
#include "avr.h"
|
||||||
#include "at90usb.h"
|
#include "at90usb.h"
|
||||||
#include "teensy-20.h"
|
#include "teensy-20.h"
|
||||||
|
|
||||||
@@ -62,17 +63,10 @@
|
|||||||
# define CONFIG_SYSTEM_USBMSC_DEVMINOR1 0
|
# define CONFIG_SYSTEM_USBMSC_DEVMINOR1 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* PORT and SLOT number probably depend on the board configuration */
|
/* MMC/SD PORT and SLOT number */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_BOARD_TEENSY_20
|
#define AVR_MMCSDSPIPORTNO 0
|
||||||
# undef AVR_MMCSDSPIPORTNO
|
#define AVR_MMCSDSLOTNO 0
|
||||||
# define AVR_MMCSDSPIPORTNO 0
|
|
||||||
# undef AVR_MMCSDSLOTNO
|
|
||||||
# define AVR_MMCSDSLOTNO 0
|
|
||||||
#else
|
|
||||||
/* Add configuration for new AVR boards here */
|
|
||||||
# error "Unrecognized AVR board"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
|
|||||||
@@ -43,24 +43,11 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
|
||||||
/* Configuration ************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Public Types
|
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Inline Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Public Function Prototypes
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#define EXTERN extern "C"
|
#define EXTERN extern "C"
|
||||||
extern "C"
|
extern "C"
|
||||||
|
|||||||
Reference in New Issue
Block a user