Lines Matching refs:head
322 hal_gpio_state_t *head = s_GpioHead;
328 while (head)
330 GINT_GetConfigPins(GINT0, head->pin.port, &polarityMask, &enableMask);
331 pinMask = 1 << head->pin.pin;
336 pinState = (GPIO_PinRead(gpioList[0], head->pin.port, head->pin.pin) ? 1 : 0);
337 if((polarityMask & pinMask) == (pinState << head->pin.pin))
339 if ((NULL != head->callback))
341 head->callback(NULL);
345 head = head->next;
349 static hal_gpio_status_t HAL_GpioConflictSearch(hal_gpio_state_t *head, uint8_t port, uint8_t pin)
351 while (head)
353 if ((head->pin.port == port) && (head->pin.pin == pin))
357 head = head->next;
362 static hal_gpio_status_t HAL_GpioAddItem(hal_gpio_state_t **head, hal_gpio_state_t *node)
364 hal_gpio_state_t *p = *head;
371 *head = node;
392 static hal_gpio_status_t HAL_GpioRemoveItem(hal_gpio_state_t **head, hal_gpio_state_t *node)
394 hal_gpio_state_t *p = *head;
405 *head = p->next;