// settings defines
#define HZ_TIMER_CTRL	400
#define HZ_TIMER_PWM	1000


// TIM PWM1 SETTINGS
#define TIMER_PWM_INSTANCE				TIM4
#define TIMER_PWM_TICKBASE				TIM_TickBase_1US
#define TIMER_PWM_AHB_FREQ				72
#define TIMER_PWM_TIM_CHANNEL1		TIM_CHANNEL_1
#define TIMER_PWM_TIM_CHANNEL2		TIM_CHANNEL_2
#define TIMER_PWM_GPIOx						GPIOD
#define TIMER_PWM_GPIO_PIN_X1			GPIO_PIN_12
#define TIMER_PWM_GPIO_PIN_X2			GPIO_PIN_13



// TIM PWM2 SETTINGS
#define TIMER_PWM2_INSTANCE				TIM3
#define TIMER_PWM2_TIM_CHANNEL1		TIM_CHANNEL_3
#define TIMER_PWM2_TIM_CHANNEL2		TIM_CHANNEL_4
#define TIMER_PWM2_GPIOx					GPIOB
#define TIMER_PWM2_GPIO_PIN_X1		GPIO_PIN_0
#define TIMER_PWM2_GPIO_PIN_X2		GPIO_PIN_1



// TIM PWM3 SETTINGS
#define TIMER_PWM3_INSTANCE				TIM1
#define TIMER_PWM3_TIM_CHANNEL1		TIM_CHANNEL_1
#define TIMER_PWM3_TIM_CHANNEL2		TIM_CHANNEL_2
#define TIMER_PWM3_GPIOx					GPIOE
#define TIMER_PWM3_GPIO_PIN_X1		GPIO_PIN_9
#define TIMER_PWM3_GPIO_PIN_X2		GPIO_PIN_11

// TIM CTRL SETTINGS
#define TIMER_CTRL_TICKBASE				TIM_TickBase_1US
#define TIMER_CTRL_AHB_FREQ				72

// PWM SETTINGS
#define SIN_TABLE_ORIGIN 					sin_table
#define SIN_TABLE_SIZE_MAX 				1000