RPP_CFLAGS += -I$(makefile_inc_dir)/cmdproc/include -I$(makefile_inc_dir)
RPP_CFLAGS += -I. # For version.h
+RPP_LDFLAGS += --heap_size=2048 # Assert requires stdio and it requires heap
+
rpp-test-sw.out: $(OBJS) $(RPP_LIB_DIR)/rpp-lib.lib
$(LD) $(RPP_CFLAGS) $(RPP_LDFLAGS) $(OBJS) $(RPP_LDLIBS) -o $@
/*
- * Copyright (C) 2012-2013 Czech Technical University in Prague
+ * Copyright (C) 2012-2015 Czech Technical University in Prague
*
* Created on: 1.8.2012
*
{
int taskRetVal;
- if ((taskRetVal = xTaskCreate(processCmd, (const signed char *)"processCmd", 1000, NULL, priority, processCmdHandler)) != pdPASS) {
+ if ((taskRetVal = xTaskCreate(processCmd, "processCmd", 1000, NULL, priority, processCmdHandler)) != pdPASS) {
rpp_sci_printf("FreeRTOS: Creating task processCmd failed. Error code: %d", taskRetVal);
/* An error occurred, block program */
while (1)
/*
* cmd_echoserver.c -- Simple echoserver
*
- * Copyright (C) 2014 Czech Technical University in Prague
+ * Copyright (C) 2014, 2015 Czech Technical University in Prague
*
* This echoserver is capable of running multiple instances each running
* in the background thread.
{
struct netif *netif = rpp_eth_get_netif(INTERFACE_INSTANCE_NUMBER);
struct es_thread_context *thread_context;
- unsigned char thread_name[5] = "es"; /* thread name, used for debugging only */
+ char thread_name[5] = "es"; /* thread name, used for debugging only */
err_t err = ERR_OK;
uint8_t pindex;
int thread_nr;
/*
- * Copyright (C) 2012-2013 Czech Technical University in Prague
+ * Copyright (C) 2012-2013, 2015 Czech Technical University in Prague
*
* Created on: Aug 9, 2013
*
buff_index = 0;
/* initialize arguments and thread name */
#if !NO_SYS
- uint8_t name[5] = "nc";
+ char name[5] = "nc";
name[4] = '\0';
struct nc_arg nc_arg; /* create space for handing args to nc_run() */
nc_arg.thread = FALSE;
rpp_sci_printf("STARTING THREAD: %s\r\n", name);
taskNameNum++;
/* start thread */
- if ((err = xTaskCreate(&run_nc,(const signed char *)name, ncTaskStackSize, &nc_arg, ncTaskPriority, NULL)) == pdPASS) {
+ if ((err = xTaskCreate(&run_nc, name, ncTaskStackSize, &nc_arg, ncTaskPriority, NULL)) == pdPASS) {
/* block on semaphore, till new thread copies arg to own stack */
xSemaphoreTake( nc_arg.args_coppied, portMAX_DELAY );
vSemaphoreDelete(nc_arg.args_coppied);
/*
- * Copyright (C) 2012-2013 Czech Technical University in Prague
+ * Copyright (C) 2012-2013, 2015 Czech Technical University in Prague
*
* Created on: 28.2.2013
*
// after the noise task could not be created, forcing to close the just
// opened command processor.
portBASE_TYPE task_created = xTaskCreate(sdr_test_task,
- (const signed char *)"sdr_test_task",
- TEST_TASK_STACK, NULL, TEST_TASK_PRIORITY,
- &test_task_handle
- );
+ "sdr_test_task",
+ TEST_TASK_STACK, NULL, TEST_TASK_PRIORITY,
+ &test_task_handle
+ );
if (task_created != pdPASS) {