This commit is contained in:
sasdf 2016-08-02 14:06:56 +00:00 committed by GitHub
commit e8daa893ed
53 changed files with 20817 additions and 13816 deletions

View file

@ -52,7 +52,7 @@ void user_init(void)
IP4_ADDR(&first_client_ip, 172, 16, 0, 2);
dhcpserver_start(&first_client_ip, 4);
xTaskCreate(telnetTask, (signed char *)"telnetTask", 512, NULL, 2, NULL);
xTaskCreate(telnetTask, (const char * const)"telnetTask", 512, NULL, 2, NULL);
}
/* Telnet task listens on port 23, returns some status information and then closes

View file

@ -54,6 +54,6 @@ void blinkenRegisterTask(void *pvParameters)
void user_init(void)
{
uart_set_baud(0, 115200);
xTaskCreate(blinkenTask, (signed char *)"blinkenTask", 256, NULL, 2, NULL);
//xTaskCreate(blinkenRegisterTask, (signed char *)"blinkenRegisterTask", 256, NULL, 2, NULL);
xTaskCreate(blinkenTask, (const char * const)"blinkenTask", 256, NULL, 2, NULL);
//xTaskCreate(blinkenRegisterTask, (const char * const)"blinkenRegisterTask", 256, NULL, 2, NULL);
}

View file

@ -113,10 +113,10 @@ void user_init(void)
mainqueue = xQueueCreate(10, sizeof(my_event_t));
// Create user interface task
xTaskCreate(bmp180_task, (signed char *)"bmp180_task", 256, &mainqueue, 2, NULL);
xTaskCreate(bmp180_task, (const char * const)"bmp180_task", 256, &mainqueue, 2, NULL);
// Create Timer (Trigger a measurement every second)
timerHandle = xTimerCreate((signed char *)"BMP180 Trigger", 1000/portTICK_RATE_MS, pdTRUE, NULL, bmp180_i2c_timer_cb);
timerHandle = xTimerCreate((const char * const)"BMP180 Trigger", 1000/portTICK_RATE_MS, pdTRUE, NULL, bmp180_i2c_timer_cb);
if (timerHandle != NULL)
{

View file

@ -81,8 +81,8 @@ void user_init(void)
printf("GIT version : %s\n", GITSHORTREV);
#ifdef MODE_FORCED
xTaskCreate(bmp280_task_forced, (signed char *)"bmp280_task", 256, NULL, 2, NULL);
xTaskCreate(bmp280_task_forced, (const char * const)"bmp280_task", 256, NULL, 2, NULL);
#else
xTaskCreate(bmp280_task_normal, (signed char *)"bmp280_task", 256, NULL, 2, NULL);
xTaskCreate(bmp280_task_normal, (const char * const)"bmp280_task", 256, NULL, 2, NULL);
#endif
}

View file

@ -79,6 +79,6 @@ void user_init(void)
gpio_enable(gpio, GPIO_INPUT);
tsqueue = xQueueCreate(2, sizeof(uint32_t));
xTaskCreate(buttonIntTask, (signed char *)"buttonIntTask", 256, &tsqueue, 2, NULL);
xTaskCreate(buttonPollTask, (signed char*)"buttonPollTask", 256, NULL, 1, NULL);
xTaskCreate(buttonIntTask, (const char * const)"buttonIntTask", 256, &tsqueue, 2, NULL);
xTaskCreate(buttonPollTask, (const char * const)"buttonPollTask", 256, NULL, 1, NULL);
}

View file

@ -44,6 +44,6 @@ void dhtMeasurementTask(void *pvParameters)
void user_init(void)
{
uart_set_baud(0, 115200);
xTaskCreate(dhtMeasurementTask, (signed char *)"dhtMeasurementTask", 256, NULL, 2, NULL);
xTaskCreate(dhtMeasurementTask, (const char * const)"dhtMeasurementTask", 256, NULL, 2, NULL);
}

View file

@ -119,6 +119,6 @@ void user_init(void)
sdk_wifi_set_opmode(STATION_MODE);
sdk_wifi_station_set_config(&config);
xTaskCreate(&broadcast_temperature, (signed char *)"broadcast_temperature", 256, NULL, 2, NULL);
xTaskCreate(&broadcast_temperature, (const char * const)"broadcast_temperature", 256, NULL, 2, NULL);
}

View file

@ -73,6 +73,6 @@ void print_temperature(void *pvParameters) {
void user_init(void) {
uart_set_baud(0, 115200);
xTaskCreate(&print_temperature, (signed char *)"print_temperature", 256, NULL, 2, NULL);
xTaskCreate(&print_temperature, (const char * const)"print_temperature", 256, NULL, 2, NULL);
}

View file

@ -119,7 +119,7 @@ void frc2_handler(void)
void user_init(void)
{
uart_set_baud(0, 115200);
xTaskCreate(timerRegTask, (signed char *)"timerRegTask", 1024, NULL, 2, NULL);
xTaskCreate(timerRegTask, (const char * const)"timerRegTask", 1024, NULL, 2, NULL);
TIMER(0).CTRL = VAL2FIELD(TIMER_CTRL_CLKDIV, TIMER_CLKDIV_256) | TIMER_CTRL_RELOAD;
TIMER(0).LOAD = 0x200000;

View file

@ -230,7 +230,7 @@ void user_init(void)
test_sign_extension();
xTaskHandle taskHandle;
xTaskCreate(test_system_interaction, (signed char *)"interactionTask", 256, &taskHandle, 2, NULL);
xTaskCreate(test_system_interaction, (const char * const)"interactionTask", 256, &taskHandle, 2, NULL);
}
static volatile bool frc1_ran;

View file

@ -126,6 +126,6 @@ void user_init(void)
sdk_wifi_set_opmode(STATION_MODE);
sdk_wifi_station_set_config(&config);
xTaskCreate(&http_get_task, (signed char *)"get_task", 256, NULL, 2, NULL);
xTaskCreate(&http_get_task, (const char * const)"get_task", 256, NULL, 2, NULL);
}

View file

@ -333,5 +333,5 @@ void user_init(void)
sdk_wifi_set_opmode(STATION_MODE);
sdk_wifi_station_set_config(&config);
xTaskCreate(&http_get_task, (signed char *)"get_task", 2048, NULL, 2, NULL);
xTaskCreate(&http_get_task, (const char * const)"get_task", 2048, NULL, 2, NULL);
}

View file

@ -108,5 +108,5 @@ void user_init(void)
{
uart_set_baud(0, 115200);
printf("SDK version:%s\n", sdk_system_get_sdk_version());
xTaskCreate(json_test, (signed char *)"jsont", 1024, NULL, 2, NULL);
xTaskCreate(json_test, (const char * const)"jsont", 1024, NULL, 2, NULL);
}

View file

@ -216,7 +216,7 @@ void user_init(void)
vSemaphoreCreateBinary(wifi_alive);
publish_queue = xQueueCreate(3, PUB_MSG_LEN);
xTaskCreate(&wifi_task, (int8_t *)"wifi_task", 256, NULL, 2, NULL);
xTaskCreate(&beat_task, (int8_t *)"beat_task", 256, NULL, 3, NULL);
xTaskCreate(&mqtt_task, (int8_t *)"mqtt_task", 1024, NULL, 4, NULL);
xTaskCreate(&wifi_task, (const char * const)"wifi_task", 256, NULL, 2, NULL);
xTaskCreate(&beat_task, (const char * const)"beat_task", 256, NULL, 3, NULL);
xTaskCreate(&mqtt_task, (const char * const)"mqtt_task", 1024, NULL, 4, NULL);
}

View file

@ -138,5 +138,5 @@ void user_init(void)
printf("Starting TFTP server...");
ota_tftp_init_server(TFTP_PORT);
xTaskCreate(&tftp_client_task, (signed char *)"tftp_client", 2048, NULL, 2, NULL);
xTaskCreate(&tftp_client_task, (const char * const)"tftp_client", 2048, NULL, 2, NULL);
}

View file

@ -46,5 +46,5 @@ void user_init(void)
printf("pwm_start()\n");
pwm_start();
xTaskCreate(task1, (signed char *)"tsk1", 256, NULL, 2, NULL);
xTaskCreate(task1, (const char * const)"tsk1", 256, NULL, 2, NULL);
}

View file

@ -39,6 +39,6 @@ void user_init(void)
uart_set_baud(0, 115200);
printf("SDK version:%s\n", sdk_system_get_sdk_version());
mainqueue = xQueueCreate(10, sizeof(uint32_t));
xTaskCreate(task1, (signed char *)"tsk1", 256, &mainqueue, 2, NULL);
xTaskCreate(task2, (signed char *)"tsk2", 256, &mainqueue, 2, NULL);
xTaskCreate(task1, (const char * const)"tsk1", 256, &mainqueue, 2, NULL);
xTaskCreate(task2, (const char * const)"tsk2", 256, &mainqueue, 2, NULL);
}

View file

@ -61,5 +61,5 @@ extern "C" void user_init(void)
{
uart_set_baud(0, 115200);
printf("SDK version:%s\n", sdk_system_get_sdk_version());
xTaskCreate(task1, (signed char *)"tsk1", 256, NULL, 2, NULL);
xTaskCreate(task1, (const char * const)"tsk1", 256, NULL, 2, NULL);
}

View file

@ -74,6 +74,6 @@ void user_init(void)
sdk_wifi_set_opmode(STATION_MODE);
sdk_wifi_station_set_config(&config);
xTaskCreate(sntp_tsk, (signed char *)"SNTP", 1024, NULL, 1, NULL);
xTaskCreate(sntp_tsk, (const char * const)"SNTP", 1024, NULL, 1, NULL);
}

View file

@ -254,5 +254,5 @@ void user_init(void)
sdk_wifi_set_opmode(STATION_MODE);
sdk_wifi_station_set_config(&config);
xTaskCreate(&tls_server_task, (signed char *)"server_task", 2048, NULL, 2, NULL);
xTaskCreate(&tls_server_task, (const char * const)"server_task", 2048, NULL, 2, NULL);
}

View file

@ -148,6 +148,6 @@ void user_init(void)
// notice the glitches due to NMI.
printf("Starting a task. There may be glitches!\r\n");
xTaskCreate(&demo, (signed char *)"strip demo", 256, NULL, 10, NULL);
xTaskCreate(&demo, (const char * const)"strip demo", 256, NULL, 10, NULL);
#endif
}