RSS
Sort by » date activity ▼ answers views votes

1 question

Tagged
  • x
85
views
no
votes
no
answers
Last activity 2017-09-13 20:30:11 +0200 by Tamisoft

nrf_gpio_pin_read and optimized code might return wrong value

Hi, I have found an interesting behavior from this code:

nrf_gpio_cfg_input(7,NRF_GPIO_PIN_NOPULL);
if (nrf_gpio_pin_read(7)==0)
{
 NRF_LOG_INFO("ID1(P0.%d) is LOW.",7);
}else{
 NRF_LOG_INFO("ID1(P0.%d) is HIGH.",7);
}

the nrf_gpio_pin_read will always return 0 as if ... (more)

Statistics

  • Total users: 24443
  • Latest user: Fredric Tulk
  • Resolved questions: 10448
  • Unanswered questions: 3306
  • Total questions: 25454

User menu

    or sign up

Recent questions