osresearch / micropython

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
https://micropython.org
MIT License
32 stars 8 forks source link

extmod/machine_spiflash: address of spiflash object #3

Open osresearch opened 4 years ago

osresearch commented 4 years ago

What is going on with the "+4" in the address calculation? https://github.com/osresearch/micropython/blob/efm32/extmod/machine_spiflash.c#L69

osresearch commented 4 years ago

Also the argument parser doesn't handle keywords correctly: https://github.com/osresearch/micropython/blob/efm32/extmod/machine_spiflash.c#L42