-
Notifications
You must be signed in to change notification settings - Fork 0
/
sd_logger.c
37 lines (32 loc) · 832 Bytes
/
sd_logger.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* XDCtools Header files */
#include <xdc/runtime/System.h>
#include <xdc/std.h>
/* BIOS Header files */
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Task.h>
/* TI-RTOS Header files */
#include <ti/drivers/GPIO.h>
/* Board Header file */
#include "Board.h"
#include "heartbeat_task.h"
#include "sd_card.h"
#include "uart_console_task.h"
#include "uart_logger_task.h"
/*
* ======== main ========
*/
int main(void) {
/* Call general board init*/
Board_initGeneral();
Board_initUART(); // Done here since both the console and logger use it.
uart_console_prebios();
// Enable the heartbeat task
Board_initGPIO();
heartbeat_prebios();
uart_logger_prebios();
// Setup required pthread variables for the SD card.
sd_setup();
/* Start BIOS */
BIOS_start();
return (0);
}