Commit d85bc3bf authored by Martin Hofmann's avatar Martin Hofmann

move Makefile and configurations to app directory

parent e0ed3c6b
......@@ -48,7 +48,7 @@ void BSP_Init (void)
* RESET()
*
* Description : RESET the application
*
*
* Note(s) : (1) Can be used as a hardfault recover function that will reboot the application
*
* Return(s) : none
......
......@@ -54,7 +54,7 @@ void BSP_SysTickInit (void)
*
* (2) Time tick handling is not implemented in the uCOS port files since uCOS does not provide
* a hook to implement a timer initialization for the sys tick timer.
*
*
* Return(s) : none
*********************************************************************************************************
*/
......@@ -119,7 +119,7 @@ void BSP_CPU_SysTickHandler (void)
* inadequate to measure desired times.
*
* See also 'CPU_TS_TmrRd() Note #2'.
*
*
* (3) Timer 0 is used for timestamps.
*********************************************************************************************************
*/
......@@ -212,7 +212,7 @@ void CPU_TS_TmrInit (void)
* (2) Timer period SHOULD be less than the typical measured time but MUST be less
* than the maximum measured time; otherwise, timer resolution inadequate to
* measure desired times.
*
*
* (3) Timer 0 is used for timestamps
*********************************************************************************************************
*/
......
......@@ -68,4 +68,4 @@ void BSP_CPU_SysTickHandler (void);
*********************************************************************************************************
*/
#endif
#endif
......@@ -65,4 +65,4 @@
*********************************************************************************************************
*/
#endif
#endif
......@@ -10,40 +10,40 @@ LOAD = $(BUILD)/load
SIM = $(BUILD)/sim
UCOS_SRCS = Micrium/Software/uC-CPU/cpu_core.c \
Micrium/Software/uCOS-III/Source/os_q.c \
Micrium/Software/uCOS-III/Source/os_stat.c \
Micrium/Software/uCOS-III/Source/os_mutex.c \
Micrium/Software/uCOS-III/Source/os_prio.c \
Micrium/Software/uCOS-III/Source/os_sem.c \
Micrium/Software/uCOS-III/Source/os_var.c \
Micrium/Software/uCOS-III/Source/os_core.c \
Micrium/Software/uCOS-III/Source/os_pend_multi.c \
Micrium/Software/uCOS-III/Source/os_dbg.c \
Micrium/Software/uCOS-III/Source/os_tick.c \
Micrium/Software/uCOS-III/Source/os_mem.c \
Micrium/Software/uCOS-III/Source/os_tmr.c \
Micrium/Software/uCOS-III/Source/os_flag.c \
Micrium/Software/uCOS-III/Source/os_msg.c \
Micrium/Software/uCOS-III/Source/os_task.c \
Micrium/Software/uCOS-III/Source/os_time.c \
Micrium/Software/uCOS-III/Source/os_int.c \
Micrium/Software/uCOS-III/Source/os_cfg_app.c \
Micrium/Software/uC-LIB/lib_mem.c \
Micrium/Software/uC-LIB/lib_math.c \
Micrium/Software/uC-LIB/lib_ascii.c \
Micrium/Software/uC-LIB/lib_str.c
ENTR_SRCS = Micrium/Software/Boards/THM/Generic/LCC/entry.s
BSP_SRCS = Micrium/Software/Boards/THM/Generic/BSP/bsp.c \
Micrium/Software/Boards/THM/Generic/BSP/bsp_timer.c
PORT_SRCS = Micrium/Software/uC-CPU/ECO32/LCC/cpu_a.s \
Micrium/Software/uCOS-III/Ports/ECO32/os_cpu_c.c \
Micrium/Software/uCOS-III/Ports/ECO32/LCC/os_cpu_a.s
APP_SRCS = app/app.c
UCOS_SRCS = ../Micrium/Software/uC-CPU/cpu_core.c \
../Micrium/Software/uCOS-III/Source/os_q.c \
../Micrium/Software/uCOS-III/Source/os_stat.c \
../Micrium/Software/uCOS-III/Source/os_mutex.c \
../Micrium/Software/uCOS-III/Source/os_prio.c \
../Micrium/Software/uCOS-III/Source/os_sem.c \
../Micrium/Software/uCOS-III/Source/os_var.c \
../Micrium/Software/uCOS-III/Source/os_core.c \
../Micrium/Software/uCOS-III/Source/os_pend_multi.c \
../Micrium/Software/uCOS-III/Source/os_dbg.c \
../Micrium/Software/uCOS-III/Source/os_tick.c \
../Micrium/Software/uCOS-III/Source/os_mem.c \
../Micrium/Software/uCOS-III/Source/os_tmr.c \
../Micrium/Software/uCOS-III/Source/os_flag.c \
../Micrium/Software/uCOS-III/Source/os_msg.c \
../Micrium/Software/uCOS-III/Source/os_task.c \
../Micrium/Software/uCOS-III/Source/os_time.c \
../Micrium/Software/uCOS-III/Source/os_int.c \
../Micrium/Software/uCOS-III/Source/os_cfg_app.c \
../Micrium/Software/uC-LIB/lib_mem.c \
../Micrium/Software/uC-LIB/lib_math.c \
../Micrium/Software/uC-LIB/lib_ascii.c \
../Micrium/Software/uC-LIB/lib_str.c
ENTR_SRCS = ../Micrium/Software/Boards/THM/Generic/LCC/entry.s
BSP_SRCS = ../Micrium/Software/Boards/THM/Generic/BSP/bsp.c \
../Micrium/Software/Boards/THM/Generic/BSP/bsp_timer.c
PORT_SRCS = ../Micrium/Software/uC-CPU/ECO32/LCC/cpu_a.s \
../Micrium/Software/uCOS-III/Ports/ECO32/os_cpu_c.c \
../Micrium/Software/uCOS-III/Ports/ECO32/LCC/os_cpu_a.s
APP_SRCS = app.c
OBJS = $(addsuffix .o,$(basename $(ENTR_SRCS))) \
$(addsuffix .o,$(basename $(BSP_SRCS))) \
......@@ -51,14 +51,13 @@ OBJS = $(addsuffix .o,$(basename $(ENTR_SRCS))) \
$(addsuffix .o,$(basename $(UCOS_SRCS))) \
$(addsuffix .o,$(basename $(APP_SRCS)))
INC_DIRS = Micrium/Software/uC-CPU \
Micrium/Software/uC-CPU/ECO32/LCC \
Micrium/Software/uCOS-III/Source \
Micrium/Software/uCOS-III/Ports/ECO32/LCC \
Micrium/Software/uC-LIB \
Micrium/Software/Boards/THM/Generic/BSP \
Template \
app
INC_DIRS = ../Micrium/Software/uC-CPU \
../Micrium/Software/uC-CPU/ECO32/LCC \
../Micrium/Software/uCOS-III/Source \
../Micrium/Software/uCOS-III/Ports/ECO32/LCC \
../Micrium/Software/uC-LIB \
../Micrium/Software/Boards/THM/Generic/BSP \
./
INCS = $(addprefix -I,$(INC_DIRS))
......@@ -78,7 +77,7 @@ $(BIN): $(EXE)
$(EXE): $(OBJS)
@echo " LD $@"
@$(LD) $(OBJS) -s app/standalone.lnk -m $(MAP) -o $(EXE)
@$(LD) $(OBJS) -s standalone.lnk -m $(MAP) -o $(EXE)
%.o: %.c
@echo " CC $@"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment