/* Do *not* directly modify this file. It was */ /* generated by the Configuration Tool; any */ /* changes risk being overwritten. */ /* INPUT ex4a.cdb */ /* Include Header File */ #include "ex4acfg.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 timer1Cfg0 = { 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, &timer1Cfg0); }