X-Git-Url: http://rtime.felk.cvut.cz/gitweb/pes-rpp/rpp-lib.git/blobdiff_plain/a51911e6286f0aa67562634cab9db68620e7cc89..49901f543393051038bf8dd7fb1cffb0ee9a7be8:/rpp/include/drv/gio_tab.h diff --git a/rpp/include/drv/gio_tab.h b/rpp/include/drv/gio_tab.h index 3d07a2a..db303b6 100644 --- a/rpp/include/drv/gio_tab.h +++ b/rpp/include/drv/gio_tab.h @@ -19,8 +19,8 @@ #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]; @@ -30,12 +30,12 @@ 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); }