Skip to content

Instantly share code, notes, and snippets.

@peisenhower
Created May 19, 2017 19:10
Show Gist options
  • Save peisenhower/14e2b7571111822adb86274332add771 to your computer and use it in GitHub Desktop.
Save peisenhower/14e2b7571111822adb86274332add771 to your computer and use it in GitHub Desktop.
cyclical structure definition in c header
struct external_interrupt_s;
typedef void (*external_callback_func)(struct external_interrupt_s *interrupt, GPIO_PinState state);
typedef struct external_interrupt_s
{
GPIO_TypeDef *port;
uint32_t pin;
external_callback_func callback;
} external_interrupt_t;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment