bsp_beep新的ok

This commit is contained in:
stark1898y 2024-12-15 15:39:03 +08:00
parent aa74f64e75
commit d3d0b22b1e
1 changed files with 10 additions and 8 deletions

View File

@ -2,8 +2,8 @@
* @Author : stark1898y 1658608470@qq.com
* @Date : 2024-12-09 09:50:56
* @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-12-09 11:27:01
* @FilePath : \BLE_TYQ_CH592F\BSP\inc\bsp_beep_led_emv.h
* @LastEditTime : 2024-12-15 15:37:31
* @FilePath : \BLE_TYQ_CH592F - \BSP\inc\bsp_beep_led_emv.h
* @Description :
*
* Copyright (c) 2024 by yzy, All Rights Reserved.
@ -11,22 +11,23 @@
#ifndef __BSP_BEEP_LED_EMV_H__
#define __BSP_BEEP_LED_EMV_H__
#include "CH59x_common.h"
#include "CONFIG.h"
/**********************BOOST************************ */
/**********************BOOST 12V_EN************************ */
#define BOOST_EN \
do \
{ \
GPIOB_SetBits(GPIO_Pin_14); \
GPIOB_ModeCfg(GPIO_Pin_14, GPIO_ModeOut_PP_5mA); \
GPIOB_SetBits(GPIO_Pin_4); \
GPIOB_ModeCfg(GPIO_Pin_4, GPIO_ModeOut_PP_5mA); \
} while (0);
#define BOOST_OFF_DEINIT \
do \
{ \
GPIOB_ResetBits(GPIO_Pin_14); \
GPIOB_ModeCfg(GPIO_Pin_14, GPIO_ModeIN_PD); \
GPIOB_ResetBits(GPIO_Pin_4); \
GPIOB_ModeCfg(GPIO_Pin_4, GPIO_ModeIN_PD); \
} while (0);
/***********************BEEP************************ */
@ -105,4 +106,5 @@
GPIOB_ModeCfg(GPIO_Pin_12, GPIO_ModeIN_Floating); \
} while (0);
#endif // !__BSP_BEEP_LED_EMV_H__