[ECOS] how can I create real time clock interrupt?

李晖 li.hui@263.net
Sat Nov 2 01:49:00 GMT 2002

I try to create a interrupt attach to RTC,but I failed.the code I wrote as below:
cyg_handle_t timer_intr_handle;
	cyg_interrupt timer_intr;
	cyg_interrupt_create(CYGNUM_HAL_INTERRUPT_RTC, 1, 0, do_count, 0, &timer_intr_handle, &timer_intr);

 I download my code to target, and using GDB(insight) debug my code,.When program run to the  cyg_interrupt_create(...) sentence, the GDB warning me it "program recieve a signal SIGSEGV, segmentation fault"  and then terminate the program.

please tell me how to solve this problem!thanks in advance!


More information about the Ecos-discuss mailing list