Compare commits

...

7 commits

44 changed files with 4067 additions and 232 deletions

View file

@ -5,7 +5,8 @@
#include "Girouette.h"
#include "Servo.h"
#include "I2C.h"
#include "MyUart.h"
#include "Plateau.h"
//Variables
int angleVentVar;
@ -26,6 +27,11 @@ int main(void) {
// Initialisation des modules
initAccelo();
initLacheur();
//RTC
initRTC();
getTime();
for (int p = 0; p<LONGUEUR_MOY; p++){moyenne[p]=0xFFFF;} // Initialisation du tableau à 0xFFFF, pour ne pas qu'il se déclenche immediatement
LocaliserZero();

View file

@ -0,0 +1,36 @@
// File: STM32F101_102_103_105_107.dbgconf
// Version: 1.0.0
// Note: refer to STM32F101xx STM32F102xx STM32F103xx STM32F105xx STM32F107xx Reference manual (RM0008)
// STM32F101xx STM32F102xx STM32F103xx STM32F105xx STM32F107xx datasheets
// <<< Use Configuration Wizard in Context Menu >>>
// <h> Debug MCU configuration register (DBGMCU_CR)
// <i> Reserved bits must be kept at reset value
// <o.30> DBG_TIM11_STOP <i> TIM11 counter stopped when core is halted
// <o.29> DBG_TIM10_STOP <i> TIM10 counter stopped when core is halted
// <o.28> DBG_TIM9_STOP <i> TIM9 counter stopped when core is halted
// <o.27> DBG_TIM14_STOP <i> TIM14 counter stopped when core is halted
// <o.26> DBG_TIM13_STOP <i> TIM13 counter stopped when core is halted
// <o.25> DBG_TIM12_STOP <i> TIM12 counter stopped when core is halted
// <o.21> DBG_CAN2_STOP <i> Debug CAN2 stopped when core is halted
// <o.20> DBG_TIM7_STOP <i> TIM7 counter stopped when core is halted
// <o.19> DBG_TIM6_STOP <i> TIM6 counter stopped when core is halted
// <o.18> DBG_TIM5_STOP <i> TIM5 counter stopped when core is halted
// <o.17> DBG_TIM8_STOP <i> TIM8 counter stopped when core is halted
// <o.16> DBG_I2C2_SMBUS_TIMEOUT <i> SMBUS timeout mode stopped when core is halted
// <o.15> DBG_I2C1_SMBUS_TIMEOUT <i> SMBUS timeout mode stopped when core is halted
// <o.14> DBG_CAN1_STOP <i> Debug CAN1 stopped when Core is halted
// <o.13> DBG_TIM4_STOP <i> TIM4 counter stopped when core is halted
// <o.12> DBG_TIM3_STOP <i> TIM3 counter stopped when core is halted
// <o.11> DBG_TIM2_STOP <i> TIM2 counter stopped when core is halted
// <o.10> DBG_TIM1_STOP <i> TIM1 counter stopped when core is halted
// <o.9> DBG_WWDG_STOP <i> Debug window watchdog stopped when core is halted
// <o.8> DBG_IWDG_STOP <i> Debug independent watchdog stopped when core is halted
// <o.2> DBG_STANDBY <i> Debug standby mode
// <o.1> DBG_STOP <i> Debug stop mode
// <o.0> DBG_SLEEP <i> Debug sleep mode
// </h>
DbgMCU_CR = 0x00000007;
// <<< end of configuration section >>>

View file

@ -5,11 +5,11 @@
<h2>Tool Versions:</h2>
IDE-Version: µVision V5.43.1.0
Copyright (C) 2025 ARM Ltd and ARM Germany GmbH. All rights reserved.
License Information: Jens Kielland, University, LIC=----
License Information: Nicolas Tassin, insa, LIC=----
Tool Versions:
Toolchain: MDK-Lite Version: 5.43.0.0
Toolchain Path: C:\users\klinx\AppData\Local\Keil_v5\ARM\ARMCLANG\Bin
Toolchain Path: F:\travail\mdk\ARM\ARMCLANG\Bin
C Compiler: ArmClang.exe V6.24
Assembler: Armasm.exe V6.24
Linker/Locator: ArmLink.exe V6.24
@ -21,36 +21,42 @@ Target DLL: STLink\ST-LINKIII-KEIL_SWO.dll V3.3.1.0
Dialog DLL: TARMSTM.DLL V1.67.1.0
<h2>Project:</h2>
C:\users\klinx\Documents\ecole\4A\MC\BE_VOILIER\ProjetVoilier.uvprojx
Project File Date: 12/15/2025
C:\Users\T490s\Documents\GitHub\BE_VOILIER\ProjetVoilier.uvprojx
Project File Date: 12/16/2025
<h2>Output:</h2>
*** Using Compiler 'V6.24', folder: 'C:\users\klinx\AppData\Local\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'Simulation'
compiling principal.c...
compiling Accelerometre.c...
compiling Girouette.c...
compiling MyUart.c...
compiling Servo.c...
compiling DriverGPIO.c...
*** Using Compiler 'V6.24', folder: 'F:\travail\mdk\ARM\ARMCLANG\Bin'
Build target 'Simulation'
Pilotes/Source/Horloge.c(75): error: redefinition of 'TIM2_IRQHandler'
75 | void TIM2_IRQHandler(void) { //On redefinit le IRQHandler qui est d<E9>j<E0> ecrit dans le code source
| ^
Pilotes/Source/Horloge.c(33): note: previous definition is here
33 | void TIM2_IRQHandler(void) { //On redefinit le IRQHandler qui est d<E9>j<E0> ecrit dans le code source
| ^
1 error generated.
compiling Horloge.c...
compiling MYGPIO.c...
compiling MyTimer.c...
compiling PWM.c...
compiling Timer.c...
compiling I2C.c...
assembling startup_stm32f10x_md.s...
compiling system_stm32f10x.c...
linking...
.\Objects\ProjetVide.axf: Error: L6218E: Undefined symbol MySPI_Init (referred from accelerometre.o).
.\Objects\ProjetVide.axf: Error: L6218E: Undefined symbol MySPI_Clear_NSS (referred from accelerometre.o).
.\Objects\ProjetVide.axf: Error: L6218E: Undefined symbol MySPI_Send (referred from accelerometre.o).
.\Objects\ProjetVide.axf: Error: L6218E: Undefined symbol MySPI_Set_NSS (referred from accelerometre.o).
.\Objects\ProjetVide.axf: Error: L6218E: Undefined symbol MySPI_Read (referred from accelerometre.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 5 error messages.
".\Objects\ProjetVide.axf" - 5 Error(s), 0 Warning(s).
Services/Source/Girouette.c(13): error: call to undeclared function 'Timer_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
13 | Timer_init(Timer, 0, 0);
| ^
Services/Source/Girouette.c(13): note: did you mean 'Timer_Init'?
./Pilotes/Include\Horloge.h(10): note: 'Timer_Init' declared here
10 | void Timer_Init(TIM_TypeDef *Timer, unsigned short Autoreload, unsigned short Prescaler);
| ^
1 error generated.
compiling Girouette.c...
Application/principal.c(32): error: call to undeclared function 'initRTC'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
32 | initRTC();
| ^
Application/principal.c(32): note: did you mean 'initI2C'?
./Pilotes/Include\I2C.h(2): note: 'initI2C' declared here
2 | void initI2C();
| ^
Application/principal.c(33): error: call to undeclared function 'getTime'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
33 | getTime();
| ^
2 errors generated.
compiling principal.c...
".\Objects\ProjetVide.axf" - 4 Error(s), 0 Warning(s).
<h2>Software Packages used:</h2>
@ -69,20 +75,20 @@ Package Vendor: Keil
<h2>Collection of Component include folders:</h2>
./RTE/Device/STM32F103RB
./RTE/_Simulation
C:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include
C:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include
F:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include
F:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include
<h2>Collection of Component Files used:</h2>
* Component: ARM::CMSIS:CORE@6.1.1
* Component: Keil::Device:Startup@1.0.0
Source file: Device/Source/ARM/startup_stm32f10x_md.s
Source file: Device/Source/system_stm32f10x.c
Include file: RTE_Driver/Config/RTE_Device.h
Source file: Device/Source/ARM/STM32F1xx_OPT.s
Include file: RTE_Driver/Config/RTE_Device.h
Source file: Device/Source/ARM/startup_stm32f10x_md.s
Target not created.
Build Time Elapsed: 00:00:32
Build Time Elapsed: 00:00:01
</pre>
</body>
</html>

View file

@ -1,99 +1,92 @@
Dependencies for Project 'ProjetVoilier', Target 'Simulation': (DO NOT MODIFY !)
CompilerVersion: 6240000::V6.24::ARMCLANG
F (.\Application\principal.c)(0x69408BDC)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/principal.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\Horloge.h)(0x694083F8)
I (Services\Include\Accelerometre.h)(0x694083F8)
I (Services\Include\Girouette.h)(0x694083F8)
I (Services\Include\Servo.h)(0x694083F8)
I (Pilotes\Include\I2C.h)(0x694083F8)
F (.\Services\Source\Accelerometre.c)(0x69408A7D)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/accelerometre.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\Horloge.h)(0x694083F8)
I (Pilotes\Include\MySPI.h)(0x694083F8)
I (Services\Include\Accelerometre.h)(0x694083F8)
I (Services\Include\Servo.h)(0x694083F8)
F (.\Services\Source\Girouette.c)(0x69408AA1)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/girouette.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\Timer.h)(0x694083F8)
I (Pilotes\Include\DriverGPIO.h)(0x694083F8)
I (Services\Include\Girouette.h)(0x694083F8)
I (Pilotes\Include\PWM.h)(0x694083F8)
F (.\Pilotes\Source\MyUart.c)(0x69408C41)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/myuart.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\DriverGPIO.h)(0x694083F8)
I (Pilotes\Include\MyTimer.h)(0x694083F8)
F (.\Services\Source\Servo.c)(0x69408AB5)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/servo.o -MMD)
I (Services\Include\Servo.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\DriverGPIO.h)(0x694083F8)
I (Pilotes\Include\PWM.h)(0x694083F8)
I (Pilotes\Include\Horloge.h)(0x694083F8)
F (.\Pilotes\Source\DriverGPIO.c)(0x69408C3D)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/drivergpio.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\DriverGPIO.h)(0x694083F8)
F (.\Pilotes\Source\Horloge.c)(0x69408B5A)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/horloge.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\Horloge.h)(0x694083F8)
F (.\Pilotes\Source\MYGPIO.c)(0x69408AF9)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/mygpio.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\MYGPIO.h)(0x694083F8)
F (.\Pilotes\Source\MyTimer.c)(0x69408C31)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/mytimer.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\Timer.h)(0x694083F8)
I (Pilotes\Include\MyTimer.h)(0x694083F8)
I (Pilotes\Include\PWM.h)(0x694083F8)
I (Pilotes\Include\DriverGPIO.h)(0x694083F8)
I (Pilotes\Include\Horloge.h)(0x694083F8)
F (.\Pilotes\Source\PWM.c)(0x69408B46)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/pwm.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\PWM.h)(0x694083F8)
F (.\Pilotes\Source\Timer.c)(0x694088C4)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/timer.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\Timer.h)(0x694083F8)
F (.\Pilotes\Source\I2C.c)(0x69408B4C)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/i2c.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
I (Pilotes\Include\I2C.h)(0x694083F8)
F (RTE/Device/STM32F103RB/RTE_Device.h)(0x694083F8)()
F (RTE/Device/STM32F103RB/startup_stm32f10x_md.s)(0x694083F8)(--target=arm-arm-none-eabi -mcpu=cortex-m3 -masm=auto -Wa,armasm,--diag_suppress=A1950W -c -gdwarf-4 -Wa,armasm,--pd,"__EVAL SETA 1" -I ./Pilotes/Source -I ./Pilotes/Include -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -Wa,armasm,--pd,"__UVISION_VERSION SETA 543" -Wa,armasm,--pd,"STM32F10X_MD SETA 1" -Wa,armasm,--pd,"_RTE_ SETA 1" -o ./objects/startup_stm32f10x_md.o)
F (RTE/Device/STM32F103RB/system_stm32f10x.c)(0x694083F8)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IC:/users/klinx/AppData/Local/Arm/Packs/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IC:/users/klinx/AppData/Local/Arm/Packs/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/system_stm32f10x.o -MMD)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x68F89DC5)
I (RTE\_Simulation\RTE_Components.h)(0x694083F8)
I (C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x68E55F9D)
I (C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x68F89DC5)
F (.\Application\principal.c)(0x69419B17)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/principal.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\Horloge.h)(0x69419531)
I (Services\Include\Accelerometre.h)(0x69419531)
I (Services\Include\Girouette.h)(0x69419531)
I (Services\Include\Servo.h)(0x69419531)
I (Pilotes\Include\I2C.h)(0x69419531)
I (Services\Include\MyUart.h)(0x69419AAE)
I (Services\Include\Plateau.h)(0x69419AF7)
F (.\Services\Source\Accelerometre.c)(0x69419531)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/accelerometre.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\Horloge.h)(0x69419531)
I (Pilotes\Include\MySPI.h)(0x69419531)
I (Services\Include\Accelerometre.h)(0x69419531)
I (Services\Include\Servo.h)(0x69419531)
F (.\Services\Source\Girouette.c)(0x69419531)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/girouette.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\Horloge.h)(0x69419531)
I (Pilotes\Include\DriverGPIO.h)(0x6941974D)
I (Services\Include\Girouette.h)(0x69419531)
I (Pilotes\Include\PWM.h)(0x69419531)
F (.\Pilotes\Source\MyUart.c)(0x694195E7)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/myuart.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\DriverGPIO.h)(0x6941974D)
F (.\Services\Source\Servo.c)(0x69419531)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/servo.o -MMD)
I (Services\Include\Servo.h)(0x69419531)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\DriverGPIO.h)(0x6941974D)
I (Pilotes\Include\PWM.h)(0x69419531)
I (Pilotes\Include\Horloge.h)(0x69419531)
F (.\Services\Source\Plateau.c)(0x69419B31)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/plateau.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\PWM.h)(0x69419531)
I (Pilotes\Include\DriverGPIO.h)(0x6941974D)
I (Pilotes\Include\Horloge.h)(0x69419531)
F (.\Pilotes\Source\DriverGPIO.c)(0x69419635)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/drivergpio.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\DriverGPIO.h)(0x6941974D)
F (.\Pilotes\Source\Horloge.c)(0x69419531)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/horloge.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\Horloge.h)(0x69419531)
F (.\Pilotes\Source\MYGPIO.c)(0x69419531)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/mygpio.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\MYGPIO.h)(0x69419531)
F (.\Pilotes\Source\PWM.c)(0x69419531)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/pwm.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\PWM.h)(0x69419531)
F (.\Pilotes\Source\I2C.c)(0x69419531)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/i2c.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)
I (Pilotes\Include\I2C.h)(0x69419531)
F (RTE/Device/STM32F103RB/RTE_Device.h)(0x69419531)()
F (RTE/Device/STM32F103RB/startup_stm32f10x_md.s)(0x69419531)(--target=arm-arm-none-eabi -mcpu=cortex-m3 -masm=auto -Wa,armasm,--diag_suppress=A1950W -c -gdwarf-4 -Wa,armasm,--pd,"__EVAL SETA 1" -I ./Pilotes/Source -I ./Pilotes/Include -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -Wa,armasm,--pd,"__UVISION_VERSION SETA 543" -Wa,armasm,--pd,"STM32F10X_MD SETA 1" -Wa,armasm,--pd,"_RTE_ SETA 1" -o ./objects/startup_stm32f10x_md.o)
F (RTE/Device/STM32F103RB/system_stm32f10x.c)(0x69419531)(-xc --target=arm-arm-none-eabi -mcpu=cortex-m3 -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__EVAL -gdwarf-4 -O0 -ffunction-sections -Wall -Wextra -Wno-packed -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ./Pilotes/Include -I ./Pilotes/Source -I ./Services/Source -I ./Services/Include -I . -I ./Objects -I./RTE/Device/STM32F103RB -I./RTE/_Simulation -IF:/travail/pack/ARM/CMSIS/6.2.0/CMSIS/Core/Include -IF:/travail/pack/Keil/STM32F1xx_DFP/2.4.1/Device/Include -D__UVISION_VERSION="543" -DSTM32F10X_MD -D_RTE_ -o ./objects/system_stm32f10x.o -MMD)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h)(0x693EBC49)
I (RTE\_Simulation\RTE_Components.h)(0x69419537)
I (F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h)(0x693EB9A0)
I (F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h)(0x693EBC49)

View file

@ -1,7 +1,7 @@
./objects/accelerometre.o: Services\Source\Accelerometre.c \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\Horloge.h Pilotes\Include\MySPI.h \
Services\Include\Accelerometre.h Services\Include\Servo.h

Binary file not shown.

View file

@ -1,6 +1,6 @@
./objects/drivergpio.o: Pilotes\Source\DriverGPIO.c \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\DriverGPIO.h

Binary file not shown.

View file

@ -1,7 +1,7 @@
./objects/girouette.o: Services\Source\Girouette.c \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\Timer.h Pilotes\Include\DriverGPIO.h \
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\Horloge.h Pilotes\Include\DriverGPIO.h \
Services\Include\Girouette.h Pilotes\Include\PWM.h

Binary file not shown.

View file

@ -1,6 +1,6 @@
./objects/horloge.o: Pilotes\Source\Horloge.c \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\Horloge.h

Binary file not shown.

View file

@ -1,6 +1,6 @@
./objects/i2c.o: Pilotes\Source\I2C.c \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\I2C.h

Binary file not shown.

View file

@ -1,6 +1,6 @@
./objects/mygpio.o: Pilotes\Source\MYGPIO.c \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\MYGPIO.h

Binary file not shown.

Binary file not shown.

View file

@ -1,6 +1,6 @@
./objects/myuart.o: Pilotes\Source\MyUart.c \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\DriverGPIO.h Pilotes\Include\MyTimer.h
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\DriverGPIO.h

Binary file not shown.

7
Objects/plateau.d Normal file
View file

@ -0,0 +1,7 @@
./objects/plateau.o: Services\Source\Plateau.c \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\PWM.h Pilotes\Include\DriverGPIO.h \
Pilotes\Include\Horloge.h

BIN
Objects/plateau.o Normal file

Binary file not shown.

View file

@ -1,8 +1,9 @@
./objects/principal.o: Application\principal.c \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\Horloge.h Services\Include\Accelerometre.h \
Services\Include\Girouette.h Services\Include\Servo.h \
Pilotes\Include\I2C.h
Pilotes\Include\I2C.h Services\Include\MyUart.h \
Services\Include\Plateau.h

Binary file not shown.

View file

@ -1,6 +1,6 @@
./objects/pwm.o: Pilotes\Source\PWM.c \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\PWM.h

Binary file not shown.

View file

@ -1,7 +1,7 @@
./objects/servo.o: Services\Source\Servo.c Services\Include\Servo.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h \
Pilotes\Include\DriverGPIO.h Pilotes\Include\PWM.h \
Pilotes\Include\Horloge.h

Binary file not shown.

View file

@ -1,5 +1,5 @@
./objects/system_stm32f10x.o: RTE\Device\STM32F103RB\system_stm32f10x.c \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h \
RTE\_Simulation\RTE_Components.h \
C:\users\klinx\AppData\Local\Arm\Packs\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
C:\users\klinx\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h
F:\travail\pack\ARM\CMSIS\6.2.0\CMSIS\Core\Include\core_cm3.h \
F:\travail\pack\Keil\STM32F1xx_DFP\2.4.1\Device\Include\system_stm32f10x.h

Binary file not shown.

Binary file not shown.

View file

@ -14,4 +14,6 @@ extern int MyGPIO_Read(GPIO_TypeDef * GPIO, char GPIO_Pin); // renvoie 0 ou autr
extern void MyGPIO_Set(GPIO_TypeDef * GPIO, char GPIO_Pin);
extern void MyGPIO_Reset(GPIO_TypeDef * GPIO, char GPIO_Pin);
extern void MyGPIO_Toggle(GPIO_TypeDef * GPIO, char GPIO_Pin);
void MYGPIO_PinOn (GPIO_TypeDef *GPIO , char GPIO_Pin);
void MYGPIO_PinOff (GPIO_TypeDef *GPIO , char GPIO_Pin);
#endif

8
Pilotes/Include/RTC.h Normal file
View file

@ -0,0 +1,8 @@
#ifndef RTC_H_
#define RTC_H_
#include <stm32f10x.h>
initRTC();
int getTime();
#endif // RTC_H_

View file

@ -77,6 +77,15 @@ void MyGPIO_Reset(GPIO_TypeDef * GPIO, char GPIO_Pin) {
}
void MYGPIO_PinOn (GPIO_TypeDef *GPIO , char GPIO_Pin){
GPIO->ODR |= (1<<GPIO_Pin);
};
void MYGPIO_PinOff (GPIO_TypeDef *GPIO , char GPIO_Pin){
GPIO->ODR &= ~(1<<GPIO_Pin);
};
void MyGPIO_Toggle(GPIO_TypeDef * GPIO, char GPIO_Pin) {
GPIO -> ODR = GPIO -> ODR ^ (0x1 << GPIO_Pin);
}

View file

@ -29,6 +29,15 @@ void Timer_Init(TIM_TypeDef *Timer, unsigned short Autoreload, unsigned short Pr
}
//La fonction TIM2_IRQHandler existe déjà dans le processeur, on l'a juste redifint, tel qu'à chaque overflow on met un bit 1 dans GPIOA_ODR
void TIM2_IRQHandler(void) { //On redefinit le IRQHandler qui est déjà ecrit dans le code source
if (TIM2->SR & TIM_SR_UIF) { //On met le bit de overflow à un dès qu'on a overflow
TIM2->SR &= ~TIM_SR_UIF; //Remise à zero
if (TIM2_Appel){TIM2_Appel();}
}
}
void MyTimer_ActiveIT(TIM_TypeDef * Timer, char Prio, void(*Interrupt_fonc)(void)) { //On veut créer une fonction qui envoie un signal au cas où il y a debordement, avec une prioritaire, 0 plus importante 15 moins importante
if (Timer == TIM2) {
TIM2_Appel = Interrupt_fonc;

View file

@ -1,16 +1,17 @@
#include <stm32f10x.h>
#include "stm32f10x.h"
#include "DriverGPIO.h"
void My_USART_Config(USART_TypeDef* USARTx, uint32_t baudrate) { //QUE POUR USART1
// Configuration PA9 (Tx) en Alternate Function Push-Pull
MyGPIO_Init(GPIOA, 9 , 0xB);
MyGPIO_Init(GPIOA, 9 , AltOut_Ppull);
// Configuration PA10 (Rx) en Input Floating
MyGPIO_Init(GPIOA, 10 , 0x4);
MyGPIO_Init(GPIOA, 10 , In_Floating);
NVIC_EnableIRQ(USART1_IRQn);
NVIC_SetPriority(USART1_IRQn, 3<<4);
RCC->APB2ENR |= RCC_APB2ENR_USART1EN;
// USARTx->CR2 |= USART_CR2_CLKEN;
USARTx->CR1 |= USART_CR1_UE;
USARTx->BRR = baudrate;
USARTx->CR1 |= USART_CR1_TE;
@ -20,35 +21,35 @@ void My_USART_Config(USART_TypeDef* USARTx, uint32_t baudrate) { //QUE POUR USAR
void USART_Send_Char(USART_TypeDef* USARTx, char car) {
while ((USARTx->SR & USART_SR_TXE)==0){}
while ((USARTx->SR & USART_SR_TXE)==0){
}
USARTx->DR = car;
};
void USART_Send_String(USART_TypeDef *USARTx, char *pString) {
while (*pString != '\0') {
void USART_Send_String(USART_TypeDef *USARTx, char *pString)
{
while (*pString != '\0')
{
USART_Send_Char(USARTx, *pString);
pString++;
}
};
void (*pFnc_Receive)(char);
void (*pFnc_Receive) (int);
void USART_IT_Receive_Enable(USART_TypeDef* USARTx) {
USARTx->CR1 |= USART_CR1_RXNEIE;
};
void Init_IT_Receive(void (*Receive_IT_function) (char)){
void Init_IT_Receive(void (*Receive_IT_function) (int)){
pFnc_Receive = Receive_IT_function;
};
void USART1_IRQHandler(void){
signed char commande = USART1->DR;
int commande_int = (int) commande;
if (pFnc_Receive != 0) {
pFnc_Receive(commande);
pFnc_Receive(commande_int);
}
};

3718
ProjetVoilier.uvguix.T490s Normal file

File diff suppressed because one or more lines are too long

View file

@ -453,6 +453,18 @@
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>6</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\Services\Source\Plateau.c</PathWithFileName>
<FilenameWithoutPath>Plateau.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
</Group>
<Group>
@ -463,7 +475,7 @@
<RteFlg>0</RteFlg>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>6</FileNumber>
<FileNumber>7</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
@ -475,7 +487,7 @@
</File>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>7</FileNumber>
<FileNumber>8</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
@ -487,7 +499,7 @@
</File>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>8</FileNumber>
<FileNumber>9</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
@ -497,18 +509,6 @@
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>9</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\Pilotes\Source\MyTimer.c</PathWithFileName>
<FilenameWithoutPath>MyTimer.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>10</FileNumber>
@ -525,19 +525,7 @@
<GroupNumber>3</GroupNumber>
<FileNumber>11</FileNumber>
<FileType>1</FileType>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\Pilotes\Source\Timer.c</PathWithFileName>
<FilenameWithoutPath>Timer.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>3</GroupNumber>
<FileNumber>12</FileNumber>
<FileType>1</FileType>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\Pilotes\Source\I2C.c</PathWithFileName>

View file

@ -414,6 +414,11 @@
<FileType>1</FileType>
<FilePath>.\Services\Source\Servo.c</FilePath>
</File>
<File>
<FileName>Plateau.c</FileName>
<FileType>1</FileType>
<FilePath>.\Services\Source\Plateau.c</FilePath>
</File>
</Files>
</Group>
<Group>
@ -434,21 +439,11 @@
<FileType>1</FileType>
<FilePath>.\Pilotes\Source\MYGPIO.c</FilePath>
</File>
<File>
<FileName>MyTimer.c</FileName>
<FileType>1</FileType>
<FilePath>.\Pilotes\Source\MyTimer.c</FilePath>
</File>
<File>
<FileName>PWM.c</FileName>
<FileType>1</FileType>
<FilePath>.\Pilotes\Source\PWM.c</FilePath>
</File>
<File>
<FileName>Timer.c</FileName>
<FileType>1</FileType>
<FilePath>.\Pilotes\Source\Timer.c</FilePath>
</File>
<File>
<FileName>I2C.c</FileName>
<FileType>1</FileType>
@ -872,6 +867,11 @@
<FileType>1</FileType>
<FilePath>.\Services\Source\Servo.c</FilePath>
</File>
<File>
<FileName>Plateau.c</FileName>
<FileType>1</FileType>
<FilePath>.\Services\Source\Plateau.c</FilePath>
</File>
</Files>
</Group>
<Group>
@ -892,21 +892,11 @@
<FileType>1</FileType>
<FilePath>.\Pilotes\Source\MYGPIO.c</FilePath>
</File>
<File>
<FileName>MyTimer.c</FileName>
<FileType>1</FileType>
<FilePath>.\Pilotes\Source\MyTimer.c</FilePath>
</File>
<File>
<FileName>PWM.c</FileName>
<FileType>1</FileType>
<FilePath>.\Pilotes\Source\PWM.c</FilePath>
</File>
<File>
<FileName>Timer.c</FileName>
<FileType>1</FileType>
<FilePath>.\Pilotes\Source\Timer.c</FilePath>
</File>
<File>
<FileName>I2C.c</FileName>
<FileType>1</FileType>

View file

@ -1,6 +1,6 @@
/*
* UVISION generated file: DO NOT EDIT!
* Generated by: uVision version 5.42.0.0
* Generated by: uVision version 5.43.1.0
*
* Project: 'ProjetVoilier'
* Target: 'Reel'

View file

@ -1,6 +1,6 @@
/*
* UVISION generated file: DO NOT EDIT!
* Generated by: uVision version 5.42.0.0
* Generated by: uVision version 5.43.1.0
*
* Project: 'ProjetVoilier'
* Target: 'Simulation'

View file

@ -0,0 +1,7 @@
#include "stm32f10x.h"
void My_USART_Config(USART_TypeDef* , uint32_t );
void USART_Send_Char(USART_TypeDef* , char );
void USART_Send_String(USART_TypeDef*, char*);
void USART_IT_Receive_Enable(USART_TypeDef*);
void Init_IT_Receive(void (*Receive_IT_function) (int));

View file

@ -0,0 +1,4 @@
#include "stm32f10x.h"
void initPlato(TIM_TypeDef * Timer, int Channel);
void Update_Motor_PWM(int Consigne, TIM_TypeDef * Timer, int Channel);

38
Services/Source/Plateau.c Normal file
View file

@ -0,0 +1,38 @@
#include "stm32f10x.h"
#include "PWM.h"
#include "DriverGPIO.h"
#include "Horloge.h"
void initPlato(TIM_TypeDef * Timer, int Channel){ // Config du moteur servo
MyGPIO_Init(GPIOB, 5, AltOut_Ppull); //config pin de direction 0 ou 1
if (Timer == TIM3) {
Timer_Init(TIM3, 159, 17); // Pour obtenir fréq de 20kHZ
if (Channel == 3){
MyGPIO_Init(GPIOB, 0, AltOut_Ppull); // Outut push pull alternate, config pin de consigne entre -100 et 100
MyTimer_PWM(TIM3, 3); //TIM3 CH3
}
else{
//printf("Ce pilote n'existe pas");
}
}
else{
//printf("Ce pilote n'existe pas");
}
}
void Update_Motor_PWM(int Consigne, TIM_TypeDef * Timer, int Channel) {
int duty_cycle;
if (Consigne>=0){
MYGPIO_PinOn(GPIOB, 5);
duty_cycle = Consigne;
};
if (Consigne<0){
MYGPIO_PinOff(GPIOB,5);
duty_cycle = -Consigne;
};
Set_DutyCycle_PWM(Timer, Channel, duty_cycle);
}

12
Services/Source/RTC.c Normal file
View file

@ -0,0 +1,12 @@
#include "RTC.h"
initRTC(){
RTC -> PRLL = 0x7FFF; // Obtenir un période de 1 seconde
RTC -> PRLH = 0xFFFF; // Le plus grand possible
}
int getTime(){
return(RTC -> PRLH);
}