• Initializing a const code structure with __DATE__
    Hi everyone, I have the following working code: typedef struct { int spam; int eggs; char padding[200]; } MyStruct; const char code foo[] = "This is a string."; const MyStruct code bar =...
  • const far when used with structures
    I can not seam to get const far to work with structures, in replace of const . Both of the following sections of code compile but only the first one works as expected. I have used const far in many...
  • const data is always initialized
    Hi, I have a product with some ROM containing some constant data and regular flash to keep code. I would like to declare a data structure in my program to access the data in ROM and I have tried...
  • const unsigned int
    This are some of my const agreements. It works. #define Clock (32768*1275) const unsigned int Mem_size[8] = { 32, 320, 3200, 3200, 3200, 3200, 3200, 3200 }; // Delay-time * Clock * 1024 / 10 / Mem_size...
  • far const declaration
    Hello, I'm using Silab IDE Simplicity Studio and MCU EFM8BB31F16GB. I'm try to locate const array in code memroy space, but I've been not able to find the correct syntax to do that. Searching the...