Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/gpio2nesc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-07-04 18:31:50 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-07-04 18:31:50 +0300
commit8442e979bfda600195d626f27ea3de8b4fce95d2 (patch)
treed4626366ffd7aa069fb754229c0912bea30a9fe0 /defines.h
parentc0b1ce67a9ab44064ccae988aac14550e5aa4871 (diff)
First commit
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/defines.h b/defines.h
new file mode 100644
index 0000000..90c296e
--- /dev/null
+++ b/defines.h
@@ -0,0 +1,49 @@
+#ifndef _DEFINES_H_
+#define _DEFINES_H_
+
+#define F_CPU 8000000L
+
+#define TWI_PORT C
+#define TWI_SCL_PIN 5
+#define TWI_SDA_PIN 4
+
+#define DETECT_PORT C
+#define DETECT_PIN 3
+
+#define RED_LED_PORT D
+#define RED_LED_PIN 4
+#define GREEN_LED_PORT D
+#define GREEN_LED_PIN 3
+
+#define BUTTON_A_PORT C
+#define BUTTON_A_PIN 1
+#define BUTTON_B_PORT B
+#define BUTTON_B_PIN 4
+#define BUTTON_X_PORT D
+#define BUTTON_X_PIN 0
+#define BUTTON_Y_PORT B
+#define BUTTON_Y_PIN 5
+#define BUTTON_UP_PORT B
+#define BUTTON_UP_PIN 1
+#define BUTTON_DOWN_PORT D
+#define BUTTON_DOWN_PIN 6
+#define BUTTON_LEFT_PORT B
+#define BUTTON_LEFT_PIN 2
+#define BUTTON_RIGHT_PORT D
+#define BUTTON_RIGHT_PIN 7
+#define BUTTON_SELECT_PORT C
+#define BUTTON_SELECT_PIN 0
+#define BUTTON_START_PORT C
+#define BUTTON_START_PIN 2
+#define BUTTON_L_PORT B
+#define BUTTON_L_PIN 3
+#define BUTTON_R_PORT B
+#define BUTTON_R_PIN 0
+#define BUTTON_ZL_PORT B
+#define BUTTON_ZL_PIN 6
+#define BUTTON_ZR_PORT B
+#define BUTTON_ZR_PIN 7
+#define BUTTON_HOME_PORT D
+#define BUTTON_HOME_PIN 5
+
+#endif