瀏覽代碼

modification soft

CLUZE Remy -EXT 6 年之前
父節點
當前提交
25844fba89

+ 0 - 7
Soft/ESP12F/Prod/ESP12f.ino

@@ -78,13 +78,6 @@ BLYNK_WRITE(InternalPinRTC) {
   
 }
 
-hour(t);            // the hour now  (0-23)
-minute(t);          // the minute now (0-59)
-second(t);          // the second now (0-59)
-day(t);             // the day now (1-31)
-weekday(t);         // day of the week (1-7), Sunday is day 1
-month(t);           // the month now (1-12)
-
 BLYNK_WRITE(InternalPinRTC) {
 	unsigned long t = param.asLong();
 	uint8_t mes[8];

+ 1 - 1
Soft/STM32/Controle/Inc/Tab.h

@@ -20,7 +20,7 @@ typedef struct {
 	uint8_t PuissanceMax; //Puissance Maximum (En pourcentage)
 	uint8_t Pente; //Pente (en Minute)
 	uint8_t Fonctionement; // si 0 fon ctionnement en mode tableau. SI 1 fonctionnement en mode slider
-	//TODO On peu envisager d'utiliser ce parametre en mode 2 pour faire une reprise
+	//TODO (RAMPES LED Amélioration) On peu envisager d'utiliser ce parametre en mode 2 pour faire une reprise
 
 }Sortie;
 

+ 2 - 2
Soft/STM32/Controle/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c

@@ -903,7 +903,7 @@ osStatus osSemaphoreDelete (osSemaphoreId semaphore_id)
 
 #if (defined (osFeature_Pool)  &&  (osFeature_Pool != 0)) 
 
-//TODO
+
 //This is a primitive and inefficient wrapper around the existing FreeRTOS memory management.
 //A better implementation will have to modify heap_x.c!
 
@@ -1239,7 +1239,7 @@ osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id)
   /* Create a mail pool */
   (*(queue_def->cb))->pool = osPoolCreate(&pool_def);
   if ((*(queue_def->cb))->pool == NULL) {
-    //TODO: Delete queue. How to do it in FreeRTOS?
+
     vPortFree(*(queue_def->cb));
     return NULL;
   }

+ 4 - 4
Soft/STM32/Controle/Src/Comunication.c

@@ -62,15 +62,15 @@ void Com_WriteTabVal(uint8_t* mes){
 }
 
 void Com_ReadVent(uint8_t* mes){
-	//TODO Rajout plus tard si ventilation sur la rampe
+	//TODO (RAMPES LED Amélioration) Rajout plus tard si ventilation sur la rampe
 }
 
 void Com_WriteVent(uint8_t* mes){
-	//TODO Rajout plus tard si ventilation sur la rampe
+	//TODO (RAMPES LED Amélioration) Rajout plus tard si ventilation sur la rampe
 }
 
 void Com_ERROR(uint8_t* mes){
-	//TODO
+	//TODO (RAMPES LED Amélioration) Gestionnaire erreur
 }
 
 void Com_WriteVal(uint8_t* mes){
@@ -110,5 +110,5 @@ void Com_SyncRTC(uint8_t* mes){
 	d.heure=mes[5];
 	d.minute=mes[6];
 	d.second=mes[7];
-	writeDate();
+	writeDate(&d);
 }

+ 1 - 1
Soft/STM32/Controle/Src/freertos.c

@@ -179,7 +179,7 @@ void init(){
 	readDate(&ancienDate);//Lecture de l'heure fige
 	redemareRTC();//Redemarage des Mise a jours des registres RTC
 	readDate(&newDate);// Lecture de la nouvelle heure*/
-	//TODO Faire un programme pour une reprise en douceur
+	//TODO (RAMPES LED Amélioration) Faire un programme pour une reprise en douceur
 }
 /* USER CODE END Application */
 

+ 2 - 0
Soft/STM32/Controle/Src/main.c

@@ -50,6 +50,8 @@
 
 /* Private includes ----------------------------------------------------------*/
 /* USER CODE BEGIN Includes */
+#include "Eeprom.h"
+#include "RTC.h"
 
 /* USER CODE END Includes */
 

+ 1 - 1
Soft/STM32/Controle/Src/stm32f4xx_it.c

@@ -187,7 +187,7 @@ void SPI1_IRQHandler(void)
 		HAL_SPI_Receive(&hspi1,&t_SPIReceived[i],1,5);//On recoit le byte suivant
 		i++;
 		if (i>MAXRECEIVESPI+1){//Si on recoit plus de MAXRECEIVESPI byte n a un probleme.
-			while(1);//TODO Erreur
+			while(1);//todo (RAMPES LED Amélioration)  error soft
 		}
 	}
 	Com_dispactch(t_SPIReceived);