mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
移动文件夹
This commit is contained in:
25
software/bootloader/BSP/KEY/key.h
Normal file
25
software/bootloader/BSP/KEY/key.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef __KEY_H__
|
||||
#define __KEY_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "main.h"
|
||||
|
||||
//KEY1
|
||||
#define KEYB_PORT GPIOA
|
||||
#define KEYB_PIN GPIO_PIN_0
|
||||
#define KEYB HAL_GPIO_ReadPin(KEYB_PORT,KEYB_PIN)
|
||||
|
||||
void Key_Port_Init(void);
|
||||
uint8_t KeyScan(uint8_t mode);
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user