Browse Source

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.
pull/2/head
Piotr Esden-Tempski 15 years ago
parent
commit
efb510f526
  1. 1
      include/libopenstm32/common.h
  2. 3
      include/libopenstm32/gpio.h
  3. 3
      include/libopenstm32/rcc.h
  4. 3
      include/libopenstm32/timer.h

1
include/libopenstm32/common.h

@ -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;

3
include/libopenstm32/gpio.h

@ -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 -------------------------------------------------- */

3
include/libopenstm32/rcc.h

@ -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. */

3
include/libopenstm32/timer.h

@ -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 -------------------------------------------------- */

Loading…
Cancel
Save