Skip to content

Commit

Permalink
fix broken gpio numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
John Slee committed Jan 19, 2014
1 parent ccf0446 commit 1fd775c
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,50 +379,50 @@ SetupGpio(37, PortF, NoPwmChannel, 5);
SetupGpio(38, PortF, NoPwmChannel, 6);
SetupGpio(39, PortF, NoPwmChannel, 7);

SetupGpio(32, PortG, NoPwmChannel, 0);
SetupGpio(33, PortG, NoPwmChannel, 1);
SetupGpio(34, PortG, NoPwmChannel, 2);
SetupGpio(35, PortG, NoPwmChannel, 3);
SetupGpio(36, PortG, NoPwmChannel, 4);
SetupGpio(37, PortG, NoPwmChannel, 5);
SetupGpio(38, PortG, NoPwmChannel, 6);
SetupGpio(39, PortG, NoPwmChannel, 7);

SetupGpio(32, PortH, NoPwmChannel, 0);
SetupGpio(33, PortH, NoPwmChannel, 1);
SetupGpio(34, PortH, NoPwmChannel, 2);
SetupGpio(35, PortH, NoPwmChannel, 3);
SetupGpio(36, PortH, NoPwmChannel, 4);
SetupGpio(37, PortH, NoPwmChannel, 5);
SetupGpio(38, PortH, NoPwmChannel, 6);
SetupGpio(39, PortH, NoPwmChannel, 7);

SetupGpio(40, PortJ, NoPwmChannel, 0);
SetupGpio(41, PortJ, NoPwmChannel, 1);
SetupGpio(42, PortJ, NoPwmChannel, 2);
SetupGpio(43, PortJ, NoPwmChannel, 3);
SetupGpio(44, PortJ, NoPwmChannel, 4);
SetupGpio(45, PortJ, NoPwmChannel, 5);
SetupGpio(46, PortJ, NoPwmChannel, 6);
SetupGpio(47, PortJ, NoPwmChannel, 7);

SetupGpio(48, PortK, NoPwmChannel, 0);
SetupGpio(49, PortK, NoPwmChannel, 1);
SetupGpio(50, PortK, NoPwmChannel, 2);
SetupGpio(51, PortK, NoPwmChannel, 3);
SetupGpio(52, PortK, NoPwmChannel, 4);
SetupGpio(53, PortK, NoPwmChannel, 5);
SetupGpio(54, PortK, NoPwmChannel, 6);
SetupGpio(55, PortK, NoPwmChannel, 7);

SetupGpio(56, PortL, NoPwmChannel, 0);
SetupGpio(57, PortL, NoPwmChannel, 1);
SetupGpio(58, PortL, NoPwmChannel, 2);
SetupGpio(59, PortL, NoPwmChannel, 3);
SetupGpio(60, PortL, NoPwmChannel, 4);
SetupGpio(61, PortL, NoPwmChannel, 5);
SetupGpio(62, PortL, NoPwmChannel, 6);
SetupGpio(63, PortL, NoPwmChannel, 7);
SetupGpio(40, PortG, NoPwmChannel, 0);
SetupGpio(41, PortG, NoPwmChannel, 1);
SetupGpio(42, PortG, NoPwmChannel, 2);
SetupGpio(43, PortG, NoPwmChannel, 3);
SetupGpio(44, PortG, NoPwmChannel, 4);
SetupGpio(45, PortG, NoPwmChannel, 5);
SetupGpio(46, PortG, NoPwmChannel, 6);
SetupGpio(47, PortG, NoPwmChannel, 7);

SetupGpio(48, PortH, NoPwmChannel, 0);
SetupGpio(49, PortH, NoPwmChannel, 1);
SetupGpio(50, PortH, NoPwmChannel, 2);
SetupGpio(51, PortH, NoPwmChannel, 3);
SetupGpio(52, PortH, NoPwmChannel, 4);
SetupGpio(53, PortH, NoPwmChannel, 5);
SetupGpio(54, PortH, NoPwmChannel, 6);
SetupGpio(55, PortH, NoPwmChannel, 7);

SetupGpio(56, PortJ, NoPwmChannel, 0);
SetupGpio(57, PortJ, NoPwmChannel, 1);
SetupGpio(58, PortJ, NoPwmChannel, 2);
SetupGpio(59, PortJ, NoPwmChannel, 3);
SetupGpio(60, PortJ, NoPwmChannel, 4);
SetupGpio(61, PortJ, NoPwmChannel, 5);
SetupGpio(62, PortJ, NoPwmChannel, 6);
SetupGpio(63, PortJ, NoPwmChannel, 7);

SetupGpio(64, PortK, NoPwmChannel, 0);
SetupGpio(65, PortK, NoPwmChannel, 1);
SetupGpio(66, PortK, NoPwmChannel, 2);
SetupGpio(67, PortK, NoPwmChannel, 3);
SetupGpio(68, PortK, NoPwmChannel, 4);
SetupGpio(69, PortK, NoPwmChannel, 5);
SetupGpio(70, PortK, NoPwmChannel, 6);
SetupGpio(71, PortK, NoPwmChannel, 7);

SetupGpio(72, PortL, NoPwmChannel, 0);
SetupGpio(73, PortL, NoPwmChannel, 1);
SetupGpio(74, PortL, NoPwmChannel, 2);
SetupGpio(75, PortL, NoPwmChannel, 3);
SetupGpio(76, PortL, NoPwmChannel, 4);
SetupGpio(77, PortL, NoPwmChannel, 5);
SetupGpio(78, PortL, NoPwmChannel, 6);
SetupGpio(79, PortL, NoPwmChannel, 7);

typedef Gpio<PortB, 0> SpiSS;
typedef Gpio<PortB, 1> SpiSCK;
Expand Down

0 comments on commit 1fd775c

Please sign in to comment.