stm32f4 target spec code compiling
This commit is contained in:
@@ -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_ */
|
||||
|
@@ -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_ */
|
||||
|
@@ -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_ */
|
||||
|
@@ -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()
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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_ */
|
||||
|
Reference in New Issue
Block a user