Files
Power-Pico/Power_Pico/BSP/KEY/key.h

30 lines
361 B
C
Raw Normal View History

2025-08-05 16:06:46 +08:00
#ifndef __KEY_H__
#define __KEY_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
//KEY1
#define KEY1_PORT GPIOA
#define KEY1_PIN GPIO_PIN_0
#define KEY1 HAL_GPIO_ReadPin(KEY1_PORT,KEY1_PIN)
//KEY2
#define KEY2 0
void Key_Port_Init(void);
void Key_Interrupt_Callback(void);
uint8_t KeyScan(uint8_t mode);
#ifdef __cplusplus
}
#endif
#endif