aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2010-03-04 19:16:24 +0100
committerPiotr Esden-Tempski2010-03-04 19:16:24 +0100
commitd84c4030b2c90cb2c2fe0a50cfeb1e34cdf48560 (patch)
treee9e4bcf1720fe824c8bd235e30c8086b4d7927f7 /examples
parent9b4b4b1c83aa01da140e48c963a2920ed0cfdcc1 (diff)
Cleaned up header inclusion.
Now all examples are including only the modules they really need. Also each header file of the library is including only the necessary headers making it possible to use these modules in parallel with other implementations that may collide with the definitions in other modules.
Diffstat (limited to 'examples')
-rw-r--r--examples/mb525/fancyblink/fancyblink.c3
-rw-r--r--examples/mb525/pwmleds/pwmleds.c1
-rw-r--r--examples/stm32-h103/fancyblink/fancyblink.c3
-rw-r--r--examples/stm32-h103/miniblink/miniblink.c3
-rw-r--r--examples/stm32-h103/spi/spi.c2
-rw-r--r--examples/stm32-h103/usart/usart.c4
6 files changed, 10 insertions, 6 deletions
diff --git a/examples/mb525/fancyblink/fancyblink.c b/examples/mb525/fancyblink/fancyblink.c
index 9c5e581..f3e7c9b 100644
--- a/examples/mb525/fancyblink/fancyblink.c
+++ b/examples/mb525/fancyblink/fancyblink.c
@@ -18,7 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
+#include <libopenstm32/rcc.h>
+#include <libopenstm32/gpio.h>
/* Set STM32 to 72 MHz. */
void clock_setup(void)
diff --git a/examples/mb525/pwmleds/pwmleds.c b/examples/mb525/pwmleds/pwmleds.c
index 12c88b5..2bff5a4 100644
--- a/examples/mb525/pwmleds/pwmleds.c
+++ b/examples/mb525/pwmleds/pwmleds.c
@@ -17,7 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32/common.h>
#include <libopenstm32/rcc.h>
#include <libopenstm32/gpio.h>
#include <libopenstm32/timer.h>
diff --git a/examples/stm32-h103/fancyblink/fancyblink.c b/examples/stm32-h103/fancyblink/fancyblink.c
index aad1879..1118e4d 100644
--- a/examples/stm32-h103/fancyblink/fancyblink.c
+++ b/examples/stm32-h103/fancyblink/fancyblink.c
@@ -17,7 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
+#include <libopenstm32/rcc.h>
+#include <libopenstm32/gpio.h>
/* Set STM32 to 72 MHz. */
void clock_setup(void)
diff --git a/examples/stm32-h103/miniblink/miniblink.c b/examples/stm32-h103/miniblink/miniblink.c
index a8d253c..21575f6 100644
--- a/examples/stm32-h103/miniblink/miniblink.c
+++ b/examples/stm32-h103/miniblink/miniblink.c
@@ -17,7 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
+#include <libopenstm32/rcc.h>
+#include <libopenstm32/gpio.h>
void gpio_setup(void)
{
diff --git a/examples/stm32-h103/spi/spi.c b/examples/stm32-h103/spi/spi.c
index 86bd2a9..bf313be 100644
--- a/examples/stm32-h103/spi/spi.c
+++ b/examples/stm32-h103/spi/spi.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
+#include <libopenstm32/rcc.h>
void clock_setup(void)
{
diff --git a/examples/stm32-h103/usart/usart.c b/examples/stm32-h103/usart/usart.c
index 52a158d..7f1c343 100644
--- a/examples/stm32-h103/usart/usart.c
+++ b/examples/stm32-h103/usart/usart.c
@@ -17,7 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopenstm32.h>
+#include <libopenstm32/rcc.h>
+#include <libopenstm32/gpio.h>
+#include <libopenstm32/usart.h>
void clock_setup(void)
{