Skip to content

Commit

Permalink
Merge pull request #19 from Rocketct/main
Browse files Browse the repository at this point in the history
Added null value pins for unsupported architectures
  • Loading branch information
facchinm authored Nov 14, 2024
2 parents 0d4b2ab + 6e544a5 commit 6cb8cab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Arduino_10BASE_T1S.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ static int const CS_PIN = 25;
static int const RESET_PIN = 6; /* D6 (Uno form factor) -> PWM6 (Mid carrier headers) = P601 (Portenta C33 high-density connectors) = D6 */
static int const IRQ_PIN = 2;
#else
# error "No pins defined for your board"
static int const CS_PIN = -1;
static int const RESET_PIN = -1;
static int const IRQ_PIN = -1;
# warning "No pins defined for your board"
#endif
2 changes: 1 addition & 1 deletion src/MacAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void get_unique_chip_id_3(uint8_t * uid)
memcpy(uid, &stm32_uid, 3);
}
#else
# error "Retrieving a unique chip ID for MAC generation is not supported on this platform."
# warning "Retrieving a unique chip ID for MAC generation is not supported on this platform."
#endif
}

Expand Down

0 comments on commit 6cb8cab

Please sign in to comment.