1 Reply Latest reply on Mar 3, 2010 8:27 PM by graa

    Cannot make a LED work

    gabriel.caron.l'cuyer
              I am starting to use the device CY8C20666A-24LTXI with PSoC Designer 5.0.   
         
      I can program it using miniprog3, but I can't succeed to light a LED (using LED user module). Is there a problem in my code? Is there a common mistake I could have done?   
         
      You can look at my project too.   
         
      Thanks a lot.   
         
      Gabriel   
         
      //----------------------------------------------------------------------------   
      // C main line   
      //----------------------------------------------------------------------------   
         
      #include        // part specific constants and macros    
      #include "PSoCAPI.h" // PSoC API definitions for all User Modules    
      #include "PSoCGPioInt.h"    
          
          
      void main(void)    
      {    
      // Enable global interrupts    
      M8C_EnableGInt;    
          
      //LED initialisation    
      LED_0_Start();    
      LED_1_Start();    
      LED_0_On();    
      LED_1_On();    
          
      // Main operating loop    
      while (1)    
      {    
      LED_0_On();    
      LED_1_On();    
      }    
          
      }