Created
May 19, 2017 19:10
-
-
Save peisenhower/14e2b7571111822adb86274332add771 to your computer and use it in GitHub Desktop.
cyclical structure definition in c header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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