Hello All,
I'm trying to compile this code in Energia and I receive the error below, I receive a similar error regardless of the code, if I need to download a library to write in c, which library and where do I download it.
Thank you!
////////////////////////////////////////CODE/////////////////////////////////////////
#include <msp430.h>
volatile unsigned int i;
void main(void) {
WDTCTL = WDTPW | WDTHOLD;
P1DIR |= (1<<0);
P1OUT &= ~(1<<0);
while(1) {
P1OUT ^= (1<<0);
i = 65535;// SW Delay
while(i --!= 0);
}
//////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////ERROR/////////////////////////////////////////
Build options changed, rebuilding all
test.c:1:20: error: msp430.h: No such file or directory
#include <msp430.h>
^
compilation terminated.
exit status 1
msp430.h: No such file or directory
Top Comments