stm32f4 target spec code compiling

This commit is contained in:
tkl
2016-08-16 09:33:49 +02:00
parent 073f5093dd
commit 39f10bd4ba
15 changed files with 23 additions and 36 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -8,11 +8,14 @@
#ifndef SOURCE_FIRMWARE_KERNEL_INCLUDE_SHELL_DATA_H_
#define SOURCE_FIRMWARE_KERNEL_INCLUDE_SHELL_DATA_H_
#pragma pack(push)
#pragma pack(1)
struct shell_object {
struct list command_list;
const struct driver *shell_device;
bool echo_on;
};
#pragma pack(pop)
struct shell_object shell_object;

View File

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