cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4

chwa_1570756
New Contributor II

Hello,

   

Can I assign those function components in the code dynamically?

   

e.g.,sometime I want to take P3.0,P3.1 as UART,sometime take as I2C in the one C code file,is it available?

   

Thanks.

   

Chris

0 Likes
2 Replies
Bob_Marlowe
Expert II

The SCB based components can be used uninitialized. With the help of  different structs you can assign at run-time what the component shall do. Look in datasheet for initializing the SCB.

   

 

   

Bob

0 Likes
chwa_1570756
New Contributor II

Thanks Bob,it is really helpful.

0 Likes