problems with uint8_t, uint16_t and all others ----> (unknown type name 'uint8_t') when I compile
Hello,
I am french, sorry if the text is not clear.
I have create a STM32 project with STM32CubeMX and generate code for AC6 workbench. I use the STM32F302 Nucleo64 board from ST
The project has been compile with success in AC6.
I want to import some structures and variables from one header that i have use on STM8S105C4 . exemple herunder.
when I compile , I have many errors due to ---> unknown type name ‘int8_t’ or same for uint16_t and uint32_t.
------------------------
extern struct Memory_write_struct
{
uint8_t adresse; // addr 00
uint8_t nbbytes; // 1 à 128bytes max pour une page
uint16_t subaddr ; // adresse de départ d’écriture
uint8_t mois; //
uint8_t date; //
uint8_t heure; //
uint8_t minute; //
int8_t seconde; //
int16_t TempC ; // remontée temperature
int16_t Rh ; // remontée humidité
uint32_t Pression; // remontée pression
};
-----------------------
I dont understand why this type is unknown in STM32 ??
thanks for your answers.
Joël