forked from friendlyarm/WiringNP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request friendlyarm#4 from Tea-NT/master
Add NanoPC-T3 support GPIO input and Output.
- Loading branch information
Showing
3 changed files
with
493 additions
and
97 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1132,15 +1132,20 @@ int main (int argc, char *argv []) | |
BoardHardwareInfo* retBoardInfo; | ||
int ret = getBoardType(&retBoardInfo); | ||
if (ret >= 0) { | ||
if (retBoardInfo->boardTypeId > ALLWINNER_BASE && retBoardInfo->boardTypeId <= ALLWINNER_MAX | ||
&& retBoardInfo->boardTypeId != NanoPi_A64) { | ||
if (retBoardInfo->boardTypeId > ALLWINNER_BASE && retBoardInfo->boardTypeId <= ALLWINNER_MAX | ||
&& retBoardInfo->boardTypeId != NanoPi_A64) { | ||
printf ("NanoPi Details:\n") ; | ||
printf (" Type: %s, Revision: %d, Maker: FriednlyELEC\n\n", | ||
retBoardInfo->boardDisplayName, retBoardInfo->kernelRevision) ; | ||
printf (" Type: %s, Revision: %d, Maker: FriednlyELEC\n\n", | ||
retBoardInfo->boardDisplayName, retBoardInfo->kernelRevision) ; | ||
} else { | ||
printf ("This NanoPi model is currently not supported. ") ; | ||
if (retBoardInfo->boardTypeId == NanoPC_T3) { | ||
printf( | ||
"This NanoPi-T3 is only supported GPIO input and GPIO outpu. " | ||
"Please Careful! "); | ||
} else { | ||
printf ("This NanoPi model is currently not supported. ") ; | ||
} | ||
} | ||
|
||
} else { | ||
printf ("Your NanoPi has an unknown model type. Please report this to\n") ; | ||
printf (" [email protected]\n") ; | ||
|
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
Oops, something went wrong.