This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您能否 在 RTOS 环境中使用 ADC COMP_E 模块? 我可以使用 driverlib 示例"comp_e_interrupt_output_toggle_vref12v"运行 COMP_E 模块、但是、在 RTOS 下找不到类似的示例。 我尝试在 RTOS 环境中运行 driverlib 代码、程序加载并运行时、P5.7没有中断。 您能给我指个方向来帮助我吗?
谢谢。
Dave
我建议查看 TIDA_01575_serial 示例。
本示例中包含 RTC、与 COMP_E 外设类似、它没有驱动程序。 在振动捕获.c 中、您将找到创建 HWI 所需的包含项和代码。
#ifdef RTC_WAKEUP #include #endif /* Driverlib 头文件*/ #include
/*启用来自 RTC 模块的中断。 * Hwip_Params_init (&hwiPRTCParams); hwiPRTCParams.arg = 0; hwiPRTCParams.priority = 0x20; hwiPRTC = Hwip_create (INT_RTC_C、(Hwip_Fxn) RTC_C_IRQHandler、&hwiPRTCParams); if (hwiPRTC ==空) { while (1); }
此致、
Chris