Cleanup of configs/teensy-2.0/src files

This commit is contained in:
Gregory Nutt
2016-06-13 16:03:16 -06:00
parent 749de40768
commit 191d875b05
4 changed files with 11 additions and 46 deletions
+2 -10
View File
@@ -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
} }
+4 -12
View File
@@ -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
****************************************************************************/ ****************************************************************************/
+4 -10
View File
@@ -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
+1 -14
View File
@@ -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"