[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
Ваша программа у меня на VDSP7.0+SP1 заработала, в таком виде:
void InitDSP(void); int cntTimerInt=0; while (1) } interrupt(SIGTIMER, hndlTimer); }
E-mail:
info@telesys.ru
#include
void hndlTimer (int sig);
static int flag=0;
void main()
{
InitDSP();
{;
};
void InitDSP(void)
{
timer_off();
timer_set(3333,0,1);
timer_on();
void hndlTimer (int sig)
{
switch (flag)
{
case 0:
flag=1; break;
case 1:
flag=0; break;
}
cntTimerInt++;
}
Ответы