Add Line LED definition and comment.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10582 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
0151295d4f
commit
264c9a9286
|
@ -27,51 +27,93 @@
|
||||||
#define BOARD_ARDUINO_MEGA
|
#define BOARD_ARDUINO_MEGA
|
||||||
#define BOARD_NAME "Arduino Mega"
|
#define BOARD_NAME "Arduino Mega"
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
#define VAL_DDRA 0x00
|
* IO pins assignments.
|
||||||
#define VAL_PORTA 0xFF
|
*/
|
||||||
|
#define PORTB_LED1 7
|
||||||
|
|
||||||
/* All inputs except PB7 which has a LED connected */
|
|
||||||
#define VAL_DDRB 0x80
|
|
||||||
#define VAL_PORTB 0xFF
|
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
#define VAL_DDRC 0x00
|
* IO lines assignments.
|
||||||
#define VAL_PORTC 0xFF
|
*/
|
||||||
|
#define LINE_LED1 PAL_LINE(IOPORT2, 7U)
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
#define VAL_DDRD 0x00
|
* Port A setup.
|
||||||
#define VAL_PORTD 0xFF
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
|
#define VAL_DDRA 0x00
|
||||||
|
#define VAL_PORTA 0xFF
|
||||||
|
|
||||||
/* All inputs except PE1 (Serial TX0) */
|
/*
|
||||||
#define VAL_DDRE 0x02
|
* Port B setup.
|
||||||
#define VAL_PORTE 0xFF
|
* All inputs except PB7 which has a LED connected.
|
||||||
|
*/
|
||||||
|
#define VAL_DDRB 0x80
|
||||||
|
#define VAL_PORTB 0xFF
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
#define VAL_DDRF 0x00
|
* Port C setup.
|
||||||
#define VAL_PORTF 0xFF
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
|
#define VAL_DDRC 0x00
|
||||||
|
#define VAL_PORTC 0xFF
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
#define VAL_DDRG 0x00
|
* Port D setup.
|
||||||
#define VAL_PORTG 0xFF
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
|
#define VAL_DDRD 0x00
|
||||||
|
#define VAL_PORTD 0xFF
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
#define VAL_DDRH 0x00
|
* Port E setup.
|
||||||
#define VAL_PORTH 0xFF
|
* All inputs except PE1 (Serial TX0).
|
||||||
|
*/
|
||||||
|
#define VAL_DDRE 0x02
|
||||||
|
#define VAL_PORTE 0xFF
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
#define VAL_DDRJ 0x00
|
* Port F setup.
|
||||||
#define VAL_PORTJ 0xFF
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
|
#define VAL_DDRF 0x00
|
||||||
|
#define VAL_PORTF 0xFF
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
#define VAL_DDRK 0x00
|
* Port G setup.
|
||||||
#define VAL_PORTK 0xFF
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
|
#define VAL_DDRG 0x00
|
||||||
|
#define VAL_PORTG 0xFF
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
#define VAL_DDRL 0x00
|
* Port H setup.
|
||||||
#define VAL_PORTL 0xFF
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
|
#define VAL_DDRH 0x00
|
||||||
|
#define VAL_PORTH 0xFF
|
||||||
|
|
||||||
#define PORTB_LED1 7
|
/*
|
||||||
|
* Port J setup.
|
||||||
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
|
#define VAL_DDRJ 0x00
|
||||||
|
#define VAL_PORTJ 0xFF
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Port K setup.
|
||||||
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
|
#define VAL_DDRK 0x00
|
||||||
|
#define VAL_PORTK 0xFF
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Port L setup.
|
||||||
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
|
#define VAL_DDRL 0x00
|
||||||
|
#define VAL_PORTL 0xFF
|
||||||
|
|
||||||
#if !defined(_FROM_ASM_)
|
#if !defined(_FROM_ASM_)
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -24,23 +24,40 @@
|
||||||
/*
|
/*
|
||||||
* Board identifier.
|
* Board identifier.
|
||||||
*/
|
*/
|
||||||
#define BOARD_ARDUINO_UNO
|
#define BOARD_ARDUINO_MINI
|
||||||
#define BOARD_NAME "Arduino Mini"
|
#define BOARD_NAME "Arduino Mini"
|
||||||
|
|
||||||
/* All inputs except PB5 which has a LED connected */
|
/*
|
||||||
|
* IO pins assignments.
|
||||||
|
*/
|
||||||
|
#define PORTB_LED1 5
|
||||||
|
|
||||||
|
/*
|
||||||
|
* IO lines assignments.
|
||||||
|
*/
|
||||||
|
#define LINE_LED1 PAL_LINE(IOPORT2, 5U)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Port B setup.
|
||||||
|
* All inputs except PB5 which has a LED connected.
|
||||||
|
*/
|
||||||
#define VAL_DDRB 0x20
|
#define VAL_DDRB 0x20
|
||||||
#define VAL_PORTB 0xFF
|
#define VAL_PORTB 0xFF
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
|
* Port C setup.
|
||||||
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
#define VAL_DDRC 0x00
|
#define VAL_DDRC 0x00
|
||||||
#define VAL_PORTC 0xFF
|
#define VAL_PORTC 0xFF
|
||||||
|
|
||||||
/* All inputs except PD1 (Serial TX0) */
|
/*
|
||||||
|
* Port D setup.
|
||||||
|
* All inputs except PD1 (Serial TX0).
|
||||||
|
*/
|
||||||
#define VAL_DDRD 0x02
|
#define VAL_DDRD 0x02
|
||||||
#define VAL_PORTD 0xFF
|
#define VAL_PORTD 0xFF
|
||||||
|
|
||||||
#define PORTB_LED1 5
|
|
||||||
|
|
||||||
#if !defined(_FROM_ASM_)
|
#if !defined(_FROM_ASM_)
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -24,23 +24,40 @@
|
||||||
/*
|
/*
|
||||||
* Board identifier.
|
* Board identifier.
|
||||||
*/
|
*/
|
||||||
#define BOARD_ARDUINO_UNO
|
#define BOARD_ARDUINO_NANO
|
||||||
#define BOARD_NAME "Arduino Nano"
|
#define BOARD_NAME "Arduino Nano"
|
||||||
|
|
||||||
/* All inputs except PB5 which has a LED connected */
|
/*
|
||||||
|
* IO pins assignments.
|
||||||
|
*/
|
||||||
|
#define PORTB_LED1 5
|
||||||
|
|
||||||
|
/*
|
||||||
|
* IO lines assignments.
|
||||||
|
*/
|
||||||
|
#define LINE_LED1 PAL_LINE(IOPORT2, 5U)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Port B setup.
|
||||||
|
* All inputs except PB5 which has a LED connected.
|
||||||
|
*/
|
||||||
#define VAL_DDRB 0x20
|
#define VAL_DDRB 0x20
|
||||||
#define VAL_PORTB 0xFF
|
#define VAL_PORTB 0xFF
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
|
* Port C setup.
|
||||||
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
#define VAL_DDRC 0x00
|
#define VAL_DDRC 0x00
|
||||||
#define VAL_PORTC 0xFF
|
#define VAL_PORTC 0xFF
|
||||||
|
|
||||||
/* All inputs except PD1 (Serial TX0) */
|
/*
|
||||||
|
* Port D setup.
|
||||||
|
* All inputs except PD1 (Serial TX0).
|
||||||
|
*/
|
||||||
#define VAL_DDRD 0x02
|
#define VAL_DDRD 0x02
|
||||||
#define VAL_PORTD 0xFF
|
#define VAL_PORTD 0xFF
|
||||||
|
|
||||||
#define PORTB_LED1 5
|
|
||||||
|
|
||||||
#if !defined(_FROM_ASM_)
|
#if !defined(_FROM_ASM_)
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -27,20 +27,37 @@
|
||||||
#define BOARD_ARDUINO_UNO
|
#define BOARD_ARDUINO_UNO
|
||||||
#define BOARD_NAME "Arduino Uno"
|
#define BOARD_NAME "Arduino Uno"
|
||||||
|
|
||||||
/* All inputs except PB5 which has a LED connected */
|
/*
|
||||||
|
* IO pins assignments.
|
||||||
|
*/
|
||||||
|
#define PORTB_LED1 5
|
||||||
|
|
||||||
|
/*
|
||||||
|
* IO lines assignments.
|
||||||
|
*/
|
||||||
|
#define LINE_LED1 PAL_LINE(IOPORT2, 5U)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Port B setup.
|
||||||
|
* All inputs except PB5 which has a LED connected.
|
||||||
|
*/
|
||||||
#define VAL_DDRB 0x20
|
#define VAL_DDRB 0x20
|
||||||
#define VAL_PORTB 0xFF
|
#define VAL_PORTB 0xFF
|
||||||
|
|
||||||
/* All inputs with pull-ups */
|
/*
|
||||||
|
* Port C setup.
|
||||||
|
* All inputs with pull-ups.
|
||||||
|
*/
|
||||||
#define VAL_DDRC 0x00
|
#define VAL_DDRC 0x00
|
||||||
#define VAL_PORTC 0xFF
|
#define VAL_PORTC 0xFF
|
||||||
|
|
||||||
/* All inputs except PD1 (Serial TX0) */
|
/*
|
||||||
|
* Port D setup.
|
||||||
|
* All inputs except PD1 (Serial TX0).
|
||||||
|
*/
|
||||||
#define VAL_DDRD 0x02
|
#define VAL_DDRD 0x02
|
||||||
#define VAL_PORTD 0xFF
|
#define VAL_PORTD 0xFF
|
||||||
|
|
||||||
#define PORTB_LED1 5
|
|
||||||
|
|
||||||
#if !defined(_FROM_ASM_)
|
#if !defined(_FROM_ASM_)
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Reference in New Issue