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