Skip to content

Commit 1a9b635

Browse files
author
Filip Jagodzinski
committed
KW24D: Add a GPIO pinmap for testing
1 parent 63fd9f9 commit 1a9b635

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/TARGET_FRDM/PeripheralNames.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
extern "C" {
2323
#endif
2424

25+
typedef enum {
26+
GPIO_X = 0, // dummy peripheral used instead of GPIO_A..GPIO_E
27+
} GPIOName;
28+
2529
typedef enum {
2630
OSC32KCLK = 0,
2731
} RTCName;

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/TARGET_FRDM/PeripheralPins.c

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,47 @@
1616

1717
#include "PeripheralPins.h"
1818

19+
/************GPIO***************/
20+
const PinMap PinMap_GPIO[] = {
21+
{PTA0, GPIO_X, 1},
22+
{PTA1, GPIO_X, 1},
23+
{PTA2, GPIO_X, 1},
24+
{PTA3, GPIO_X, 1},
25+
{PTA4, GPIO_X, 1},
26+
{PTA18, GPIO_X, 1},
27+
{PTA19, GPIO_X, 1},
28+
29+
{PTC4, GPIO_X, 1},
30+
{PTC5, GPIO_X, 1},
31+
{PTC6, GPIO_X, 1},
32+
{PTC7, GPIO_X, 1},
33+
34+
{PTD1, GPIO_X, 1},
35+
{PTD2, GPIO_X, 1},
36+
{PTD3, GPIO_X, 1},
37+
{PTD4, GPIO_X, 1},
38+
{PTD5, GPIO_X, 1},
39+
{PTD6, GPIO_X, 1},
40+
{PTD7, GPIO_X, 1},
41+
42+
{PTE0, GPIO_X, 1},
43+
{PTE1, GPIO_X, 1},
44+
{PTE2, GPIO_X, 1},
45+
{PTE3, GPIO_X, 1},
46+
{PTE4, GPIO_X, 1},
47+
{PTE16, GPIO_X, 1},
48+
{PTE17, GPIO_X, 1},
49+
{PTE18, GPIO_X, 1},
50+
{PTE19, GPIO_X, 1},
51+
52+
{NC , NC , 0}
53+
};
54+
55+
const PinMap *gpio_pinmap()
56+
{
57+
return PinMap_GPIO;
58+
}
59+
1960
/************RTC***************/
2061
const PinMap PinMap_RTC[] = {
2162
{NC, OSC32KCLK, 0},

0 commit comments

Comments
 (0)