Hi. I am using DA14583. First of all i want the chip to boot from internal flash memory. Then i want to use P0 as SPI to read some sensor data. During the code execution i would like to write some data to the internal flash memory so i would like use P2 as SPI. Is that possible using the GPIO_ConfigurePin function inside my code? Will that cause any other trouble i cannot imagine?
PS. Connect my sensors to P2 SPI could be a solution but the other way makes the layout of the board much easier.
Device:
Hi Kostakis,
Yes you can reconfigure your pins during code execution, and its not necessary to set the pin configuration during the peripheral initialization, you can use the function GPIO_ConfigurePin.
Thanks MT_dialog
Thank You MT!