Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1bd6f3e

Browse files
author
fpr
committedJun 23, 2017
First step: DHCP request works. Hardware configuration validated.
Signed-off-by: fpr <[email protected]>
1 parent a5c56b7 commit 1bd6f3e

File tree

343 files changed

+125962
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

343 files changed

+125962
-2
lines changed
 

‎cores/arduino/stm32/PeripheralPins.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,7 @@ extern const PinMap PinMap_SPI_SSEL[];
6262
extern const PinMap PinMap_CAN_RD[];
6363
extern const PinMap PinMap_CAN_TD[];
6464

65-
#endif
65+
//*** ETHERNET ***
66+
extern const PinMap PinMap_Ethernet[];
6667

68+
#endif

‎cores/arduino/stm32/pinmap.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,11 @@ uint32_t pinmap_merge(uint32_t a, uint32_t b) {
8383
// error("pinmap mis-match");
8484
return (uint32_t)NC;
8585
}
86+
87+
PinName pin_pinName(const PinMap* map) {
88+
if(map->pin != NC) {
89+
return map->pin;
90+
} else {
91+
return NC;
92+
}
93+
}

0 commit comments

Comments
 (0)
Please sign in to comment.