make reorganized
This commit is contained in:
@@ -1 +1,3 @@
|
||||
ifeq ($(CPU), stm32f4xx)
|
||||
include source/firmware/arch/stm32f4xx/stm32f4xx.mk
|
||||
endif
|
||||
|
@@ -1,2 +1,4 @@
|
||||
INCLUDES += source/firmware
|
||||
|
||||
include source/firmware/arch/arch.mk
|
||||
include source/firmware/kernel/kernel.mk
|
||||
|
@@ -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_ */
|
||||
|
@@ -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_ */
|
||||
|
@@ -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_ */
|
||||
|
@@ -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()
|
||||
|
||||
|
@@ -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_ */
|
||||
|
1
source/test/blinky/blinky.mk
Normal file
1
source/test/blinky/blinky.mk
Normal file
@@ -0,0 +1 @@
|
||||
SRC_DIR += source/test/blinky
|
@@ -1,2 +0,0 @@
|
||||
SRC_DIR += source/test/src
|
||||
INCLUDES += source/test/src/include
|
@@ -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
|
||||
|
Reference in New Issue
Block a user