aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgpio
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgpio')
-rw-r--r--src/libgpio/gpio.c21
-rw-r--r--src/libgpio/gpio.h21
2 files changed, 42 insertions, 0 deletions
diff --git a/src/libgpio/gpio.c b/src/libgpio/gpio.c
index 522817f..42c8ac2 100644
--- a/src/libgpio/gpio.c
+++ b/src/libgpio/gpio.c
@@ -1,7 +1,28 @@
+/**
+ * @file gpio.c
+ * Userspace library for GPIO access
+ *
+ * Copyright (C) 2018 Clyne Sullivan
+ *
+ * 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#include "gpio.h"
#include <stdint.h>
+// SVC calls get messed up by GCC's optimization...
#define NOOPTIMIZE __attribute__((optimize(0)))
NOOPTIMIZE
diff --git a/src/libgpio/gpio.h b/src/libgpio/gpio.h
index 7d7c8f7..41156b0 100644
--- a/src/libgpio/gpio.h
+++ b/src/libgpio/gpio.h
@@ -1,3 +1,23 @@
+/**
+ * @file gpio.h
+ * Userspace library for GPIO access
+ *
+ * Copyright (C) 2018 Clyne Sullivan
+ *
+ * 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#ifndef STMOS_GPIO_H_
#define STMOS_GPIO_H_
@@ -55,3 +75,4 @@ void gpioWrite(gpio_pin_t pin, int value);
int gpioRead(gpio_pin_t pin);
#endif // STMOS_GPIO_H_
+