aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgpio/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgpio/gpio.c')
-rw-r--r--src/libgpio/gpio.c21
1 files changed, 21 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