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.
45 lines
2.6 KiB
45 lines
2.6 KiB
#pragma once
|
|
#include "iflytop_canbus_protocol/iflytop_canbus_protocol.hpp"
|
|
|
|
/***********************************************************************************************************************
|
|
* SDK_CONFIG *
|
|
***********************************************************************************************************************/
|
|
#define SDK_DELAY_US_TIMER htim6 // 微秒延迟定时器,注意该延时定时器需要按照以下文档进行配置 http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
|
|
#define SDK_IRQ_PREEMPTPRIORITY_DEFAULT 5 // IO中断默认中断等级
|
|
#define SDK_CFG__CFG_FLASH_ADDR 0x080C0000 //
|
|
#define SDK_CFG__SN_FLASH_ADDR 0x080E0000 //
|
|
#define SDK_MAX_TASK 10
|
|
|
|
/***********************************************************************************************************************
|
|
* PROJECT_CONFIG *
|
|
***********************************************************************************************************************/
|
|
|
|
/**
|
|
* @brief 基础配置
|
|
*
|
|
*/
|
|
#define SOFTWARE_VERSION 1 // 软件版本
|
|
#define HARDWARE_VERSION 1 // 硬件版本
|
|
#define PROJECT "large_space_disinfection__power_control_board" // 工程名称
|
|
#define SN_HEADER "SN" // SN号前缀
|
|
#define DEVICE_ID (kFixBoardId_PowerControl) // 设备ID
|
|
#define PROJECT_ID klarge_space_disinfection_machine // 项目ID
|
|
#define BOARD_TYPE kBoardType_PowerControl // 板子类型
|
|
#define DEBUG_UART huart1 // 调试串口
|
|
#define DEBUG_LIGHT_GPIO PE8 // 调试指示灯
|
|
|
|
#define HEATER_CTRL_GPIO PC6
|
|
#define HEATER_SAFE_CTRL_GPIO PC7
|
|
#define HEATER_ELECTRIC_CURRENT_ADC_CH ADC_CHANNEL_0
|
|
#define HEATER_TEMPERATURE_ADC_CH ADC_CHANNEL_8
|
|
|
|
#define BLOWER_CTRL_GPIO PC4
|
|
#define BLOWER_SAFE_CTRL_GPIO PC5
|
|
#define BLOWER_ELECTRIC_CURRENT_ADC_CH ADC_CHANNEL_1
|
|
|
|
#define AIRCOMPRESSOR_CTRL_GPIO PC2
|
|
#define AIRCOMPRESSOR_SAFE_CTRL_GPIO PC3
|
|
#define AIRCOMPRESSOR_ELECTRIC_CURRENT_ADC_CH ADC_CHANNEL_2
|
|
|
|
#define H2O2_SENSOR_TYPE_HPP272
|
|
// #define H2O2_SENSOR_TYPE_HMP110
|