Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
| 1 | /* |
| 2 | * io.h - I/O pin assignment |
| 3 | * |
| 4 | * Written 2011 by Werner Almesberger |
| 5 | * Copyright 2011 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 | #define IN_1 P0_0 |
| 18 | #define IN_2 P0_1 |
| 19 | #define IN_4 P0_2 |
| 20 | #define IN_3 P0_3 |
| 21 | |
| 22 | #define BUT_MAIN P0_5 |
| 23 | #define BUT_CH1 P0_6 |
| 24 | #define BUT_CH2 P0_7 |
| 25 | |
| 26 | #define LED_CH1_R P1_0 |
| 27 | #define LED_CH1_G P1_1 |
| 28 | #define LED_CH2_R P1_2 |
| 29 | #define LED_CH2_G P1_3 |
| 30 | #define LED_MAIN_R P1_4 |
| 31 | #define LED_MAIN_G P1_5 |
| 32 | |
| 33 | #define CH1_RELAY P2_0 |
| 34 | #define CH2_RELAY P2_1 |
| 35 | #define CH2_OPT P2_2 |
| 36 | #define CH1_OPT P2_3 |
| 37 | |
| 38 | #define OUT_1 P2_4 |
| 39 | #define OUT_2 P2_5 |
| 40 | #define OUT_3 P2_6 |
| 41 | #define OUT_4 P2_7 |
| 42 | |
| 43 | #endif /* !IO_H */ |
| 44 |
Branches:
master
