FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap8/pmsis/include/pmsis/implem/hal/soc_ctrl/soc_ctrl_pad.h File Reference

Macros

#define ARCHI_PAD_NB_PADFUNC_REG
 
#define ARCHI_PAD_NB_PAD_PER_PADFUNC
 
#define ARCHI_PAD_NB_PADCFG_REG
 
#define ARCHI_PAD_NB_SLEEPPADCFG_REG
 
#define ARCHI_PAD_NB_PAD_PER_SLEEPPADCFG
 
#define APB_SOC_STATUS_EOC_SHIFT
 

Functions

static void soc_ctrl_corestatus_set (int32_t value)
 
static uint32_t soc_ctrl_corestatus_get (void)
 
static void soc_ctrl_safe_padfun_set (uint8_t reg_num, uint32_t value)
 
static uint32_t soc_ctrl_safe_padfun_get (uint8_t reg_num)
 
static void soc_ctrl_safe_sleeppadcfg_set (uint8_t reg_num, uint32_t value)
 
static uint32_t soc_ctrl_safe_sleeppadcfg_get (uint8_t reg_num)
 
static void soc_ctrl_safe_padsleep_set (uint32_t value)
 
static uint32_t soc_ctrl_safe_padsleep_get ()
 
static void soc_ctrl_safe_padcfg_set (uint8_t reg_num, uint32_t value)
 
static uint32_t soc_ctrl_safe_padcfg_get (uint8_t reg_num)
 
static void hal_pad_function_set (uint8_t pad, uint8_t func)
 
static void hal_pad_padfunc_set (uint8_t pad_reg, uint32_t value)
 
static uint32_t hal_pad_padfunc_get (uint8_t pad_reg)
 
static void hal_pad_sleeppad_direction_set (uint8_t pad, uint8_t dir)
 
static void hal_pad_sleeppad_state_set (uint8_t pad, uint8_t state)
 
static void hal_pad_sleeppad_configuration_set (uint8_t pad, uint8_t dir, uint8_t state)
 
static void hal_pad_sleeppadcfg_set (uint8_t pad_reg, uint32_t value)
 
static uint32_t hal_pad_sleeppadcfg_get (uint8_t pad_reg)
 
static void hal_pad_padsleep_enable (uint8_t enable)
 
static void hal_pad_padcfg_pull_enable (uint8_t pad, uint8_t pe)
 
static void hal_pad_padcfg_drive_strength_set (uint8_t pad, uint8_t ds)
 
static void hal_pad_padcfg_configuration_set (uint8_t pad, uint8_t pe, uint8_t ds)
 

Macro Definition Documentation

#define APB_SOC_STATUS_EOC_SHIFT

Referenced by soc_ctrl_corestatus_set().

#define ARCHI_PAD_NB_PAD_PER_PADFUNC
#define ARCHI_PAD_NB_PAD_PER_SLEEPPADCFG
#define ARCHI_PAD_NB_PADCFG_REG
#define ARCHI_PAD_NB_PADFUNC_REG

Referenced by pi_pad_init().

#define ARCHI_PAD_NB_SLEEPPADCFG_REG

Referenced by pi_pad_sleepcfg_set().

Function Documentation

static void hal_pad_function_set ( uint8_t  pad,
uint8_t  func 
)
inlinestatic

Safe_padfun.

References soc_ctrl_safe_padfun_get(), and soc_ctrl_safe_padfun_set().

Referenced by pi_pad_set_function().

static void hal_pad_padcfg_configuration_set ( uint8_t  pad,
uint8_t  pe,
uint8_t  ds 
)
inlinestatic
static void hal_pad_padcfg_drive_strength_set ( uint8_t  pad,
uint8_t  ds 
)
inlinestatic
static void hal_pad_padcfg_pull_enable ( uint8_t  pad,
uint8_t  pe 
)
inlinestatic
static uint32_t hal_pad_padfunc_get ( uint8_t  pad_reg)
inlinestatic
static void hal_pad_padfunc_set ( uint8_t  pad_reg,
uint32_t  value 
)
inlinestatic

References soc_ctrl_safe_padfun_set().

Referenced by pi_pad_init().

static void hal_pad_padsleep_enable ( uint8_t  enable)
inlinestatic

Safe_padsleep.

References SOC_CTRL_SAFE_PADSLEEP_EN, and soc_ctrl_safe_padsleep_set().

Referenced by pi_pad_sleepcfg_set().

static void hal_pad_sleeppad_configuration_set ( uint8_t  pad,
uint8_t  dir,
uint8_t  state 
)
inlinestatic
static void hal_pad_sleeppad_direction_set ( uint8_t  pad,
uint8_t  dir 
)
inlinestatic
static void hal_pad_sleeppad_state_set ( uint8_t  pad,
uint8_t  state 
)
inlinestatic
static uint32_t hal_pad_sleeppadcfg_get ( uint8_t  pad_reg)
inlinestatic
static void hal_pad_sleeppadcfg_set ( uint8_t  pad_reg,
uint32_t  value 
)
inlinestatic
static uint32_t soc_ctrl_corestatus_get ( void  )
inlinestatic
static void soc_ctrl_corestatus_set ( int32_t  value)
inlinestatic
static uint32_t soc_ctrl_safe_padcfg_get ( uint8_t  reg_num)
inlinestatic
static void soc_ctrl_safe_padcfg_set ( uint8_t  reg_num,
uint32_t  value 
)
inlinestatic
static uint32_t soc_ctrl_safe_padfun_get ( uint8_t  reg_num)
inlinestatic
static void soc_ctrl_safe_padfun_set ( uint8_t  reg_num,
uint32_t  value 
)
inlinestatic
static uint32_t soc_ctrl_safe_padsleep_get ( )
inlinestatic
static void soc_ctrl_safe_padsleep_set ( uint32_t  value)
inlinestatic
static uint32_t soc_ctrl_safe_sleeppadcfg_get ( uint8_t  reg_num)
inlinestatic
static void soc_ctrl_safe_sleeppadcfg_set ( uint8_t  reg_num,
uint32_t  value 
)
inlinestatic