Forum Discussion
Altera_Forum
Honored Contributor
16 years agoInteger in NIOS...
Hello as i know integer can hold 2^16 data but
typedef struct flash_region
{
int offset;/* Offset of this region from start of the flash */
int region_size;/* Size of this erase ...
Altera_Forum
Honored Contributor
16 years agoActually by using alt_u32 you will be sure that you have a 32-bit integer.
The C standard doesn't define the size of the int type, and depending on the compiler or architecture, "int" can mean 16, 32 or 64 bits. It has always been a problem with C and that's why each HAL redefines its own integer types.