feat: first commit

This commit is contained in:
不吃油炸鸡
2025-08-02 19:53:22 +08:00
commit db264d34e1
528 changed files with 366793 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#include "KT6328.h"
void KT6328_GPIO_Init(void)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
__HAL_RCC_GPIOA_CLK_ENABLE();
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_RESET);
GPIO_InitStruct.Pin = GPIO_PIN_8;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
}
void KT6328_Enable(void)
{
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_SET);
}
void KT6328_Disable(void)
{
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_RESET);
}

View File

@@ -0,0 +1,19 @@
#ifndef __KT6328_H__
#define __KT6328_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
void KT6328_GPIO_Init(void);
void KT6328_Enable(void);
void KT6328_Disable(void);
#ifdef __cplusplus
}
#endif
#endif