mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-04 13:23:50 -04:00
All relating to the RX600 RDK demo - which is still a work in progress:
Change LED numbers to match silk screen. Include Ethernet port pin configuration in HardwareSetup(). Convert EMAC.c to be correct for the RX (was based on SH2A file). Add uIP task creation into main.c.
This commit is contained in:
parent
817859005a
commit
f14011feb3
12 changed files with 451 additions and 396 deletions
|
@ -13,8 +13,8 @@
|
|||
* : 06.10.2009 1.00 First Release
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef RSKRX62N_H
|
||||
#define RSKRX62N_H
|
||||
#ifndef RDKRX62N_H
|
||||
#define RDKRX62N_H
|
||||
|
||||
/******************************************************************************
|
||||
Includes <System Includes> , "Project Includes"
|
||||
|
@ -42,34 +42,49 @@ Macro definitions
|
|||
/* General Values */
|
||||
#define LED_ON (1)
|
||||
#define LED_OFF (0)
|
||||
#define SET_BIT_HIGH (1)
|
||||
#define SET_BIT_LOW (0)
|
||||
#define SET_BYTE_HIGH (0xFF)
|
||||
#define SET_BYTE_LOW (0x00)
|
||||
|
||||
/* Define switches to be polled if not available as interrupts */
|
||||
#define SW_ACTIVE FALSE
|
||||
#define SW1 PORT4.PORT.BIT.B0
|
||||
#define SW2 PORT4.PORT.BIT.B1
|
||||
#define SW3 PORT4.PORT.BIT.B2
|
||||
#define SW1_DDR PORT4.DDR.BIT.B0
|
||||
#define SW2_DDR PORT4.DDR.BIT.B1
|
||||
#define SW3_DDR PORT4.DDR.BIT.B2
|
||||
#define SW1_ICR PORT4.ICR.BIT.B0
|
||||
#define SW2_ICR PORT4.ICR.BIT.B1
|
||||
#define SW3_ICR PORT4.ICR.BIT.B2
|
||||
|
||||
/* LEDs */
|
||||
/* Define LEDs to Port Numbers */
|
||||
#define LED0 PORTD.DR.BIT.B0
|
||||
#define LED1 PORTD.DR.BIT.B1
|
||||
#define LED2 PORTD.DR.BIT.B2
|
||||
#define LED3 PORTD.DR.BIT.B3
|
||||
#define LED4 PORTD.DR.BIT.B4
|
||||
#define LED5 PORTD.DR.BIT.B5
|
||||
#define LED6 PORTD.DR.BIT.B6
|
||||
#define LED7 PORTD.DR.BIT.B7
|
||||
#define LED8 PORTE.DR.BIT.B0
|
||||
#define LED9 PORTE.DR.BIT.B1
|
||||
#define LED10 PORTE.DR.BIT.B2
|
||||
#define LED11 PORTE.DR.BIT.B3
|
||||
#define LED4 PORTD.DR.BIT.B5
|
||||
#define LED5 PORTE.DR.BIT.B3
|
||||
#define LED6 PORTD.DR.BIT.B2
|
||||
#define LED7 PORTE.DR.BIT.B0
|
||||
#define LED8 PORTD.DR.BIT.B4
|
||||
#define LED9 PORTE.DR.BIT.B2
|
||||
#define LED10 PORTD.DR.BIT.B1
|
||||
#define LED11 PORTD.DR.BIT.B7
|
||||
#define LED12 PORTD.DR.BIT.B3
|
||||
#define LED13 PORTE.DR.BIT.B1
|
||||
#define LED14 PORTD.DR.BIT.B0
|
||||
#define LED15 PORTD.DR.BIT.B6
|
||||
|
||||
#define LED0_DDR PORTD.DDR.BIT.B0
|
||||
#define LED1_DDR PORTD.DDR.BIT.B1
|
||||
#define LED2_DDR PORTD.DDR.BIT.B2
|
||||
#define LED3_DDR PORTD.DDR.BIT.B3
|
||||
#define LED4_DDR PORTD.DDR.BIT.B4
|
||||
#define LED5_DDR PORTD.DDR.BIT.B5
|
||||
#define LED6_DDR PORTD.DDR.BIT.B6
|
||||
#define LED7_DDR PORTD.DDR.BIT.B7
|
||||
#define LED8_DDR PORTE.DDR.BIT.B0
|
||||
#define LED9_DDR PORTE.DDR.BIT.B1
|
||||
#define LED10_DDR PORTE.DDR.BIT.B2
|
||||
#define LED11_DDR PORTE.DDR.BIT.B3
|
||||
#define LED4_DDR PORTD.DDR.BIT.B5
|
||||
#define LED5_DDR PORTE.DDR.BIT.B3
|
||||
#define LED6_DDR PORTD.DDR.BIT.B2
|
||||
#define LED7_DDR PORTE.DDR.BIT.B0
|
||||
#define LED8_DDR PORTD.DDR.BIT.B4
|
||||
#define LED9_DDR PORTE.DDR.BIT.B2
|
||||
#define LED10_DDR PORTD.DDR.BIT.B1
|
||||
#define LED11_DDR PORTD.DDR.BIT.B7
|
||||
#define LED12_DDR PORTD.DDR.BIT.B3
|
||||
#define LED13_DDR PORTE.DDR.BIT.B1
|
||||
#define LED14_DDR PORTD.DDR.BIT.B0
|
||||
#define LED15_DDR PORTD.DDR.BIT.B6
|
||||
|
||||
|
||||
|
||||
|
@ -84,6 +99,6 @@ Functions Prototypes
|
|||
|
||||
|
||||
|
||||
/* RSKRX62N_H */
|
||||
/* RDKRX62N_H */
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue