Skip to content

Commit

Permalink
remove task example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefferson-Lopes committed Mar 2, 2024
1 parent f8ff2d0 commit 26f6c2b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 32 deletions.
26 changes: 13 additions & 13 deletions ECU_front/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ static const char* TAG = "ECU_front";

static const gpio_num_t alive_pin = GPIO_NUM_2;

// static const int cr = 8; // coding rate
// static const int sbw = 1; // signal bandwidth
// static const int sf = 7; // spreading factor rate
static const int cr = 8; // coding rate
static const int sbw = 1; // signal bandwidth
static const int sf = 7; // spreading factor rate

void app_main(void) {
ESP_LOGW(TAG, "ECU front v5");
Expand All @@ -42,7 +42,7 @@ void app_main(void) {

print_mac_address();

// system_lora_init(cr, sbw, sf);
system_lora_init(cr, sbw, sf);

// -----fire up tasks-----
xTaskCreatePinnedToCore(
Expand All @@ -65,15 +65,15 @@ void app_main(void) {
APP_CPU_NUM // core number
);

// xTaskCreatePinnedToCore(
// task_lora_sender, // task function
// "lora sender", // task name
// 4096, // stack size
// NULL, // parameters
// 8, // priority
// &th_lora, // handler
// PRO_CPU_NUM // core number
// );
xTaskCreatePinnedToCore(
task_lora_sender, // task function
"lora sender", // task name
4096, // stack size
NULL, // parameters
8, // priority
&th_lora, // handler
PRO_CPU_NUM // core number
);

xTaskCreatePinnedToCore(
task_rollover, // task function
Expand Down
19 changes: 0 additions & 19 deletions components/rollover/src/rollover.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,6 @@

static const char *TAG = "task_rollover";

void task_example(void *arg){
(void)arg;

// create task variables

// show remaining task space
print_task_remaining_space();

for (;;) {
// do something
ESP_LOGW(TAG, "do some work");

// some delay
vTaskDelay(pdMS_TO_TICKS(500));

vTaskDelay(pdMS_TO_TICKS(1)); // free up the processor
}
}

void task_rollover(void *arg){
(void)arg;

Expand Down

0 comments on commit 26f6c2b

Please sign in to comment.