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:
@@ -21,7 +21,6 @@
|
|||||||
#define LIBOPENSTM32_COMMON_H
|
#define LIBOPENSTM32_COMMON_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <libopenstm32.h>
|
|
||||||
|
|
||||||
/* Type definitions for shorter and nicer code */
|
/* Type definitions for shorter and nicer code */
|
||||||
typedef int8_t s8;
|
typedef int8_t s8;
|
||||||
|
|||||||
@@ -20,7 +20,8 @@
|
|||||||
#ifndef LIBOPENSTM32_GPIO_H
|
#ifndef LIBOPENSTM32_GPIO_H
|
||||||
#define LIBOPENSTM32_GPIO_H
|
#define LIBOPENSTM32_GPIO_H
|
||||||
|
|
||||||
#include <libopenstm32.h>
|
#include <libopenstm32/memorymap.h>
|
||||||
|
#include <libopenstm32/common.h>
|
||||||
|
|
||||||
/* --- Convenience macros -------------------------------------------------- */
|
/* --- Convenience macros -------------------------------------------------- */
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
#ifndef LIBOPENSTM32_RCC_H
|
#ifndef LIBOPENSTM32_RCC_H
|
||||||
#define 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 (**) only exist in "connectivity line" STM32s. */
|
||||||
/* Note: Regs/bits marked (XX) do NOT exist in "connectivity line" STM32s. */
|
/* Note: Regs/bits marked (XX) do NOT exist in "connectivity line" STM32s. */
|
||||||
|
|||||||
@@ -20,7 +20,8 @@
|
|||||||
#ifndef LIBOPENSTM32_TIMER_H
|
#ifndef LIBOPENSTM32_TIMER_H
|
||||||
#define LIBOPENSTM32_TIMER_H
|
#define LIBOPENSTM32_TIMER_H
|
||||||
|
|
||||||
#include <libopenstm32.h>
|
#include <libopenstm32/memorymap.h>
|
||||||
|
#include <libopenstm32/common.h>
|
||||||
|
|
||||||
/* --- Convenience macros -------------------------------------------------- */
|
/* --- Convenience macros -------------------------------------------------- */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user