当前位置: 首页 > news >正文

17一起广州做网站外网无法访问WordPress

17一起广州做网站,外网无法访问WordPress,猪八戒网logo设计,苏州做网站品牌公司1 简介 使用创龙板卡的KEY2按键通过中断的方式控制LED3的亮灭 2 中断学习 在C665x设备上#xff0c;CPU中断是通过C66x CorePac中断控制器进行配置的。该中断控制器允许最多128个系统事件被编程到任意12个CPU可屏蔽中断输入#xff08;CPUINT4至CPUINT15#xff09;、CPU…1 简介 使用创龙板卡的KEY2按键通过中断的方式控制LED3的亮灭 2 中断学习 在C665x设备上CPU中断是通过C66x CorePac中断控制器进行配置的。该中断控制器允许最多128个系统事件被编程到任意12个CPU可屏蔽中断输入CPUINT4至CPUINT15、CPU异常输入EXCEP或高级仿真逻辑中。这128个系统事件包括了内部生成的事件在CorePac内和芯片级事件。 此实验将事件91通过中断控制器连接到可屏蔽中断CPUINT12达到目的。 3 参考代码 main.c #include stdio.h /* Compiler Header files */ #include stdint.h /* CSL Header file */ #include ti/csl/csl_chipAux.h #include ti/csl/src/intc/csl_intc.h/* Driver utilities include */ #include driver/c66x_gpio.h#define PIN_CONTROL_0 0x02620580 // GPIO控制寄存器基地址 #define LED1 GPIO_19 #define LED2 GPIO_22 #define LED3 GPIO_23 #define KEY2 GPIO_0/* INTC Objects */ CSL_IntcObj gpioIntcObj; CSL_IntcContext context; CSL_IntcEventHandlerRecord EventHandler[30];static void test_isr_handler (void *arg) {printf(succeeded!\n);if (gpio_read_input(KEY2) GPIO_LOW)//按键真的被按下了{if (gpio_read_input(LED3) GPIO_LOW) //LED3翻转gpio_set_output(LED3);//GPIO23设置为高电平LED3熄灭elsegpio_clear_output(LED3);//GPIO23设置为低电平LED3点亮} }int Interrupts_Init(void) {CSL_IntcGlobalEnableState state;CSL_Status intStat;CSL_IntcEventHandlerRecord EventRecord;CSL_IntcParam vectId;CSL_IntcHandle gpioIntcHandle;/* INTC module initialization */context.eventhandlerRecord EventHandler;context.numEvtEntries 1 ;//中断个数if (CSL_intcInit(context) ! CSL_SOK)return -1;/* Enable NMIs */if (CSL_intcGlobalNmiEnable() ! CSL_SOK)return -1;/* Enable global interrupts */intStat CSL_intcGlobalEnable(state);/* Open INTC */vectId CSL_INTC_VECTID_12;//此处选择使用十二个可屏蔽中断gpioIntcHandle CSL_intcOpen(gpioIntcObj, CSL_GEM_GPINTN, vectId, intStat);//第二项参数为128个中断事件的某一个此处为事件91if (gpioIntcHandle NULL)return -1;/* Bind ISR to Interrupt */EventRecord.handler (CSL_IntcEventHandler)test_isr_handler;//此处关联中断处理函数EventRecord.arg gpioIntcHandle;CSL_intcPlugEventHandler(gpioIntcHandle, EventRecord);/* Event Enable */CSL_intcHwControl(gpioIntcHandle, CSL_INTC_CMD_EVTENABLE, NULL);gpio_enable_global_interrupt();gpio_set_fallingedge_interrupt(KEY2);printf(interrupt init succeeded!\n);return 0; }//基于CPU周期的延迟函数100000000100ms void cpu_delaycycles(uint32_t cycles) {uint32_t start_val;/* Start TCSL so its free running */CSL_chipWriteTSCL(0);start_val CSL_chipReadTSCL();while ((CSL_chipReadTSCL() - start_val) cycles); }int main(void) {/* Set pin as GPIO mode */*((uint32_t *) PIN_CONTROL_0) | ((1 LED1)|(1 LED2) |(1 KEY2 ) |(1 LED3));/* Set GPIO as output mode */gpio_set_direction(LED1, GPIO_OUT);gpio_set_direction(LED2, GPIO_OUT);gpio_set_direction(LED3, GPIO_OUT);gpio_set_direction(KEY2, GPIO_IN);Interrupts_Init();while (1) ; }6657.cmd -heap 0x4000/* 16KB */ -stack 0x4000/* 16KB */MEMORY {/** L2SRAM Core internal address* if other cores or peripherals access, change to global address* Core 0: 0x10800000 ~ 0x1087FFFF* Core 1: 0x11800000 ~ 0x1187FFFF (only C6657)*/L2SRAM o 0x00800000 l 0x00100000 /* 1MB L2SRAM *//* Core0 running IBL will take up 0x0C000000 ~ 0x0C01FFFF(128KB), reserve at here! */MSMCSRAM o 0x0C020000 l 0x000E0000 /* 896KB MSMCSRAM */DDR3 o 0x80000000 l 0x20000000 /* 512MB DDR3 */}SECTIONS {.text:_c_int00 L2SRAM /* program entry address */.text L2SRAM /* executable code */.cinit L2SRAM /* tables which initialize global variables */.const L2SRAM /* initialized global constant */.switch L2SRAM /* jump tables for certain switch statements */.stack L2SRAM /* system stack */.data L2SRAM /* initialized global data */.far L2SRAM /* far initialized global constant */.fardata L2SRAM /* far uninitialized global and global variables */.cio L2SRAM /* buffer for stdio functions */.sysmem L2SRAM /* malloc heap */GROUP{.neardata /* far uninitialized global and global variables */.rodata /* global static constant */.bss /* uninitialized global variables*/} L2SRAM }
http://www.yayakq.cn/news/4207/

相关文章:

  • 免费网站模板无需注册网站中qq跳转怎么做的
  • 全国网站建设人员数量西安php网站建设
  • 网站建设职位要求旅游网站建设规划书模板
  • 陕西建设网综合服务中心网站免费一天赚500元游戏
  • 国外做网站推广如何创建一个个人网站简答题
  • 建设外贸型网站流程桂林漓江游船票价格
  • 平顶山城市住房城乡建筑网站做电锯电音的网站
  • asp.net 网站设计做盗版漫画网站
  • 企业官方网站建设费用项目网站建设方案
  • 低价网站建设方案app外包公司怎么找
  • 被黑的网站网站备案不通过怎么解决
  • 网站开发推广佛山市手机网站建设企业
  • 医院网站建设技术方案网站开发视频会议插件
  • 网站内容与功能模块设计工作站做网站
  • 哈尔滨寸金网站建设价格三合一网站什么开发好
  • 淘宝客网站免费建设推广网站建设花费得多少钱
  • 做网站大量视频怎么存储网站建设中目录是什么意思
  • 泸州公司做网站国内网页设计师个人网站
  • 网站建设超链接字体变色代码四川省城乡建设部网站首页
  • 企业网站seo外包 s谷歌优化师是做什么的
  • 网站建设公司词旗袍网页制作模板
  • 做建筑机械网站那个网站好保洁公司怎么注册
  • 网站小程序app开发网站加速器手机版
  • 网站不接入备案陕西秦地建设有限公司网站
  • 有哪些企业可以做招聘的网站最佳磁力搜索天堂
  • 网络推广最好的网站有哪些和各大网站做视频的工作
  • 山东企业网站建设公司没有照片怎么做网站
  • 淘宝 客要推广网站怎么做天津河东做网站哪家好
  • 福州 网站开发wordpress下单系统
  • 四川住房和城乡建设厅进不去网站网站备份数据库