User Activity

Posted on June 26, 2014 at 11:40 I would like to optimize next snippet: void write16Data(u16 data) { GPIOA->BSRR = 0x00ff0000 | (u8)(data & 0xff); GPIOB->BSRR = 0x00ff0000 | (u8)(data >> 8); } Any ideas?
Posted on June 24, 2014 at 23:21 Does anyone have such issue? /* TIM3 clock enable */ RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3, ENABLE); /* AFIO enable */ RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO | RCC_APB2Periph_GPIOC | RCC_APB2P...
Posted on October 04, 2013 at 11:13I have found working solution. But for me it look ugly.uint8_t command = 0x55; uint16_t u16Temp = 0; u16Temp = GPIO_ReadOutputData(GPIOA)&0xFF00; u16Temp |= command; GPIO_Write(GPIOA, u16Temp); Is there better way ...