#include "drv/port.h"
struct gio_pin {
- const char *pin_name; // Pin name
- uint32_t pin_dsc; // Pin descriptor computed with GIO_PIN_DESC
+ const char *pin_name; // Pin name
+ uint32_t pin_dsc; // Pin descriptor computed with GIO_PIN_DESC
};
extern const struct gio_pin gio_table[_PIN_COUNT];
* arithmetic operations like (PIN_DIN8 + 1). The enum is used in the
* rpp layer, where it protects users from doing stupid things.
*/
-static inline void gio_tab_set(/* enum pin_name */int pin, boolean_t val)
+static inline void gio_tab_set(/* enum pin_name */ int pin, boolean_t val)
{
gio_set(gio_table[pin].pin_dsc, val);
}
-static inline boolean_t gio_tab_get(/* enum pin_name */int pin)
+static inline boolean_t gio_tab_get(/* enum pin_name */ int pin)
{
return gio_get(gio_table[pin].pin_dsc);
}