mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
nxp_fmuk66-v3 Updates for NuttX 9.1.0-
nxp_fmuk66-v3: defconfig MMCSD enable multiblock nxp_fmuk66-v1:Disable multiblock as it fails
This commit is contained in:
committed by
Daniel Agar
parent
aa1cb370e4
commit
8a673c8a3d
@@ -107,7 +107,6 @@ CONFIG_LIBC_FLOATINGPOINT=y
|
|||||||
CONFIG_LIBC_STRERROR=y
|
CONFIG_LIBC_STRERROR=y
|
||||||
CONFIG_LPUART0_BAUD=57600
|
CONFIG_LPUART0_BAUD=57600
|
||||||
CONFIG_LPUART0_SERIAL_CONSOLE=y
|
CONFIG_LPUART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_MAX_WDOGPARMS=2
|
|
||||||
CONFIG_MEMSET_64BIT=y
|
CONFIG_MEMSET_64BIT=y
|
||||||
CONFIG_MEMSET_OPTSPEED=y
|
CONFIG_MEMSET_OPTSPEED=y
|
||||||
CONFIG_MMCSD=y
|
CONFIG_MMCSD=y
|
||||||
@@ -167,7 +166,6 @@ CONFIG_NSH_STRERROR=y
|
|||||||
CONFIG_NSH_VARS=y
|
CONFIG_NSH_VARS=y
|
||||||
CONFIG_PIPES=y
|
CONFIG_PIPES=y
|
||||||
CONFIG_PREALLOC_TIMERS=50
|
CONFIG_PREALLOC_TIMERS=50
|
||||||
CONFIG_PREALLOC_WDOGS=50
|
|
||||||
CONFIG_PRIORITY_INHERITANCE=y
|
CONFIG_PRIORITY_INHERITANCE=y
|
||||||
CONFIG_PTHREAD_STACK_MIN=512
|
CONFIG_PTHREAD_STACK_MIN=512
|
||||||
CONFIG_RAMTRON_SETSPEED=y
|
CONFIG_RAMTRON_SETSPEED=y
|
||||||
@@ -203,7 +201,6 @@ CONFIG_SYSTEM_CUTERM_DEFAULT_BAUD=57600
|
|||||||
CONFIG_SYSTEM_NSH=y
|
CONFIG_SYSTEM_NSH=y
|
||||||
CONFIG_SYSTEM_PING=y
|
CONFIG_SYSTEM_PING=y
|
||||||
CONFIG_TASK_NAME_SIZE=24
|
CONFIG_TASK_NAME_SIZE=24
|
||||||
CONFIG_TIME_EXTENDED=y
|
|
||||||
CONFIG_UART1_RXBUFSIZE=600
|
CONFIG_UART1_RXBUFSIZE=600
|
||||||
CONFIG_UART1_TXBUFSIZE=1100
|
CONFIG_UART1_TXBUFSIZE=1100
|
||||||
CONFIG_UART4_BAUD=57600
|
CONFIG_UART4_BAUD=57600
|
||||||
|
|||||||
@@ -82,11 +82,6 @@ SECTIONS
|
|||||||
*(.gnu.linkonce.r.*)
|
*(.gnu.linkonce.r.*)
|
||||||
_etext = ABSOLUTE(.);
|
_etext = ABSOLUTE(.);
|
||||||
|
|
||||||
/*
|
|
||||||
* This is a hack to make the newlib libm __errno() call
|
|
||||||
* use the NuttX get_errno_ptr() function.
|
|
||||||
*/
|
|
||||||
__errno = get_errno_ptr;
|
|
||||||
. = ALIGN(8);
|
. = ALIGN(8);
|
||||||
FILL(0xff)
|
FILL(0xff)
|
||||||
. += 8;
|
. += 8;
|
||||||
|
|||||||
@@ -108,11 +108,9 @@ CONFIG_LIBC_FLOATINGPOINT=y
|
|||||||
CONFIG_LIBC_STRERROR=y
|
CONFIG_LIBC_STRERROR=y
|
||||||
CONFIG_LPUART0_BAUD=57600
|
CONFIG_LPUART0_BAUD=57600
|
||||||
CONFIG_LPUART0_SERIAL_CONSOLE=y
|
CONFIG_LPUART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_MAX_WDOGPARMS=2
|
|
||||||
CONFIG_MEMSET_64BIT=y
|
CONFIG_MEMSET_64BIT=y
|
||||||
CONFIG_MEMSET_OPTSPEED=y
|
CONFIG_MEMSET_OPTSPEED=y
|
||||||
CONFIG_MMCSD=y
|
CONFIG_MMCSD=y
|
||||||
CONFIG_MMCSD_MULTIBLOCK_DISABLE=y
|
|
||||||
CONFIG_MMCSD_SDIO=y
|
CONFIG_MMCSD_SDIO=y
|
||||||
CONFIG_MTD=y
|
CONFIG_MTD=y
|
||||||
CONFIG_MTD_BYTE_WRITE=y
|
CONFIG_MTD_BYTE_WRITE=y
|
||||||
@@ -164,7 +162,6 @@ CONFIG_NSH_STRERROR=y
|
|||||||
CONFIG_NSH_VARS=y
|
CONFIG_NSH_VARS=y
|
||||||
CONFIG_PIPES=y
|
CONFIG_PIPES=y
|
||||||
CONFIG_PREALLOC_TIMERS=50
|
CONFIG_PREALLOC_TIMERS=50
|
||||||
CONFIG_PREALLOC_WDOGS=50
|
|
||||||
CONFIG_PRIORITY_INHERITANCE=y
|
CONFIG_PRIORITY_INHERITANCE=y
|
||||||
CONFIG_PTHREAD_STACK_MIN=512
|
CONFIG_PTHREAD_STACK_MIN=512
|
||||||
CONFIG_RAMTRON_SETSPEED=y
|
CONFIG_RAMTRON_SETSPEED=y
|
||||||
@@ -200,7 +197,6 @@ CONFIG_SYSTEM_CUTERM_DEFAULT_BAUD=57600
|
|||||||
CONFIG_SYSTEM_NSH=y
|
CONFIG_SYSTEM_NSH=y
|
||||||
CONFIG_SYSTEM_PING=y
|
CONFIG_SYSTEM_PING=y
|
||||||
CONFIG_TASK_NAME_SIZE=24
|
CONFIG_TASK_NAME_SIZE=24
|
||||||
CONFIG_TIME_EXTENDED=y
|
|
||||||
CONFIG_UART1_RXBUFSIZE=600
|
CONFIG_UART1_RXBUFSIZE=600
|
||||||
CONFIG_UART1_TXBUFSIZE=1100
|
CONFIG_UART1_TXBUFSIZE=1100
|
||||||
CONFIG_UART4_BAUD=57600
|
CONFIG_UART4_BAUD=57600
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
add_library(drivers_board
|
add_library(drivers_board
|
||||||
autoleds.c
|
autoleds.c
|
||||||
automount.c
|
automount.c
|
||||||
can.c
|
|
||||||
i2c.cpp
|
i2c.cpp
|
||||||
init.c
|
init.c
|
||||||
led.c
|
led.c
|
||||||
|
|||||||
@@ -1,129 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
*
|
|
||||||
* Copyright (C) 2016, 2018 PX4 Development Team. All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in
|
|
||||||
* the documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
* 3. Neither the name PX4 nor the names of its contributors may be
|
|
||||||
* used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file can.c
|
|
||||||
*
|
|
||||||
* Board-specific CAN functions.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Included Files
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
#include <px4_platform_common/px4_config.h>
|
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include <nuttx/can/can.h>
|
|
||||||
#include <arch/board/board.h>
|
|
||||||
|
|
||||||
#include <chip.h>
|
|
||||||
#include <kinetis.h>
|
|
||||||
#include "up_arch.h"
|
|
||||||
|
|
||||||
#include "board_config.h"
|
|
||||||
|
|
||||||
#ifdef CONFIG_CAN
|
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
************************************************************************************/
|
|
||||||
/* Configuration ********************************************************************/
|
|
||||||
|
|
||||||
#if defined(KINETIS_FLEXCAN0) && defined(KINETIS_FLEXCAN1)
|
|
||||||
# warning "Both CAN0 and CAN1 are enabled. Assuming only CAN0."
|
|
||||||
# undef KINETIS_FLEXCAN0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef KINETIS_FLEXCAN0
|
|
||||||
# define CAN_PORT 1
|
|
||||||
#else
|
|
||||||
# define CAN_PORT 2
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Public Functions
|
|
||||||
************************************************************************************/
|
|
||||||
int can_devinit(void);
|
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Name: can_devinit
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* All architectures must provide the following interface to work with
|
|
||||||
* examples/can.
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
int can_devinit(void)
|
|
||||||
{
|
|
||||||
static bool initialized = false;
|
|
||||||
struct can_dev_s *can;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
/* Check if we have already initialized */
|
|
||||||
|
|
||||||
if (!initialized) {
|
|
||||||
/* Call kinetis_caninitialize() to get an instance of the CAN interface */
|
|
||||||
|
|
||||||
can = kinetis_caninitialize(CAN_PORT);
|
|
||||||
|
|
||||||
if (can == NULL) {
|
|
||||||
canerr("ERROR: Failed to get CAN interface\n");
|
|
||||||
return -ENODEV;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Register the CAN driver at "/dev/can0" */
|
|
||||||
|
|
||||||
ret = can_register("/dev/can0", can);
|
|
||||||
|
|
||||||
if (ret < 0) {
|
|
||||||
canerr("ERROR: can_register failed: %d\n", ret);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Now we are initialized */
|
|
||||||
|
|
||||||
initialized = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
#include <hardware/kinetis_sim.h>
|
#include <hardware/kinetis_sim.h>
|
||||||
#include "board_config.h"
|
#include "board_config.h"
|
||||||
|
|
||||||
#include "up_arch.h"
|
#include "arm_arch.h"
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
#include <drivers/drv_hrt.h>
|
#include <drivers/drv_hrt.h>
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ideally we'd be able to get these from up_internal.h,
|
* Ideally we'd be able to get these from arm_internal.h,
|
||||||
* but since we want to be able to disable the NuttX use
|
* but since we want to be able to disable the NuttX use
|
||||||
* of leds for system indication at will and there is no
|
* of leds for system indication at will and there is no
|
||||||
* separate switch, we need to build independent of the
|
* separate switch, we need to build independent of the
|
||||||
@@ -293,14 +293,6 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
|||||||
kinetis_netinitialize(0);
|
kinetis_netinitialize(0);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef CONFIG_KINETIS_FLEXCAN0
|
|
||||||
kinetis_caninitialize(0);
|
|
||||||
# endif
|
|
||||||
|
|
||||||
# ifdef CONFIG_KINETIS_FLEXCAN1
|
|
||||||
kinetis_caninitialize(1);
|
|
||||||
# endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ideally we'd be able to get these from up_internal.h,
|
* Ideally we'd be able to get these from arm_internal.h,
|
||||||
* but since we want to be able to disable the NuttX use
|
* but since we want to be able to disable the NuttX use
|
||||||
* of leds for system indication at will and there is no
|
* of leds for system indication at will and there is no
|
||||||
* separate switch, we need to build independent of the
|
* separate switch, we need to build independent of the
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
#include <nuttx/spi/spi.h>
|
#include <nuttx/spi/spi.h>
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
#include "up_arch.h"
|
#include "arm_arch.h"
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include <kinetis.h>
|
#include <kinetis.h>
|
||||||
#include "board_config.h"
|
#include "board_config.h"
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
#include <nuttx/usb/usbdev.h>
|
#include <nuttx/usb/usbdev.h>
|
||||||
#include <nuttx/usb/usbdev_trace.h>
|
#include <nuttx/usb/usbdev_trace.h>
|
||||||
|
|
||||||
#include <up_arch.h>
|
#include <arm_arch.h>
|
||||||
#include <kinetis.h>
|
#include <kinetis.h>
|
||||||
#include <kinetis_usbotg.h>
|
#include <kinetis_usbotg.h>
|
||||||
#include "board_config.h"
|
#include "board_config.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user