Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThis example has some questionable content.
Line 22: isr_flag better be declared volatile or with optimization on the code should fail. Line 135:buffer = (0xFF & rand()) % 256; // random values between 0 and 255Only one of '& 0xFF' and '% 256' are needed. Neither are really necessary since the assignment is into an alt_u8 pointer but it may serve to remove a warning. Bill A