fix led panic feature

This commit is contained in:
ThomasNS 2023-09-08 18:16:42 +02:00 committed by Xiang Xiao
parent 5d7f2fdf16
commit a2c806027f
95 changed files with 236 additions and 240 deletions

View File

@ -26,9 +26,8 @@
****************************************************************************/
#include <nuttx/config.h>
#include <arch/board/board.h>
#include "chip.h"
#include "hardware/a1x_piocfg.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -47,6 +47,7 @@
#include "arm_internal.h"
#include "chip.h"
#include "hardware/a1x_uart.h"
#include "a1x_config.h"
#include "a1x_pio.h"
#include "a1x_serial.h"

View File

@ -26,12 +26,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include <arch/board/board.h>
#include "hardware/a1x_uart.h"
#include "a1x_config.h"
#include "a1x_pio.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -31,7 +31,6 @@
#include <nuttx/arch.h>
#include <arch/irq.h>
#include <arch/board/board.h>
#include "arm_internal.h"
#include "hardware/a1x_timer.h"

View File

@ -152,13 +152,13 @@
#define PIO_CSI1_D22 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN22)
#define PIO_CSI1_D23 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN23)
#define PIO_CSI1_FIELD (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN25)
#define PIO_CSI1_HSYNC (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN2)
#define PIO_CSI1_HSYNC (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN26)
#define PIO_CSI1_HSYNC_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN2)
#define PIO_CSI1_HSYNC_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN26)
#define PIO_CSI1_MCLK (PIO_PERIPH3 | PIO_PORT_PIOD | PIO_PIN20)
#define PIO_CSI1_PCK (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN0)
#define PIO_CSI1_PCLK (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN24)
#define PIO_CSI1_VSYNC (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN3)
#define PIO_CSI1_VSYNC (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN27)
#define PIO_CSI1_VSYNC_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN3)
#define PIO_CSI1_VSYNC_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN27)
/* Ethernet MAC */
@ -414,10 +414,10 @@
#define PIO_SDC0_D2 (PIO_PERIPH2 | PIO_PORT_PIOF | PIO_PIN5)
#define PIO_SDC0_D3 (PIO_PERIPH2 | PIO_PORT_PIOF | PIO_PIN4)
#define PIO_SDC1_CLK (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN1)
#define PIO_SDC1_CLK (PIO_PERIPH5 | PIO_PORT_PIOH | PIO_PIN23)
#define PIO_SDC1_CMD (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN0)
#define PIO_SDC1_CMD (PIO_PERIPH5 | PIO_PORT_PIOH | PIO_PIN22)
#define PIO_SDC1_CLK_1 (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN1)
#define PIO_SDC1_CLK_2 (PIO_PERIPH5 | PIO_PORT_PIOH | PIO_PIN23)
#define PIO_SDC1_CMD_1 (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN0)
#define PIO_SDC1_CMD_2 (PIO_PERIPH5 | PIO_PORT_PIOH | PIO_PIN22)
#define PIO_SDC1_D0_1 (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN2)
#define PIO_SDC1_D0_2 (PIO_PERIPH5 | PIO_PORT_PIOH | PIO_PIN24)
#define PIO_SDC1_D1_1 (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN3)

View File

@ -47,6 +47,7 @@
#include "lpc31_i2c.h"
#include "lpc31_evntrtr.h"
#include "lpc31_syscreg.h"
#include "lpc31_cgudrvr.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -39,6 +39,7 @@
#include "lpc31_spi.h"
#include "lpc31_ioconfig.h"
#include "lpc31_cgudrvr.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -35,6 +35,7 @@
#include "arm_internal.h"
#include "lpc31_timer.h"
#include "lpc31.h"
#include "lpc31_cgudrvr.h"
/****************************************************************************
* Private Functions

View File

@ -47,6 +47,7 @@
#include "lpc31_usbotg.h"
#include "lpc31_evntrtr.h"
#include "lpc31_syscreg.h"
#include "lpc31_cgudrvr.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -31,6 +31,7 @@
#include <arch/board/board.h>
#include <arch/board/board_liberodefs.h>
#include "mpfs_gpio.h"
#include "riscv_internal.h"
#include "hardware/mpfs_cache.h"

View File

@ -40,6 +40,7 @@
#include <arch/board/board.h>
#include "mpfs_gpio.h"
#include "mpfs_corespi.h"
#include "hardware/mpfs_corespi.h"
#include "hardware/mpfs_sysreg.h"

View File

@ -43,6 +43,7 @@
#include <arch/board/board.h>
#include "mpfs_gpio.h"
#include "mpfs_i2c.h"
#include "riscv_internal.h"
#include "hardware/mpfs_i2c.h"

View File

@ -40,6 +40,7 @@
#include <arch/board/board.h>
#include "mpfs_gpio.h"
#include "mpfs_spi.h"
#include "hardware/mpfs_spi.h"
#include "hardware/mpfs_sysreg.h"

View File

@ -50,6 +50,7 @@
#include <arch/board/board.h>
#include "hardware/mpfs_usb.h"
#include "mpfs_gpio.h"
#include "riscv_internal.h"
#include "chip.h"

View File

@ -27,8 +27,6 @@
#include <nuttx/config.h>
#include "hardware/a1x_piocfg.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -27,8 +27,6 @@
#include <nuttx/config.h>
#include "hardware/am335x_pinmux.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -27,11 +27,6 @@
#include <nuttx/config.h>
#include <stdbool.h>
#include "hardware/efm32_cmu.h"
#include "hardware/efm32_usart.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -27,11 +27,6 @@
#include <nuttx/config.h>
#include <stdbool.h>
#include "hardware/efm32_cmu.h"
#include "hardware/efm32_usart.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -27,11 +27,6 @@
#include <nuttx/config.h>
#include <stdbool.h>
#include "hardware/efm32_cmu.h"
#include "hardware/efm32_usart.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -26,8 +26,6 @@
#include <nuttx/config.h>
#include "eoss3_gpio.h"
#define BOARD_HCLK_FREQUENCY 79790000
#define BOARD_CPU_FREQUENCY 79790000

View File

@ -32,6 +32,7 @@
#include "chip.h"
#include "arm_internal.h"
#include "eoss3_gpio.h"
#ifdef CONFIG_ARCH_LEDS

View File

@ -28,7 +28,6 @@
#include <nuttx/config.h>
#ifndef __ASSEMBLY__
# include <stdint.h>
# include "lpc31_cgudrvr.h"
#endif
/****************************************************************************

View File

@ -28,7 +28,6 @@
#include <nuttx/config.h>
#ifndef __ASSEMBLY__
# include <stdint.h>
# include "lpc31_cgudrvr.h"
#endif
/****************************************************************************

View File

@ -28,7 +28,6 @@
#include <nuttx/config.h>
#ifndef __ASSEMBLY__
# include <stdint.h>
# include "lpc31_cgudrvr.h"
#endif
/****************************************************************************

View File

@ -32,8 +32,6 @@
# include <nuttx/irq.h>
#endif
#include "hardware/nrf53_osc.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,8 +32,6 @@
# include <nuttx/irq.h>
#endif
#include "hardware/nrf53_osc.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -26,7 +26,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include "sam_pmc.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -26,7 +26,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include "sam_pmc.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -26,7 +26,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include "sam_pmc.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -26,7 +26,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include "sam_pmc.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -26,7 +26,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include "sam_pmc.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -26,7 +26,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include "sam_pmc.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -32,12 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32_rcc.h"
# include "stm32_sdio.h"
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,9 +30,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
#include <nuttx/arch.h>

View File

@ -31,9 +31,6 @@
# include <stdbool.h>
#endif
#include "stm32_rcc.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -31,6 +31,7 @@
#include <arch/board/board.h>
#include "stm32.h"
#include "stm32_gpio.h"
#include "stm32_sdio.h"

View File

@ -29,9 +29,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -29,9 +29,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -29,9 +29,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -31,10 +31,6 @@
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -29,6 +29,8 @@
#include <nuttx/compiler.h>
#include <stdint.h>
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -28,6 +28,8 @@
#include <arch/board/board.h>
#include "stm32.h"
#include "arm_internal.h"
#include "mikroe-stm32f4.h"

View File

@ -32,10 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,10 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,10 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,10 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -27,6 +27,8 @@
#include <nuttx/config.h>
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,10 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,10 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,10 +30,6 @@
# include <stdint.h>
#endif
#ifdef __KERNEL__
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,6 +30,8 @@
#include <stdint.h>
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,8 +30,6 @@
# include <stdint.h>
#endif
#include <stm32.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,8 +30,6 @@
# include <stdint.h>
#endif
#include <stm32.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,6 +30,8 @@
#include <stdint.h>
#include <stm32.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,10 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -27,6 +27,8 @@
#include <nuttx/config.h>
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,12 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32_rcc.h"
# include "stm32_sdio.h"
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,6 +30,8 @@
#include <stdint.h>
#include <arch/stm32/chip.h>
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,8 +30,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -29,6 +29,8 @@
#include <nuttx/compiler.h>
#include <stdint.h>
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,12 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32_rcc.h"
# include "stm32_sdio.h"
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -29,6 +29,8 @@
#include <nuttx/compiler.h>
#include <stdint.h>
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,9 +30,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -30,8 +30,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -29,6 +29,8 @@
#include <nuttx/compiler.h>
#include <stdint.h>
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,9 +30,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -29,6 +29,8 @@
#include <nuttx/compiler.h>
#include <stdint.h>
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -31,9 +31,6 @@
# include <stdbool.h>
#endif
#include "stm32_rcc.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,9 +30,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
#include <nuttx/arch.h>

View File

@ -31,10 +31,6 @@
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -29,9 +29,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -31,8 +31,6 @@
# include <stdint.h>
#endif
#include "stm32_rcc.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -32,10 +32,6 @@
# include <stdbool.h>
#endif
#ifdef __KERNEL__
# include "stm32.h"
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -31,9 +31,6 @@
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -33,6 +33,8 @@
#include <arch/stm32/chip.h>
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,8 +30,6 @@
# include <stdint.h>
#endif
#include <stm32.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,8 +30,6 @@
# include <stdint.h>
#endif
#include <stm32.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -29,6 +29,7 @@
#include <nuttx/compiler.h>
#include <stdint.h>
#include <stm32.h>
/****************************************************************************
* Pre-processor Definitions

View File

@ -29,8 +29,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -31,8 +31,6 @@
# include <stdint.h>
#endif
#include "stm32_rcc.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -31,8 +31,6 @@
# include <stdint.h>
#endif
#include "stm32_rcc.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -31,10 +31,6 @@
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
/* Clocking *****************************************************************/
#if defined(CONFIG_ARCH_CHIP_STM32F107VC)

View File

@ -29,6 +29,8 @@
#include <nuttx/compiler.h>
#include <stdint.h>
#include "stm32_rcc.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -26,7 +26,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include <stm32_gpio.h>
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif

View File

@ -26,7 +26,6 @@
****************************************************************************/
#include <nuttx/config.h>
#include <stm32_gpio.h>
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif

View File

@ -58,7 +58,6 @@
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "chip.h"
/****************************************************************************
* Pre-processor Definitions

View File

@ -0,0 +1,59 @@
/****************************************************************************
* boards/arm64/imx8/imx8qm-mek/include/board.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __BOARDS_ARM64_IMX8_IMX8QM-MEK_INCLUDE_BOARD_H
#define __BOARDS_ARM64_IMX8_IMX8QM-MEK_INCLUDE_BOARD_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
#ifndef __ASSEMBLY__
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
}
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARDS_ARM64_IMX8_IMX8QM-MEK_INCLUDE_BOARD_H */

View File

@ -0,0 +1,59 @@
/****************************************************************************
* boards/arm64/qemu/qemu-armv8a/include/board.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __BOARDS_ARM64_QEMU_QEMU_ARMV8A_INCLUDE_BOARD_H
#define __BOARDS_ARM64_QEMU_QEMU_ARMV8A_INCLUDE_BOARD_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
#ifndef __ASSEMBLY__
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
}
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARDS_ARM64_QEMU_QEMU_ARMV8A_INCLUDE_BOARD_H */

View File

@ -5,6 +5,7 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
# CONFIG_ARCH_LEDS is not set
CONFIG_ARCH="arm64"
CONFIG_ARCH_ARM64=y
CONFIG_ARCH_BOARD="nanopi_m4"

View File

@ -5,6 +5,7 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
# CONFIG_ARCH_LEDS is not set
CONFIG_ARCH="arm64"
CONFIG_ARCH_ARM64=y
CONFIG_ARCH_BOARD="pinephonepro"

View File

@ -31,8 +31,6 @@
# include <stdint.h>
#endif
#include "c906.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -31,10 +31,6 @@
# include <stdint.h>
#endif
#include "k210.h"
#include "k210_fpioa.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -31,8 +31,6 @@
# include <stdint.h>
#endif
#include "mpfs_gpio.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -31,8 +31,6 @@
# include <stdint.h>
#endif
#include "mpfs_gpio.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -30,6 +30,7 @@
#include <nuttx/irq.h>
#include <nuttx/tls.h>
#include <nuttx/signal.h>
#include <arch/board/board.h>
#include <nuttx/panic_notifier.h>
#include <nuttx/reboot_notifier.h>
@ -585,6 +586,9 @@ void _assert(FAR const char *filename, int linenum,
notifier_data.msg = msg;
panic_notifier_call_chain(fatal ? PANIC_KERNEL : PANIC_TASK,
&notifier_data);
#ifdef CONFIG_ARCH_LEDS
board_autoled_on(LED_ASSERTION);
#endif
/* Flush any buffered SYSLOG data (from prior to the assertion) */
@ -674,6 +678,13 @@ void _assert(FAR const char *filename, int linenum,
#else
for (; ; )
{
#ifdef CONFIG_ARCH_LEDS
/* FLASH LEDs a 2Hz */
board_autoled_on(LED_PANIC);
up_mdelay(250);
board_autoled_off(LED_PANIC);
#endif
up_mdelay(250);
}
#endif