Skip to content

Commit

Permalink
Update for Orange Pi 3Plus
Browse files Browse the repository at this point in the history
  • Loading branch information
liu1313277 committed Mar 25, 2024
1 parent ce520ea commit 63240e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/blink.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ unsigned char getGpioNum(void)
case PI_MODEL_CM4:
case PI_MODEL_3B:
case PI_MODEL_ZERO_2_W:
case PI_MODEL_3_PLUS:
return 28;
break;
case PI_MODEL_R1_PLUS:
Expand Down
7 changes: 4 additions & 3 deletions wiringPi/wiringPi.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static int ORANGEPI_PIN_MASK_3PLUS[16][32] = //[BANK] [INDEX]
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,},//351
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,},//383
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,28,29,30,31,},//415
{-1, 1, 2, 3, 4, 5, 6,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,31,},//447
{-1, 1, 2, 3, 4, 5, 6, 7,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,31,},//447
{ 0, 1, 2, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,27,28,-1,30,31,},//479
{ 0,-1,-1, 3,-1, 5, 6, 7, 8, 9,10,11,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,},//511
};
Expand Down Expand Up @@ -1100,7 +1100,7 @@ int pinToGpio_3PLUS[64] =
422, 489, //22,23
476, 483, //24,25
486, 485, //26,27
-1, -1, //28,29
423, -1, //28,29
-1, -1, //30,31

-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 47
Expand Down Expand Up @@ -1785,10 +1785,11 @@ int physToGpio_3PLUS[64] =
489, 476, // 35, 36
483, 486, // 37, 38
-1, 485, // 39, 40
423,

//Padding:
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 56
-1, -1, -1, -1, -1, -1, -1, // ... 63
-1, -1, -1, -1, -1, -1, // ... 63
};

// gpioToGPFSEL:
Expand Down

0 comments on commit 63240e5

Please sign in to comment.