Merge pull request #1938 from makrog/pr/cc1200-fixes
Fixed checking of the cc1200 GPIO0 pin status.
This commit is contained in:
commit
a8acaf08d5
|
@ -241,7 +241,7 @@ cc1200_arch_gpio2_disable_irq(void)
|
||||||
int
|
int
|
||||||
cc1200_arch_gpio0_read_pin(void)
|
cc1200_arch_gpio0_read_pin(void)
|
||||||
{
|
{
|
||||||
return GPIO_READ_PIN(CC1200_GDO0_PORT_BASE, CC1200_GDO0_PIN_MASK);
|
return (GPIO_READ_PIN(CC1200_GDO0_PORT_BASE, CC1200_GDO0_PIN_MASK) ? 1 : 0);
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue