You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.1 KiB
59 lines
1.1 KiB
2 years ago
|
#ifndef __407_BASE_H
|
||
|
#define __407_BASE_H
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#ifndef USE_ELOG
|
||
|
#define USE_ELOG
|
||
|
#endif
|
||
|
|
||
|
#if !defined(LOG_TAG)
|
||
|
#define LOG_TAG "BASE"
|
||
|
#endif
|
||
|
#undef LOG_LVL
|
||
|
#if defined(BASE_LOG_LVL)
|
||
|
#define LOG_LVL BASE_LOG_LVL
|
||
|
#endif
|
||
|
|
||
|
#ifdef USE_ELOG
|
||
|
#include "elog.h"
|
||
|
#undef LOG_LVL
|
||
|
#if !defined(LOG_TAG)
|
||
|
#define LOG_TAG "BASE"
|
||
|
#endif
|
||
|
#undef LOG_LVL
|
||
|
#if defined(BASE_LOG_LVL)
|
||
|
#define LOG_LVL BASE_LOG_LVL
|
||
|
#endif
|
||
|
#define BASE_INFO(fmt,arg...) log_i(""fmt"",##arg)
|
||
|
#else
|
||
|
#include <stdio.h>
|
||
|
#define BASE_INFO(fmt,arg...) printf("[Base] -> "fmt"\n",##arg)
|
||
|
#endif
|
||
|
|
||
|
|
||
|
#include "FreeRTOS.h"
|
||
|
#include "task.h"
|
||
|
#include "main.h"
|
||
|
#include "cmsis_os.h"
|
||
|
#include "usart.h"
|
||
|
#include "stm32f4xx.h"
|
||
|
|
||
|
#include "myrtos.h"
|
||
|
#include "bsp_sdram.h"
|
||
|
#include "bsp_nand.h"
|
||
|
#include "malloc.h"
|
||
|
#include "bsp_dma2d.h"
|
||
|
#include "bsp_lcd.h"
|
||
|
// #include "bsp_ltdc.h"
|
||
|
// #include "bsp_gt9xx.h"
|
||
|
#include "bsp_spiflash.h"
|
||
|
#include "fatfs.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
#endif
|