资 源 简 介
基于keil开发平台,在stm32板子上实现4x2键盘检测。程序完全正确能够完美实现功能。
部分代码摘录:
void Task1(void *pdata)
{
u8 key;
while(1)
{
key=KEY_Scan();
if(key==1)
{
digitalToggle(GPIOD,GPIO_Pin_7); //D4亮
OSTimeDlyHMSM(0,0,1,0);
}
if(key==2)
{
digitalToggle(GPIOD,GPIO_Pin_6); //D5亮
OSTimeDlyHMSM(0,0,1,0);
}
if(key==3)
{
digitalToggle(GPIOD,GPIO_Pin_5); //D6亮
OSTimeDlyHMSM(0,0,1,0);
}
if(key==4)
{
&n
文 件 列 表
UCOS-II -2
USER
UCOSII
Output
Listing
FWLib
CMSIS
bsp_led.crf
bsp_led.d
bsp_led.o
core_cm3.crf
core_cm3.d
core_cm3.o
key.crf
key.d
key.o
led.crf
led.d
led.o
main.crf
main.d
main.o
misc.crf
misc.d
misc.o
os_core.crf
os_core.d
os_core.o
os_cpu_a.d
os_cpu_a.o
os_cpu_c.crf
os_cpu_c.d
os_cpu_c.o
os_dbg.crf
os_dbg.d
os_dbg.o
os_dbg_r.crf
os_dbg_r.d
os_dbg_r.o
os_dbg_r.__i
os_flag.crf
os_flag.d
os_flag.o
os_mbox.crf
os_mbox.d
os_mbox.o
os_mem.crf
os_mem.d
os_mem.o
os_mutex.crf
os_mutex.d
os_mutex.o
os_q.crf
os_q.d
os_q.o
os_sem.crf
os_sem.d
os_sem.o
os_task.crf
os_task.d
os_task.o
os_time.crf
os_time.d
os_time.o
os_tmr.crf
os_tmr.d
os_tmr.o
startup_stm32f10x_hd.d
startup_stm32f10x_hd.o
stm32f10x_adc.crf
stm32f10x_adc.d
stm32f10x_adc.o
stm32f10x_bkp.crf
stm32f10x_bkp.d
stm32f10x_bkp.o
stm32f10x_can.crf
stm32f10x_can.d
stm32f10x_can.o
stm32f10x_cec.crf
stm32f10x_cec.d
stm32f10x_cec.o
stm32f10x_crc.crf
stm32f10x_crc.d
stm32f10x_crc.o
stm32f10x_dac.crf
stm32f10x_dac.d
stm32f10x_dac.o
stm32f10x_dbgmcu.crf
stm32f10x_dbgmcu.d
stm32f10x_dbgmcu.o
stm32f10x_dma.crf
stm32f10x_dma.d
stm32f10x_dma.o
stm32f10x_exti.crf
stm32f10x_exti.d
stm32f10x_exti.o
stm32f10x_flash.crf
stm32f10x_flash.d
stm32f10x_flash.o
stm32f10x_fsmc.crf
stm32f10x_fsmc.d
stm32f10x_fsmc.o
stm32f10x_gpio.crf
stm32f10x_gpio.d
stm32f10x_gpio.o
stm32f10x_i2c.crf
stm32f10x_i2c.d
stm32f10x_i2c.o
stm32f10x_it.crf
stm32f10x_it.d
stm32f10x_it.o
stm32f10x_iwdg.crf
stm32f10x_iwdg.d
stm32f10x_iwdg.o
stm32f10x_pwr.crf
stm32f10x_pwr.d
stm32f10x_pwr.o
stm32f10x_rcc.crf
stm32f10x_rcc.d
stm32f10x_rcc.o
stm32f10x_rtc.crf
stm32f10x_rtc.d
stm32f10x_rtc.o
stm32f10x_sdio.crf
stm32f10x_sdio.d
stm32f10x_sdio.o
stm32f10x_spi.crf
stm32f10x_spi.d
stm32f10x_spi.o
stm32f10x_tim.crf
stm32f10x_tim.d
stm32f10x_tim.o
stm32f10x_usart.crf
stm32f10x_usart.d
stm32f10x_usart.o
stm32f10x_wwdg.crf
stm32f10x_wwdg.d
stm32f10x_wwdg.o
system_stm32f10x.crf
system_stm32f10x.d
system_stm32f10x.o
systick.crf
systick.d
systick.o
ucosii.axf
ucosii.hex
ucosii.htm
ucosii.lnp
ucosii.plg
ucosii.sct
ucosii.tra
ucos_ii.crf
ucos_ii.d
ucos_ii.o
ucos_ii.__i