Created
March 5, 2014 05:45
-
-
Save MrTrick/9361900 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#include <stdio.h> | |
#define COUNT 3 | |
struct {int from; int to;} PINS[] = { | |
{1,5}, | |
{2,4}, | |
{14,72} | |
}; | |
int main() { | |
int i; | |
for(i=0;i<COUNT;i++) | |
printf("%4d => %d\n", PINS[i].from, PINS[i].to); | |
} |
struct gpio {
int bank;
int height;
};
struct gpio Gpio[] = {
{0,1},
{0,2}
};
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice!