Exemplo n.º 1
0
/* Example of usage: value = digital_read(PORT_0, PIN); */
uint32_t digital_read(uint8_t portNum, uint32_t bitValue)
{
  return ((FIO_ReadValue(portNum) & bitValue)?1:0);
}
Exemplo n.º 2
0
uint8_t GPIO::get() {
	return (FIO_ReadValue(port) & (1UL << pin))?255:0;
}