Searched refs:afio_function (Results 1 – 2 of 2) sorted by relevance
509 void gpio_afio_port_config(uint32_t afio_function, ControlStatus newvalue) in gpio_afio_port_config() argument514 temp_reg = REG32(AFIO+0x0000003CU+((afio_function>>24)<<2)); in gpio_afio_port_config()516 temp_mask = (afio_function & PCF_POSITION_MASK) >> 0x10U; in gpio_afio_port_config()517 remap1 = afio_function & LSB_16BIT_MASK; in gpio_afio_port_config()520 if(afio_function & PCF_LOCATION2_MASK){ in gpio_afio_port_config()522 remap2 = (remap2 << (((afio_function & PCF_LOCATION1_MASK) >> 0x15U)*0x10U)); in gpio_afio_port_config()525 temp_reg &= ~(remap1 << (((afio_function & PCF_LOCATION1_MASK) >> 0x15U)*0x10U)); in gpio_afio_port_config()530 temp_reg |= (remap1 << (((afio_function & PCF_LOCATION1_MASK) >> 0x15U)*0x10U)); in gpio_afio_port_config()534 REG32(AFIO+0x0000003CU+((afio_function>>24)<<2)) = temp_reg; in gpio_afio_port_config()
735 void gpio_afio_port_config(uint32_t afio_function, ControlStatus newvalue);