MVBMS - pwm generation code added
This commit is contained in:
@ -13,13 +13,14 @@
|
||||
#include "stm32f3xx_hal.h"
|
||||
#include "stm32f3xx_hal_can.h"
|
||||
#include "stm32f3xx_hal_def.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint8_t pwrgndfans;
|
||||
} rx_status_frame;
|
||||
uint8_t txbuffer;
|
||||
uint8_t rxbuffer;
|
||||
void ams_can_init(CAN_HandleTypeDef* hcan);
|
||||
|
||||
void ams_can_handle_ams_msg(CAN_RxHeaderTypeDef* header, uint8_t* data);
|
||||
|
||||
void ams_can_send_status();
|
||||
/**
|
||||
* @brief Send an AMS Error via CAN.
|
||||
|
||||
9
Core/Inc/PWM_Control.h
Normal file
9
Core/Inc/PWM_Control.h
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef INC_PWM_CONTROL_H_
|
||||
#define INC_PWM_CONTROL_H_
|
||||
|
||||
#include "stm32f3xx_hal_conf.h"
|
||||
|
||||
void PWMControl_UpdatePWMs(uint8_t pwrgndfans );
|
||||
void PWMControl_init(TIM_HandleTypeDef* timer3);
|
||||
|
||||
#endif /* INC_CHANNEL_CONTROL_H_ */
|
||||
@ -63,10 +63,6 @@ void Error_Handler(void);
|
||||
#define RELAY_EN_GPIO_Port GPIOA
|
||||
#define _60V_EN_Pin GPIO_PIN_1
|
||||
#define _60V_EN_GPIO_Port GPIOA
|
||||
#define PWM_PG_FAN1_Pin GPIO_PIN_2
|
||||
#define PWM_PG_FAN1_GPIO_Port GPIOA
|
||||
#define PWM_PG_FAN2_Pin GPIO_PIN_3
|
||||
#define PWM_PG_FAN2_GPIO_Port GPIOA
|
||||
#define CSB_Pin GPIO_PIN_4
|
||||
#define CSB_GPIO_Port GPIOA
|
||||
#define STATUS_LED_R_Pin GPIO_PIN_0
|
||||
|
||||
Reference in New Issue
Block a user