2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file main.h
|
|
|
|
* @brief Test version of main.h
|
|
|
|
*
|
|
|
|
* Created on: Oct 17, 2013
|
|
|
|
* Author: Andrey Belomutskiy (C) 2012-2013
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MAIN_H_
|
|
|
|
#define MAIN_H_
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <math.h>
|
2018-03-04 20:08:32 -08:00
|
|
|
#include "efitime.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
#include "global.h"
|
2018-03-04 20:08:32 -08:00
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
#include "error_handling.h"
|
|
|
|
#include "efifeatures.h"
|
|
|
|
|
|
|
|
#include "efilib.h"
|
|
|
|
#include "efitime.h"
|
|
|
|
|
|
|
|
#include "boards.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include "datalogging.h"
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define CH_FREQUENCY 1000
|
|
|
|
|
|
|
|
typedef int bool_t;
|
2018-03-04 17:15:05 -08:00
|
|
|
typedef uint32_t systime_t;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
void chDbgAssert(int c, char *msg, void *arg);
|
|
|
|
|
|
|
|
void print(const char *fmt, ...);
|
|
|
|
|
|
|
|
#define TICKS_IN_MS 100
|
|
|
|
|
|
|
|
#define chDbgCheck(x, y) chDbgAssert(x, y, NULL)
|
|
|
|
|
|
|
|
#define systicks2ms(x) (0)
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* MAIN_H_ */
|