Skip to content

Add support for dsPIC33CH #2

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Add support for dsPIC33CH #2

wants to merge 2 commits into from

Conversation

EngJay
Copy link

@EngJay EngJay commented Mar 23, 2023

@EngJay EngJay self-assigned this Mar 23, 2023
/* send the 24-bit command */
for (i = 0; i < 24; i++)
{
if ((cmd >> i) & 0x00000001)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you plan to upstream your changes, I recommend splitting the reformatting into a separate PR as formatting changes can be slightly controversial. But if you're changing formatting, you might also want to put braces around single-statement blocks, as you already know this is usually a huge footgun. Just in case, I'd do this in a separate commit so it's easy to revert if the maintainer requests it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal was just to distill the diff between the dspic33f and dspicc33e implementations by eliminating formatting differences - I've yet to decide what I'm doing with it. On one hand, this is a quick, cheap way to be able to flash the dsPIC33CH from a Pi for primitive HIL purposes, so I wouldn't need to research / request a purchase of a x86/x64 SBC of some kind to run Microchip's junk but on the other hand it would be super-tightly coupled to vendor, platform, etc., so the possibility for much reuse is very low. I hadn't planned to upstream the changes and I'm probably just going to ditch this as not a good investment. Too many cons.

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