make reorganized

This commit is contained in:
tkl
2016-08-16 14:28:08 +02:00
parent caa360625b
commit a8a4cb263d
16 changed files with 268 additions and 116 deletions

View File

@@ -1 +1,3 @@
ifeq ($(CPU), stm32f4xx)
include source/firmware/arch/stm32f4xx/stm32f4xx.mk
endif

View File

@@ -1,2 +1,4 @@
INCLUDES += source/firmware
include source/firmware/arch/arch.mk
include source/firmware/kernel/kernel.mk

View File

@@ -8,8 +8,8 @@
#ifndef CTX_H_
#define CTX_H_
//#ifdef ARCH_STM32F4XX
#ifdef ARCH_STM32F4XX
#include "stm32f4xx_ctx.h"
//#endif
#endif
#endif /* CTX_H_ */

View File

@@ -8,7 +8,8 @@
#ifndef IRQ_H_
#define IRQ_H_
//#ifdef ARCH_STM32F4XX
#ifdef ARCH_STM32F4XX
#include "stm32f4xx_irq.h"
//#endif
#endif
#endif /* IRQ_H_ */

View File

@@ -8,8 +8,8 @@
#ifndef LOW_POWER_H_
#define LOW_POWER_H_
//#ifdef ARCH_STM32F4XX
#ifdef ARCH_STM32F4XX
#include "stm32f4xx_low_power.h"
//#endif
#endif
#endif /* LOW_POWER_H_ */

View File

@@ -8,9 +8,9 @@
#ifndef SCHEDULE_H_
#define SCHEDULE_H_
//#ifdef ARCH_STM32F4XX
#ifdef ARCH_STM32F4XX
#include "stm32f4xx_ctx.h"
//#endif
#endif
#define schedule() arch_schedule()

View File

@@ -8,8 +8,8 @@
#ifndef STACK_H_
#define STACK_H_
//#ifdef ARCH_STM32F4XX
#ifdef ARCH_STM32F4XX
#include "stm32f4xx_stack.h"
//#endif
#endif
#endif /* STACK_H_ */

View File

@@ -0,0 +1 @@
SRC_DIR += source/test/blinky

View File

@@ -1,2 +0,0 @@
SRC_DIR += source/test/src
INCLUDES += source/test/src/include

View File

@@ -1,7 +1,9 @@
#ifeq ($(TEST_APP), shell)
#include source/test/shell/shell.mk
#endif
#ifeq ($(TEST_APP), pwm)
#include source/test/pwm/pwm.mk
#endif
include source/src/src.mk
ifeq ($(TEST_APP), shell)
include source/test/shell/shell.mk
endif
ifeq ($(TEST_APP), pwm)
include source/test/pwm/pwm.mk
endif
ifeq ($(TEST_APP), blinky)
include source/test/blinky/blinky.mk
endif