From a5892b35233748b2fcff1f726314c9a8df749f9c Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 24 Jan 2020 09:15:46 -0500 Subject: Reviewed stmos, made small format/doc fixes --- src/libgpio/gpio.c | 21 +++++++++++++++++++++ src/libgpio/gpio.h | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) (limited to 'src/libgpio') 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 . + */ + #include "gpio.h" #include +// 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 . + */ + #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_ + -- cgit v1.2.3