Arduino Portenta C33 Strangeness in Code

I have noticed some interesting things in my current project. I have two routines I use for initializing LED outputs and blinking the LEDs.

This code works perfectly stand alone. However, when I add these routines to the rest of my project, this code seems to not work right or possibly runs so fast that I can not tell whether it is doing what it is supposed to do.

I am not sure how to go about troubleshooting this because the code works perfectly outside of my project.
Was this page helpful?