arch/xtensa: Remove CODE qualifier for Xtensa-specific files
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
e13dd7dab9
commit
eca1f86294
@ -134,7 +134,7 @@ enum esp32_rtc_cal_sel_e
|
||||
|
||||
/* The form of an alarm callback */
|
||||
|
||||
typedef CODE void (*alm_callback_t)(void *arg, unsigned int alarmid);
|
||||
typedef void (*alm_callback_t)(void *arg, unsigned int alarmid);
|
||||
|
||||
enum alm_id_e
|
||||
{
|
||||
|
@ -82,32 +82,32 @@ struct esp32_tim_ops_s
|
||||
{
|
||||
/* Timer tasks */
|
||||
|
||||
CODE void (*start)(struct esp32_tim_dev_s *dev);
|
||||
CODE void (*stop)(struct esp32_tim_dev_s *dev);
|
||||
CODE void (*clear)(struct esp32_tim_dev_s *dev);
|
||||
void (*start)(struct esp32_tim_dev_s *dev);
|
||||
void (*stop)(struct esp32_tim_dev_s *dev);
|
||||
void (*clear)(struct esp32_tim_dev_s *dev);
|
||||
|
||||
/* Timer operations */
|
||||
|
||||
CODE void (*setmode)(struct esp32_tim_dev_s *dev, uint8_t mode);
|
||||
CODE void (*setpre)(struct esp32_tim_dev_s *dev, uint16_t pre);
|
||||
CODE void (*getcounter)(struct esp32_tim_dev_s *dev, uint64_t *value);
|
||||
CODE void (*setcounter)(struct esp32_tim_dev_s *dev, uint64_t value);
|
||||
CODE void (*reloadnow)(struct esp32_tim_dev_s *dev);
|
||||
CODE void (*getalarmvalue)(struct esp32_tim_dev_s *dev,
|
||||
void (*setmode)(struct esp32_tim_dev_s *dev, uint8_t mode);
|
||||
void (*setpre)(struct esp32_tim_dev_s *dev, uint16_t pre);
|
||||
void (*getcounter)(struct esp32_tim_dev_s *dev, uint64_t *value);
|
||||
void (*setcounter)(struct esp32_tim_dev_s *dev, uint64_t value);
|
||||
void (*reloadnow)(struct esp32_tim_dev_s *dev);
|
||||
void (*getalarmvalue)(struct esp32_tim_dev_s *dev,
|
||||
uint64_t *value);
|
||||
CODE void (*setalarmvalue)(struct esp32_tim_dev_s *dev,
|
||||
void (*setalarmvalue)(struct esp32_tim_dev_s *dev,
|
||||
uint64_t value);
|
||||
CODE void (*setalarm)(struct esp32_tim_dev_s *dev, bool enable);
|
||||
CODE void (*setautoreload)(struct esp32_tim_dev_s *dev, bool enable);
|
||||
void (*setalarm)(struct esp32_tim_dev_s *dev, bool enable);
|
||||
void (*setautoreload)(struct esp32_tim_dev_s *dev, bool enable);
|
||||
|
||||
/* Timer interrupts */
|
||||
|
||||
CODE int (*setisr)(struct esp32_tim_dev_s *dev, xcpt_t handler,
|
||||
int (*setisr)(struct esp32_tim_dev_s *dev, xcpt_t handler,
|
||||
void * arg);
|
||||
CODE void (*enableint)(struct esp32_tim_dev_s *dev);
|
||||
CODE void (*disableint)(struct esp32_tim_dev_s *dev);
|
||||
CODE void (*ackint)(struct esp32_tim_dev_s *dev);
|
||||
CODE int (*checkint)(struct esp32_tim_dev_s *dev);
|
||||
void (*enableint)(struct esp32_tim_dev_s *dev);
|
||||
void (*disableint)(struct esp32_tim_dev_s *dev);
|
||||
void (*ackint)(struct esp32_tim_dev_s *dev);
|
||||
int (*checkint)(struct esp32_tim_dev_s *dev);
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -70,28 +70,28 @@ struct esp32_wdt_ops_s
|
||||
{
|
||||
/* WDT tasks */
|
||||
|
||||
CODE int (*start)(struct esp32_wdt_dev_s *dev);
|
||||
CODE int (*stop)(struct esp32_wdt_dev_s *dev);
|
||||
int (*start)(struct esp32_wdt_dev_s *dev);
|
||||
int (*stop)(struct esp32_wdt_dev_s *dev);
|
||||
|
||||
/* WDT configuration */
|
||||
|
||||
CODE int (*enablewp)(struct esp32_wdt_dev_s *dev);
|
||||
CODE int (*disablewp)(struct esp32_wdt_dev_s *dev);
|
||||
CODE int (*pre)(struct esp32_wdt_dev_s *dev, uint16_t value);
|
||||
CODE int (*settimeout)(struct esp32_wdt_dev_s *dev,
|
||||
int (*enablewp)(struct esp32_wdt_dev_s *dev);
|
||||
int (*disablewp)(struct esp32_wdt_dev_s *dev);
|
||||
int (*pre)(struct esp32_wdt_dev_s *dev, uint16_t value);
|
||||
int (*settimeout)(struct esp32_wdt_dev_s *dev,
|
||||
uint32_t value, uint8_t stage);
|
||||
CODE int (*feed)(struct esp32_wdt_dev_s *dev);
|
||||
CODE int (*stg_conf)(struct esp32_wdt_dev_s *dev,
|
||||
int (*feed)(struct esp32_wdt_dev_s *dev);
|
||||
int (*stg_conf)(struct esp32_wdt_dev_s *dev,
|
||||
uint8_t stage, uint8_t conf);
|
||||
CODE uint16_t (*rtc_clk)(struct esp32_wdt_dev_s *dev);
|
||||
uint16_t (*rtc_clk)(struct esp32_wdt_dev_s *dev);
|
||||
|
||||
/* WDT interrupts */
|
||||
|
||||
CODE int (*setisr)(struct esp32_wdt_dev_s *dev, xcpt_t handler,
|
||||
int (*setisr)(struct esp32_wdt_dev_s *dev, xcpt_t handler,
|
||||
void * arg);
|
||||
CODE int (*enableint)(struct esp32_wdt_dev_s *dev);
|
||||
CODE int (*disableint)(struct esp32_wdt_dev_s *dev);
|
||||
CODE int (*ackint)(struct esp32_wdt_dev_s *dev);
|
||||
int (*enableint)(struct esp32_wdt_dev_s *dev);
|
||||
int (*disableint)(struct esp32_wdt_dev_s *dev);
|
||||
int (*ackint)(struct esp32_wdt_dev_s *dev);
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -96,36 +96,36 @@ struct esp32s2_tim_ops_s
|
||||
{
|
||||
/* Timer tasks */
|
||||
|
||||
CODE void (*start)(struct esp32s2_tim_dev_s *dev);
|
||||
CODE void (*stop)(struct esp32s2_tim_dev_s *dev);
|
||||
CODE void (*clear)(struct esp32s2_tim_dev_s *dev);
|
||||
void (*start)(struct esp32s2_tim_dev_s *dev);
|
||||
void (*stop)(struct esp32s2_tim_dev_s *dev);
|
||||
void (*clear)(struct esp32s2_tim_dev_s *dev);
|
||||
|
||||
/* Timer operations */
|
||||
|
||||
CODE void (*setmode)(struct esp32s2_tim_dev_s *dev,
|
||||
void (*setmode)(struct esp32s2_tim_dev_s *dev,
|
||||
enum esp32s2_tim_mode_e mode);
|
||||
CODE void (*setpre)(struct esp32s2_tim_dev_s *dev, uint16_t pre);
|
||||
CODE void (*getcounter)(struct esp32s2_tim_dev_s *dev,
|
||||
void (*setpre)(struct esp32s2_tim_dev_s *dev, uint16_t pre);
|
||||
void (*getcounter)(struct esp32s2_tim_dev_s *dev,
|
||||
uint64_t *value);
|
||||
CODE void (*setclksrc)(struct esp32s2_tim_dev_s *dev,
|
||||
void (*setclksrc)(struct esp32s2_tim_dev_s *dev,
|
||||
enum esp32s2_tim_clksrc_e src);
|
||||
CODE void (*setcounter)(struct esp32s2_tim_dev_s *dev, uint64_t value);
|
||||
CODE void (*reloadnow)(struct esp32s2_tim_dev_s *dev);
|
||||
CODE void (*getalarmvalue)(struct esp32s2_tim_dev_s *dev,
|
||||
void (*setcounter)(struct esp32s2_tim_dev_s *dev, uint64_t value);
|
||||
void (*reloadnow)(struct esp32s2_tim_dev_s *dev);
|
||||
void (*getalarmvalue)(struct esp32s2_tim_dev_s *dev,
|
||||
uint64_t *value);
|
||||
CODE void (*setalarmvalue)(struct esp32s2_tim_dev_s *dev,
|
||||
void (*setalarmvalue)(struct esp32s2_tim_dev_s *dev,
|
||||
uint64_t value);
|
||||
CODE void (*setalarm)(struct esp32s2_tim_dev_s *dev, bool enable);
|
||||
CODE void (*setautoreload)(struct esp32s2_tim_dev_s *dev, bool enable);
|
||||
void (*setalarm)(struct esp32s2_tim_dev_s *dev, bool enable);
|
||||
void (*setautoreload)(struct esp32s2_tim_dev_s *dev, bool enable);
|
||||
|
||||
/* Timer interrupts */
|
||||
|
||||
CODE int (*setisr)(struct esp32s2_tim_dev_s *dev, xcpt_t handler,
|
||||
int (*setisr)(struct esp32s2_tim_dev_s *dev, xcpt_t handler,
|
||||
void * arg);
|
||||
CODE void (*enableint)(struct esp32s2_tim_dev_s *dev);
|
||||
CODE void (*disableint)(struct esp32s2_tim_dev_s *dev);
|
||||
CODE void (*ackint)(struct esp32s2_tim_dev_s *dev);
|
||||
CODE int (*checkint)(struct esp32s2_tim_dev_s *dev);
|
||||
void (*enableint)(struct esp32s2_tim_dev_s *dev);
|
||||
void (*disableint)(struct esp32s2_tim_dev_s *dev);
|
||||
void (*ackint)(struct esp32s2_tim_dev_s *dev);
|
||||
int (*checkint)(struct esp32s2_tim_dev_s *dev);
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user