Skip to content

Commit

Permalink
InitTask.c
Browse files Browse the repository at this point in the history
  • Loading branch information
gwengardner committed Feb 14, 2020
1 parent d811480 commit 98f5643
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions projects/cm_mcu/InitTask.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* InitTask.c
*
* Created on: Feb 7, 2020
* Author: glg62
*/

// includes for types
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>

#include "FreeRTOS.h"
#include "FreeRTOSConfig.h"
#include "task.h"

#include "driverlib/eeprom.h"
#include "common/utils.h"
#include "Tasks.h"


void InitTask(void *parameters){

// Initialize eeprom error buffer
errbuffer_init(ebuf,EBUF_MINBLK,EBUF_MAXBLK);
errbuffer_put(ebuf,RESTART,0);


// Delete this task
vTaskDelete(xTaskGetCurrentTaskHandle());
}

0 comments on commit 98f5643

Please sign in to comment.