Home
last modified time | relevance | path

Searched refs:port (Results 1 – 16 of 16) sorted by relevance

/hal_silabs-3.7.0/gecko/emlib/inc/
Dem_gpio.h394 #define _GPIO_PORT_SIZE(port) ( \ argument
395 (port) == 0 ? _GPIO_PORT_A_PIN_COUNT \
396 : (port) == 1 ? _GPIO_PORT_B_PIN_COUNT \
397 : (port) == 2 ? _GPIO_PORT_C_PIN_COUNT \
398 : (port) == 3 ? _GPIO_PORT_D_PIN_COUNT \
399 : (port) == 4 ? _GPIO_PORT_E_PIN_COUNT \
400 : (port) == 5 ? _GPIO_PORT_F_PIN_COUNT \
401 : (port) == 6 ? _GPIO_PORT_G_PIN_COUNT \
402 : (port) == 7 ? _GPIO_PORT_H_PIN_COUNT \
403 : (port) == 8 ? _GPIO_PORT_I_PIN_COUNT \
[all …]
Dem_chip.h202 uint32_t port; in CHIP_Init() local
224 for (port = 0; port <= GPIO_PORT_MAX; port++) { in CHIP_Init()
225 GPIO->P[port].CTRL = setVal | resetVal; in CHIP_Init()
Dem_iadc.h1363 __STATIC_INLINE IADC_NegInput_t IADC_portPinToNegInput(GPIO_Port_TypeDef port, in IADC_portPinToNegInput() argument
1366 uint32_t input = (((uint32_t) port + _IADC_SCAN_PORTNEG_PORTA) << 4) | pin; in IADC_portPinToNegInput()
1384 __STATIC_INLINE IADC_PosInput_t IADC_portPinToPosInput(GPIO_Port_TypeDef port, in IADC_portPinToPosInput() argument
1387 uint32_t input = (((uint32_t) port + _IADC_SCAN_PORTPOS_PORTA) << 4) | pin; in IADC_portPinToPosInput()
Dem_acmp.h964 void ACMP_GPIOSetup(ACMP_TypeDef *acmp, GPIO_Port_TypeDef port, unsigned int pin, bool enable, bool…
1127 __STATIC_INLINE ACMP_Channel_TypeDef ACMP_PortPinToInput(GPIO_Port_TypeDef port, uint8_t pin) in ACMP_PortPinToInput() argument
1129 uint32_t input = (((uint32_t) port + (_ACMP_INPUTCTRL_POSSEL_PA0 >> 4)) << 4) | pin; in ACMP_PortPinToInput()
Dem_vdac.h477 VDAC_ChPortSel_t port;
Dem_msc.h820 void MSC_DmemPortMapSet(MSC_DmemMaster_TypeDef master, uint8_t port);
Dem_cmu.h1354 GPIO_Port_TypeDef port,
1382 … GPIO_Port_TypeDef port,
1388 … GPIO_Port_TypeDef port,
Dem_prs.h1153 void PRS_PinOutput(unsigned int ch, PRS_ChType_t type, GPIO_Port_TypeDef port, uint8_t pin);
/hal_silabs-3.7.0/gecko/emlib/src/
Dem_gpio.c102 void GPIO_DriveModeSet(GPIO_Port_TypeDef port, GPIO_DriveMode_TypeDef mode) in GPIO_DriveModeSet() argument
104 EFM_ASSERT(GPIO_PORT_VALID(port) && GPIO_DRIVEMODE_VALID(mode)); in GPIO_DriveModeSet()
106 GPIO->P[port].CTRL = (GPIO->P[port].CTRL & ~(_GPIO_P_CTRL_DRIVEMODE_MASK)) in GPIO_DriveModeSet()
122 void GPIO_DriveStrengthSet(GPIO_Port_TypeDef port, in GPIO_DriveStrengthSet() argument
125 EFM_ASSERT(GPIO_PORT_VALID(port) && GPIO_STRENGTH_VALID(strength)); in GPIO_DriveStrengthSet()
126 BUS_RegMaskedWrite(&GPIO->P[port].CTRL, in GPIO_DriveStrengthSet()
177 void GPIO_ExtIntConfig(GPIO_Port_TypeDef port, in GPIO_ExtIntConfig() argument
191 EFM_ASSERT(GPIO_PORT_PIN_VALID(port, pin)); in GPIO_ExtIntConfig()
202 (uint32_t)port << (_GPIO_EXTIPSELL_EXTIPSEL1_SHIFT * intNo)); in GPIO_ExtIntConfig()
210 (uint32_t)port << (_GPIO_EXTIPSELH_EXTIPSEL1_SHIFT * tmp)); in GPIO_ExtIntConfig()
[all …]
Dem_dbg.c92 int port; in DBG_SWOEnable() local
97 port = GPIO_SWV_PORT; in DBG_SWOEnable()
103 port = AF_DBG_SWO_PORT(location); in DBG_SWOEnable()
106 port = AF_DBG_SWV_PORT(location); in DBG_SWOEnable()
115 if ((pin < 0) || (port < 0)) { in DBG_SWOEnable()
130 GPIO_PinModeSet((GPIO_Port_TypeDef)port, pin, gpioModePushPull, 0); in DBG_SWOEnable()
Dem_msc.c1971 void MSC_DmemPortMapSet(MSC_DmemMaster_TypeDef master, uint8_t port) in MSC_DmemPortMapSet() argument
1985 EFM_ASSERT(port < DMEM_NUM_PORTS); in MSC_DmemPortMapSet()
1987 EFM_ASSERT(port < DMEM0_NUM_PORTS); in MSC_DmemPortMapSet()
2001 (uint32_t)port << master); in MSC_DmemPortMapSet()
2060 uint32_t port = 0; in MSC_PortGetCurrentPriority() local
2063 port = BUS_RegMaskedRead(&DMEM->CTRL, in MSC_PortGetCurrentPriority()
2066 port = BUS_RegMaskedRead(&DMEM0->CTRL, in MSC_PortGetCurrentPriority()
2070 return (MSC_PortPriority_TypeDef)(port >> _MPAHBRAM_CTRL_AHBPORTPRIORITY_SHIFT); in MSC_PortGetCurrentPriority()
Dem_acmp.c422 void ACMP_GPIOSetup(ACMP_TypeDef *acmp, GPIO_Port_TypeDef port, in ACMP_GPIOSetup() argument
431 EFM_ASSERT(GPIO_PORT_PIN_VALID(port, pin)); in ACMP_GPIOSetup()
437 GPIO->ACMPROUTE[acmpIndex].ACMPOUTROUTE = (port << _GPIO_ACMP_ACMPOUTROUTE_PORT_SHIFT) in ACMP_GPIOSetup()
Dem_prs.c595 void PRS_PinOutput(unsigned int ch, PRS_ChType_t type, GPIO_Port_TypeDef port, uint8_t pin) in PRS_PinOutput() argument
604 *addr = ((uint32_t)port << _GPIO_PRS_ASYNCH0ROUTE_PORT_SHIFT) in PRS_PinOutput()
Dem_cmu.c511 GPIO_Port_TypeDef port, in CMU_ClkOutPinConfig() argument
521 EFM_ASSERT((port == 2U) || (port == 3U)); in CMU_ClkOutPinConfig()
524 EFM_ASSERT((port == 0U) || (port == 1U)); in CMU_ClkOutPinConfig()
596 GPIO_PinModeSet(port, pin, gpioModeDisabled, 0); in CMU_ClkOutPinConfig()
600 GPIO->CMUROUTE.CLKOUT0ROUTE = (port << _GPIO_CMU_CLKOUT0ROUTE_PORT_SHIFT) in CMU_ClkOutPinConfig()
603 GPIO->CMUROUTE.CLKOUT1ROUTE = (port << _GPIO_CMU_CLKOUT1ROUTE_PORT_SHIFT) in CMU_ClkOutPinConfig()
606 GPIO->CMUROUTE.CLKOUT2ROUTE = (port << _GPIO_CMU_CLKOUT2ROUTE_PORT_SHIFT) in CMU_ClkOutPinConfig()
609 GPIO_PinModeSet(port, pin, gpioModePushPull, 0); in CMU_ClkOutPinConfig()
3158 GPIO_Port_TypeDef port, in CMU_HFXOStartCrystalSharingLeader() argument
3161 EFM_ASSERT(GPIO_PORT_PIN_VALID(port, pin)); in CMU_HFXOStartCrystalSharingLeader()
[all …]
Dem_vdac.c366 | ((uint32_t)init->port << _VDAC_OUTCTRL_ABUSPORTSELCH0_SHIFT) in VDAC_InitChannel()
380 | ((uint32_t)init->port << _VDAC_OUTCTRL_ABUSPORTSELCH1_SHIFT) in VDAC_InitChannel()
/hal_silabs-3.7.0/gecko/platform/radio/rail_lib/common/
Drail_types.h3670 uint8_t port; member