Added Unique ID Functions/Updated Support Matrix#527
Added Unique ID Functions/Updated Support Matrix#527tannewt merged 15 commits intoadafruit:masterfrom
Conversation
|
Hold of on merging. Just compiled on my new Feather M0 Express, and I'm getting some weird results: |
|
Why is that result weird? |
|
yeah, nevermind. I was actually getting errors on the |
There was a problem hiding this comment.
You'll need a loop within this one to save the four bytes of each uint32_t into four slots in raw_id.
There was a problem hiding this comment.
Just an oversight, please remove.
There was a problem hiding this comment.
I wouldn't mention struct here. People can do what they want with it afterwards.
There was a problem hiding this comment.
..attribute:: uid It should match the entry in mcu_processor_locals_dict_table below.
|
Changes made. SAMD tested on Feather M0 Express; nRF tested on Feather nRF52. |
|
Please rebase these onto latest master. Ping me on discord if you need help. |
shared_bindings/index.rst: updated Support Matrix format as discussed in PR adafruit#503 & Issue adafruit#448.
shared-bindings/microcontroller/Processor.c & .h: added UID lookup functionality for use with all ports. See Issue adafruit#462.
ports/atmel-samd/common-hal/microcontroller/Processor.c & .h: added UID lookup function for SAMD ports. See Issue adafruit#462.
shared-bindings/index.rst: corrected term agreement/grammar for previous Support Matrix update. See PR adafruit#503 & Issue adafruit#448.
/esp8266/common-hal/microcontroller.h: added UID length definition
/esp8266/common-hal/microcontroller/Processor.c: added UID function
modified: ports/atmel-samd/common-hal/microcontroller/Processor.h modified: shared-bindings/microcontroller/Processor.c modified: shared-bindings/microcontroller/Processor.h
modified: ports/atmel-samd/common-hal/microcontroller/Processor.h modified: shared-bindings/microcontroller/Processor.c modified: shared-bindings/microcontroller/Processor.h
/ports/nrf/common-hal/microcontroller/Processor.h: add UID length definition.
/ports/nrf/common-hal/microcontroller/Processor.c: add UID function. See Issue adafruit#462.
/shared-bindings/microcontroller/Processor.c: added a note to `microcontroller.cpu.uid` (Issue adafruit#462) that ``struct`` is not currently available on the nRF port.
/ports/atmel-samd/common-hal/microcontroller.c: corrected `raw_id[]` assignment per requested changes in PR adafruit#527
/ports/nrf/common-hal/microcontroller.c: corrected `raw_id[]` assignment per requested changes in PR adafruit#527
/shared-bindings/microcontroller/Processor.c: corrected Sphinx documentation per requested changes in PR adafruit#527
tannewt
left a comment
There was a problem hiding this comment.
Code still looks good! Will wait for Travis and then merge.
/shared-bindings/index.rst: updated Support Matrix format as discussed in PR #503 & Issue #448.
Issue #462 :
/shared-bindings/microcontroller/Processor.x:
structfor bytearray unpacking./ports/XXXX/common-hal/microcontroller/Processor.x:
machine.unique_id(which is still available).P.S. I apologize for the merges/etc...trying to minimize the squashes necessary. Not sure I made that mark...