加入大疆C板例程bsp

This commit is contained in:
2026-04-12 20:34:47 +08:00
parent 7475077b9e
commit b68ac54a34
51 changed files with 5950 additions and 1290 deletions

12
bsp/boards/bsp_laser.c Normal file
View File

@@ -0,0 +1,12 @@
#include "bsp_laser.h"
#include "main.h"
extern TIM_HandleTypeDef htim3;
void laser_on(void)
{
__HAL_TIM_SetCompare(&htim3, TIM_CHANNEL_3, 8399);
}
void laser_off(void)
{
__HAL_TIM_SetCompare(&htim3, TIM_CHANNEL_3, 0);
}