Sabre-6Quad: Some fixes for early compile issues
This commit is contained in:
parent
f9cf6a0759
commit
db78decb5c
@ -10,6 +10,7 @@ Contents
|
||||
- Status
|
||||
- Platform Features
|
||||
- Serial Console
|
||||
- LEDs and Buttons
|
||||
- Configurations
|
||||
|
||||
Status
|
||||
@ -135,6 +136,38 @@ NOTES:
|
||||
System Type -> Toolchain:
|
||||
CONFIG_ARMV7M_TOOLCHAIN_GNU_EABIW=y : GNU ARM EABI toolchain
|
||||
|
||||
LEDs and Buttons
|
||||
----------------
|
||||
|
||||
LEDs
|
||||
----
|
||||
A single LED is available driven by USR_DEF_RED_LED.
|
||||
|
||||
This LED is not used by the board port unless CONFIG_ARCH_LEDS is
|
||||
defined. In that case, the usage by the board port is defined in
|
||||
include/board.h and src/sam_autoleds.c. The LED is used to encode
|
||||
OS-related events as follows:
|
||||
|
||||
------------------- ----------------------- ------
|
||||
SYMBOL Meaning LED
|
||||
------------------- ----------------------- ------
|
||||
LED_STARTED NuttX has been started OFF
|
||||
LED_HEAPALLOCATE Heap has been allocated OFF
|
||||
LED_IRQSENABLED Interrupts enabled OFF
|
||||
LED_STACKCREATED Idle stack created ON
|
||||
LED_INIRQ In an interrupt N/C
|
||||
LED_SIGNAL In a signal handler N/C
|
||||
LED_ASSERTION An assertion failed N/C
|
||||
LED_PANIC The system has crashed FLASH
|
||||
|
||||
Thus if the LED is statically on, NuttX has successfully booted and is,
|
||||
apparently, running normally. If the LED is flashing at approximately
|
||||
2Hz, then a fatal error has been detected and the system has halted.
|
||||
|
||||
Buttons
|
||||
-------
|
||||
|
||||
|
||||
Configuration sub-directories
|
||||
-----------------------------
|
||||
|
||||
|
@ -48,6 +48,43 @@
|
||||
/* Clocking *************************************************************************/
|
||||
|
||||
/* LED definitions ******************************************************************/
|
||||
/* LEDs
|
||||
*
|
||||
* A single LED is available driven by USR_DEF_RED_LED.
|
||||
*/
|
||||
|
||||
/* LED index values for use with board_userled() */
|
||||
|
||||
#define BOARD_LED0 0
|
||||
#define BOARD_NLEDS 1
|
||||
|
||||
/* LED bits for use with board_userled_all() */
|
||||
|
||||
#define BOARD_LED0_BIT (1 << BOARD_LED0)
|
||||
|
||||
/* These LEDs are not used by the board port unless CONFIG_ARCH_LEDS is
|
||||
* defined. In that case, the usage by the board port is defined in
|
||||
* include/board.h and src/sam_autoleds.c. The LEDs are used to encode
|
||||
* OS-related events as follows:
|
||||
*
|
||||
* ------------------- ---------------------------- ------
|
||||
* SYMBOL Meaning LED
|
||||
* ------------------- ---------------------------- ------ */
|
||||
|
||||
#define LED_STARTED 0 /* NuttX has been started OFF */
|
||||
#define LED_HEAPALLOCATE 0 /* Heap has been allocated OFF */
|
||||
#define LED_IRQSENABLED 0 /* Interrupts enabled OFF */
|
||||
#define LED_STACKCREATED 1 /* Idle stack created ON */
|
||||
#define LED_INIRQ 2 /* In an interrupt N/C */
|
||||
#define LED_SIGNAL 2 /* In a signal handler N/C */
|
||||
#define LED_ASSERTION 2 /* An assertion failed N/C */
|
||||
#define LED_PANIC 3 /* The system has crashed FLASH */
|
||||
#undef LED_IDLE /* MCU is is sleep mode Not used */
|
||||
|
||||
/* Thus is LED is statically on, NuttX has successfully booted and is,
|
||||
* apparently, running normally. If LED is flashing at approximately
|
||||
* 2Hz, then a fatal error has been detected and the system has halted.
|
||||
*/
|
||||
|
||||
/* Button definitions ***************************************************************/
|
||||
|
||||
|
@ -68,7 +68,7 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
||||
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
||||
endif
|
||||
|
||||
ARCHCPUFLAGS = -mcpu=cortex-a5 -mfpu=vfpv4-d16
|
||||
ARCHCPUFLAGS = -mcpu=cortex-a9 -mfpu=vfpv4-d16
|
||||
ARCHCFLAGS = -fno-builtin
|
||||
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fno-rtti
|
||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
||||
|
@ -268,6 +268,9 @@ CONFIG_USEC_PER_TICK=10000
|
||||
# CONFIG_SYSTEM_TIME64 is not set
|
||||
# CONFIG_CLOCK_MONOTONIC is not set
|
||||
# CONFIG_JULIAN_TIME is not set
|
||||
CONFIG_START_YEAR=2016
|
||||
CONFIG_START_MONTH=3
|
||||
CONFIG_START_DAY=1
|
||||
CONFIG_MAX_WDOGPARMS=2
|
||||
CONFIG_PREALLOC_WDOGS=32
|
||||
CONFIG_WDOG_INTRESERVE=4
|
||||
@ -384,40 +387,13 @@ CONFIG_DEV_ZERO=y
|
||||
# Timer Driver Support
|
||||
#
|
||||
# CONFIG_TIMER is not set
|
||||
CONFIG_RTC=y
|
||||
CONFIG_RTC_DATETIME=y
|
||||
# CONFIG_RTC_ALARM is not set
|
||||
# CONFIG_RTC_DRIVER is not set
|
||||
# CONFIG_RTC_EXTERNAL is not set
|
||||
# CONFIG_RTC is not set
|
||||
# CONFIG_WATCHDOG is not set
|
||||
# CONFIG_ANALOG is not set
|
||||
CONFIG_AUDIO_DEVICES=y
|
||||
# CONFIG_VS1053 is not set
|
||||
CONFIG_AUDIO_WM8904=y
|
||||
CONFIG_WM8904_INITVOLUME=250
|
||||
CONFIG_WM8904_INFLIGHT=2
|
||||
CONFIG_WM8904_MSG_PRIO=1
|
||||
CONFIG_WM8904_BUFFER_SIZE=8192
|
||||
CONFIG_WM8904_NUM_BUFFERS=8
|
||||
CONFIG_WM8904_WORKER_STACKSIZE=1536
|
||||
# CONFIG_WM8904_REGDUMP is not set
|
||||
# CONFIG_WM8904_CLKDEBUG is not set
|
||||
# CONFIG_AUDIO_NULL is not set
|
||||
# CONFIG_AUDIO_DEVICES is not set
|
||||
# CONFIG_VIDEO_DEVICES is not set
|
||||
# CONFIG_BCH is not set
|
||||
CONFIG_INPUT=y
|
||||
# CONFIG_MOUSE is not set
|
||||
# CONFIG_INPUT_MAX11802 is not set
|
||||
# CONFIG_INPUT_TSC2007 is not set
|
||||
# CONFIG_INPUT_ADS7843E is not set
|
||||
CONFIG_INPUT_MXT=y
|
||||
CONFIG_MXT_THRESHX=5
|
||||
CONFIG_MXT_THRESHY=8
|
||||
CONFIG_MXT_NPOLLWAITERS=4
|
||||
# CONFIG_INPUT_STMPE811 is not set
|
||||
# CONFIG_BUTTONS is not set
|
||||
# CONFIG_DJOYSTICK is not set
|
||||
# CONFIG_AJOYSTICK is not set
|
||||
# CONFIG_INPUT is not set
|
||||
# CONFIG_IOEXPANDER is not set
|
||||
# CONFIG_LCD is not set
|
||||
|
||||
@ -568,40 +544,7 @@ CONFIG_MM_REGIONS=1
|
||||
#
|
||||
# Audio Support
|
||||
#
|
||||
CONFIG_AUDIO=y
|
||||
# CONFIG_AUDIO_MULTI_SESSION is not set
|
||||
|
||||
#
|
||||
# Audio Buffer Configuration
|
||||
#
|
||||
# CONFIG_AUDIO_LARGE_BUFFERS is not set
|
||||
CONFIG_AUDIO_NUM_BUFFERS=8
|
||||
CONFIG_AUDIO_BUFFER_NUMBYTES=8192
|
||||
# CONFIG_AUDIO_DRIVER_SPECIFIC_BUFFERS is not set
|
||||
|
||||
#
|
||||
# Supported Audio Formats
|
||||
#
|
||||
# CONFIG_AUDIO_FORMAT_AC3 is not set
|
||||
# CONFIG_AUDIO_FORMAT_DTS is not set
|
||||
CONFIG_AUDIO_FORMAT_PCM=y
|
||||
# CONFIG_AUDIO_FORMAT_MP3 is not set
|
||||
# CONFIG_AUDIO_FORMAT_MIDI is not set
|
||||
# CONFIG_AUDIO_FORMAT_WMA is not set
|
||||
# CONFIG_AUDIO_FORMAT_OGG_VORBIS is not set
|
||||
|
||||
#
|
||||
# Exclude Specific Audio Features
|
||||
#
|
||||
# CONFIG_AUDIO_EXCLUDE_VOLUME is not set
|
||||
# CONFIG_AUDIO_EXCLUDE_BALANCE is not set
|
||||
CONFIG_AUDIO_EXCLUDE_EQUALIZER=y
|
||||
# CONFIG_AUDIO_EXCLUDE_TONE is not set
|
||||
# CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME is not set
|
||||
# CONFIG_AUDIO_EXCLUDE_STOP is not set
|
||||
# CONFIG_AUDIO_EXCLUDE_FFORWARD is not set
|
||||
CONFIG_AUDIO_EXCLUDE_REWIND=y
|
||||
# CONFIG_AUDIO_CUSTOM_DEV_PATH is not set
|
||||
# CONFIG_AUDIO is not set
|
||||
|
||||
#
|
||||
# Wireless Support
|
||||
@ -711,15 +654,7 @@ CONFIG_BUILTIN_PROXY_STACKSIZE=1024
|
||||
CONFIG_EXAMPLES_NSH=y
|
||||
CONFIG_EXAMPLES_NSH_CXXINITIALIZE=y
|
||||
# CONFIG_EXAMPLES_NULL is not set
|
||||
CONFIG_EXAMPLES_NX=y
|
||||
CONFIG_EXAMPLES_NX_VPLANE=0
|
||||
CONFIG_EXAMPLES_NX_DEVNO=0
|
||||
CONFIG_EXAMPLES_NX_DEFAULT_COLORS=y
|
||||
CONFIG_EXAMPLES_NX_DEFAULT_FONT=y
|
||||
CONFIG_EXAMPLES_NX_BPP=16
|
||||
# CONFIG_EXAMPLES_NX_RAWWINDOWS is not set
|
||||
CONFIG_EXAMPLES_NX_TOOLBAR_HEIGHT=16
|
||||
# CONFIG_EXAMPLES_NX_EXTERNINIT is not set
|
||||
# CONFIG_EXAMPLES_NX is not set
|
||||
# CONFIG_EXAMPLES_NXTERM is not set
|
||||
# CONFIG_EXAMPLES_NXFFS is not set
|
||||
# CONFIG_EXAMPLES_NXHELLO is not set
|
||||
@ -901,7 +836,6 @@ CONFIG_NSH_ARCHINIT=y
|
||||
# CONFIG_SYSTEM_INSTALL is not set
|
||||
# CONFIG_SYSTEM_HEX2BIN is not set
|
||||
# CONFIG_SYSTEM_HEXED is not set
|
||||
# CONFIG_SYSTEM_NXPLAYER is not set
|
||||
# CONFIG_SYSTEM_RAMTEST is not set
|
||||
CONFIG_READLINE_HAVE_EXTMATCH=y
|
||||
CONFIG_SYSTEM_READLINE=y
|
||||
|
@ -39,6 +39,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include "sabre-6quad.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
// /************************************************************************************
|
||||
/************************************************************************************
|
||||
* configs/sabre-6quad/src/sabre-6quad.h
|
||||
*
|
||||
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||
|
Loading…
x
Reference in New Issue
Block a user