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:
Gustavo Henrique Nihei 2021-09-21 16:49:05 -03:00 committed by saramonteiro
parent 06f4ee850a
commit e651ef0969
3 changed files with 20 additions and 20 deletions

View File

@ -64,7 +64,7 @@ extern "C"
#define BL602_HBN_INT_ACOMP0 (20) /* HBN interrupt type: ACOMP0 */ #define BL602_HBN_INT_ACOMP0 (20) /* HBN interrupt type: ACOMP0 */
#define BL602_HBN_INT_ACOMP1 (22) /* HBN interrupt type: ACOMP1 */ #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 * Public Function Prototypes

View File

@ -152,7 +152,7 @@ struct esp32c3_cpu_freq_config_s
/* The form of an alarm callback */ /* 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 enum alm_id_e
{ {

View File

@ -99,36 +99,36 @@ struct esp32c3_tim_ops_s
{ {
/* Timer tasks */ /* Timer tasks */
CODE void (*start)(struct esp32c3_tim_dev_s *dev); void (*start)(struct esp32c3_tim_dev_s *dev);
CODE void (*stop)(struct esp32c3_tim_dev_s *dev); void (*stop)(struct esp32c3_tim_dev_s *dev);
CODE void (*clear)(struct esp32c3_tim_dev_s *dev); void (*clear)(struct esp32c3_tim_dev_s *dev);
/* Timer operations */ /* 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); 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); enum esp32c3_tim_clksrc_e src);
CODE void (*setpre)(struct esp32c3_tim_dev_s *dev, uint16_t pre); void (*setpre)(struct esp32c3_tim_dev_s *dev, uint16_t pre);
CODE void (*getcounter)(struct esp32c3_tim_dev_s *dev, void (*getcounter)(struct esp32c3_tim_dev_s *dev,
uint64_t *value); uint64_t *value);
CODE void (*setcounter)(struct esp32c3_tim_dev_s *dev, uint64_t value); void (*setcounter)(struct esp32c3_tim_dev_s *dev, uint64_t value);
CODE void (*reloadnow)(struct esp32c3_tim_dev_s *dev); void (*reloadnow)(struct esp32c3_tim_dev_s *dev);
CODE void (*getalarmvalue)(struct esp32c3_tim_dev_s *dev, void (*getalarmvalue)(struct esp32c3_tim_dev_s *dev,
uint64_t *value); uint64_t *value);
CODE void (*setalarmvalue)(struct esp32c3_tim_dev_s *dev, void (*setalarmvalue)(struct esp32c3_tim_dev_s *dev,
uint64_t value); uint64_t value);
CODE void (*setalarm)(struct esp32c3_tim_dev_s *dev, bool enable); void (*setalarm)(struct esp32c3_tim_dev_s *dev, bool enable);
CODE void (*setautoreload)(struct esp32c3_tim_dev_s *dev, bool enable); void (*setautoreload)(struct esp32c3_tim_dev_s *dev, bool enable);
/* Timer interrupts */ /* 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); void * arg);
CODE void (*enableint)(struct esp32c3_tim_dev_s *dev); void (*enableint)(struct esp32c3_tim_dev_s *dev);
CODE void (*disableint)(struct esp32c3_tim_dev_s *dev); void (*disableint)(struct esp32c3_tim_dev_s *dev);
CODE void (*ackint)(struct esp32c3_tim_dev_s *dev); void (*ackint)(struct esp32c3_tim_dev_s *dev);
CODE int (*checkint)(struct esp32c3_tim_dev_s *dev); int (*checkint)(struct esp32c3_tim_dev_s *dev);
}; };
/**************************************************************************** /****************************************************************************