fix led panic feature
This commit is contained in:
parent
5d7f2fdf16
commit
a2c806027f
@ -26,9 +26,8 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include <arch/board/board.h>
|
|
||||||
|
|
||||||
#include "chip.h"
|
#include "hardware/a1x_piocfg.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
#include "arm_internal.h"
|
#include "arm_internal.h"
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include "hardware/a1x_uart.h"
|
#include "hardware/a1x_uart.h"
|
||||||
|
#include "a1x_config.h"
|
||||||
#include "a1x_pio.h"
|
#include "a1x_pio.h"
|
||||||
#include "a1x_serial.h"
|
#include "a1x_serial.h"
|
||||||
|
|
||||||
|
@ -26,12 +26,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#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
|
* Pre-processor Definitions
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#include <arch/irq.h>
|
#include <arch/irq.h>
|
||||||
#include <arch/board/board.h>
|
|
||||||
|
|
||||||
#include "arm_internal.h"
|
#include "arm_internal.h"
|
||||||
#include "hardware/a1x_timer.h"
|
#include "hardware/a1x_timer.h"
|
||||||
|
@ -97,68 +97,68 @@
|
|||||||
|
|
||||||
/* Camera Sensor Interface (CSI) */
|
/* Camera Sensor Interface (CSI) */
|
||||||
|
|
||||||
#define PIO_CSI0_CK (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN1)
|
#define PIO_CSI0_CK (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN1)
|
||||||
#define PIO_CSI0_D0 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN4)
|
#define PIO_CSI0_D0 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN4)
|
||||||
#define PIO_CSI0_D1 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN5)
|
#define PIO_CSI0_D1 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN5)
|
||||||
#define PIO_CSI0_D2 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN6)
|
#define PIO_CSI0_D2 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN6)
|
||||||
#define PIO_CSI0_D3 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN7)
|
#define PIO_CSI0_D3 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN7)
|
||||||
#define PIO_CSI0_D4 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN8)
|
#define PIO_CSI0_D4 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN8)
|
||||||
#define PIO_CSI0_D5 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN9)
|
#define PIO_CSI0_D5 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN9)
|
||||||
#define PIO_CSI0_D6 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN10)
|
#define PIO_CSI0_D6 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN10)
|
||||||
#define PIO_CSI0_D7 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN11)
|
#define PIO_CSI0_D7 (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN11)
|
||||||
#define PIO_CSI0_D8 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN4)
|
#define PIO_CSI0_D8 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN4)
|
||||||
#define PIO_CSI0_D9 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN5)
|
#define PIO_CSI0_D9 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN5)
|
||||||
#define PIO_CSI0_D10 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN6)
|
#define PIO_CSI0_D10 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN6)
|
||||||
#define PIO_CSI0_D11 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN7)
|
#define PIO_CSI0_D11 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN7)
|
||||||
#define PIO_CSI0_D12 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN8)
|
#define PIO_CSI0_D12 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN8)
|
||||||
#define PIO_CSI0_D13 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN9)
|
#define PIO_CSI0_D13 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN9)
|
||||||
#define PIO_CSI0_D14 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN10)
|
#define PIO_CSI0_D14 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN10)
|
||||||
#define PIO_CSI0_D15 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN11)
|
#define PIO_CSI0_D15 (PIO_PERIPH5 | PIO_PORT_PIOG | PIO_PIN11)
|
||||||
#define PIO_CSI0_HSYNC (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN2)
|
#define PIO_CSI0_HSYNC (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN2)
|
||||||
#define PIO_CSI0_PCK (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN0)
|
#define PIO_CSI0_PCK (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN0)
|
||||||
#define PIO_CSI0_VSYNC (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN3)
|
#define PIO_CSI0_VSYNC (PIO_PERIPH3 | PIO_PORT_PIOE | PIO_PIN3)
|
||||||
|
|
||||||
#define PIO_CSI1_CK (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN1)
|
#define PIO_CSI1_CK (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN1)
|
||||||
#define PIO_CSI1_D0_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN4)
|
#define PIO_CSI1_D0_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN4)
|
||||||
#define PIO_CSI1_D0_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN0)
|
#define PIO_CSI1_D0_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN0)
|
||||||
#define PIO_CSI1_D1_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN5)
|
#define PIO_CSI1_D1_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN5)
|
||||||
#define PIO_CSI1_D1_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN1)
|
#define PIO_CSI1_D1_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN1)
|
||||||
#define PIO_CSI1_D2_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN6)
|
#define PIO_CSI1_D2_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN6)
|
||||||
#define PIO_CSI1_D2_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN2)
|
#define PIO_CSI1_D2_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN2)
|
||||||
#define PIO_CSI1_D3_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN7)
|
#define PIO_CSI1_D3_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN7)
|
||||||
#define PIO_CSI1_D3_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN3)
|
#define PIO_CSI1_D3_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN3)
|
||||||
#define PIO_CSI1_D4_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN8)
|
#define PIO_CSI1_D4_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN8)
|
||||||
#define PIO_CSI1_D4_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN4)
|
#define PIO_CSI1_D4_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN4)
|
||||||
#define PIO_CSI1_D5_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN9)
|
#define PIO_CSI1_D5_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN9)
|
||||||
#define PIO_CSI1_D5_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN5)
|
#define PIO_CSI1_D5_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN5)
|
||||||
#define PIO_CSI1_D6_1 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN6)
|
#define PIO_CSI1_D6_1 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN6)
|
||||||
#define PIO_CSI1_D6_2 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN10)
|
#define PIO_CSI1_D6_2 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN10)
|
||||||
#define PIO_CSI1_D7_1 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN7)
|
#define PIO_CSI1_D7_1 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN7)
|
||||||
#define PIO_CSI1_D7_2 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN11)
|
#define PIO_CSI1_D7_2 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN11)
|
||||||
#define PIO_CSI1_D8 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN8)
|
#define PIO_CSI1_D8 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN8)
|
||||||
#define PIO_CSI1_D9 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN9)
|
#define PIO_CSI1_D9 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN9)
|
||||||
#define PIO_CSI1_D10 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN10)
|
#define PIO_CSI1_D10 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN10)
|
||||||
#define PIO_CSI1_D11 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN11)
|
#define PIO_CSI1_D11 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN11)
|
||||||
#define PIO_CSI1_D12 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN12)
|
#define PIO_CSI1_D12 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN12)
|
||||||
#define PIO_CSI1_D13 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN13)
|
#define PIO_CSI1_D13 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN13)
|
||||||
#define PIO_CSI1_D14 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN14)
|
#define PIO_CSI1_D14 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN14)
|
||||||
#define PIO_CSI1_D15 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN15)
|
#define PIO_CSI1_D15 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN15)
|
||||||
#define PIO_CSI1_D16 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN16)
|
#define PIO_CSI1_D16 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN16)
|
||||||
#define PIO_CSI1_D17 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN17)
|
#define PIO_CSI1_D17 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN17)
|
||||||
#define PIO_CSI1_D18 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN18)
|
#define PIO_CSI1_D18 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN18)
|
||||||
#define PIO_CSI1_D19 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN19)
|
#define PIO_CSI1_D19 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN19)
|
||||||
#define PIO_CSI1_D20 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN20)
|
#define PIO_CSI1_D20 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN20)
|
||||||
#define PIO_CSI1_D21 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN21)
|
#define PIO_CSI1_D21 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN21)
|
||||||
#define PIO_CSI1_D22 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN22)
|
#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_D23 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN23)
|
||||||
#define PIO_CSI1_FIELD (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN25)
|
#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_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN2)
|
||||||
#define PIO_CSI1_HSYNC (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN26)
|
#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_MCLK (PIO_PERIPH3 | PIO_PORT_PIOD | PIO_PIN20)
|
||||||
#define PIO_CSI1_PCK (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN0)
|
#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_PCLK (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN24)
|
||||||
#define PIO_CSI1_VSYNC (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN3)
|
#define PIO_CSI1_VSYNC_1 (PIO_PERIPH3 | PIO_PORT_PIOG | PIO_PIN3)
|
||||||
#define PIO_CSI1_VSYNC (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN27)
|
#define PIO_CSI1_VSYNC_2 (PIO_PERIPH7 | PIO_PORT_PIOH | PIO_PIN27)
|
||||||
|
|
||||||
/* Ethernet MAC */
|
/* Ethernet MAC */
|
||||||
|
|
||||||
@ -414,10 +414,10 @@
|
|||||||
#define PIO_SDC0_D2 (PIO_PERIPH2 | PIO_PORT_PIOF | PIO_PIN5)
|
#define PIO_SDC0_D2 (PIO_PERIPH2 | PIO_PORT_PIOF | PIO_PIN5)
|
||||||
#define PIO_SDC0_D3 (PIO_PERIPH2 | PIO_PORT_PIOF | PIO_PIN4)
|
#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_1 (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN1)
|
||||||
#define PIO_SDC1_CLK (PIO_PERIPH5 | PIO_PORT_PIOH | PIO_PIN23)
|
#define PIO_SDC1_CLK_2 (PIO_PERIPH5 | PIO_PORT_PIOH | PIO_PIN23)
|
||||||
#define PIO_SDC1_CMD (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN0)
|
#define PIO_SDC1_CMD_1 (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN0)
|
||||||
#define PIO_SDC1_CMD (PIO_PERIPH5 | PIO_PORT_PIOH | PIO_PIN22)
|
#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_1 (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN2)
|
||||||
#define PIO_SDC1_D0_2 (PIO_PERIPH5 | PIO_PORT_PIOH | PIO_PIN24)
|
#define PIO_SDC1_D0_2 (PIO_PERIPH5 | PIO_PORT_PIOH | PIO_PIN24)
|
||||||
#define PIO_SDC1_D1_1 (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN3)
|
#define PIO_SDC1_D1_1 (PIO_PERIPH4 | PIO_PORT_PIOG | PIO_PIN3)
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
#include "lpc31_i2c.h"
|
#include "lpc31_i2c.h"
|
||||||
#include "lpc31_evntrtr.h"
|
#include "lpc31_evntrtr.h"
|
||||||
#include "lpc31_syscreg.h"
|
#include "lpc31_syscreg.h"
|
||||||
|
#include "lpc31_cgudrvr.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
#include "lpc31_spi.h"
|
#include "lpc31_spi.h"
|
||||||
#include "lpc31_ioconfig.h"
|
#include "lpc31_ioconfig.h"
|
||||||
|
#include "lpc31_cgudrvr.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
#include "arm_internal.h"
|
#include "arm_internal.h"
|
||||||
#include "lpc31_timer.h"
|
#include "lpc31_timer.h"
|
||||||
#include "lpc31.h"
|
#include "lpc31.h"
|
||||||
|
#include "lpc31_cgudrvr.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
#include "lpc31_usbotg.h"
|
#include "lpc31_usbotg.h"
|
||||||
#include "lpc31_evntrtr.h"
|
#include "lpc31_evntrtr.h"
|
||||||
#include "lpc31_syscreg.h"
|
#include "lpc31_syscreg.h"
|
||||||
|
#include "lpc31_cgudrvr.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
#include <arch/board/board_liberodefs.h>
|
#include <arch/board/board_liberodefs.h>
|
||||||
|
|
||||||
|
#include "mpfs_gpio.h"
|
||||||
#include "riscv_internal.h"
|
#include "riscv_internal.h"
|
||||||
#include "hardware/mpfs_cache.h"
|
#include "hardware/mpfs_cache.h"
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
|
#include "mpfs_gpio.h"
|
||||||
#include "mpfs_corespi.h"
|
#include "mpfs_corespi.h"
|
||||||
#include "hardware/mpfs_corespi.h"
|
#include "hardware/mpfs_corespi.h"
|
||||||
#include "hardware/mpfs_sysreg.h"
|
#include "hardware/mpfs_sysreg.h"
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
|
#include "mpfs_gpio.h"
|
||||||
#include "mpfs_i2c.h"
|
#include "mpfs_i2c.h"
|
||||||
#include "riscv_internal.h"
|
#include "riscv_internal.h"
|
||||||
#include "hardware/mpfs_i2c.h"
|
#include "hardware/mpfs_i2c.h"
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
|
#include "mpfs_gpio.h"
|
||||||
#include "mpfs_spi.h"
|
#include "mpfs_spi.h"
|
||||||
#include "hardware/mpfs_spi.h"
|
#include "hardware/mpfs_spi.h"
|
||||||
#include "hardware/mpfs_sysreg.h"
|
#include "hardware/mpfs_sysreg.h"
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
#include "hardware/mpfs_usb.h"
|
#include "hardware/mpfs_usb.h"
|
||||||
|
#include "mpfs_gpio.h"
|
||||||
#include "riscv_internal.h"
|
#include "riscv_internal.h"
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include "hardware/a1x_piocfg.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include "hardware/am335x_pinmux.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -27,11 +27,6 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
#include "hardware/efm32_cmu.h"
|
|
||||||
#include "hardware/efm32_usart.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -27,11 +27,6 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
#include "hardware/efm32_cmu.h"
|
|
||||||
#include "hardware/efm32_usart.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -27,11 +27,6 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
#include "hardware/efm32_cmu.h"
|
|
||||||
#include "hardware/efm32_usart.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -26,8 +26,6 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include "eoss3_gpio.h"
|
|
||||||
|
|
||||||
#define BOARD_HCLK_FREQUENCY 79790000
|
#define BOARD_HCLK_FREQUENCY 79790000
|
||||||
#define BOARD_CPU_FREQUENCY 79790000
|
#define BOARD_CPU_FREQUENCY 79790000
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include "arm_internal.h"
|
#include "arm_internal.h"
|
||||||
|
#include "eoss3_gpio.h"
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
# include "lpc31_cgudrvr.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
# include "lpc31_cgudrvr.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
# include "lpc31_cgudrvr.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -32,8 +32,6 @@
|
|||||||
# include <nuttx/irq.h>
|
# include <nuttx/irq.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "hardware/nrf53_osc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -32,8 +32,6 @@
|
|||||||
# include <nuttx/irq.h>
|
# include <nuttx/irq.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "hardware/nrf53_osc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include "sam_pmc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include "sam_pmc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include "sam_pmc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include "sam_pmc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include "sam_pmc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include "sam_pmc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -32,12 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32_rcc.h"
|
|
||||||
# include "stm32_sdio.h"
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,9 +30,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
|
@ -31,9 +31,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
#include "stm32_gpio.h"
|
#include "stm32_gpio.h"
|
||||||
#include "stm32_sdio.h"
|
#include "stm32_sdio.h"
|
||||||
|
|
||||||
|
@ -29,9 +29,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -29,9 +29,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -29,9 +29,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -31,10 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#include <nuttx/compiler.h>
|
#include <nuttx/compiler.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
#include "arm_internal.h"
|
#include "arm_internal.h"
|
||||||
#include "mikroe-stm32f4.h"
|
#include "mikroe-stm32f4.h"
|
||||||
|
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,10 +30,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,8 +30,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stm32.h>
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,8 +30,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stm32.h>
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include <stm32.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -32,12 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32_rcc.h"
|
|
||||||
# include "stm32_sdio.h"
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <arch/stm32/chip.h>
|
#include <arch/stm32/chip.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,8 +30,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#include <nuttx/compiler.h>
|
#include <nuttx/compiler.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -32,12 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32_rcc.h"
|
|
||||||
# include "stm32_sdio.h"
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#include <nuttx/compiler.h>
|
#include <nuttx/compiler.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,9 +30,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -30,8 +30,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#include <nuttx/compiler.h>
|
#include <nuttx/compiler.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,9 +30,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#include <nuttx/compiler.h>
|
#include <nuttx/compiler.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -31,9 +31,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,9 +30,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
|
@ -31,10 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -29,9 +29,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -31,8 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stm32_rcc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
|
||||||
# include "stm32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -31,9 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
#include <arch/stm32/chip.h>
|
#include <arch/stm32/chip.h>
|
||||||
|
|
||||||
|
#include "stm32.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,8 +30,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stm32.h>
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,8 +30,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stm32.h>
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include <nuttx/compiler.h>
|
#include <nuttx/compiler.h>
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stm32.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
@ -31,8 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stm32_rcc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -31,8 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stm32_rcc.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -31,10 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "stm32_rcc.h"
|
|
||||||
#include "stm32_sdio.h"
|
|
||||||
#include "stm32.h"
|
|
||||||
|
|
||||||
/* Clocking *****************************************************************/
|
/* Clocking *****************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_ARCH_CHIP_STM32F107VC)
|
#if defined(CONFIG_ARCH_CHIP_STM32F107VC)
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
#include <nuttx/compiler.h>
|
#include <nuttx/compiler.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "stm32_rcc.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include <stm32_gpio.h>
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include <stm32_gpio.h>
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -58,7 +58,6 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include "chip.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
|
59
boards/arm64/imx8/imx8qm-mek/include/board.h
Normal file
59
boards/arm64/imx8/imx8qm-mek/include/board.h
Normal 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 */
|
59
boards/arm64/qemu/qemu-armv8a/include/board.h
Normal file
59
boards/arm64/qemu/qemu-armv8a/include/board.h
Normal 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 */
|
@ -5,6 +5,7 @@
|
|||||||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
||||||
# modifications.
|
# modifications.
|
||||||
#
|
#
|
||||||
|
# CONFIG_ARCH_LEDS is not set
|
||||||
CONFIG_ARCH="arm64"
|
CONFIG_ARCH="arm64"
|
||||||
CONFIG_ARCH_ARM64=y
|
CONFIG_ARCH_ARM64=y
|
||||||
CONFIG_ARCH_BOARD="nanopi_m4"
|
CONFIG_ARCH_BOARD="nanopi_m4"
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
||||||
# modifications.
|
# modifications.
|
||||||
#
|
#
|
||||||
|
# CONFIG_ARCH_LEDS is not set
|
||||||
CONFIG_ARCH="arm64"
|
CONFIG_ARCH="arm64"
|
||||||
CONFIG_ARCH_ARM64=y
|
CONFIG_ARCH_ARM64=y
|
||||||
CONFIG_ARCH_BOARD="pinephonepro"
|
CONFIG_ARCH_BOARD="pinephonepro"
|
||||||
|
@ -31,8 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "c906.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -31,10 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "k210.h"
|
|
||||||
|
|
||||||
#include "k210_fpioa.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -31,8 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "mpfs_gpio.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -31,8 +31,6 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "mpfs_gpio.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include <nuttx/irq.h>
|
#include <nuttx/irq.h>
|
||||||
#include <nuttx/tls.h>
|
#include <nuttx/tls.h>
|
||||||
#include <nuttx/signal.h>
|
#include <nuttx/signal.h>
|
||||||
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
#include <nuttx/panic_notifier.h>
|
#include <nuttx/panic_notifier.h>
|
||||||
#include <nuttx/reboot_notifier.h>
|
#include <nuttx/reboot_notifier.h>
|
||||||
@ -585,6 +586,9 @@ void _assert(FAR const char *filename, int linenum,
|
|||||||
notifier_data.msg = msg;
|
notifier_data.msg = msg;
|
||||||
panic_notifier_call_chain(fatal ? PANIC_KERNEL : PANIC_TASK,
|
panic_notifier_call_chain(fatal ? PANIC_KERNEL : PANIC_TASK,
|
||||||
¬ifier_data);
|
¬ifier_data);
|
||||||
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
board_autoled_on(LED_ASSERTION);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Flush any buffered SYSLOG data (from prior to the assertion) */
|
/* Flush any buffered SYSLOG data (from prior to the assertion) */
|
||||||
|
|
||||||
@ -674,6 +678,13 @@ void _assert(FAR const char *filename, int linenum,
|
|||||||
#else
|
#else
|
||||||
for (; ; )
|
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);
|
up_mdelay(250);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user