Unification des sources CM4/CM5 : makefiles scindés (common/cm4/cm5/cm5.debug), #ifdef CIBLE_CM5 pour GPIO, correctifs get_ip_address()/signal handler/backtrace, portabilité 32/64 bits

This commit is contained in:
2026-09-23 14:51:33 +02:00
parent 8fe204361b
commit fdf08bf1d7
23 changed files with 373 additions and 154 deletions
+13
View File
@@ -17,8 +17,11 @@ int16_t sortie_no(uint8_t type, uint8_t module, uint8_t no);
// Variables globales :
struct Struct_sorties sorties;
#ifdef CIBLE_CM5
struct gpiod_chip *gpiod_chip0_sorties; // Nécessaire pour CM5
struct gpiod_line_request *gpiod_sorties_request; // Nécessaire pour CM5
#endif
/**********************************************************************************************************************************************************************************
@@ -220,6 +223,7 @@ char tmp[MAX_LONGUEUR_BUFFER_TEMPORAIRE_DEBUG];
//====================================================================================================
if (systeme.generation_shipbase == GENERATION_SHIPBASE_V3)
{
#ifdef CIBLE_CM5
unsigned int offsets[MAX_NOMBRE_SORTIES_GPIO];
uint8_t nb_lignes = 0;
@@ -266,6 +270,13 @@ char tmp[MAX_LONGUEUR_BUFFER_TEMPORAIRE_DEBUG];
}
return(0); // On sort ici : la boucle V1/V2 ci-dessous ne doit pas s'exécuter pour V3
#else // Ne devrait jamais arriver ... :
sprintf(tmp, "GENERATION_SHIPBASE_V3 incompatible avec cette plateforme de compilation.");
affichage_debug(__FILE__, __LINE__, tmp, TYPE_MESSAGE_DEBUG_ERREUR);
return(-1);
#endif
}
//====================================================================================================
@@ -346,6 +357,7 @@ int8_t on;
else on = ON;
#ifdef CIBLE_CM5
//--------------------------------------------------------
// V3 :
if (systeme.generation_shipbase == GENERATION_SHIPBASE_V3)
@@ -354,6 +366,7 @@ int8_t on;
gpiod_line_request_set_value(gpiod_sorties_request, no, val);
return;
}
#endif
//--------------------------------------------------------
// V1 & V2 :