This commit is contained in:
hathach
2012-12-18 15:08:30 +07:00
parent 50c89192d8
commit ec4a3f6048
35 changed files with 1570 additions and 3637 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -79,4 +79,15 @@
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
<filteredResources>
<filter>
<id>1355422234250</id>
<name>html</name>
<type>5</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-index.html</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@@ -118,7 +118,7 @@
#define ASSERT_MESSAGE(condition, value, message) \
do{\
if (!(condition)) {\
PRINTF("Assert at %s line %d: %s\n", __PRETTY_FUNCTION__, __LINE__, message); \
PRINTF("Assert at %s %s line %d: %s\n", __BASE_FILE__, __PRETTY_FUNCTION__, __LINE__, message); \
return (value);\
}\
}while(0)
@@ -129,7 +129,7 @@
do{\
TUSB_Error_t status = (TUSB_Error_t)(sts);\
if (tERROR_NONE != status) {\
PRINTF("Assert at %s line %d: %s %s\n", __func__, __LINE__, TUSB_ErrorStr[status], message); \
PRINTF("Assert at %s line %d: %s %s\n", __BASE_FILE__, __PRETTY_FUNCTION__, __LINE__, TUSB_ErrorStr[status], message); \
return status;\
}\
}while(0)

View File

@@ -661,7 +661,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
INPUT = tinyusb overview.md license.md
INPUT = ./ ../overview.md ../license.md
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
@@ -693,7 +693,7 @@ RECURSIVE = YES
# Note that relative paths are relative to the directory from which doxygen is
# run.
EXCLUDE = tinyusb/device/romdriver
EXCLUDE = device/romdriver
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
# directories that are symbolic links (a Unix file system feature) are excluded

View File

@@ -46,15 +46,22 @@
* @{
*/
#ifndef _TUSB_TUSB_CFG_H_
#define _TUSB_TUSB_CFG_H_
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _TUSB_CFG_H_
#define _TUSB_CFG_H_
/// define this symbol will make tinyusb look for external configure file
#ifdef TUSB_USE_CONFIG_FILE
#include "tusb_config.h"
#endif
/// 0: no debug infor 3: most debug infor provided
#ifndef CFG_TUSB_DEBUG_LEVEL
#define CFG_TUSB_DEBUG_LEVEL 3
#endif
/// Enable Host Support
#define CFG_TUSB_HOST
@@ -103,6 +110,6 @@
}
#endif
#endif /* _TUSB_CFG_H_ */
#endif /* _TUSB_TUSB_CFG_H_ */
/** @} */