Other Parts Discussed in Thread: CONTROLSUITE
Hello,
I am trying to print out time and date but CLOCK_REALTIME is undefined showed!. Can anyone give me a feedback what is the reson behind that.
#include "F28x_Project.h"
#include <string.h>
#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/interrupt.h"
#include "driverlib/sysctl.h"
#include "driverlib/systick.h"
#include "utils/cmdline.h"
#include "utils/uartstdio.h"
#include "utils/ustdlib.h"
#include "third_party/fatfs/src/ff.h"
#include "third_party/fatfs/src/diskio.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/_timespec.h>
#include <sys/_types.h>
struct timespec start;
struct tm *today;
__clockid_t clk_id = CLOCK_REALTIME;
clock_gettime(clk_id, &start);
today = localtime(&start);
