• Array of struct within struct
    Has anyone defined an array of struct inside another struct with C51? I can find no reference document prohibiting it. Yet, when I try to compile following fragment: #include <stdio.h> struct...
  • Extern STRUCT..
    Hi, I have a big problem. I have a multyple file included into the project, and in the main.c i've declared a struct like this: struct{ unsigned char x; unsigned char y; unsigned char z; }prova;...
  • Initializing a struct
    Hi, I am trying to initialize a struct, but I get the following error: Error #29: Expected an expression typedef struct { atp V1; atp V2; atp V3; atp V4; } tosh_at; tosh_at tosh_options...
  • sizeof struct
    I have a struct with 2 members of type double and 1 member of type long. The sizeof() function returns 24. Normaly it should be 20(2*8bytes for the doubles and 4 bytes for the long). When I add...
  • about structs
    Hi, I am new to C and Keil, However I wish to know more about the c programming in keil especially developing programs for STM32. My question is about USART1. I see that in file named stm32f10x_map...