more rename

This commit is contained in:
hathach 2018-03-28 13:25:14 +07:00
parent b6683b1c47
commit 03582f74b8
9 changed files with 11 additions and 13 deletions

View File

@ -52,7 +52,7 @@ extern "C"
#include "tusb_option.h"
#include <stdbool.h>
#include <stdint.h>
#include "compiler/compiler.h"
#include "compiler/tusb_compiler.h"
#include "tusb_hal.h" // TODO find a way to break hal dependency

View File

@ -49,7 +49,7 @@
#include <stdbool.h>
#include <stdint.h>
#include "compiler/compiler.h"
#include "compiler/tusb_compiler.h"
//------------- Bit manipulation -------------//
#define BIT_(n) (1U << (n)) ///< n-th Bit

View File

@ -75,10 +75,8 @@
/** \defgroup Group_FuncAttr Function Attributes
* @{ */
#ifndef ATTR_ALWAYS_INLINE
/// Generally, functions are not inlined unless optimization is specified. For functions declared inline, this attribute inlines the function even if no optimization level is specified
#define ATTR_ALWAYS_INLINE __attribute__ ((always_inline))
#endif
/// The nonnull attribute specifies that some function parameters should be non-null pointers. f the compiler determines that a null pointer is passed in an argument slot marked as non-null, and the -Wnonnull option is enabled, a warning is issued. All pointer arguments are marked as non-null
#define ATTR_NON_NULL __attribute__ ((nonull))

View File

@ -44,9 +44,9 @@
#ifndef _TUSB_COMPILER_H_
#define _TUSB_COMPILER_H_
#define STRING_(x) #x ///< stringify without expand
#define XSTRING_(x) STRING_(x) ///< expand then stringify
#define STRING_CONCAT_(a, b) a##b ///< concat without expand
#define STRING_(x) #x ///< stringify without expand
#define XSTRING_(x) STRING_(x) ///< expand then stringify
#define STRING_CONCAT_(a, b) a##b ///< concat without expand
#define XSTRING_CONCAT_(a, b) STRING_CONCAT_(a, b) ///< expand then concat
//--------------------------------------------------------------------+
@ -74,7 +74,7 @@
#if defined(__GNUC__)
#include "compiler_gcc.h"
#elif defined __ICCARM__ // IAR compiler
#elif defined __ICCARM__
#include "compiler_iar.h"
#endif

View File

@ -44,7 +44,7 @@
#ifndef _TUSB_TIMEOUT_TTIMER_H_
#define _TUSB_TIMEOUT_TTIMER_H_
#include "compiler/compiler.h"
#include "compiler/tusb_compiler.h"
#ifdef __cplusplus
extern "C" {

View File

@ -62,7 +62,7 @@
#include "tusb_option.h"
//------------- General Header -------------//
#include "compiler/compiler.h"
#include "compiler/tusb_compiler.h"
#include "assertion.h"
#include "verify.h"
#include "binary.h"

View File

@ -43,9 +43,9 @@
#ifndef _TUSB_TYPES_H_
#define _TUSB_TYPES_H_
#include "compiler/tusb_compiler.h"
#include <stdbool.h>
#include <stdint.h>
#include "compiler/compiler.h"
#ifdef __cplusplus
extern "C" {

View File

@ -39,7 +39,7 @@
#include "tusb_option.h"
#include <stdbool.h>
#include <stdint.h>
#include "compiler/compiler.h"
#include "compiler/tusb_compiler.h"
#ifdef __cplusplus
extern "C" {

View File

@ -106,7 +106,7 @@
/**
determines the debug level for the stack
- Level 3: TBD
- Level 2: ATTR_ALWAYS_INLINE is null --> no function is inline
- Level 2: TBD
- Level 1: Print out if Assert failed. STATIC_VAR is NULL --> accessible when debugging
- Level 0: no debug information is generated
*/