diff options
| author | hathach <[email protected]> | 2025-10-28 13:21:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-28 14:14:01 +0700 |
| commit | d92b810df7670aae0e195fd02abef5014470c2f7 (patch) | |
| tree | 483d0928f9c1f5bd75770b23d9309dcb5113312c /src/typec | |
| parent | 417f44acab92c42338b584bd0511e51781ff2821 (diff) | |
fix Identifiers that start with '__' or '_[A-Z]' are reserved.
fix compiling with nuc family
Diffstat (limited to 'src/typec')
| -rw-r--r-- | src/typec/pd_types.h | 4 | ||||
| -rw-r--r-- | src/typec/tcd.h | 4 | ||||
| -rw-r--r-- | src/typec/usbc.h | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/typec/pd_types.h b/src/typec/pd_types.h index 1b2968f65..950f4d488 100644 --- a/src/typec/pd_types.h +++ b/src/typec/pd_types.h @@ -24,8 +24,8 @@ * This file is part of the TinyUSB stack. */ -#ifndef _TUSB_PD_TYPES_H_ -#define _TUSB_PD_TYPES_H_ +#ifndef TUSB_PD_TYPES_H_ +#define TUSB_PD_TYPES_H_ #ifdef __cplusplus extern "C" { diff --git a/src/typec/tcd.h b/src/typec/tcd.h index bcbdab8ed..da7ab4b13 100644 --- a/src/typec/tcd.h +++ b/src/typec/tcd.h @@ -24,8 +24,8 @@ * This file is part of the TinyUSB stack. */ -#ifndef _TUSB_TCD_H_ -#define _TUSB_TCD_H_ +#ifndef TUSB_TCD_H_ +#define TUSB_TCD_H_ #include "common/tusb_common.h" #include "pd_types.h" diff --git a/src/typec/usbc.h b/src/typec/usbc.h index 448542aab..711119596 100644 --- a/src/typec/usbc.h +++ b/src/typec/usbc.h @@ -24,8 +24,8 @@ * This file is part of the TinyUSB stack. */ -#ifndef _TUSB_UTCD_H_ -#define _TUSB_UTCD_H_ +#ifndef TUSB_UTCD_H_ +#define TUSB_UTCD_H_ #include "common/tusb_common.h" #include "pd_types.h" @@ -63,7 +63,7 @@ void tuc_task (void) { tuc_task_ext(UINT32_MAX, false); } -#ifndef _TUSB_TCD_H_ +#ifndef TUSB_TCD_H_ extern void tcd_int_handler(uint8_t rhport); #endif |
