#include "led.h"
#include "delay.h"
#include "key.h"
#include "sys.h"
#include "lcd.h"
#include "usart.h"
#include "lsens.h"
#include "adc.h"
#include "dac.h"
void myPwmHandler(uint16_t prer,uint16_t value);
void pwmDacSet(u16 vol);
int main(void)
{
u16 pwmval=0;
u16 adcx=0;
u8 t=0;
u8 key=0;
float temp=0;
delay_init(); //延时函数初始化
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); //设置NVIC中断分组2:2位抢占优先级,2位响应优先级
uart_init(115200); //串口初始化为115200
LED_Init(); //LED端口初始化
KEY_Init();
LCD_Init();
myPwmHandler(0,255
炒冷饭系列-STM32F103之PWM_DAC
最新推荐文章于 2024-05-08 15:10:45 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)