aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h
diff options
context:
space:
mode:
authorKarl Palsson2013-01-22 21:51:24 +0000
committerKarl Palsson2013-01-22 21:51:24 +0000
commit48eed286b98c6f5389c91be4a82e4e2bef6fc99d (patch)
tree45a96d5286fd031da2c76a555daf16e0de2d8139 /examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h
parent20bfcaeb1c773012f1c41e004915b72f6abba352 (diff)
[l1] fix whitespace and missing license info
Earlier additions to the L1 support were not correctly using linux coding guidelines as specified in /HACKING. Some examples were also missing license information.
Diffstat (limited to 'examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h')
-rw-r--r--examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h b/examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h
index 32cf465..be54502 100644
--- a/examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h
+++ b/examples/stm32/l1/stm32l-discovery/button-irq-printf/syscfg.h
@@ -1,7 +1,20 @@
/*
- * General configuration of the device
+ * This file is part of the libopencm3 project.
*
- * Karl Palsson <karlp@tweak.net.au> 2012
+ * Copyright (C) 2012 Karl Palsson <karlp@tweak.net.au>
+ *
+ * This library is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This library 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 Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SYSCFG_H
@@ -31,10 +44,9 @@ extern "C" {
#define BUTTON_DISCO_USER_isr exti0_isr
#define BUTTON_DISCO_USER_NVIC NVIC_EXTI0_IRQ
-
- struct state_t {
- bool falling;
- };
+ struct state_t {
+ bool falling;
+ };
#ifdef __cplusplus