annotate projects/d-box/logger.h @ 39:638bc1ae2500 staging

Improved readibility of the DIGITAL code in the PRU, using register names instead of aliases and expanding some of the macros, removing unused macros. Binaries were not modified
author Giulio Moro <giuliomoro@yahoo.it>
date Wed, 13 May 2015 12:18:10 +0100
parents 8a575ba3ab52
children
rev   line source
andrewm@0 1 /*
andrewm@0 2 * logger.h
andrewm@0 3 *
andrewm@0 4 * Created on: Aug 6, 2014
andrewm@0 5 * Author: Victor Zappi and Andrew McPherson
andrewm@0 6 */
andrewm@0 7
andrewm@0 8 #ifndef LOGGER_H_
andrewm@0 9 #define LOGGER_H_
andrewm@0 10
andrewm@0 11 #include <string.h>
andrewm@0 12 #include <pthread.h>
andrewm@0 13 #include <stdio.h>
andrewm@0 14 #include <fstream> // file handle
andrewm@0 15 #include <iostream> // stringstream
andrewm@0 16 #include <sstream> // stringstream
andrewm@0 17 #include <glob.h> // alternative to dirent.h to handle files in dirs
andrewm@0 18 #include <iomanip> // setfill
andrewm@0 19 #include <sys/time.h> // elapsed time
andrewm@0 20
andrewm@0 21 #include "config.h"
andrewm@0 22 #include "prio.h"
andrewm@0 23
andrewm@0 24 using namespace std;
andrewm@0 25
andrewm@0 26 int initLogLoop();
andrewm@0 27 void *logLoop(void *);
andrewm@0 28
andrewm@0 29
andrewm@0 30 #endif /* LOGGER_H_ */