Lines Matching refs:Item

134 static void RCC_ATTR_ConfigItemGroup(uint32_t ItemGroup, uint32_t Item, uint32_t Attributes);
1902 void HAL_RCC_ConfigAttributes(uint32_t Item, uint32_t Attributes) in HAL_RCC_ConfigAttributes() argument
1906 assert_param(IS_RCC_ITEM_ATTRIBUTES(Item)); in HAL_RCC_ConfigAttributes()
1910 if ((Item & RCC_ITEM_GROUP_OSC) == RCC_ITEM_GROUP_OSC) in HAL_RCC_ConfigAttributes()
1912 RCC_ATTR_ConfigItemGroup(RCC_ITEM_GROUP_IDX_OSC, Item & RCC_ITEM_GROUP_OSC_MASK, Attributes); in HAL_RCC_ConfigAttributes()
1916 if ((Item & RCC_ITEM_GROUP_PLL) == RCC_ITEM_GROUP_PLL) in HAL_RCC_ConfigAttributes()
1918 RCC_ATTR_ConfigItemGroup(RCC_ITEM_GROUP_IDX_PLL, Item & RCC_ITEM_GROUP_PLL_MASK, Attributes); in HAL_RCC_ConfigAttributes()
1922 if ((Item & RCC_ITEM_GROUP_IC) == RCC_ITEM_GROUP_IC) in HAL_RCC_ConfigAttributes()
1924 RCC_ATTR_ConfigItemGroup(RCC_ITEM_GROUP_IDX_IC, Item & RCC_ITEM_GROUP_IC_MASK, Attributes); in HAL_RCC_ConfigAttributes()
1928 if ((Item & RCC_ITEM_GROUP_SYSCFG) == RCC_ITEM_GROUP_SYSCFG) in HAL_RCC_ConfigAttributes()
1930 …RCC_ATTR_ConfigItemGroup(RCC_ITEM_GROUP_IDX_SYSCFG, Item & RCC_ITEM_GROUP_SYSCFG_MASK, Attributes); in HAL_RCC_ConfigAttributes()
1934 if ((Item & RCC_ITEM_GROUP_BUS) == RCC_ITEM_GROUP_BUS) in HAL_RCC_ConfigAttributes()
1936 RCC_ATTR_ConfigItemGroup(RCC_ITEM_GROUP_IDX_BUS, Item & RCC_ITEM_GROUP_BUS_MASK, Attributes); in HAL_RCC_ConfigAttributes()
1940 if ((Item & RCC_ITEM_GROUP_MEM) == RCC_ITEM_GROUP_MEM) in HAL_RCC_ConfigAttributes()
1942 RCC_ATTR_ConfigItemGroup(RCC_ITEM_GROUP_IDX_MEM, Item & RCC_ITEM_GROUP_MEM_MASK, Attributes); in HAL_RCC_ConfigAttributes()
1955 HAL_StatusTypeDef HAL_RCC_GetConfigAttributes(uint32_t Item, uint32_t *pAttributes) in HAL_RCC_GetConfigAttributes() argument
1966 assert_param(IS_RCC_SINGLE_ITEM_ATTRIBUTES(Item)); in HAL_RCC_GetConfigAttributes()
1969 uint32_t ItemGroup = (Item & RCC_ITEM_GROUP_MASK) >> RCC_ITEM_GROUP_POS; in HAL_RCC_GetConfigAttributes()
1978 if ((Item & RCC_ITEM_GROUP_MASK) != RCC_ITEM_GROUP_MEM) in HAL_RCC_GetConfigAttributes()
1981 attributes |= ((p_rcc_reg[0] & Item) == 0U) ? RCC_ATTR_NSEC : RCC_ATTR_SEC; in HAL_RCC_GetConfigAttributes()
1984 attributes |= ((p_rcc_reg[1] & Item) == 0U) ? RCC_ATTR_NPRIV : RCC_ATTR_PRIV; in HAL_RCC_GetConfigAttributes()
1987 attributes |= ((p_rcc_reg[2] & Item) == 0U) ? RCC_ATTR_NLOCK : RCC_ATTR_LOCK; in HAL_RCC_GetConfigAttributes()
1990 attributes |= ((p_rcc_reg[3] & Item) == 0U) ? RCC_ATTR_NPUB : RCC_ATTR_PUB; in HAL_RCC_GetConfigAttributes()
1995 attributes |= ((*p_rcc_reg & Item) == 0U) ? RCC_ATTR_NPUB : RCC_ATTR_PUB; in HAL_RCC_GetConfigAttributes()
2420 static void RCC_ATTR_ConfigItemGroup(uint32_t ItemGroupIdx, uint32_t Item, uint32_t Attributes) in RCC_ATTR_ConfigItemGroup() argument
2433 SET_BIT(p_rcc_reg[0], Item); in RCC_ATTR_ConfigItemGroup()
2437 CLEAR_BIT(p_rcc_reg[0], Item); in RCC_ATTR_ConfigItemGroup()
2448 SET_BIT(p_rcc_reg[1], Item); in RCC_ATTR_ConfigItemGroup()
2452 CLEAR_BIT(p_rcc_reg[1], Item); in RCC_ATTR_ConfigItemGroup()
2463 SET_BIT(p_rcc_reg[2], Item); in RCC_ATTR_ConfigItemGroup()
2473 SET_BIT(p_rcc_reg[3], Item); in RCC_ATTR_ConfigItemGroup()
2477 CLEAR_BIT(p_rcc_reg[3], Item); in RCC_ATTR_ConfigItemGroup()
2492 SET_BIT(*(p_rcc_reg), Item); in RCC_ATTR_ConfigItemGroup()
2496 CLEAR_BIT(*(p_rcc_reg), Item); in RCC_ATTR_ConfigItemGroup()