mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Sabre-6Quad: Add some pin disambiguatino logic
This commit is contained in:
@@ -77,7 +77,8 @@ Serial Console
|
|||||||
==============
|
==============
|
||||||
|
|
||||||
A DEBUG VCOM is available MICRO USB AB 5 J509. This corresponds to UART1
|
A DEBUG VCOM is available MICRO USB AB 5 J509. This corresponds to UART1
|
||||||
from the i.MX6.
|
from the i.MX6. UART1 connects to J509 via the CSIO_DAT10 and CSIO_DAT11
|
||||||
|
pins
|
||||||
|
|
||||||
Configurations
|
Configurations
|
||||||
==============
|
==============
|
||||||
|
|||||||
@@ -67,9 +67,9 @@
|
|||||||
* include/board.h and src/sam_autoleds.c. The LEDs are used to encode
|
* include/board.h and src/sam_autoleds.c. The LEDs are used to encode
|
||||||
* OS-related events as follows:
|
* OS-related events as follows:
|
||||||
*
|
*
|
||||||
* ------------------- ---------------------------- ------
|
* ---------------------- ---------------------------- ------
|
||||||
* SYMBOL Meaning LED
|
* SYMBOL Meaning LED
|
||||||
* ------------------- ---------------------------- ------ */
|
* ---------------------- ---------------------------- ------ */
|
||||||
|
|
||||||
#define LED_STARTED 0 /* NuttX has been started OFF */
|
#define LED_STARTED 0 /* NuttX has been started OFF */
|
||||||
#define LED_HEAPALLOCATE 0 /* Heap has been allocated OFF */
|
#define LED_HEAPALLOCATE 0 /* Heap has been allocated OFF */
|
||||||
@@ -89,6 +89,12 @@
|
|||||||
/* Button definitions ***************************************************************/
|
/* Button definitions ***************************************************************/
|
||||||
|
|
||||||
/* GPIO Disambiguation **************************************************************/
|
/* GPIO Disambiguation **************************************************************/
|
||||||
|
/* A DEBUG VCOM is available MICRO USB AB 5 J509. This corresponds to UART1 from
|
||||||
|
* the i.MX6. UART1 connects to J509 via the CSIO_DAT10 and CSIO_DAT11 pins:
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define GPIO_UART1_RX_DATA GPIO_UART1_RX_DATA_2
|
||||||
|
#define GPIO_UART1_TX_DATA GPIO_UART1_TX_DATA_2
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
|
|||||||
@@ -72,6 +72,7 @@
|
|||||||
#include <nuttx/board.h>
|
#include <nuttx/board.h>
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
|
#include "up_arch.h"
|
||||||
#include "imx_gpio.h"
|
#include "imx_gpio.h"
|
||||||
#include "sabre-6quad.h"
|
#include "sabre-6quad.h"
|
||||||
|
|
||||||
@@ -116,7 +117,7 @@ void board_autoled_on(int led)
|
|||||||
{
|
{
|
||||||
if (led == 1 || led == 3)
|
if (led == 1 || led == 3)
|
||||||
{
|
{
|
||||||
imx_gpiowrite(GPIO_LED0, false); /* Low illuminates */
|
imx_gpio_write(GPIO_LED0, false); /* Low illuminates */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,7 +129,7 @@ void board_autoled_off(int led)
|
|||||||
{
|
{
|
||||||
if (led == 3)
|
if (led == 3)
|
||||||
{
|
{
|
||||||
imx_gpiowrite(GPIO_LED0, true); /* High extinguishes */
|
imx_gpio_write(GPIO_LED0, true); /* High extinguishes */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user