mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 10:43:44 +00:00
more rename
This commit is contained in:
parent
b6683b1c47
commit
03582f74b8
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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))
|
||||
|
@ -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
|
||||
|
@ -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" {
|
||||
|
@ -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"
|
||||
|
@ -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" {
|
||||
|
@ -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" {
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user