Freedom K64F: Green and Blue LEDs reversed
This commit is contained in:
parent
c80b627e8d
commit
9dd70ffbae
@ -1448,7 +1448,7 @@ static inline void kinetis_initphy(struct kinetis_driver_s *priv)
|
|||||||
phydata = 0;
|
phydata = 0;
|
||||||
kinetis_readmii(priv, CONFIG_ENET_PHYADDR, PHY_STATUS, &phydata);
|
kinetis_readmii(priv, CONFIG_ENET_PHYADDR, PHY_STATUS, &phydata);
|
||||||
|
|
||||||
/* Set up the transmit and receive contrel registers based on the
|
/* Set up the transmit and receive control registers based on the
|
||||||
* configuration and the auto negotiation results.
|
* configuration and the auto negotiation results.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -162,18 +162,18 @@
|
|||||||
* the Freedom K64F. The following definitions describe how NuttX controls
|
* the Freedom K64F. The following definitions describe how NuttX controls
|
||||||
* the LEDs:
|
* the LEDs:
|
||||||
*
|
*
|
||||||
* SYMBOL Meaning LED state
|
* SYMBOL Meaning LED state
|
||||||
* RED GREEN BLUE
|
* RED GREEN BLUE
|
||||||
* ------------------- ----------------------- ----------------- */
|
* ------------------- ---------------------------- ----------------- */
|
||||||
#define LED_STARTED 1 /* NuttX has been started OFF OFF OFF */
|
#define LED_STARTED 1 /* NuttX has been started OFF OFF OFF */
|
||||||
#define LED_HEAPALLOCATE 2 /* Heap has been allocated OFF OFF ON */
|
#define LED_HEAPALLOCATE 2 /* Heap has been allocated OFF OFF ON */
|
||||||
#define LED_IRQSENABLED 0 /* Interrupts enabled OFF OFF ON */
|
#define LED_IRQSENABLED 0 /* Interrupts enabled OFF OFF ON */
|
||||||
#define LED_STACKCREATED 3 /* Idle stack created OFF ON OFF */
|
#define LED_STACKCREATED 3 /* Idle stack created OFF ON OFF */
|
||||||
#define LED_INIRQ 0 /* In an interrupt (no change) */
|
#define LED_INIRQ 0 /* In an interrupt (no change) */
|
||||||
#define LED_SIGNAL 0 /* In a signal handler (no change) */
|
#define LED_SIGNAL 0 /* In a signal handler (no change) */
|
||||||
#define LED_ASSERTION 0 /* An assertion failed (no change) */
|
#define LED_ASSERTION 0 /* An assertion failed (no change) */
|
||||||
#define LED_PANIC 4 /* The system has crashed FLASH OFF OFF */
|
#define LED_PANIC 4 /* The system has crashed FLASH OFF OFF */
|
||||||
#undef LED_IDLE /* K64 is in sleep mode (Not used) */
|
#undef LED_IDLE /* K64 is in sleep mode (Not used) */
|
||||||
|
|
||||||
/* Button definitions ***************************************************************/
|
/* Button definitions ***************************************************************/
|
||||||
/* Two push buttons, SW2 and SW3, are available on FRDM-K64F board, where SW2 is
|
/* Two push buttons, SW2 and SW3, are available on FRDM-K64F board, where SW2 is
|
||||||
|
@ -91,13 +91,13 @@
|
|||||||
* LED K64
|
* LED K64
|
||||||
* ------ -------------------------------------------------------
|
* ------ -------------------------------------------------------
|
||||||
* RED PTB22/SPI2_SOUT/FB_AD29/CMP2_OUT
|
* RED PTB22/SPI2_SOUT/FB_AD29/CMP2_OUT
|
||||||
* BLUE PTB21/SPI2_SCK/FB_AD30/CMP1_OUT
|
|
||||||
* GREEN PTE26/ENET_1588_CLKIN/UART4_CTS_b/RTC_CLKOUT/USB0_CLKIN
|
* GREEN PTE26/ENET_1588_CLKIN/UART4_CTS_b/RTC_CLKOUT/USB0_CLKIN
|
||||||
|
* BLUE PTB21/SPI2_SCK/FB_AD30/CMP1_OUT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define GPIO_LED_R (GPIO_LOWDRIVE | GPIO_OUTPUT_ONE | PIN_PORTB | PIN22)
|
#define GPIO_LED_R (GPIO_LOWDRIVE | GPIO_OUTPUT_ONE | PIN_PORTB | PIN22)
|
||||||
#define GPIO_LED_G (GPIO_LOWDRIVE | GPIO_OUTPUT_ONE | PIN_PORTB | PIN21)
|
#define GPIO_LED_G (GPIO_LOWDRIVE | GPIO_OUTPUT_ONE | PIN_PORTE | PIN26)
|
||||||
#define GPIO_LED_B (GPIO_LOWDRIVE | GPIO_OUTPUT_ONE | PIN_PORTE | PIN26)
|
#define GPIO_LED_B (GPIO_LOWDRIVE | GPIO_OUTPUT_ONE | PIN_PORTB | PIN21)
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Public data
|
* Public data
|
||||||
|
Loading…
Reference in New Issue
Block a user