I did already prepared the machine.Pin class and the firmware get compiled properly (and run perfectly).
Now I have to connect the pipes between the Pin class and the MCU.
I have two options:
1) Manipulates MCU registers (looks easy but will implies bit shifting operations).
2) use the samd21 hal_gpio.h, my preferred solution but I can't get it included without compilation error.
I did located the hal_gpio there:
Code: Select all
@samd21:~/micropython/lib/asf4$ find . -name 'hal_gpio.*'
./samd51/hal/include/hal_gpio.h
./samd51/hal/src/hal_gpio.c
./samd21/hal/include/hal_gpio.h <--------
./samd21/hal/src/hal_gpio.c
I think that the Makefile should be updated to perform the proper inclusions (maybe in the INC section). However, I do not know how to move forward on that point.
Some helps/guidance would be really appreciated.
Dominique