Forum Discussion
Altera_Forum
Honored Contributor
15 years agoalt_getchar returning wrong value
int main()
{
int noia = 0;
alt_putstr("Proc 2!\n");
/* get the mutex device handle */
alt_mutex_dev* mutex = altera_avalon_mutex_open( "/dev/mutex" );
/* acquire the mutex, setting the v...
Altera_Forum
Honored Contributor
15 years agoBe aware that alt_getchar() uses a "direct" driver. See Documents.
Have you tried with C usual getchar() ?