This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP-EXP430FR6989: newbie question about clocks and headers

Part Number: MSP-EXP430FR6989

Tool/software: Code Composer Studio

Good evening I was trying to program the MSP430 clocks following the instructions from the Workshop. I created 3 files (Main.c,myclocks.c and myclocks.h) after I build the files I got the following errors:  

My codes are the following:  (for main.c)

#include <driverlib.h>
#include "myclocks.h"

void initGPIO(void);

#define ONE_SECOND 800000
#define HALF_SECOND 400000

void main (void)
{

WDT_A_hold( WDT_A_BASE );  // Stop watchdog timer


GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN0);


initGPIO();
initClocks();
PMM_unlockLPM5();
while(1) {

GPIO_setOutputHighOnPin( GPIO_PORT_P1, GPIO_PIN0 );
_delay_cycles(ONE_SECOND);
GPIO_setOutputLowOnPin(GPIO_PORT_P1,GPIO_PIN0);
_delay_cycles(ONE_SECOND);
}
}

void initGPIO (void){

GPIO_setAsOutputPin( GPIO_PORT_P1,GPIO_PIN0);
GPIO_setOutputLowOnPin(GPIO_PORT_P1,GPIO_PIN0);

}

here is myclocks.c file 

//*Header Files
#include <driverlib.h>
#include "myclocks.h"


//***** Defines *****************************************************

#define LF_CRYSTAL_FREQUENCY_IN_HZ 32768
#define HF_CRYSTAL_FREQUENCY_IN_HZ 0
//***** Global Variables ********************************************
uint32_t myACLK = 0;
uint32_t mySMCLK = 0;
uint32_t myMCLK = 0;
//***** Functions ***************************************************

void initClocks() {

// Initialize the LFXT and HFXT crystal frequencies being used
// so driverlib knows how fast they are

CS_setExternalClockSource(LF_CRYSTAL_FREQUENCY_IN_HZ, HF_CRYSTAL_FREQUENCY_IN_HZ);

// Verify if the default clock settings are as expected
myACLK = CS_getACLK();
mySMCLK = CS_getSMCLK();
myMCLK = CS_getMCLK();
// Setup ACLK to use VLO as its oscillator source

CS_clockSignalInit (CS_ACLK,CS_VLOCLK_SELECT, CS_CLOCK_DIVIDER_1);

// Set DCO to 8MHz
CS_setDCOFreq(CS_DCORSEL_1,CS_DCOFSEL_3);

// Set SMCLK to use the DCO clock
CS_clockSignalInit(CS_SMCLK,CS_DCOCLK_SELECT,CS_CLOCK_DIVIDER_1 ); // Divide down clock source


// Set MCLK to use the DCO clock
CS_clockSignalInit(CS_MCLK,CS_DCOCLK_SELECT,CS_CLOCK_DIVIDER_1 ); // Divide down clock source

// Verify that the modified clock settings are as expected
myACLK = CS_getACLK();
mySMCLK = CS_getSMCLK();
myMCLK = CS_getMCLK();
}

and myclocks.h file 

/*
 * myclocks.h
 *

#ifndef MYCLOCKS_H_
#define MYCLOCKS_H_

void initClocks(void);


#endif /* MYCLOCKS_H_ */

It seems like CS_clockSignalInit is not defined. I would appreciate any help, thanks. 

**Attention** This is a public forum