boards: Add support for the Arduino-Leonardo#11227
Conversation
|
There are some differences between my branch (see #7306 (comment)) and this PR, so I need to retest. My branch also contains a lot of |
Sorry for the extra effort. Some refactoring of the AVR based boards has been merged since. Those required adaptations of the code to match current master.
Thanks for the hint. I'll check that out. But if I remember correctly those adaptations have been done prior to the merge of the Arduino Nano - which needed to be added to |
|
Sorry for testing only now, but I was quite busy the past month. |
|
@miri64: Thanks for pointing that out. While I tried to deduplicate the timer configs of the ATmega1284P and the ATmega32U4 an error sneaked in (2 instead of 3 channels). I separated the configs now in the fix up, as this seems to be more readable. I also changed the default frequency in |
|
I tested both |
|
On the one hand the I2C driver is the same on all ATmega boards, on the other hand more testing is always better. Due to memory constraints it will be a bit difficult to test. E.g. the i2c test overflows the memory. In this branch I rebased this PR against master (to get the i2c_scan shell command) and added the |
|
Tested I²C with |
|
Perfect :-) Thanks :-) |
|
Some builds already fail due to memory constraints |
|
Yes, all the |
sure. I remember the pain from #7306 ;-) |
F**k. (These are the |
|
Of course! |
The Arduino Leonardo requires - like the other ATmega based Arduinos - a different frequency than the default 1000000, as this frequency cannot be achieved on a 16MHz ATmega with any available prescaler.
|
|
|
Ok... apparently making |
|
But for reference, in POSIX it shall be an integer type. |
|
@maribu you may squash. The blacklisting of the tests should be done in a separate commit anyways. |
Added arduino-leonardo to BOARD_INSUFFICIENT_MEMORY where needed
Added arduino-leonardo to BOARD_BLACKLIST where needed
|
You may squash the missing blacklisting for |
Added arduino-leonardo to BOARD_BLACKLIST where needed
Added arduino-leonardo to BOARD_INSUFFICIENT_MEMORY where needed
|
🎉 |
I think that integer type does imply whether it is signed or unsigned. E.g. for |
You are right. The value |
|
Forgot the reference. |
|
Apparently this is fixed in the current version. |
|
|
||
| # Modules to include: | ||
| USEMODULE += shell | ||
| USEMODULE += shell_commands |
There was a problem hiding this comment.
I have no idea how that sneaked in. I did touch about every example and test Makefile to update the BOARD_INSUFFICIENT_MEMORY, so I guess I just hit a wrong key and lost track of the changes :-(
Contribution description
Testing procedure
Try to flash and run some tests and examples, such as
examples/hello-world. Keep in mind that most tests and examples require more resources (RAM & flash) than the Arduino Leonardo has.Issues/PRs references
This PR is basically a rebase of #7306