Trouble using the Delay10msTimes function from "Delay.h" in PSoC 3 | Cypress Semiconductor
Trouble using the Delay10msTimes function from "Delay.h" in PSoC 3
I want to use the Delay10msTimes function from the article here http://www.cypress.com/?id=4&rID=47960 .
I unzipped the delay.asm and delay.h files and included them in my project. I included the .h file using the "#include <delay.h>" line of code.
The code in the "delay.h" won't compile. I get the following warnings & errors:
WARNING: DELAY.H:12: unknown #pragma, line ignored
WARNING: DELAY.H:13: unknown #pragma, line ignored
WARNING: DELAY.H:14: unknown #pragma, line ignored
ERROR: DELAY.H:19: syntax error near 'Multiple', expected ')'
ERROR: DELAY.H:20: syntax error near 'TenMstimes', expected ')'
I want to create a 1 second pulse on a pin. I was going to do this with the following code:
Timer_Reset_1_Write(1); //Set the PIN High
Delay10msTimes(100); //Wait 1 second
Timer_Reset_1_Write(0); //Set the PIN Low