Change CFG_TUSB_CONFIG_FILE mechanism to improve header file scanning

This commit is contained in:
Niklas Hauser 2020-09-26 05:40:24 +02:00
parent e41d9202b8
commit 788dcc200d
1 changed files with 5 additions and 3 deletions

View File

@ -110,11 +110,13 @@
// Allow to use command line to change the config name/location
#ifndef CFG_TUSB_CONFIG_FILE
#define CFG_TUSB_CONFIG_FILE "tusb_config.h"
#ifdef CFG_TUSB_CONFIG_FILE
#include CFG_TUSB_CONFIG_FILE
#else
#include "tusb_config.h"
#endif
#include CFG_TUSB_CONFIG_FILE
/** \addtogroup group_configuration
* @{ */