Skip to content

Rp2040 #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 13, 2021
Merged

Rp2040 #78

merged 7 commits into from
May 13, 2021

Conversation

runger1101001
Copy link
Member

RP2040 aka Raspberry Pico support.

3PWM and 6PWM, tests are ongoing.

I renamed the enum member EXTERN to EXTERNAL. For consistency, I also
renmaed INTERN.
The solution is to define them based on the equivalent rp2040 constants
until I find a way to make it compatible, it is disabled when compling
for rp2040. Problem is that SPIClass and SPISettings are not defined,
SPI seems to work somewhat differently in rp2040
@runger1101001
Copy link
Member Author

Hmmm... I was actually hoping to put this into a new branch...

@askuric
Copy link
Member

askuric commented May 13, 2021

Very nice!
Do we include this in the v2.1.1 or we leave it for the next one?

@askuric
Copy link
Member

askuric commented May 13, 2021

For windows users, change of driver needed in some cases.
https://arduino-pico.readthedocs.io/en/latest/install.html#uploading-sketches

@askuric
Copy link
Member

askuric commented May 13, 2021

FYI. 3PWM and 6PWM work out of the box for me, well done! ;D

@runger1101001
Copy link
Member Author

Hey, I think it could be merged, especially if you tested it :-)

@askuric
Copy link
Member

askuric commented May 13, 2021

Ok, I am in. It's probably good that it goes out so that we have a bit feedback :D
I'll update the docs about the Pullup change and add the Pico support.

@askuric askuric merged commit e43425c into simplefoc:dev May 13, 2021
@askuric
Copy link
Member

askuric commented May 13, 2021

Just a quick info, since it is a bit related to this PR. I've had to change the Pullup enum once again since EXTRENAL is deffined for Aruidnos :D

So now the enum is;

 enum Pullup{
    USE_INTERN, //!< Use internal pullups
    USE_EXTERN //!< Use external pullups
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants