summaryrefslogtreecommitdiff
path: root/keyboard/infinity/main.cpp
diff options
context:
space:
mode:
authorJun Wako <wakojun@gmail.com>2015-01-02 21:16:40 +0900
committerJun Wako <wakojun@gmail.com>2015-01-04 17:21:43 +0900
commite259a722e7e8abcb97606b6cfbcce99667a66277 (patch)
tree465c459d7da8e3fb7d223dfc7babe09c1590283f /keyboard/infinity/main.cpp
parent541913029150d57e83396293d35807a16d3755e8 (diff)
Add keyboard/infinity
Diffstat (limited to 'keyboard/infinity/main.cpp')
-rw-r--r--keyboard/infinity/main.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/keyboard/infinity/main.cpp b/keyboard/infinity/main.cpp
new file mode 100644
index 0000000000..7db59cdfb9
--- /dev/null
+++ b/keyboard/infinity/main.cpp
@@ -0,0 +1,29 @@
+//#include "mbed.h"
+#include "MK20D5.h"
+#include "wait.h"
+#include "gpio_api.h"
+#include "PinNames.h"
+
+
+//DigitalOut led(PTA19);
+
+int main() {
+ gpio_t led;
+ gpio_init_out(&led, PTA19);
+ while(1) {
+ gpio_write(&led, 1);
+ wait_ms(500);
+ gpio_write(&led, 0);
+ wait_ms(500);
+ }
+/*
+ SIM->SCGC6 |= SIM_SCGC5_PORTA_MASK;
+ PORTA->PCR[19] = PORT_PCR_SRE_MASK | PORT_PCR_DSE_MASK | PORT_PCR_MUX(1);
+ PTA->PDDR |= (1<<19);
+ PTA->PSOR |= (1<<19);
+ while(1) {
+ PTA->PTOR |= (1<<19);
+ wait_ms(500);
+ }
+*/
+}