I'm using Raspberry Pi Pico with Arduino Mbed OS environment.
My problem is the general GPIO access time is too slow and so I'm looking for fast method but I can't find yet like as Arduino Platform method.
From
while (1) {
digitalWrite(3, 1);
digitalWrite(3, 0);
}
To
cli();
while (1) {
PORTD |= 0x8;
PORTD &= ~0x8;
}
your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project See About the Installation & Troubleshooting category.
What is slow and what is fast and why you need to make it faster ? We like to know the actual numbers. How many nanoseconds should it be and what is it for ? Can you also give a broader view and tell what your project is about ?
On this forum are sometimes questions about a solution without telling what it is for. That is sometimes a XY problem: https://xyproblem.info/ Therefor we like to know everything.
The ATmega microcontrollers are highly optimized for fast changing of pins. The Raspberry Pi Pico is a processor, meant for doing processor things.