2010-08-19 15:04:51 +03:00
|
|
|
/*
|
2010-08-20 05:14:55 +03:00
|
|
|
* common/io.h - I/O pin assignment
|
2010-08-19 15:04:51 +03:00
|
|
|
*
|
|
|
|
* Written 2010 by Werner Almesberger
|
|
|
|
* Copyright 2010 Werner Almesberger
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef IO_H
|
|
|
|
#define IO_H
|
|
|
|
|
|
|
|
/* Diagnostic LED */
|
|
|
|
|
|
|
|
#define LED P0_1
|
|
|
|
|
|
|
|
/* SPI */
|
|
|
|
|
|
|
|
#define MOSI P2_2
|
|
|
|
#define MISO P2_5
|
|
|
|
#define SCLK P2_4
|
|
|
|
#define nSS P2_3
|
|
|
|
|
|
|
|
/* Miscellaneous RF signals */
|
|
|
|
|
|
|
|
#define nRST_RF P2_0
|
2010-08-24 05:02:43 +03:00
|
|
|
#define IRQ_RF P0_0
|
2010-08-19 15:04:51 +03:00
|
|
|
#define SLP_TR P2_1
|
2010-11-11 07:25:54 +02:00
|
|
|
#define TST P0_7
|
2010-08-19 15:04:51 +03:00
|
|
|
|
|
|
|
#endif /* !IO_H */
|