summaryrefslogtreecommitdiff
path: root/packages/bind
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-08-02 16:30:50 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-08-02 16:30:50 +0000
commit9a52e28409e9034630965fa5bbf4f347c3aa3e90 (patch)
tree9f26d889d52ad36644f3ea694bce9ff313377878 /packages/bind
parent0f8d2f94ea9b713f9de60f489e463ccdec9f56dd (diff)
ttf-dejavu 2.18 remove aliases functionality until hrw commits the missing files
Diffstat (limited to 'packages/bind')
0 files changed, 0 insertions, 0 deletions
span class="hl opt">(const char *name) { struct gpio_pin *pin; for (pin = gpio_pins; *pin->name; pin++) { if (!strcmp(pin->name, name)) { return pin; } } log_error("pin named %s not found", name); return NULL; } // A GPIO pin number must only occur once. struct gpio_pin *gpio_pin_by_num(unsigned num) { int ipin = 0; while(*(gpio_pins[ipin].name)) { if (gpio_pins[ipin].pin.gpio == num) { return &(gpio_pins[ipin]); } ipin++; } log_error("pin numbered %u not found", num); return NULL; } struct gpio_pin *gpio_pin_by_attr_name(const char *name) { struct gpio_pin *pin;