cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor

what effect happened if i reinitialize recourse which i used in psoc 1 in code???

   

ex.

   

void main(void)

   

{

   

      int i=0; 

   

      ADC_START();

   

      E2PROM_START();

   

      DAC_START();

   

      UART_START(); 

   

      while(1)

   

     {

   

          i=i+5;

   

          if(i==1000)

   

         {

   

             main();

   

         }

   

    }

   

}

0 Likes
Reply
1 Solution
Esteemed Contributor II

Your stack will get busted.

   

 

   

Bob

View solution in original post

0 Likes
Reply
2 Replies
Esteemed Contributor II

Your stack will get busted.

   

 

   

Bob

View solution in original post

0 Likes
Reply
New Contributor

Thanks Bob

0 Likes
Reply