diff --git a/PjtKEIL_StepDeb_1/BacASable.uvprojx b/PjtKEIL_StepDeb_1/BacASable.uvprojx
new file mode 100644
index 0000000..2318c0c
--- /dev/null
+++ b/PjtKEIL_StepDeb_1/BacASable.uvprojx
@@ -0,0 +1,1347 @@
+
+
+
+ 2.1
+
+ ### uVision Project, (C) Keil Software
+
+
+
+ Simu
+ 0x4
+ ARM-ADS
+ 5060960::V5.06 update 7 (build 960)::.\ARMCC
+ 0
+
+
+ STM32F103RB
+ STMicroelectronics
+ Keil.STM32F1xx_DFP.2.3.0
+ http://www.keil.com/pack/
+ IRAM(0x20000000-0x20004FFF) IROM(0x8000000-0x801FFFF) CLOCK(8000000) CPUTYPE("Cortex-M3")
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $$Device:STM32F103RB$SVD\STM32F103xx.svd
+ 0
+ 0
+
+
+
+
+
+
+ 0
+ 0
+ 0
+ 0
+ 1
+
+ .\Obj\
+ BacASable
+ 1
+ 0
+ 1
+ 1
+ 1
+
+ 1
+ 0
+ 0
+
+ 0
+ 0
+
+
+ 0
+ 0
+ 0
+ 0
+
+
+ 0
+ 0
+
+
+ 0
+ 0
+ 0
+ 0
+
+
+ 0
+ 0
+
+
+ 0
+ 0
+ 0
+ 0
+
+ 0
+
+
+
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+ 3
+
+
+ 0
+
+
+ SARMCM3.DLL
+ -REMAP
+ DARMSTM.DLL
+ -pSTM32F103RB
+ SARMCM3.DLL
+
+ TCM.DLL
+ -pCM3
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 16
+
+
+
+
+ 1
+ 0
+ 0
+ 1
+ 1
+ 4100
+
+ 1
+ STLink\ST-LINKIII-KEIL_SWO.dll
+ "" ()
+
+
+
+
+ 0
+
+
+
+ 0
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 1
+ 1
+ 0
+ 1
+ 1
+ 0
+ 0
+ 1
+ 1
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 0
+ 2
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ 1
+ 1
+ 1
+ 0
+ 0
+ 0
+
+ --C99
+ STM32F103xB,USE_FULL_LL_DRIVER
+
+ .\Driver
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 4
+
+
+
+
+
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0x08000000
+ 0x20000000
+
+
+
+
+
+
+
+
+
+
+
+
+ Sources
+
+
+ principal.c
+ 1
+ .\Src\principal.c
+
+
+ Delay.s
+ 2
+ .\Src\Delay.s
+
+
+
+
+ Sys
+
+
+ startup-rvds.s
+ 2
+ .\Src\startup-rvds.s
+
+
+
+
+ Driver
+
+
+ DriverJeuLaser.lib
+ 4
+ .\Driver\DriverJeuLaser.lib
+
+
+
+
+ ::CMSIS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <Project Info>
+ 0
+ 1
+
+
+
+
+
diff --git a/PjtKEIL_StepDeb_1/Driver/DriverJeuLaser.h b/PjtKEIL_StepDeb_1/Driver/DriverJeuLaser.h
new file mode 100644
index 0000000..bc9b3bd
--- /dev/null
+++ b/PjtKEIL_StepDeb_1/Driver/DriverJeuLaser.h
@@ -0,0 +1,345 @@
+/**
+ * Bibliotheque DriverJeuLaser (ancienne gassp72 adaptée 2021 - TR)
+ *
+ * GPIO - ADC - Sequenceur - System Timer - PWM - 72 MHz
+ * Modifs :
+ * enlèvement de tout ce qui est inutile dans le .h
+ * ajout de fonctions GPIO dans le .c pour utilisation en ASM ou en C :
+ * - GPIOA_Set(char Broche), GPIOB_Set(char Broche), GPIOC_Set(char Broche)
+ * - GPIOA_Clear(char Broche), GPIOB_Clear(char Broche), GPIOC_Clear(char Broche)
+ *
+ * ajout d'une fonction qui impose une valeur de PWM (TIM3_CCR3)
+ * PWM_Set_Value_On_TIM3_C3( int Val)
+ * permet en ASM ou en C de fixer la valeur de PWM
+
+ * Ajout de commentaires
+
+ */
+#ifndef DRIVERJEULASER_H__
+#define DRIVERJEULASER_H__
+
+#include "stm32f10x.h"
+
+//**********************************************************************************************************
+//--------------------- CONFIGURATION CLOCK DU STM32 --------------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Configure l'ensemble des horloges du uC
+ * @note horloge systeme (config statique a 72 MHz pour le STM32F103)
+ * @param None
+ * @retval None
+ */
+void CLOCK_Configure(void);
+
+
+
+
+
+
+
+
+
+
+//**********************************************************************************************************
+//--------------------- LES TIMERS GENERAL PURPOSE TIM1 à TIM 4 ------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Configure un Timer TIM1 à TIM4 avec une périodicité donnée
+ * @note L' horloge des 4 timers a une fréquence de 72MHz
+ * @param *Timer = TIM1 ou TIM2 ou TIM3 ou TIM4
+ * @param Durée_ticks : nombre de pas (tick) comptés à 72 MHz pour faire déborder le timer
+ * La période de débordement du Timer est donc T = Durée_ticks * Tck, avec Tck = 1/72 000 000
+ * @retval None
+ */
+void Timer_1234_Init_ff( TIM_TypeDef *Timer, u32 Duree_ticks );
+
+/**
+ * Macros de base pour utiliser les timers
+ */
+ // bloque le timer
+#define Bloque_Timer(Timer) Timer->CR1=(Timer->CR1)&~(1<<0)
+// Lance timer
+#define Run_Timer(Timer) Timer->CR1=(Timer->CR1)|(1<<0)
+
+
+
+/**
+ * @brief Associe une fonction d'interruption (callback) lors du débordement d'un timer
+ * @note
+ * @param *Timer = TIM1 ou TIM2 ou TIM3 ou TIM4
+ * @param Prio : niveau de priorité de l'interruption (0 -> priorité max, 15 -> priorité min)
+ * @param IT_function : le nom de la fonction Callback à appeler lors de l'interruption
+ * @retval None
+ */
+void Active_IT_Debordement_Timer( TIM_TypeDef *Timer, char Prio, void (*IT_function)(void) );
+
+
+
+
+
+
+
+
+
+
+
+//*********************************************************************************************************
+//--------------------- PWM TIM1 to TIM 4 ------------------------------
+//*********************************************************************************************************
+
+/**
+ * @brief Configure un timer en PWM
+ * @note
+ * @param *Timer = TIM1 ou TIM2 ou TIM3 ou TIM4
+ * @param voie : un des 4 canaux possibles 1 à 4.
+ * @param Periode_ticks : nombre de pas (tick) comptés à 72 MHz pour faire déborder le timer
+ * La période de débordement du Timer est donc T = Durée_ticks * Tck, avec Tck = 1/72 000 000
+ * @retval Retourne la période en tick (normalement la même que le param d'entrée sauf si PSC utilisé
+ */
+unsigned short int PWM_Init_ff( TIM_TypeDef *Timer, char Voie, u32 Periode_ticks );
+
+
+
+/**
+ * @brief Fixe une valeur de PWM, Val, en tick horloge. La rapport cyclique effectif
+ * est donc : rcy = Thaut_ticks / Periode_ticks
+ * @note spécifique Jeu Laser, PWM liée exclusivement au TIM3, chan3
+ * @param Thaut_ticks : durée de l'état haut d'une impulsion en Ticks
+ * @retval None
+ */
+void PWM_Set_Value_TIM3_Ch3( unsigned short int Thaut_ticks);
+
+
+
+
+
+
+
+
+
+//**********************************************************************************************************
+//--------------------- LE SYSTICK TIMER, Part of Cortex M3 ------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Configure le timer Systick avec une périodicité donnée
+ * @note Ce timer ne peut servir qu'à créer des temporisations ou générer des interruption
+ * ce n'est pas à proprement parler un périphérique, il fait partie du Cortex M3
+ * Ce timer est un 24 bits
+ * @param Periode_ticks : nombre de pas (tick) comptés à 72 MHz pour établir la périodicité
+ * La période de débordement du Timer est donc T = Durée_ticks * Tck, avec Tck = 1/72 000 000
+ * @retval None
+ */
+void Systick_Period_ff( unsigned int Periode_ticks );
+
+
+
+/**
+ * @brief Associe une fonction d'interruption (callback) lors du débordement du Systick
+ * @note
+ * @param Prio : niveau de priorité de l'interruption (0 -> priorité max, 15 -> priorité min)
+ * @param IT_function : le nom de la fonction Callback à appeler lors de l'interruption
+ * @retval None
+ */
+void Systick_Prio_IT( char Prio, void (*Systick_function)(void) );
+
+
+/**
+ * Macros de base pour utiliser le Systick
+ */
+#define SysTick_On ((SysTick->CTRL)=(SysTick->CTRL)|1<<0)
+#define SysTick_Off ((SysTick->CTRL)=(SysTick->CTRL)& ~(1<<0))
+#define SysTick_Enable_IT ((SysTick->CTRL)=(SysTick->CTRL)|1<<1)
+#define SysTick_Disable_IT ((SysTick->CTRL)=(SysTick->CTRL)& ~(1<<1))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+//**********************************************************************************************************
+//--------------------- LE SYSTICK TIMER, Part of Cortex M3 ------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Active l'ADC du STM32, configure la durée de prélèvement de l'échantillon (temps
+ * de fermeture du switch d'acquisition
+ * @note
+ * @param ADC : précise de quel ADC il s'agit, ADC1 ou ADC2
+ * @param Duree_Ech_ticks : dirée de fermeture du switch d'échantillonnage en Tick d'horloge CPU
+ * exemple pour 1µs on choisira 72.
+ * @retval Nombre de Tick réellement pris en compte
+ */
+unsigned int Init_TimingADC_ActiveADC_ff( ADC_TypeDef * ADC, u32 Duree_Ech_ticks );
+
+
+/**
+ * @brief Sélectionne la voie à convertir
+ * @note Attention, la voie va de 0 à 15 et n'est pas directement lié au n°de GPIO
+ * @param ADC : précise de quel ADC il s'agit, ADC1 ou ADC2
+ * @param Voie_ADC : 1 à 15
+ * @retval None
+ */
+void Single_Channel_ADC( ADC_TypeDef * ADC, char Voie_ADC );
+
+
+
+
+
+/**
+ * @brief Permet lier le déclenchement au débordement d'un timer, spécifie également
+ * la période de débordement du timer
+ * @note pas besoin de régler le timer avec une autre fonction dédiée timer
+ * @param ADC : précise de quel ADC il s'agit, ADC1 ou ADC2
+ * @param Source : indique le timer qui déclenche l'ADC choix dans les define ci-dessous
+ * @param Periode_ticks : nombre de pas (tick) comptés à 72 MHz pour faire déborder le timer
+ * La période de débordement du Timer est donc T = Durée_ticks * Tck, avec Tck = 1/72 000 000
+ * @retval None
+ */
+
+// param pour Source :
+#define TIM1_CC1 0
+#define TIM1_CC2 1
+#define TIM1_CC3 2
+#define TIM2_CC2 3
+#define TIM4_CC4 5
+void Init_Conversion_On_Trig_Timer_ff( ADC_TypeDef * ADC, char Source, u32 Periode_ticks );
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+//**********************************************************************************************************
+//--------------------- ANALOG INPUT ADC & DMA ------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Permer de lier l'ADC à un tableau en RAM pour une DMA
+ * @note
+ * @param Circ : circular. Si '0', en fin de DMA le ptr d'@ reste inchangé
+ * si '1' le ptr d'@ se recale à celle du début.
+ * @param Ptr_Table_DMA : contient l'@ de début de zone RAM à écrire
+ * @retval None
+ */
+void Init_ADC1_DMA1(char Circ, short int *Ptr_Table_DMA);
+
+
+
+
+
+/**
+ * @brief Lance une DMA sur le nombre de points spécifie. Les resultats seront stockes
+ * dans la zone de RAM écrite est indiquée lors de l'appel de la fonction Init_ADC1_DMA1
+ * @note
+ * @param NbEchDMA est le nombre d'échantillons à stocker.
+ * @retval None
+ */
+void Start_DMA1( u16 NbEchDMA );
+
+// arret DMA
+#define Stop_DMA1 DMA1_Channel1->CCR =(DMA1_Channel1->CCR) &~0x1;
+
+
+/**
+ * @brief Attend la fin d'un cycle de DMA. la duree depend de la periode d'acquisition
+ * et du nombre d'echantillons
+ * @note fonction d'attente (bloquante)
+ * @param None
+ * @retval None
+ */
+void Wait_On_End_Of_DMA1(void);
+
+
+
+
+
+
+
+
+//**********************************************************************************************************
+//--------------------- GPIO ------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Initialisation d'un GPIO (A à C), pin x.
+ * peut être configuré :
+ * -> Input ou output
+ * -> architecture technologique (push-pull, open drain...)
+
+ * @note
+ * @param Port : GPIOA, GPIOB, GPIOC
+ * @param Broche : 0 à 15
+ * @param Sens : INPUT ou OUTPUT
+ * @param Techno : voir define ci dessous
+ * @retval 1 erreur, 0 si OK
+ */
+
+// Sens
+#define INPUT 'i'
+#define OUTPUT 'o'
+
+// Techno pour pin en entrée (INPUT)
+#define ANALOG 0
+#define INPUT_FLOATING 1
+#define INPUT_PULL_DOWN_UP 2
+
+// Techno pour pin en sortie (OUTPUT)
+#define OUTPUT_PPULL 0
+#define OUTPUT_OPDRAIN 1
+#define ALT_PPULL 2
+#define ALT_OPDRAIN 3
+
+// Exemple :
+// Port_IO_Init(GPIOB, 8, OUTPUT, OUTPUT_PPULL);
+// Place le bit 8 du port B en sortie Push-pull
+char GPIO_Configure(GPIO_TypeDef * Port, int Broche, int Sens, int Techno);
+
+
+/**
+ * @brief Mise à 1 d'une broche GPIO
+ * @note Une fonction par GPIO
+ * @param Broche : 0 à 15
+ * @retval None
+ */
+
+void GPIOA_Set(char Broche);
+void GPIOB_Set(char Broche);
+void GPIOC_Set(char Broche);
+
+
+
+/**
+ * @brief Mise à 0 d'une broche GPIO
+ * @note Une fonction par GPIO
+ * @param Broche : 0 à 15
+ * @retval None
+ */
+
+void GPIOA_Clear(char Broche);
+void GPIOB_Clear(char Broche);
+void GPIOC_Clear(char Broche);
+
+
+#endif
+
+
diff --git a/PjtKEIL_StepDeb_1/Driver/DriverJeuLaser.inc b/PjtKEIL_StepDeb_1/Driver/DriverJeuLaser.inc
new file mode 100644
index 0000000..48d5e50
--- /dev/null
+++ b/PjtKEIL_StepDeb_1/Driver/DriverJeuLaser.inc
@@ -0,0 +1,56 @@
+
+; Bibliotheque DriverJeuLaser (ancienne gassp72 adaptée 2021 - TR)
+; Accès en aux fonctions suivantes :
+; GPIO :
+; GPIOA_Set(char Broche), GPIOB_Set(char Broche), GPIOC_Set(char Broche)
+; GPIOA_Clear(char Broche), GPIOB_Clear(char Broche), GPIOC_Clear(char Broche)
+
+; PWM :
+;/**
+; * @brief Fixe une valeur de PWM, Val, en tick horloge. La rapport cyclique effectif
+; * est donc : rcy = Thaut_ticks / Periode_ticks
+; * @note spécifique Jeu Laser, PWM liée exclusivement au TIM3, chan3
+; * @param Thaut_ticks : durée de l'état haut d'une impulsion en Ticks
+; * @retval None
+; */
+
+;void PWM_Set_Value_TIM3_Ch3( unsigned short int Thaut_ticks);
+ import PWM_Set_Value_TIM3_Ch3
+
+
+
+;/**
+; * @brief Mise à 1 d'une broche GPIO
+; * @note Une fonction par GPIO
+; * @param Broche : 0 à 15
+; * @retval None
+; */
+
+;void GPIOA_Set(char Broche);
+ import GPIOA_Set
+
+;void GPIOB_Set(char Broche);
+ import GPIOB_Set
+
+;void GPIOC_Set(char Broche);
+ import GPIOC_Set
+
+
+
+;/**
+; * @brief Mise à 0 d'une broche GPIO
+; * @note Une fonction par GPIO
+; * @param Broche : 0 à 15
+; * @retval None
+; */
+
+;void GPIOA_Clear(char Broche);
+ import GPIOA_Clear
+
+;void GPIOB_Clear(char Broche);
+ import GPIOB_Clear
+
+;void GPIOC_Clear(char Broche);
+ import GPIOC_Clear
+
+ end
diff --git a/PjtKEIL_StepDeb_1/Src/Delay.s b/PjtKEIL_StepDeb_1/Src/Delay.s
new file mode 100644
index 0000000..1e94d31
--- /dev/null
+++ b/PjtKEIL_StepDeb_1/Src/Delay.s
@@ -0,0 +1,60 @@
+ PRESERVE8
+ THUMB
+
+
+; ====================== zone de réservation de données, ======================================
+;Section RAM (read only) :
+ area mesdata,data,readonly ;réserve une zone dans la RAM pour une utilisation particulière et set les droits
+
+
+;Section RAM (read write):
+ area maram,data,readwrite
+
+VarTime dcd 0 ;init variable vartime à 0
+ EXPORT VarTime
+
+; ===============================================================================================
+
+;constantes (équivalent du #define en C)
+TimeValue equ 900000 ;set timevalue à 900 000
+
+
+ EXPORT Delay_100ms ; la fonction Delay_100ms est rendue publique donc utilisable par d'autres modules.
+
+
+;Section ROM code (read only) :
+ area moncode,code,readonly
+
+
+
+; REMARQUE IMPORTANTE
+; Cette manière de créer une temporisation n'est clairement pas la bonne manière de procéder :
+; - elle est peu précise
+; - la fonction prend tout le temps CPU pour... ne rien faire...
+;
+; Pour autant, la fonction montre :
+; - les boucles en ASM
+; - l'accés écr/lec de variable en RAM
+; - le mécanisme d'appel / retour sous programme
+;
+; et donc possède un intérêt pour débuter en ASM pur
+
+Delay_100ms proc ;début de procédure Delay_100ms
+
+ ldr r0,=VarTime ; r0 = VarTime
+
+ ldr r1,=TimeValue ; r1 = 900 000
+ str r1,[r0] ; VarTime = TimeValue;
+
+BoucleTempo
+ ldr r1,[r0]
+
+ subs r1,#1
+ str r1,[r0] ; 3 instructions : VarTime = VarTime - 1
+ bne BoucleTempo ; retourne au début de la fct BoucleTempo
+
+ bx lr ; return : fini la boucle si pas le bne donc quand timer = 0
+ endp ; fin de procédure
+
+
+ END ; fin programme/code
\ No newline at end of file
diff --git a/PjtKEIL_StepDeb_1/Src/principal.c b/PjtKEIL_StepDeb_1/Src/principal.c
new file mode 100644
index 0000000..a2e1f67
--- /dev/null
+++ b/PjtKEIL_StepDeb_1/Src/principal.c
@@ -0,0 +1,32 @@
+#include "DriverJeuLaser.h"
+
+extern void Delay_100ms(void);
+
+
+int main(void)
+{
+
+// ===========================================================================
+// ============= INIT PERIPH (faites qu'une seule fois) =====================
+// ===========================================================================
+
+// Après exécution : le coeur CPU est clocké à 72MHz ainsi que tous les timers
+CLOCK_Configure();
+
+// configuration de PortB.1 (PB1) en sortie push-pull
+GPIO_Configure(GPIOB, 1, OUTPUT, OUTPUT_PPULL);
+
+
+
+
+//============================================================================
+
+
+while (1)
+ {
+ Delay_100ms();
+ GPIOB_Set(1);
+ Delay_100ms();
+ GPIOB_Clear(1);
+ }
+}
diff --git a/PjtKEIL_StepDeb_1/Src/startup-rvds.s b/PjtKEIL_StepDeb_1/Src/startup-rvds.s
new file mode 100644
index 0000000..a7b631a
--- /dev/null
+++ b/PjtKEIL_StepDeb_1/Src/startup-rvds.s
@@ -0,0 +1,335 @@
+;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
+;* File Name : startup_stm32f10x_md.s
+;* Author : MCD Application Team
+;* Version : V3.5.0
+;* Date : 11-March-2011
+;* Description : STM32F10x Medium Density Devices vector table for MDK-ARM
+;* toolchain.
+;* This module performs:
+;* - Set the initial SP
+;* - Set the initial PC == Reset_Handler
+;* - Set the vector table entries with the exceptions ISR address
+;* - Configure the clock system
+;* - Branches to __main in the C library (which eventually
+;* calls main()).
+;* After Reset the CortexM3 processor is in Thread mode,
+;* priority is Privileged, and the Stack is set to Main.
+;* <<< Use Configuration Wizard in Context Menu >>>
+;*******************************************************************************
+; THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
+; WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
+; AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
+; INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
+; CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
+; INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
+;*******************************************************************************
+
+; Amount of memory (in bytes) allocated for Stack
+; Tailor this value to your application needs
+; Stack Configuration
+; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
+;
+
+Stack_Size EQU 0x00000400
+
+ AREA STACK, NOINIT, READWRITE, ALIGN=3
+Stack_Mem SPACE Stack_Size
+__initial_sp
+
+
+; Heap Configuration
+; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
+;
+
+Heap_Size EQU 0x00000200
+
+ AREA HEAP, NOINIT, READWRITE, ALIGN=3
+__heap_base
+Heap_Mem SPACE Heap_Size
+__heap_limit
+
+ PRESERVE8
+ THUMB
+
+
+; Vector Table Mapped to Address 0 at Reset
+ AREA RESET, DATA, READONLY
+ EXPORT __Vectors
+ EXPORT __Vectors_End
+ EXPORT __Vectors_Size
+
+__Vectors DCD __initial_sp ; Top of Stack
+ DCD Reset_Handler ; Reset Handler
+ DCD NMI_Handler ; NMI Handler
+ DCD HardFault_Handler ; Hard Fault Handler
+ DCD MemManage_Handler ; MPU Fault Handler
+ DCD BusFault_Handler ; Bus Fault Handler
+ DCD UsageFault_Handler ; Usage Fault Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD SVC_Handler ; SVCall Handler
+ DCD DebugMon_Handler ; Debug Monitor Handler
+ DCD 0 ; Reserved
+ DCD PendSV_Handler ; PendSV Handler
+ DCD SysTick_Handler ; SysTick Handler
+
+ ; External Interrupts
+ DCD WWDG_IRQHandler ; Window Watchdog
+ DCD PVD_IRQHandler ; PVD through EXTI Line detect
+ DCD TAMPER_IRQHandler ; Tamper
+ DCD RTC_IRQHandler ; RTC
+ DCD FLASH_IRQHandler ; Flash
+ DCD RCC_IRQHandler ; RCC
+ DCD EXTI0_IRQHandler ; EXTI Line 0
+ DCD EXTI1_IRQHandler ; EXTI Line 1
+ DCD EXTI2_IRQHandler ; EXTI Line 2
+ DCD EXTI3_IRQHandler ; EXTI Line 3
+ DCD EXTI4_IRQHandler ; EXTI Line 4
+ DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1
+ DCD DMA1_Channel2_IRQHandler ; DMA1 Channel 2
+ DCD DMA1_Channel3_IRQHandler ; DMA1 Channel 3
+ DCD DMA1_Channel4_IRQHandler ; DMA1 Channel 4
+ DCD DMA1_Channel5_IRQHandler ; DMA1 Channel 5
+ DCD DMA1_Channel6_IRQHandler ; DMA1 Channel 6
+ DCD DMA1_Channel7_IRQHandler ; DMA1 Channel 7
+ DCD ADC1_2_IRQHandler ; ADC1_2
+ DCD USB_HP_CAN1_TX_IRQHandler ; USB High Priority or CAN1 TX
+ DCD USB_LP_CAN1_RX0_IRQHandler ; USB Low Priority or CAN1 RX0
+ DCD CAN1_RX1_IRQHandler ; CAN1 RX1
+ DCD CAN1_SCE_IRQHandler ; CAN1 SCE
+ DCD EXTI9_5_IRQHandler ; EXTI Line 9..5
+ DCD TIM1_BRK_IRQHandler ; TIM1 Break
+ DCD TIM1_UP_IRQHandler ; TIM1 Update
+ DCD TIM1_TRG_COM_IRQHandler ; TIM1 Trigger and Commutation
+ DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
+ DCD TIM2_IRQHandler ; TIM2
+ DCD TIM3_IRQHandler ; TIM3
+ DCD TIM4_IRQHandler ; TIM4
+ DCD I2C1_EV_IRQHandler ; I2C1 Event
+ DCD I2C1_ER_IRQHandler ; I2C1 Error
+ DCD I2C2_EV_IRQHandler ; I2C2 Event
+ DCD I2C2_ER_IRQHandler ; I2C2 Error
+ DCD SPI1_IRQHandler ; SPI1
+ DCD SPI2_IRQHandler ; SPI2
+ DCD USART1_IRQHandler ; USART1
+ DCD USART2_IRQHandler ; USART2
+ DCD USART3_IRQHandler ; USART3
+ DCD EXTI15_10_IRQHandler ; EXTI Line 15..10
+ DCD RTCAlarm_IRQHandler ; RTC Alarm through EXTI Line
+ DCD USBWakeUp_IRQHandler ; USB Wakeup from suspend
+__Vectors_End
+
+__Vectors_Size EQU __Vectors_End - __Vectors
+
+ AREA |.text|, CODE, READONLY
+
+; Reset handler
+Reset_Handler PROC
+ EXPORT Reset_Handler [WEAK]
+ IMPORT __main
+
+ LDR R0, =SystemInit
+ BLX R0
+
+;
+; Enable UsageFault, MemFault and Busfault interrupts
+;
+_SHCSR EQU 0xE000ED24 ; SHCSR is located at address 0xE000ED24
+ LDR.W R0, =_SHCSR
+ LDR R1, [R0] ; Read CPACR
+ ORR R1, R1, #(0x7 << 16) ; Set bits 16,17,18 to enable usagefault, busfault, memfault interrupts
+ STR R1, [R0] ; Write back the modified value to the CPACR
+ DSB ; Wait for store to complete
+
+;
+; Set priority grouping (PRIGROUP) in AIRCR to 3 (16 levels for group priority and 0 for subpriority)
+;
+_AIRCR EQU 0xE000ED0C
+_AIRCR_VAL EQU 0x05FA0300
+ LDR.W R0, =_AIRCR
+ LDR.W R1, =_AIRCR_VAL
+ STR R1,[R0]
+
+;
+; Finaly, jump to main function (void main (void))
+;
+ LDR R0, =__main
+ BX R0
+ ENDP
+
+SystemInit PROC
+ EXPORT SystemInit [WEAK]
+ BX LR
+ ENDP
+
+; Dummy Exception Handlers (infinite loops which can be modified)
+
+NMI_Handler PROC
+ EXPORT NMI_Handler [WEAK]
+ B .
+ ENDP
+HardFault_Handler\
+ PROC
+ EXPORT HardFault_Handler [WEAK]
+ B .
+ ENDP
+MemManage_Handler\
+ PROC
+ EXPORT MemManage_Handler [WEAK]
+ B .
+ ENDP
+BusFault_Handler\
+ PROC
+ EXPORT BusFault_Handler [WEAK]
+ B .
+ ENDP
+UsageFault_Handler\
+ PROC
+ EXPORT UsageFault_Handler [WEAK]
+ B .
+ ENDP
+SVC_Handler PROC
+ EXPORT SVC_Handler [WEAK]
+ B .
+ ENDP
+DebugMon_Handler\
+ PROC
+ EXPORT DebugMon_Handler [WEAK]
+ B .
+ ENDP
+PendSV_Handler PROC
+ EXPORT PendSV_Handler [WEAK]
+ B .
+ ENDP
+SysTick_Handler PROC
+ EXPORT SysTick_Handler [WEAK]
+ B .
+ ENDP
+
+Default_Handler PROC
+
+ EXPORT WWDG_IRQHandler [WEAK]
+ EXPORT PVD_IRQHandler [WEAK]
+ EXPORT TAMPER_IRQHandler [WEAK]
+ EXPORT RTC_IRQHandler [WEAK]
+ EXPORT FLASH_IRQHandler [WEAK]
+ EXPORT RCC_IRQHandler [WEAK]
+ EXPORT EXTI0_IRQHandler [WEAK]
+ EXPORT EXTI1_IRQHandler [WEAK]
+ EXPORT EXTI2_IRQHandler [WEAK]
+ EXPORT EXTI3_IRQHandler [WEAK]
+ EXPORT EXTI4_IRQHandler [WEAK]
+ EXPORT DMA1_Channel1_IRQHandler [WEAK]
+ EXPORT DMA1_Channel2_IRQHandler [WEAK]
+ EXPORT DMA1_Channel3_IRQHandler [WEAK]
+ EXPORT DMA1_Channel4_IRQHandler [WEAK]
+ EXPORT DMA1_Channel5_IRQHandler [WEAK]
+ EXPORT DMA1_Channel6_IRQHandler [WEAK]
+ EXPORT DMA1_Channel7_IRQHandler [WEAK]
+ EXPORT ADC1_2_IRQHandler [WEAK]
+ EXPORT USB_HP_CAN1_TX_IRQHandler [WEAK]
+ EXPORT USB_LP_CAN1_RX0_IRQHandler [WEAK]
+ EXPORT CAN1_RX1_IRQHandler [WEAK]
+ EXPORT CAN1_SCE_IRQHandler [WEAK]
+ EXPORT EXTI9_5_IRQHandler [WEAK]
+ EXPORT TIM1_BRK_IRQHandler [WEAK]
+ EXPORT TIM1_UP_IRQHandler [WEAK]
+ EXPORT TIM1_TRG_COM_IRQHandler [WEAK]
+ EXPORT TIM1_CC_IRQHandler [WEAK]
+ EXPORT TIM2_IRQHandler [WEAK]
+ EXPORT TIM3_IRQHandler [WEAK]
+ EXPORT TIM4_IRQHandler [WEAK]
+ EXPORT I2C1_EV_IRQHandler [WEAK]
+ EXPORT I2C1_ER_IRQHandler [WEAK]
+ EXPORT I2C2_EV_IRQHandler [WEAK]
+ EXPORT I2C2_ER_IRQHandler [WEAK]
+ EXPORT SPI1_IRQHandler [WEAK]
+ EXPORT SPI2_IRQHandler [WEAK]
+ EXPORT USART1_IRQHandler [WEAK]
+ EXPORT USART2_IRQHandler [WEAK]
+ EXPORT USART3_IRQHandler [WEAK]
+ EXPORT EXTI15_10_IRQHandler [WEAK]
+ EXPORT RTCAlarm_IRQHandler [WEAK]
+ EXPORT USBWakeUp_IRQHandler [WEAK]
+
+WWDG_IRQHandler
+PVD_IRQHandler
+TAMPER_IRQHandler
+RTC_IRQHandler
+FLASH_IRQHandler
+RCC_IRQHandler
+EXTI0_IRQHandler
+EXTI1_IRQHandler
+EXTI2_IRQHandler
+EXTI3_IRQHandler
+EXTI4_IRQHandler
+DMA1_Channel1_IRQHandler
+DMA1_Channel2_IRQHandler
+DMA1_Channel3_IRQHandler
+DMA1_Channel4_IRQHandler
+DMA1_Channel5_IRQHandler
+DMA1_Channel6_IRQHandler
+DMA1_Channel7_IRQHandler
+ADC1_2_IRQHandler
+USB_HP_CAN1_TX_IRQHandler
+USB_LP_CAN1_RX0_IRQHandler
+CAN1_RX1_IRQHandler
+CAN1_SCE_IRQHandler
+EXTI9_5_IRQHandler
+TIM1_BRK_IRQHandler
+TIM1_UP_IRQHandler
+TIM1_TRG_COM_IRQHandler
+TIM1_CC_IRQHandler
+TIM2_IRQHandler
+TIM3_IRQHandler
+TIM4_IRQHandler
+I2C1_EV_IRQHandler
+I2C1_ER_IRQHandler
+I2C2_EV_IRQHandler
+I2C2_ER_IRQHandler
+SPI1_IRQHandler
+SPI2_IRQHandler
+USART1_IRQHandler
+USART2_IRQHandler
+USART3_IRQHandler
+EXTI15_10_IRQHandler
+RTCAlarm_IRQHandler
+USBWakeUp_IRQHandler
+
+ B .
+
+ ENDP
+
+ ALIGN
+
+;*******************************************************************************
+; User Stack and Heap initialization
+;*******************************************************************************
+ IF :DEF:__MICROLIB
+
+ EXPORT __initial_sp
+ EXPORT __heap_base
+ EXPORT __heap_limit
+
+ ELSE
+
+ IMPORT __use_two_region_memory
+ EXPORT __user_initial_stackheap
+
+__user_initial_stackheap
+
+ LDR R0, = Heap_Mem
+ LDR R1, =(Stack_Mem + Stack_Size)
+ LDR R2, = (Heap_Mem + Heap_Size)
+ LDR R3, = Stack_Mem
+ BX LR
+
+ ALIGN
+
+ ENDIF
+
+ END
+
+;******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE*****
diff --git a/PjtKEIL_StepDeb_2/BacASable.uvprojx b/PjtKEIL_StepDeb_2/BacASable.uvprojx
new file mode 100644
index 0000000..82d98b7
--- /dev/null
+++ b/PjtKEIL_StepDeb_2/BacASable.uvprojx
@@ -0,0 +1,1347 @@
+
+
+
+ 2.1
+
+ ### uVision Project, (C) Keil Software
+
+
+
+ Simu
+ 0x4
+ ARM-ADS
+ 5060960::V5.06 update 7 (build 960)::.\ARMCC
+ 0
+
+
+ STM32F103RB
+ STMicroelectronics
+ Keil.STM32F1xx_DFP.2.3.0
+ http://www.keil.com/pack/
+ IRAM(0x20000000-0x20004FFF) IROM(0x8000000-0x801FFFF) CLOCK(8000000) CPUTYPE("Cortex-M3")
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $$Device:STM32F103RB$SVD\STM32F103xx.svd
+ 0
+ 0
+
+
+
+
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x0
+ 0x0
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 1
+ 0x8000000
+ 0x20000
+
+
+ 1
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x0
+ 0x0
+
+
+ 0
+ 0x20000000
+ 0x5000
+
+
+ 0
+ 0x0
+ 0x0
+
+
+
+
+
+ 1
+ 1
+ 0
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 2
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ 1
+ 1
+ 1
+ 0
+ 0
+ 0
+
+ --C99
+ STM32F103xB,USE_FULL_LL_DRIVER
+
+ .\Driver
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 4
+
+
+
+
+ .\Driver
+
+
+
+ 1
+ 0
+ 0
+ 0
+ 1
+ 0
+ 0x08000000
+ 0x20000000
+
+
+
+
+
+
+
+
+
+
+
+
+ Sources
+
+
+ principal.c
+ 1
+ .\Src\principal.c
+
+
+ Cligno.s
+ 2
+ .\Src\Cligno.s
+
+
+
+
+ Sys
+
+
+ startup-rvds.s
+ 2
+ .\Src\startup-rvds.s
+
+
+
+
+ Driver
+
+
+ DriverJeuLaser.lib
+ 4
+ .\Driver\DriverJeuLaser.lib
+
+
+
+
+ ::CMSIS
+
+
+
+
+ CibleSondeKEIL
+ 0x4
+ ARM-ADS
+ 5060960::V5.06 update 7 (build 960)::.\ARMCC
+ 0
+
+
+ STM32F103RB
+ STMicroelectronics
+ Keil.STM32F1xx_DFP.2.3.0
+ http://www.keil.com/pack/
+ IRAM(0x20000000-0x20004FFF) IROM(0x8000000-0x801FFFF) CLOCK(8000000) CPUTYPE("Cortex-M3")
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $$Device:STM32F103RB$SVD\STM32F103xx.svd
+ 0
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aser.lib
+
+
+
+
+ ::CMSIS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <Project Info>
+ 0
+ 1
+
+
+
+
+
diff --git a/PjtKEIL_StepDeb_2/Driver/DriverJeuLaser.h b/PjtKEIL_StepDeb_2/Driver/DriverJeuLaser.h
new file mode 100644
index 0000000..bc9b3bd
--- /dev/null
+++ b/PjtKEIL_StepDeb_2/Driver/DriverJeuLaser.h
@@ -0,0 +1,345 @@
+/**
+ * Bibliotheque DriverJeuLaser (ancienne gassp72 adaptée 2021 - TR)
+ *
+ * GPIO - ADC - Sequenceur - System Timer - PWM - 72 MHz
+ * Modifs :
+ * enlèvement de tout ce qui est inutile dans le .h
+ * ajout de fonctions GPIO dans le .c pour utilisation en ASM ou en C :
+ * - GPIOA_Set(char Broche), GPIOB_Set(char Broche), GPIOC_Set(char Broche)
+ * - GPIOA_Clear(char Broche), GPIOB_Clear(char Broche), GPIOC_Clear(char Broche)
+ *
+ * ajout d'une fonction qui impose une valeur de PWM (TIM3_CCR3)
+ * PWM_Set_Value_On_TIM3_C3( int Val)
+ * permet en ASM ou en C de fixer la valeur de PWM
+
+ * Ajout de commentaires
+
+ */
+#ifndef DRIVERJEULASER_H__
+#define DRIVERJEULASER_H__
+
+#include "stm32f10x.h"
+
+//**********************************************************************************************************
+//--------------------- CONFIGURATION CLOCK DU STM32 --------------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Configure l'ensemble des horloges du uC
+ * @note horloge systeme (config statique a 72 MHz pour le STM32F103)
+ * @param None
+ * @retval None
+ */
+void CLOCK_Configure(void);
+
+
+
+
+
+
+
+
+
+
+//**********************************************************************************************************
+//--------------------- LES TIMERS GENERAL PURPOSE TIM1 à TIM 4 ------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Configure un Timer TIM1 à TIM4 avec une périodicité donnée
+ * @note L' horloge des 4 timers a une fréquence de 72MHz
+ * @param *Timer = TIM1 ou TIM2 ou TIM3 ou TIM4
+ * @param Durée_ticks : nombre de pas (tick) comptés à 72 MHz pour faire déborder le timer
+ * La période de débordement du Timer est donc T = Durée_ticks * Tck, avec Tck = 1/72 000 000
+ * @retval None
+ */
+void Timer_1234_Init_ff( TIM_TypeDef *Timer, u32 Duree_ticks );
+
+/**
+ * Macros de base pour utiliser les timers
+ */
+ // bloque le timer
+#define Bloque_Timer(Timer) Timer->CR1=(Timer->CR1)&~(1<<0)
+// Lance timer
+#define Run_Timer(Timer) Timer->CR1=(Timer->CR1)|(1<<0)
+
+
+
+/**
+ * @brief Associe une fonction d'interruption (callback) lors du débordement d'un timer
+ * @note
+ * @param *Timer = TIM1 ou TIM2 ou TIM3 ou TIM4
+ * @param Prio : niveau de priorité de l'interruption (0 -> priorité max, 15 -> priorité min)
+ * @param IT_function : le nom de la fonction Callback à appeler lors de l'interruption
+ * @retval None
+ */
+void Active_IT_Debordement_Timer( TIM_TypeDef *Timer, char Prio, void (*IT_function)(void) );
+
+
+
+
+
+
+
+
+
+
+
+//*********************************************************************************************************
+//--------------------- PWM TIM1 to TIM 4 ------------------------------
+//*********************************************************************************************************
+
+/**
+ * @brief Configure un timer en PWM
+ * @note
+ * @param *Timer = TIM1 ou TIM2 ou TIM3 ou TIM4
+ * @param voie : un des 4 canaux possibles 1 à 4.
+ * @param Periode_ticks : nombre de pas (tick) comptés à 72 MHz pour faire déborder le timer
+ * La période de débordement du Timer est donc T = Durée_ticks * Tck, avec Tck = 1/72 000 000
+ * @retval Retourne la période en tick (normalement la même que le param d'entrée sauf si PSC utilisé
+ */
+unsigned short int PWM_Init_ff( TIM_TypeDef *Timer, char Voie, u32 Periode_ticks );
+
+
+
+/**
+ * @brief Fixe une valeur de PWM, Val, en tick horloge. La rapport cyclique effectif
+ * est donc : rcy = Thaut_ticks / Periode_ticks
+ * @note spécifique Jeu Laser, PWM liée exclusivement au TIM3, chan3
+ * @param Thaut_ticks : durée de l'état haut d'une impulsion en Ticks
+ * @retval None
+ */
+void PWM_Set_Value_TIM3_Ch3( unsigned short int Thaut_ticks);
+
+
+
+
+
+
+
+
+
+//**********************************************************************************************************
+//--------------------- LE SYSTICK TIMER, Part of Cortex M3 ------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Configure le timer Systick avec une périodicité donnée
+ * @note Ce timer ne peut servir qu'à créer des temporisations ou générer des interruption
+ * ce n'est pas à proprement parler un périphérique, il fait partie du Cortex M3
+ * Ce timer est un 24 bits
+ * @param Periode_ticks : nombre de pas (tick) comptés à 72 MHz pour établir la périodicité
+ * La période de débordement du Timer est donc T = Durée_ticks * Tck, avec Tck = 1/72 000 000
+ * @retval None
+ */
+void Systick_Period_ff( unsigned int Periode_ticks );
+
+
+
+/**
+ * @brief Associe une fonction d'interruption (callback) lors du débordement du Systick
+ * @note
+ * @param Prio : niveau de priorité de l'interruption (0 -> priorité max, 15 -> priorité min)
+ * @param IT_function : le nom de la fonction Callback à appeler lors de l'interruption
+ * @retval None
+ */
+void Systick_Prio_IT( char Prio, void (*Systick_function)(void) );
+
+
+/**
+ * Macros de base pour utiliser le Systick
+ */
+#define SysTick_On ((SysTick->CTRL)=(SysTick->CTRL)|1<<0)
+#define SysTick_Off ((SysTick->CTRL)=(SysTick->CTRL)& ~(1<<0))
+#define SysTick_Enable_IT ((SysTick->CTRL)=(SysTick->CTRL)|1<<1)
+#define SysTick_Disable_IT ((SysTick->CTRL)=(SysTick->CTRL)& ~(1<<1))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+//**********************************************************************************************************
+//--------------------- LE SYSTICK TIMER, Part of Cortex M3 ------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Active l'ADC du STM32, configure la durée de prélèvement de l'échantillon (temps
+ * de fermeture du switch d'acquisition
+ * @note
+ * @param ADC : précise de quel ADC il s'agit, ADC1 ou ADC2
+ * @param Duree_Ech_ticks : dirée de fermeture du switch d'échantillonnage en Tick d'horloge CPU
+ * exemple pour 1µs on choisira 72.
+ * @retval Nombre de Tick réellement pris en compte
+ */
+unsigned int Init_TimingADC_ActiveADC_ff( ADC_TypeDef * ADC, u32 Duree_Ech_ticks );
+
+
+/**
+ * @brief Sélectionne la voie à convertir
+ * @note Attention, la voie va de 0 à 15 et n'est pas directement lié au n°de GPIO
+ * @param ADC : précise de quel ADC il s'agit, ADC1 ou ADC2
+ * @param Voie_ADC : 1 à 15
+ * @retval None
+ */
+void Single_Channel_ADC( ADC_TypeDef * ADC, char Voie_ADC );
+
+
+
+
+
+/**
+ * @brief Permet lier le déclenchement au débordement d'un timer, spécifie également
+ * la période de débordement du timer
+ * @note pas besoin de régler le timer avec une autre fonction dédiée timer
+ * @param ADC : précise de quel ADC il s'agit, ADC1 ou ADC2
+ * @param Source : indique le timer qui déclenche l'ADC choix dans les define ci-dessous
+ * @param Periode_ticks : nombre de pas (tick) comptés à 72 MHz pour faire déborder le timer
+ * La période de débordement du Timer est donc T = Durée_ticks * Tck, avec Tck = 1/72 000 000
+ * @retval None
+ */
+
+// param pour Source :
+#define TIM1_CC1 0
+#define TIM1_CC2 1
+#define TIM1_CC3 2
+#define TIM2_CC2 3
+#define TIM4_CC4 5
+void Init_Conversion_On_Trig_Timer_ff( ADC_TypeDef * ADC, char Source, u32 Periode_ticks );
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+//**********************************************************************************************************
+//--------------------- ANALOG INPUT ADC & DMA ------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Permer de lier l'ADC à un tableau en RAM pour une DMA
+ * @note
+ * @param Circ : circular. Si '0', en fin de DMA le ptr d'@ reste inchangé
+ * si '1' le ptr d'@ se recale à celle du début.
+ * @param Ptr_Table_DMA : contient l'@ de début de zone RAM à écrire
+ * @retval None
+ */
+void Init_ADC1_DMA1(char Circ, short int *Ptr_Table_DMA);
+
+
+
+
+
+/**
+ * @brief Lance une DMA sur le nombre de points spécifie. Les resultats seront stockes
+ * dans la zone de RAM écrite est indiquée lors de l'appel de la fonction Init_ADC1_DMA1
+ * @note
+ * @param NbEchDMA est le nombre d'échantillons à stocker.
+ * @retval None
+ */
+void Start_DMA1( u16 NbEchDMA );
+
+// arret DMA
+#define Stop_DMA1 DMA1_Channel1->CCR =(DMA1_Channel1->CCR) &~0x1;
+
+
+/**
+ * @brief Attend la fin d'un cycle de DMA. la duree depend de la periode d'acquisition
+ * et du nombre d'echantillons
+ * @note fonction d'attente (bloquante)
+ * @param None
+ * @retval None
+ */
+void Wait_On_End_Of_DMA1(void);
+
+
+
+
+
+
+
+
+//**********************************************************************************************************
+//--------------------- GPIO ------------------------------
+//**********************************************************************************************************
+
+/**
+ * @brief Initialisation d'un GPIO (A à C), pin x.
+ * peut être configuré :
+ * -> Input ou output
+ * -> architecture technologique (push-pull, open drain...)
+
+ * @note
+ * @param Port : GPIOA, GPIOB, GPIOC
+ * @param Broche : 0 à 15
+ * @param Sens : INPUT ou OUTPUT
+ * @param Techno : voir define ci dessous
+ * @retval 1 erreur, 0 si OK
+ */
+
+// Sens
+#define INPUT 'i'
+#define OUTPUT 'o'
+
+// Techno pour pin en entrée (INPUT)
+#define ANALOG 0
+#define INPUT_FLOATING 1
+#define INPUT_PULL_DOWN_UP 2
+
+// Techno pour pin en sortie (OUTPUT)
+#define OUTPUT_PPULL 0
+#define OUTPUT_OPDRAIN 1
+#define ALT_PPULL 2
+#define ALT_OPDRAIN 3
+
+// Exemple :
+// Port_IO_Init(GPIOB, 8, OUTPUT, OUTPUT_PPULL);
+// Place le bit 8 du port B en sortie Push-pull
+char GPIO_Configure(GPIO_TypeDef * Port, int Broche, int Sens, int Techno);
+
+
+/**
+ * @brief Mise à 1 d'une broche GPIO
+ * @note Une fonction par GPIO
+ * @param Broche : 0 à 15
+ * @retval None
+ */
+
+void GPIOA_Set(char Broche);
+void GPIOB_Set(char Broche);
+void GPIOC_Set(char Broche);
+
+
+
+/**
+ * @brief Mise à 0 d'une broche GPIO
+ * @note Une fonction par GPIO
+ * @param Broche : 0 à 15
+ * @retval None
+ */
+
+void GPIOA_Clear(char Broche);
+void GPIOB_Clear(char Broche);
+void GPIOC_Clear(char Broche);
+
+
+#endif
+
+
diff --git a/PjtKEIL_StepDeb_2/Driver/DriverJeuLaser.inc b/PjtKEIL_StepDeb_2/Driver/DriverJeuLaser.inc
new file mode 100644
index 0000000..48d5e50
--- /dev/null
+++ b/PjtKEIL_StepDeb_2/Driver/DriverJeuLaser.inc
@@ -0,0 +1,56 @@
+
+; Bibliotheque DriverJeuLaser (ancienne gassp72 adaptée 2021 - TR)
+; Accès en aux fonctions suivantes :
+; GPIO :
+; GPIOA_Set(char Broche), GPIOB_Set(char Broche), GPIOC_Set(char Broche)
+; GPIOA_Clear(char Broche), GPIOB_Clear(char Broche), GPIOC_Clear(char Broche)
+
+; PWM :
+;/**
+; * @brief Fixe une valeur de PWM, Val, en tick horloge. La rapport cyclique effectif
+; * est donc : rcy = Thaut_ticks / Periode_ticks
+; * @note spécifique Jeu Laser, PWM liée exclusivement au TIM3, chan3
+; * @param Thaut_ticks : durée de l'état haut d'une impulsion en Ticks
+; * @retval None
+; */
+
+;void PWM_Set_Value_TIM3_Ch3( unsigned short int Thaut_ticks);
+ import PWM_Set_Value_TIM3_Ch3
+
+
+
+;/**
+; * @brief Mise à 1 d'une broche GPIO
+; * @note Une fonction par GPIO
+; * @param Broche : 0 à 15
+; * @retval None
+; */
+
+;void GPIOA_Set(char Broche);
+ import GPIOA_Set
+
+;void GPIOB_Set(char Broche);
+ import GPIOB_Set
+
+;void GPIOC_Set(char Broche);
+ import GPIOC_Set
+
+
+
+;/**
+; * @brief Mise à 0 d'une broche GPIO
+; * @note Une fonction par GPIO
+; * @param Broche : 0 à 15
+; * @retval None
+; */
+
+;void GPIOA_Clear(char Broche);
+ import GPIOA_Clear
+
+;void GPIOB_Clear(char Broche);
+ import GPIOB_Clear
+
+;void GPIOC_Clear(char Broche);
+ import GPIOC_Clear
+
+ end
diff --git a/PjtKEIL_StepDeb_2/Src/Cligno.s b/PjtKEIL_StepDeb_2/Src/Cligno.s
new file mode 100644
index 0000000..420ac8f
--- /dev/null
+++ b/PjtKEIL_StepDeb_2/Src/Cligno.s
@@ -0,0 +1,99 @@
+ PRESERVE8
+ THUMB
+ INCLUDE DriverJeuLaser.inc
+ EXPORT timer_callback
+ ;IMPORT GPIOB_Set
+ ;IMPORT GPIOB_Clear
+; ====================== zone de réservation de données, ======================================
+;Section RAM (read only) :
+ area mesdata,data,readonly
+
+
+;Section RAM (read write):
+ area maram,data,readwrite
+
+FlagCligno dcd 0
+
+; ===============================================================================================
+
+
+;Section ROM code (read only) :
+ area moncode,code,readonly
+
+; void timer_callback(void)
+;{
+; if (FlagCligno==1)
+; {
+; FlagCligno=0;
+; GPIOB_Set(1);
+; }
+; else
+; {
+; FlagCligno=1;
+; GPIOB_Clear(1);
+; }
+;}
+
+;Delay_100ms proc
+; ldr r0,=VarTime
+; ldr r1,=TimeValue
+; str r1,[r0]
+;BoucleTempo
+; ldr r1,[r0]
+; subs r1,#1
+; str r1,[r0]
+; bne BoucleTempo
+;
+; bx lr
+; endp
+;
+
+
+timer_callback proc
+;{
+ push{lr}
+; if (FlagCligno==1)
+ ldr r1, =FlagCligno
+ ldr r2, [r1]
+ mov r0, #1
+ cmp r0,r2
+ bne JsuisElse
+; {
+; FlagCligno=0;
+ mov r0,#0
+
+ str r0, [r1]
+
+; GPIOB_Set(1);
+ mov r0, #1
+ bl GPIOB_Set
+
+ bl JsuisFin
+; }
+; else
+JsuisElse
+; {
+; FlagCligno=1;
+ mov r0,#1
+
+ str r0, [r1]
+
+
+; GPIOB_Clear(1);
+ bl GPIOB_Clear
+; }
+JsuisFin
+
+ pop {pc}
+;}
+
+ endp
+
+
+
+
+
+
+
+
+ END
\ No newline at end of file
diff --git a/PjtKEIL_StepDeb_2/Src/principal.c b/PjtKEIL_StepDeb_2/Src/principal.c
new file mode 100644
index 0000000..53d5813
--- /dev/null
+++ b/PjtKEIL_StepDeb_2/Src/principal.c
@@ -0,0 +1,46 @@
+
+
+#include "DriverJeuLaser.h"
+
+extern void timer_callback(void);
+
+int main(void)
+{
+
+// ===========================================================================
+// ============= INIT PERIPH (faites qu'une seule fois) =====================
+// ===========================================================================
+
+// Après exécution : le coeur CPU est clocké à 72MHz ainsi que tous les timers
+CLOCK_Configure();
+
+// configuration du Timer 4 en débordement 100ms
+
+
+Timer_1234_Init_ff( TIM4, 7200000);
+
+
+// Activation des interruptions issues du Timer 4
+// Association de la fonction à exécuter lors de l'interruption : timer_callback
+// cette fonction (si écrite en ASM) doit être conforme à l'AAPCS
+
+//** Placez votre code là ** //
+Active_IT_Debordement_Timer( TIM4, 2, timer_callback );
+
+
+
+// configuration de PortB.1 (PB1) en sortie push-pull
+GPIO_Configure(GPIOB, 1, OUTPUT, OUTPUT_PPULL);
+
+
+
+
+//============================================================================
+
+
+while (1)
+ {
+ }
+}
+
+
diff --git a/PjtKEIL_StepDeb_2/Src/startup-rvds.s b/PjtKEIL_StepDeb_2/Src/startup-rvds.s
new file mode 100644
index 0000000..a7b631a
--- /dev/null
+++ b/PjtKEIL_StepDeb_2/Src/startup-rvds.s
@@ -0,0 +1,335 @@
+;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
+;* File Name : startup_stm32f10x_md.s
+;* Author : MCD Application Team
+;* Version : V3.5.0
+;* Date : 11-March-2011
+;* Description : STM32F10x Medium Density Devices vector table for MDK-ARM
+;* toolchain.
+;* This module performs:
+;* - Set the initial SP
+;* - Set the initial PC == Reset_Handler
+;* - Set the vector table entries with the exceptions ISR address
+;* - Configure the clock system
+;* - Branches to __main in the C library (which eventually
+;* calls main()).
+;* After Reset the CortexM3 processor is in Thread mode,
+;* priority is Privileged, and the Stack is set to Main.
+;* <<< Use Configuration Wizard in Context Menu >>>
+;*******************************************************************************
+; THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
+; WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
+; AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
+; INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
+; CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
+; INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
+;*******************************************************************************
+
+; Amount of memory (in bytes) allocated for Stack
+; Tailor this value to your application needs
+; Stack Configuration
+; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
+;
+
+Stack_Size EQU 0x00000400
+
+ AREA STACK, NOINIT, READWRITE, ALIGN=3
+Stack_Mem SPACE Stack_Size
+__initial_sp
+
+
+; Heap Configuration
+; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
+;
+
+Heap_Size EQU 0x00000200
+
+ AREA HEAP, NOINIT, READWRITE, ALIGN=3
+__heap_base
+Heap_Mem SPACE Heap_Size
+__heap_limit
+
+ PRESERVE8
+ THUMB
+
+
+; Vector Table Mapped to Address 0 at Reset
+ AREA RESET, DATA, READONLY
+ EXPORT __Vectors
+ EXPORT __Vectors_End
+ EXPORT __Vectors_Size
+
+__Vectors DCD __initial_sp ; Top of Stack
+ DCD Reset_Handler ; Reset Handler
+ DCD NMI_Handler ; NMI Handler
+ DCD HardFault_Handler ; Hard Fault Handler
+ DCD MemManage_Handler ; MPU Fault Handler
+ DCD BusFault_Handler ; Bus Fault Handler
+ DCD UsageFault_Handler ; Usage Fault Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD SVC_Handler ; SVCall Handler
+ DCD DebugMon_Handler ; Debug Monitor Handler
+ DCD 0 ; Reserved
+ DCD PendSV_Handler ; PendSV Handler
+ DCD SysTick_Handler ; SysTick Handler
+
+ ; External Interrupts
+ DCD WWDG_IRQHandler ; Window Watchdog
+ DCD PVD_IRQHandler ; PVD through EXTI Line detect
+ DCD TAMPER_IRQHandler ; Tamper
+ DCD RTC_IRQHandler ; RTC
+ DCD FLASH_IRQHandler ; Flash
+ DCD RCC_IRQHandler ; RCC
+ DCD EXTI0_IRQHandler ; EXTI Line 0
+ DCD EXTI1_IRQHandler ; EXTI Line 1
+ DCD EXTI2_IRQHandler ; EXTI Line 2
+ DCD EXTI3_IRQHandler ; EXTI Line 3
+ DCD EXTI4_IRQHandler ; EXTI Line 4
+ DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1
+ DCD DMA1_Channel2_IRQHandler ; DMA1 Channel 2
+ DCD DMA1_Channel3_IRQHandler ; DMA1 Channel 3
+ DCD DMA1_Channel4_IRQHandler ; DMA1 Channel 4
+ DCD DMA1_Channel5_IRQHandler ; DMA1 Channel 5
+ DCD DMA1_Channel6_IRQHandler ; DMA1 Channel 6
+ DCD DMA1_Channel7_IRQHandler ; DMA1 Channel 7
+ DCD ADC1_2_IRQHandler ; ADC1_2
+ DCD USB_HP_CAN1_TX_IRQHandler ; USB High Priority or CAN1 TX
+ DCD USB_LP_CAN1_RX0_IRQHandler ; USB Low Priority or CAN1 RX0
+ DCD CAN1_RX1_IRQHandler ; CAN1 RX1
+ DCD CAN1_SCE_IRQHandler ; CAN1 SCE
+ DCD EXTI9_5_IRQHandler ; EXTI Line 9..5
+ DCD TIM1_BRK_IRQHandler ; TIM1 Break
+ DCD TIM1_UP_IRQHandler ; TIM1 Update
+ DCD TIM1_TRG_COM_IRQHandler ; TIM1 Trigger and Commutation
+ DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
+ DCD TIM2_IRQHandler ; TIM2
+ DCD TIM3_IRQHandler ; TIM3
+ DCD TIM4_IRQHandler ; TIM4
+ DCD I2C1_EV_IRQHandler ; I2C1 Event
+ DCD I2C1_ER_IRQHandler ; I2C1 Error
+ DCD I2C2_EV_IRQHandler ; I2C2 Event
+ DCD I2C2_ER_IRQHandler ; I2C2 Error
+ DCD SPI1_IRQHandler ; SPI1
+ DCD SPI2_IRQHandler ; SPI2
+ DCD USART1_IRQHandler ; USART1
+ DCD USART2_IRQHandler ; USART2
+ DCD USART3_IRQHandler ; USART3
+ DCD EXTI15_10_IRQHandler ; EXTI Line 15..10
+ DCD RTCAlarm_IRQHandler ; RTC Alarm through EXTI Line
+ DCD USBWakeUp_IRQHandler ; USB Wakeup from suspend
+__Vectors_End
+
+__Vectors_Size EQU __Vectors_End - __Vectors
+
+ AREA |.text|, CODE, READONLY
+
+; Reset handler
+Reset_Handler PROC
+ EXPORT Reset_Handler [WEAK]
+ IMPORT __main
+
+ LDR R0, =SystemInit
+ BLX R0
+
+;
+; Enable UsageFault, MemFault and Busfault interrupts
+;
+_SHCSR EQU 0xE000ED24 ; SHCSR is located at address 0xE000ED24
+ LDR.W R0, =_SHCSR
+ LDR R1, [R0] ; Read CPACR
+ ORR R1, R1, #(0x7 << 16) ; Set bits 16,17,18 to enable usagefault, busfault, memfault interrupts
+ STR R1, [R0] ; Write back the modified value to the CPACR
+ DSB ; Wait for store to complete
+
+;
+; Set priority grouping (PRIGROUP) in AIRCR to 3 (16 levels for group priority and 0 for subpriority)
+;
+_AIRCR EQU 0xE000ED0C
+_AIRCR_VAL EQU 0x05FA0300
+ LDR.W R0, =_AIRCR
+ LDR.W R1, =_AIRCR_VAL
+ STR R1,[R0]
+
+;
+; Finaly, jump to main function (void main (void))
+;
+ LDR R0, =__main
+ BX R0
+ ENDP
+
+SystemInit PROC
+ EXPORT SystemInit [WEAK]
+ BX LR
+ ENDP
+
+; Dummy Exception Handlers (infinite loops which can be modified)
+
+NMI_Handler PROC
+ EXPORT NMI_Handler [WEAK]
+ B .
+ ENDP
+HardFault_Handler\
+ PROC
+ EXPORT HardFault_Handler [WEAK]
+ B .
+ ENDP
+MemManage_Handler\
+ PROC
+ EXPORT MemManage_Handler [WEAK]
+ B .
+ ENDP
+BusFault_Handler\
+ PROC
+ EXPORT BusFault_Handler [WEAK]
+ B .
+ ENDP
+UsageFault_Handler\
+ PROC
+ EXPORT UsageFault_Handler [WEAK]
+ B .
+ ENDP
+SVC_Handler PROC
+ EXPORT SVC_Handler [WEAK]
+ B .
+ ENDP
+DebugMon_Handler\
+ PROC
+ EXPORT DebugMon_Handler [WEAK]
+ B .
+ ENDP
+PendSV_Handler PROC
+ EXPORT PendSV_Handler [WEAK]
+ B .
+ ENDP
+SysTick_Handler PROC
+ EXPORT SysTick_Handler [WEAK]
+ B .
+ ENDP
+
+Default_Handler PROC
+
+ EXPORT WWDG_IRQHandler [WEAK]
+ EXPORT PVD_IRQHandler [WEAK]
+ EXPORT TAMPER_IRQHandler [WEAK]
+ EXPORT RTC_IRQHandler [WEAK]
+ EXPORT FLASH_IRQHandler [WEAK]
+ EXPORT RCC_IRQHandler [WEAK]
+ EXPORT EXTI0_IRQHandler [WEAK]
+ EXPORT EXTI1_IRQHandler [WEAK]
+ EXPORT EXTI2_IRQHandler [WEAK]
+ EXPORT EXTI3_IRQHandler [WEAK]
+ EXPORT EXTI4_IRQHandler [WEAK]
+ EXPORT DMA1_Channel1_IRQHandler [WEAK]
+ EXPORT DMA1_Channel2_IRQHandler [WEAK]
+ EXPORT DMA1_Channel3_IRQHandler [WEAK]
+ EXPORT DMA1_Channel4_IRQHandler [WEAK]
+ EXPORT DMA1_Channel5_IRQHandler [WEAK]
+ EXPORT DMA1_Channel6_IRQHandler [WEAK]
+ EXPORT DMA1_Channel7_IRQHandler [WEAK]
+ EXPORT ADC1_2_IRQHandler [WEAK]
+ EXPORT USB_HP_CAN1_TX_IRQHandler [WEAK]
+ EXPORT USB_LP_CAN1_RX0_IRQHandler [WEAK]
+ EXPORT CAN1_RX1_IRQHandler [WEAK]
+ EXPORT CAN1_SCE_IRQHandler [WEAK]
+ EXPORT EXTI9_5_IRQHandler [WEAK]
+ EXPORT TIM1_BRK_IRQHandler [WEAK]
+ EXPORT TIM1_UP_IRQHandler [WEAK]
+ EXPORT TIM1_TRG_COM_IRQHandler [WEAK]
+ EXPORT TIM1_CC_IRQHandler [WEAK]
+ EXPORT TIM2_IRQHandler [WEAK]
+ EXPORT TIM3_IRQHandler [WEAK]
+ EXPORT TIM4_IRQHandler [WEAK]
+ EXPORT I2C1_EV_IRQHandler [WEAK]
+ EXPORT I2C1_ER_IRQHandler [WEAK]
+ EXPORT I2C2_EV_IRQHandler [WEAK]
+ EXPORT I2C2_ER_IRQHandler [WEAK]
+ EXPORT SPI1_IRQHandler [WEAK]
+ EXPORT SPI2_IRQHandler [WEAK]
+ EXPORT USART1_IRQHandler [WEAK]
+ EXPORT USART2_IRQHandler [WEAK]
+ EXPORT USART3_IRQHandler [WEAK]
+ EXPORT EXTI15_10_IRQHandler [WEAK]
+ EXPORT RTCAlarm_IRQHandler [WEAK]
+ EXPORT USBWakeUp_IRQHandler [WEAK]
+
+WWDG_IRQHandler
+PVD_IRQHandler
+TAMPER_IRQHandler
+RTC_IRQHandler
+FLASH_IRQHandler
+RCC_IRQHandler
+EXTI0_IRQHandler
+EXTI1_IRQHandler
+EXTI2_IRQHandler
+EXTI3_IRQHandler
+EXTI4_IRQHandler
+DMA1_Channel1_IRQHandler
+DMA1_Channel2_IRQHandler
+DMA1_Channel3_IRQHandler
+DMA1_Channel4_IRQHandler
+DMA1_Channel5_IRQHandler
+DMA1_Channel6_IRQHandler
+DMA1_Channel7_IRQHandler
+ADC1_2_IRQHandler
+USB_HP_CAN1_TX_IRQHandler
+USB_LP_CAN1_RX0_IRQHandler
+CAN1_RX1_IRQHandler
+CAN1_SCE_IRQHandler
+EXTI9_5_IRQHandler
+TIM1_BRK_IRQHandler
+TIM1_UP_IRQHandler
+TIM1_TRG_COM_IRQHandler
+TIM1_CC_IRQHandler
+TIM2_IRQHandler
+TIM3_IRQHandler
+TIM4_IRQHandler
+I2C1_EV_IRQHandler
+I2C1_ER_IRQHandler
+I2C2_EV_IRQHandler
+I2C2_ER_IRQHandler
+SPI1_IRQHandler
+SPI2_IRQHandler
+USART1_IRQHandler
+USART2_IRQHandler
+USART3_IRQHandler
+EXTI15_10_IRQHandler
+RTCAlarm_IRQHandler
+USBWakeUp_IRQHandler
+
+ B .
+
+ ENDP
+
+ ALIGN
+
+;*******************************************************************************
+; User Stack and Heap initialization
+;*******************************************************************************
+ IF :DEF:__MICROLIB
+
+ EXPORT __initial_sp
+ EXPORT __heap_base
+ EXPORT __heap_limit
+
+ ELSE
+
+ IMPORT __use_two_region_memory
+ EXPORT __user_initial_stackheap
+
+__user_initial_stackheap
+
+ LDR R0, = Heap_Mem
+ LDR R1, =(Stack_Mem + Stack_Size)
+ LDR R2, = (Heap_Mem + Heap_Size)
+ LDR R3, = Stack_Mem
+ BX LR
+
+ ALIGN
+
+ ENDIF
+
+ END
+
+;******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE*****
diff --git a/README.md b/README.md
index ba29950..bd52cf4 100644
--- a/README.md
+++ b/README.md
@@ -1,70 +1,4 @@
# chti23
-
-**Si vous ouvrez ce fichier README.md avec `Visual Code Studio`, faites CTRL+K,V pour visualiser le contenu.**
-
-Dépôt commun pour le BE chti :
-Chaque binome travaille sur ça branche de type grpE_NOM1_NOM2.
-
-## Guide de travail Git
----
-
-Une fois l'[installation](#installation) et la branche faite voilà le *workflow* conseillé en TP chez soi à chaque séance de travail.
-
-
- 1) Vérifier que l'on est bien sur sa branche grpX_NOM1_NOM2 (sinon faire git checkout NOMDEBREANCHE) et récuppérer tout ce qu'il y a de nouveau sur le dépôt :
-
-git status
-git pull
-
-Là normalement il n'y a pas de conflit... Sinon il faudra les régler et faire un commit (demander à chatGPT ou au prof)
-
-2) Vous travaillez et modifiez vos fichiers en local.
-3) A la fin d'une séance de travail ou d'une étape il faut enregistrer une version nouvelle de son travail (faire un "commit") et pour cela ajouter les nouveautés à enregistrer (faire des "add"). Un git status permet de voir ou on en est et faire ses add. On peut aveuglément tout ajouter.
-
-git pull
-git status
-git add * --dry-run
-
-Là vérifier ce que dit le `dry-run` (essai à vide) et que tout ira bien. N'ajouter que du code source pas de fichiers générés parasites etc.
-
-git add *
-git commit -am "TP1 pas fini de rien comprendre"
-git push
-
-
-
-## Installation
-___
-
-Pour celles qui conaisse git voilà le résumé :
-
-
-git clone https://git.etud.insa-toulouse.fr/VOTRE_COMPTE/chti23.git
-
-
-
-### Clone
----
-
-* Lancez git bash : "menu windows tapez Git et sélectionnez Git Bash" pour vérifier qu'il est bien installé
-* Placez vous où bon vous semble et faites un clic droit puis `Git Bash Here`, puis faite un clone du dépot git (hébergé par l'INSA grâce aux étudiantes du club Info) avec la ligne de commande :
-
- git clone https://git.etud.insa-toulouse.fr/VOTRE_COMPTE/chti23.git
-
-
-* Pour vérifier, naviguer dans le répertoire `chti23`, faites un clic droit et `Git Bash Here` et tentez de faire la fameuse commande :
-
- git status
-
-
-> Il se peut qu'un message parlant de **répertoire non secure** s'affiche et propose une ligne de commande dans le message qui doit resembler à :
-> git config --global --add safe.directory '%(prefix)///netapp1/GNIAGNIAGNIA...'
-> Faites un copier-coller de cette commande et exécutez-la.
-> La commande git status doit enfin fonctionner
-
-
-
-Les fichiers sont visibles et partagés !
-
+bechti ramara cros