完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
int main(void)
{ InitSysCtrl(); //Initializes the System Control registers to a known state. LED_Init(); while(1){ EALLOW; // 打开寄存器写保护 GpioDataRegs.GPASET.bit.GPIO0 = 1; // 输出高电平 DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms GpioDataRegs.GPACLEAR.bit.GPIO0 = 1; // 输出低电平 DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms DELAY_US(30000); //30000us = 30ms EDIS; // 关闭寄存器写保护 } return 0; } |
|
|
|
只有小组成员才能发言,加入小组>>
Haawking DSC28027实例程序开发教程——GPIO
2271 浏览 0 评论
10319 浏览 1 评论
【有奖问答】中科昊芯技术团队与你交流基于RISC-V架构下DSP的技术优势
2918 浏览 5 评论
Haawking-IDE-win64-V2.0.0 编译失败,找不到头文件 Stdio.h
475浏览 2评论
425浏览 1评论
526浏览 1评论
391浏览 0评论
请问什么时候可以买到HXS320F280025CPTT样品?
455浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-21 19:48 , Processed in 0.466853 second(s), Total 74, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号