【答案】:NVIC_SetVectorTabl(NVIC_VectTab_FLASH,0xCCCC)在你的flash上偏移CCCC个地址去烧FLASH,实际的地址就是你flash起始地址加上CCCC长度烧入你的向量表
__STATIC_INLINE void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { #if defined (__VTOR_PRESENT) && (__VTOR_PRESENT == 1U) uint32_t *vectors = (uint32_t *)SCB->VTOR; #else uint32_t *vectors = (uint32_t *)0x0U; #endif vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFS...
LPC_TIM1->MCR =0x0;NVIC_SetVector(TIMER0_IRQn, (uint32_t)&en_uscount);//NVIC_SetVector(TIMER0_IRQn, (uint32_t)&test1);NVIC_SetVector(TIMER1_IRQn, (uint32_t)(executeI)); NVIC_EnableIRQ(TIMER0_IRQn); NVIC_DisableIRQ(TIMER1_IRQn); LPC_TIM0->TCR |=0x1; LPC_TIM1->TCR |=...
__STATIC_INLINE void__NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);设置中断向量表,读取SCB_VTOR,向量表基偏移字段。设置中断向量在基于中断向量表的SRAM中设置一个中断向量。中断号可以是正数来指定设备特定的中断,也可以是负数来指定处理器异常。VTOR必须重新定位到SRAM之前。按照函数内容来看,是给startup...
NVIC_SetVector(stm32f4_resolve_adc_dma_irq(hdma), stm32f4_resolve_adc_dma_irq_handler(hdma)); NVIC_EnableIRQ(stm32f4_resolve_adc_dma_irq(hdma)); } 开发者ID:vrahane,项目名称:incubator-mynewt-core,代码行数:22,代码来源:adc_stm32f4.c ...
【答案】:NVIC_SetVectorTabl(NVIC_VectTab_FLASH,0xCCCC)在你的flash上偏移CCCC个地址去烧FLASH,实际的地址就是你flash起始地址加上CCCC长度烧入你的向量表
NVIC_SetVectorTabl(NVIC_VectTab_FLASH,0xCCCC)在你的flash上偏移CCCC个地址去烧FLASH,实际的地址就是你flash起始地址加上CCCC长度烧入你的向量表
LPC_USB->HcInterruptEnable = OR_INTR_ENABLE_MIE | OR_INTR_ENABLE_WDH | OR_INTR_ENABLE_RHSC;// Enable the USB InterruptNVIC_SetVector(USB_IRQn, (uint32_t)(_usbisr)); LPC_USB->HcRhPortStatus1 = OR_RH_PORT_CSC; LPC_USB->HcRhPortStatus1 = OR_RH_PORT_PRSC; ...