/*
 * Peripherals.h
 *
 *  Created on: 09-Jan-2024
 *      Author: 39138
 */

#ifndef PERIPHERALS_H_
#define PERIPHERALS_H_

#define SYSCLK_OSCSRC_FREQ_MHZ      10U
#define SYSCLK_PLL_IMULT            IMULT_20
#define SYSCLK_PLL_DIV              PLLCLK_BY_2
#define SYSCLK_FREQ_MHZ             (SYSCLK_OSCSRC_FREQ_MHZ * SYSCLK_PLL_IMULT)/(2*SYSCLK_PLL_DIV)

//#define SYSTICK_PRD_IN_USEC         50000U
#define PWM1_TIMER_PRD          4000
#define PWM1_CMPA               2000

#define EPWM_TIMER_UP      TB_COUNT_UP
#define EPWM_TIMER_UP_DOWN TB_COUNT_UPDOWN

void PeripheralsInit(void);



#endif /* PERIPHERALS_H_ */
