Commit e3ba9562 authored by Matthias Wenzl's avatar Matthias Wenzl
Browse files

update to ti-rtos 2.16

parent 87bfb98e
This diff is collapsed.
......@@ -53,13 +53,16 @@ int main(void)
led_desc[0].led = GPIO_PIN_1;
/*Initialize+start Blink Task*/
(void) setup_Blink_Task(&led_desc[0], 500);
/*System_printf() is VERY slow!*/
System_printf("Created Blink Task1\n");
System_flush();
led_desc[1].port_base = GPIO_PORTF_BASE;
led_desc[1].led = GPIO_PIN_0;
/*Initialize+start Blink Task*/
(void) setup_Blink_Task(&led_desc[1], 250);
System_printf("Created Blink Task2\n");
System_flush();
/*Initialize+start UART Task*/
(void) setup_UART_Task();
......
/*
* rtos base-system configuration
* (c) DIScoVER 2015
* rtos base-system configuration for TI-RTOS 2.16 and above
* (c) DIScoVER 2015, 2016
*/
/*
......@@ -36,19 +36,34 @@ System.SupportProxy = SysMin;
/* ================ Kernel configuration ================ */
/* Use Custom library */
var BIOS = xdc.useModule('ti.sysbios.BIOS');
//less debug capabilites, but faster and smaller
BIOS.libType = BIOS.LibType_Custom;
BIOS.logsEnabled = true;
BIOS.assertsEnabled = true;
//slower and bigger, but full debug capabilities
//BIOS.libType = BIOS.LibType_Debug;
BIOS.logsEnabled = false;
BIOS.assertsEnabled = false;
/*** Network stack memory pool - fixed size head ***/
var heapBufParams = new HeapBuf.Params();
heapBufParams.blockSize = 1536;
heapBufParams.numBlocks = 8;
Program.global.cfg_netHeap = HeapBuf.create(heapBufParams);
/* ================ Driver configuration ================ */
var TIRTOS = xdc.useModule('ti.tirtos.TIRTOS');
/*
Per driver configuration is not neccessary anymore.
TIRTOS and XDC automatically detect which driver is
used by the application and link the modules when needed.
\cite{TI-RTOS 2.16 User Guide}
*/
var driversConfig = xdc.useModule('ti.drivers.Config');
TIRTOS.supportsGPIO = false;
TIRTOS.useGPIO = false;
//deactivate assertions and logging for drivers
driversConfig.libType = driversConfig.LibType_NonInstrumented;
TIRTOS.supportsUART = true;
TIRTOS.useUART = true;
Task.idleTaskStackSize = 512;
BIOS.heapSize = (1024*10*2);/*system heap - used for task stacks for example*/
......
XOPTS = -I"/home/kramer/ti/xdctools_3_31_01_33_core/packages/" -Dxdc_target_types__=/home/kramer/ti/tirtos_tivac_2_14_00_10/products/bios_6_42_01_20/packages/ti/targets/arm/elf/std.h -Dxdc_target_name__=M4F
XOPTS = -I"/home/wenzl/usr/ti_ccs/xdctools_3_32_00_06_core/packages/" -Dxdc_target_types__=/home/wenzl/usr/ti_ccs/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/ti/targets/arm/elf/std.h -Dxdc_target_name__=M4F
vpath % /home/kramer/ti/tirtos_tivac_2_14_00_10/products/bios_6_42_01_20/packages/ti/sysbios/
vpath %.c /home/kramer/ti/xdctools_3_31_01_33_core/packages/
vpath % /home/wenzl/usr/ti_ccs/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/
vpath %.c /home/wenzl/usr/ti_ccs/xdctools_3_32_00_06_core/packages/
CCOPTS = --endian=little -mv7M4 --abi=eabi --float_support=fpv4spd16 -q -ms --opt_for_speed=2 --program_level_compile -o3 -g --optimize_with_debug -Dti_sysbios_family_arm_m3_Hwi_enableException__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_disablePriority__D=32U -Dti_sysbios_family_arm_m3_Hwi_numSparseInterrupts__D=0U
CCOPTS = --endian=little -mv7M4 --abi=eabi --float_support=fpv4spd16 -q -ms --opt_for_speed=2 --program_level_compile -o3 -g --optimize_with_debug -Dti_sysbios_knl_Task_minimizeLatency__D=FALSE -Dti_sysbios_knl_Clock_stopCheckNext__D=FALSE -Dti_sysbios_family_arm_m3_Hwi_enableException__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_disablePriority__D=32U -Dti_sysbios_family_arm_m3_Hwi_numSparseInterrupts__D=0U
XDC_ROOT = /home/kramer/ti/xdctools_3_31_01_33_core/packages/
XDC_ROOT = /home/wenzl/usr/ti_ccs/xdctools_3_32_00_06_core/packages/
BIOS_ROOT = /home/kramer/ti/tirtos_tivac_2_14_00_10/products/bios_6_42_01_20/packages/ti/sysbios/
BIOS_ROOT = /home/wenzl/usr/ti_ccs/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/
BIOS_DEFS = -Dti_sysbios_BIOS_swiEnabled__D=TRUE -Dti_sysbios_BIOS_taskEnabled__D=TRUE -Dti_sysbios_BIOS_clockEnabled__D=TRUE -Dti_sysbios_BIOS_runtimeCreatesEnabled__D=TRUE -Dti_sysbios_hal_Hwi_DISABLE_ALL_HOOKS -Dti_sysbios_knl_Swi_DISABLE_ALL_HOOKS -Dti_sysbios_knl_Task_DISABLE_ALL_HOOKS -Dti_sysbios_BIOS_smpEnabled__D=FALSE -Dti_sysbios_Build_useHwiMacros -Dti_sysbios_knl_Swi_numPriorities__D=16 -Dti_sysbios_knl_Task_deleteTerminatedTasks__D=FALSE -Dti_sysbios_knl_Task_numPriorities__D=16 -Dti_sysbios_knl_Task_checkStackFlag__D=TRUE -Dti_sysbios_knl_Clock_TICK_SOURCE=ti_sysbios_knl_Clock_TickSource_TIMER -Dti_sysbios_knl_Clock_TICK_MODE=ti_sysbios_knl_Clock_TickMode_PERIODIC -Dti_sysbios_hal_Core_delegate_getId=ti_sysbios_hal_CoreNull_getId__E -Dti_sysbios_hal_Core_delegate_interruptCore=ti_sysbios_hal_CoreNull_interruptCore__E -Dti_sysbios_hal_Core_delegate_lock=ti_sysbios_hal_CoreNull_lock__E -Dti_sysbios_hal_Core_delegate_unlock=ti_sysbios_hal_CoreNull_unlock__E -Dti_sysbios_hal_Core_numCores__D=1 -Dti_sysbios_hal_CoreNull_numCores__D=1 -Dti_sysbios_utils_Load_taskEnabled__D=TRUE -Dti_sysbios_utils_Load_swiEnabled__D=FALSE -Dti_sysbios_utils_Load_hwiEnabled__D=FALSE -Dti_sysbios_family_arm_m3_Hwi_dispatcherSwiSupport__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_dispatcherTaskSupport__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_dispatcherAutoNestingSupport__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_dispatcherIrpTrackingSupport__D=TRUE -Dti_sysbios_knl_Semaphore_supportsEvents__D=FALSE -Dti_sysbios_knl_Semaphore_supportsPriority__D=TRUE
BIOS_DEFS = -Dti_sysbios_BIOS_swiEnabled__D=TRUE -Dti_sysbios_BIOS_taskEnabled__D=TRUE -Dti_sysbios_BIOS_clockEnabled__D=TRUE -Dti_sysbios_BIOS_runtimeCreatesEnabled__D=TRUE -Dti_sysbios_hal_Hwi_DISABLE_ALL_HOOKS -Dti_sysbios_knl_Swi_DISABLE_ALL_HOOKS -Dti_sysbios_BIOS_smpEnabled__D=FALSE -Dti_sysbios_Build_useHwiMacros -Dti_sysbios_knl_Swi_numPriorities__D=16 -Dti_sysbios_knl_Task_deleteTerminatedTasks__D=FALSE -Dti_sysbios_knl_Task_numPriorities__D=16 -Dti_sysbios_knl_Task_checkStackFlag__D=TRUE -Dti_sysbios_knl_Task_initStackFlag__D=TRUE -Dti_sysbios_knl_Task_DISABLE_ALL_HOOKS -Dti_sysbios_knl_Clock_TICK_SOURCE=ti_sysbios_knl_Clock_TickSource_TIMER -Dti_sysbios_knl_Clock_TICK_MODE=ti_sysbios_knl_Clock_TickMode_PERIODIC -Dti_sysbios_hal_Core_delegate_getId=ti_sysbios_hal_CoreNull_getId__E -Dti_sysbios_hal_Core_delegate_interruptCore=ti_sysbios_hal_CoreNull_interruptCore__E -Dti_sysbios_hal_Core_delegate_lock=ti_sysbios_hal_CoreNull_lock__E -Dti_sysbios_hal_Core_delegate_unlock=ti_sysbios_hal_CoreNull_unlock__E -Dti_sysbios_hal_Core_numCores__D=1 -Dti_sysbios_hal_CoreNull_numCores__D=1 -Dti_sysbios_utils_Load_taskEnabled__D=TRUE -Dti_sysbios_utils_Load_swiEnabled__D=FALSE -Dti_sysbios_utils_Load_hwiEnabled__D=FALSE -Dti_sysbios_family_arm_m3_Hwi_dispatcherSwiSupport__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_dispatcherTaskSupport__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_dispatcherAutoNestingSupport__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_dispatcherIrpTrackingSupport__D=TRUE -Dti_sysbios_knl_Semaphore_supportsEvents__D=FALSE -Dti_sysbios_knl_Semaphore_supportsPriority__D=TRUE -Dxdc_runtime_Assert_DISABLE_ALL -Dxdc_runtime_Log_DISABLE_ALL
BIOS_INC = -I"/home/kramer/ti/tirtos_tivac_2_14_00_10/products/bios_6_42_01_20/packages/"
BIOS_INC = -I"/home/wenzl/usr/ti_ccs/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/"
TARGET_INC = -I"/home/kramer/ti/tirtos_tivac_2_14_00_10/products/bios_6_42_01_20/packages/"
TARGET_INC = -I"/home/wenzl/usr/ti_ccs/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/"
INCS = $(BIOS_INC) $(TARGET_INC)
CC = /home/kramer/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/armcl -c $(CCOPTS) -I /home/kramer/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/include
ASM = /home/kramer/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/armcl -c $(CCOPTS) -I /home/kramer/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/include
AR = /home/kramer/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/armar rq
CC = /home/wenzl/usr/ti_ccs/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/bin/armcl -c $(CCOPTS) -I /home/wenzl/usr/ti_ccs/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/include
ASM = /home/wenzl/usr/ti_ccs/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/bin/armcl -c $(CCOPTS) -I /home/wenzl/usr/ti_ccs/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/include
AR = /home/wenzl/usr/ti_ccs/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/bin/armar rq
DEL = rm -f
CP = cp -f
......@@ -87,9 +87,5 @@ sysbios.aem4f: BIOS.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSuppor
clean:
@-$(call RM, sysbios.aem4f)
@-$(call RM, BIOS.obj)
@-$(call RM, m3_Hwi_asm.obj)
@-$(call RM, m3_Hwi_asm_switch.obj)
@-$(call RM, m3_IntrinsicsSupport_asm.obj)
@-$(call RM, m3_TaskSupport_asm.obj)
@$(DEL) ../makefile.libs
@-$(call RM, *)
Supports Markdown
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