Modified include model of some files.

This model allows using libopenstm32 in parallel with other stm32
firmware libraries. It is not yet complete change to all code but a
start. Only changed parts that I tested.
This commit is contained in:
Piotr Esden-Tempski 2010-02-22 10:01:55 +01:00
parent 94ccc164db
commit efb510f526
4 changed files with 6 additions and 4 deletions

View File

@ -21,7 +21,6 @@
#define LIBOPENSTM32_COMMON_H
#include <stdint.h>
#include <libopenstm32.h>
/* Type definitions for shorter and nicer code */
typedef int8_t s8;

View File

@ -20,7 +20,8 @@
#ifndef LIBOPENSTM32_GPIO_H
#define LIBOPENSTM32_GPIO_H
#include <libopenstm32.h>
#include <libopenstm32/memorymap.h>
#include <libopenstm32/common.h>
/* --- Convenience macros -------------------------------------------------- */

View File

@ -21,7 +21,8 @@
#ifndef LIBOPENSTM32_RCC_H
#define LIBOPENSTM32_RCC_H
#include <libopenstm32.h>
#include <libopenstm32/memorymap.h>
#include <libopenstm32/common.h>
/* Note: Regs/bits marked (**) only exist in "connectivity line" STM32s. */
/* Note: Regs/bits marked (XX) do NOT exist in "connectivity line" STM32s. */

View File

@ -20,7 +20,8 @@
#ifndef LIBOPENSTM32_TIMER_H
#define LIBOPENSTM32_TIMER_H
#include <libopenstm32.h>
#include <libopenstm32/memorymap.h>
#include <libopenstm32/common.h>
/* --- Convenience macros -------------------------------------------------- */