Engineering School, 2nd year
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
882 B

/* Do *not* directly modify this file. It was */
/* generated by the Configuration Tool; any */
/* changes risk being overwritten. */
/* INPUT ex4b.cdb */
/* Include Header File */
#include "ex4bcfg.h"
#ifdef __cplusplus
#pragma CODE_SECTION(".text:CSL_cfgInit")
#else
#pragma CODE_SECTION(CSL_cfgInit,".text:CSL_cfgInit")
#endif
#ifdef __cplusplus
#pragma FUNC_EXT_CALLED()
#else
#pragma FUNC_EXT_CALLED(CSL_cfgInit)
#endif
/* Config Structures */
TIMER_Config timer1Cfg = {
0x000003C0, /* Control Register (CTL) */
0x0015752A, /* Period Register (PRD) */
0x00000000 /* Counter Register (CNT) */
};
/* Handles */
TIMER_Handle hTimer1;
/*
* ======== CSL_cfgInit() ========
*/
void CSL_cfgInit()
{
hTimer1 = TIMER_open(TIMER_DEV1, TIMER_OPEN_RESET);
TIMER_config(hTimer1, &timer1Cfg);
}