arch/risc-v: Remove CODE qualifier for RISC-V-specific files
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
06f4ee850a
commit
e651ef0969
@ -64,7 +64,7 @@ extern "C"
|
||||
#define BL602_HBN_INT_ACOMP0 (20) /* HBN interrupt type: ACOMP0 */
|
||||
#define BL602_HBN_INT_ACOMP1 (22) /* HBN interrupt type: ACOMP1 */
|
||||
|
||||
typedef CODE int (*bl602_hbn_cb_t)(void *arg);
|
||||
typedef int (*bl602_hbn_cb_t)(void *arg);
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
|
@ -152,7 +152,7 @@ struct esp32c3_cpu_freq_config_s
|
||||
|
||||
/* 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
|
||||
{
|
||||
|
@ -99,36 +99,36 @@ struct esp32c3_tim_ops_s
|
||||
{
|
||||
/* Timer tasks */
|
||||
|
||||
CODE void (*start)(struct esp32c3_tim_dev_s *dev);
|
||||
CODE void (*stop)(struct esp32c3_tim_dev_s *dev);
|
||||
CODE void (*clear)(struct esp32c3_tim_dev_s *dev);
|
||||
void (*start)(struct esp32c3_tim_dev_s *dev);
|
||||
void (*stop)(struct esp32c3_tim_dev_s *dev);
|
||||
void (*clear)(struct esp32c3_tim_dev_s *dev);
|
||||
|
||||
/* Timer operations */
|
||||
|
||||
CODE void (*setmode)(struct esp32c3_tim_dev_s *dev,
|
||||
void (*setmode)(struct esp32c3_tim_dev_s *dev,
|
||||
enum esp32c3_tim_mode_e mode);
|
||||
CODE void (*setclksrc)(struct esp32c3_tim_dev_s *dev,
|
||||
void (*setclksrc)(struct esp32c3_tim_dev_s *dev,
|
||||
enum esp32c3_tim_clksrc_e src);
|
||||
CODE void (*setpre)(struct esp32c3_tim_dev_s *dev, uint16_t pre);
|
||||
CODE void (*getcounter)(struct esp32c3_tim_dev_s *dev,
|
||||
void (*setpre)(struct esp32c3_tim_dev_s *dev, uint16_t pre);
|
||||
void (*getcounter)(struct esp32c3_tim_dev_s *dev,
|
||||
uint64_t *value);
|
||||
CODE void (*setcounter)(struct esp32c3_tim_dev_s *dev, uint64_t value);
|
||||
CODE void (*reloadnow)(struct esp32c3_tim_dev_s *dev);
|
||||
CODE void (*getalarmvalue)(struct esp32c3_tim_dev_s *dev,
|
||||
void (*setcounter)(struct esp32c3_tim_dev_s *dev, uint64_t value);
|
||||
void (*reloadnow)(struct esp32c3_tim_dev_s *dev);
|
||||
void (*getalarmvalue)(struct esp32c3_tim_dev_s *dev,
|
||||
uint64_t *value);
|
||||
CODE void (*setalarmvalue)(struct esp32c3_tim_dev_s *dev,
|
||||
void (*setalarmvalue)(struct esp32c3_tim_dev_s *dev,
|
||||
uint64_t value);
|
||||
CODE void (*setalarm)(struct esp32c3_tim_dev_s *dev, bool enable);
|
||||
CODE void (*setautoreload)(struct esp32c3_tim_dev_s *dev, bool enable);
|
||||
void (*setalarm)(struct esp32c3_tim_dev_s *dev, bool enable);
|
||||
void (*setautoreload)(struct esp32c3_tim_dev_s *dev, bool enable);
|
||||
|
||||
/* Timer interrupts */
|
||||
|
||||
CODE int (*setisr)(struct esp32c3_tim_dev_s *dev, xcpt_t handler,
|
||||
int (*setisr)(struct esp32c3_tim_dev_s *dev, xcpt_t handler,
|
||||
void * arg);
|
||||
CODE void (*enableint)(struct esp32c3_tim_dev_s *dev);
|
||||
CODE void (*disableint)(struct esp32c3_tim_dev_s *dev);
|
||||
CODE void (*ackint)(struct esp32c3_tim_dev_s *dev);
|
||||
CODE int (*checkint)(struct esp32c3_tim_dev_s *dev);
|
||||
void (*enableint)(struct esp32c3_tim_dev_s *dev);
|
||||
void (*disableint)(struct esp32c3_tim_dev_s *dev);
|
||||
void (*ackint)(struct esp32c3_tim_dev_s *dev);
|
||||
int (*checkint)(struct esp32c3_tim_dev_s *dev);
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user