目录
01概述
Fpioa (Field Programmable I/O Array) Allows The User To Map 256 Internal Functions To 48 Free I/Os On The Chip
02特性
• Support For I/O’S Programmable Function Selection
• 8 Driving Capability Options For I/O Output Support
• Support I/O Internal Pull-Up Resistor Selection
• Support I/O Internal Pull-Down Resistor Selection
• Internal Schmitt Trigger Settings That Support I/O Input
• Slew Control For I/O Output Support
• Support Level Setting Of Internal Input Logic
03接口
• Fpioa_set_function
• Fpioa_get_io_by_function
• Fpioa_set_io
• Fpioa_get_io
• Fpioa_set_tie_enable
• Fpioa_set_tie_value
• Fpioa_set_io_pull
• Fpioa_get_io_pull
• Fpioa_set_io_driving
• Fpioa_get_io_driving
04api接口验证
注意:由于Led是低电平有效,因此在此处为了要看到Led亮起的效果,我将Led下拉
/*
* @Description:
* @Author: Mr.Lan
* @Date: 2024-03-18 22:16:57
* @Lastedittime: 2024-03-18 22:57:50
* @Lasteditors: Mr.Lan
*/
#Include "Fpioa.H"
#Include "Sleep.H"
Int Main(Void)
{
While(1)
{
Fpioa_set_io_pull(Func_spi0_ss0,Fpioa_pull_down);
Msleep(500);
Fpioa_set_io_pull(Func_spi0_ss0,Fpioa_pull_up);
Fpioa_set_io_pull(Func_spi0_ss1,Fpioa_pull_down);
Msleep(500);
Fpioa_set_io_pull(Func_spi0_ss1,Fpioa_pull_up);
Fpioa_set_io_pull(Func_spi0_ss2,Fpioa_pull_down);
Msleep(500);
Fpioa_set_io_pull(Func_spi0_ss2,Fpioa_pull_up);
}
}
标签:02,pull,Fpioa,set,Func,FPIO,Support,K210,io
From: https://www.cnblogs.com/Johnson-Lan/p/18083612