Skip to content

Commit

Permalink
Update TeensyID.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sstaub committed May 20, 2020
1 parent 6573c9e commit ea41c04
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions TeensyID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ const char* teensySN(void) {
return teensySerial;
}

#ifdef ARDUINO_TEENSY40
#if defined ARDUINO_TEENSY40 || defined ARDUINO_TEENSY41

void teensyMAC(uint8_t *mac) {
void teensyMAC(uint8_t *mac) { // there are 2 MAC addresses each 48bit
uint32_t m1 = HW_OCOTP_MAC1;
uint32_t m2 = HW_OCOTP_MAC0;
mac[0] = m1 >> 8;
Expand Down Expand Up @@ -108,11 +108,13 @@ const char* teensyMAC(void) {
return teensyMac;
}

#ifdef ARDUINO_TEENSY40
#if defined ARDUINO_TEENSY40 || defined ARDUINO_TEENSY41
void kinetisUID(uint32_t *uid) {

}

const char* kinetisUID(void) {
//uint32_t uid = HW_UNIQUE_ID; // 64 bit
return "no UID";
}

Expand Down Expand Up @@ -151,7 +153,7 @@ const char* teensyMAC(void) {

#endif

#ifdef ARDUINO_TEENSY40
#if defined ARDUINO_TEENSY40 || defined ARDUINO_TEENSY41

void teensyUUID(uint8_t *uuid) {

Expand Down

0 comments on commit ea41c04

Please sign in to comment.