GadgetSeed
0.9.6
|
STM32F769I-Dicsovery 簡易キードライバ [詳解]
#include "interrupt.h"
#include "device.h"
#include "sysevent.h"
#include "key.h"
#include "tkprintf.h"
#include "timer.h"
#include "stm32f7xx_hal.h"
#include "dkprintf.h"
マクロ定義 | |
#define | SCANINTTIME 20 |
スキャン間隔(20ms) | |
#define | KEYLINEBITS 4 |
関数 | |
static void | MX_GPIO_Init (void) |
static void | init_gpio (void) |
static unsigned short | scan_gpio (void) |
static void | scan_key (void *sp) |
static void | key_timer (void *sp, unsigned long long stime) |
static int | gpio_keyboard_register (struct st_device *dev, char *param) |
変数 | |
static unsigned short | key_stat |
static const unsigned char | key_map [KEYLINEBITS] |
const struct st_device | gpio_keyboard_device |
STM32F769I-Dicsovery 簡易キードライバ
PJ3 KEY3 PF7 KEY2 PC8 KEY1 PJ0 KEY0
gpio_keyboard.c に定義があります。
const struct st_device gpio_keyboard_device |
gpio_keyboard.c の 156 行目に定義があります。
|
static |
gpio_keyboard.c の 33 行目に定義があります。