IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
| 1 | /* |
| 2 | * common/io.h - I/O pin assignment |
| 3 | * |
| 4 | * Written 2010 by Werner Almesberger |
| 5 | * Copyright 2010 Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | #ifndef IO_H |
| 15 | #define IO_H |
| 16 | |
| 17 | /* Diagnostic LED */ |
| 18 | |
| 19 | #define LED P0_1 |
| 20 | |
| 21 | /* ID pin */ |
| 22 | |
| 23 | /* |
| 24 | * 100813 open |
| 25 | * 101216 GND |
| 26 | */ |
| 27 | |
| 28 | #define ID P0_2 |
| 29 | |
| 30 | #if defined(BOARD_100813) |
| 31 | |
| 32 | /* SPI */ |
| 33 | |
| 34 | #define MOSI P2_2 |
| 35 | #define MISO P2_5 |
| 36 | #define SCLK P2_4 |
| 37 | #define nSS P2_3 |
| 38 | |
| 39 | /* Miscellaneous RF signals */ |
| 40 | |
| 41 | #define nRST_RF P2_0 |
| 42 | #define IRQ_RF P0_0 |
| 43 | #define SLP_TR P2_1 |
| 44 | #define TST P0_7 |
| 45 | |
| 46 | #elif defined(BOARD_101216) |
| 47 | |
| 48 | /* SPI */ |
| 49 | |
| 50 | #define MOSI P2_1 |
| 51 | #define MISO P2_0 |
| 52 | #define SCLK P0_7 |
| 53 | #define nSS P2_4 |
| 54 | |
| 55 | /* Miscellaneous RF signals */ |
| 56 | |
| 57 | #define nRST_RF P0_6 |
| 58 | #define IRQ_RF P0_0 |
| 59 | #define SLP_TR P0_5 |
| 60 | #define TST P0_4 |
| 61 | |
| 62 | #else |
| 63 | #error must define BOARD_1008xx or BOARD1012xx |
| 64 | #endif /* !BOARD_101216 */ |
| 65 | |
| 66 | #endif /* !IO_H */ |
| 67 |
