nuttx/boards/arm/mx8mp/verdin-mx8mp/include/board.h

107 lines
3.8 KiB
C
Raw Normal View History

2023-07-24 18:41:05 +02:00
/****************************************************************************
* boards/arm/mx8mp/verdin-mx8mp/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_ARM_MX8MP_MX8MP_VERDIN_INCLUDE_BOARD_H
#define __BOARDS_ARM_MX8MP_MX8MP_VERDIN_INCLUDE_BOARD_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#ifndef __ASSEMBLY__
# include <stdint.h>
# include <stdbool.h>
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
2023-08-31 17:17:01 +02:00
/* Console UART IOMUX configuration */
#define IOMUX_CONSOLE_UART_RX IOMUXC_UART4_RXD_UART4_RX, 0, UART_PAD_CTRL
#define IOMUX_CONSOLE_UART_TX IOMUXC_UART4_TXD_UART4_TX, 0, UART_PAD_CTRL
/* LED definitions **********************************************************/
/* The Freedom K66F has a single RGB LED driven by the K66F as follows:
/* LED index values for use with board_userled() */
#define BOARD_LED_1 0
#define BOARD_LED_2 1
#define BOARD_LED_3 2
#define BOARD_LED_4 3
#define BOARD_NLEDS 4
/* LED bits for use with board_userled_all() */
#define BOARD_LED_1_BIT (1 << BOARD_LED_1)
#define BOARD_LED_2_BIT (1 << BOARD_LED_2)
#define BOARD_LED_3_BIT (1 << BOARD_LED_3)
#define BOARD_LED_4_BIT (1 << BOARD_LED_4)
/* If CONFIG_ARCH_LEDs is defined, then NuttX will control the LED on board.
* The following definitions describe how NuttX controls
* the LEDs:
*
* SYMBOL Meaning LED
* ------------------- ---------------------------- --------------------
*/
#define LED_STARTED 1 /* NuttX has been started None */
#define LED_HEAPALLOCATE 2 /* Heap has been allocated ON(1) */
#define LED_IRQSENABLED 0 /* Interrupts enabled ON(1) */
#define LED_STACKCREATED 3 /* Idle stack created ON(2) */
#define LED_INIRQ 0 /* In an interrupt (no change) */
#define LED_SIGNAL 0 /* In a signal handler (no change) */
#define LED_ASSERTION 0 /* An assertion failed (no change) */
#define LED_PANIC 5 /* The system has crashed FLASH(3) */
#undef LED_IDLE 4 /* idle loop FLASH(4) */
2023-07-24 18:41:05 +02:00
/****************************************************************************
* 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_ARM_MX8MP_MX8MP_VERDIN_INCLUDE_BOARD_H */