26 lines
652 B
C
26 lines
652 B
C
// RIEN A MODIFIER //
|
|
|
|
//codé par Léonie GALLOIS et Morgane FOUSSATS
|
|
|
|
#ifndef ALIMENTATION_H
|
|
#define ALIMENTATION_H
|
|
|
|
|
|
|
|
#include "stm32f103xb.h"
|
|
#include "stm32f1xx_ll_adc.h"
|
|
#include "stm32f1xx_ll_bus.h"
|
|
#include "stm32f1xx_ll_rcc.h"
|
|
#include "stm32f1xx_ll_gpio.h"
|
|
#include "math.h"
|
|
|
|
/* =====================================================================================
|
|
Les fonctions qui gèrent les IO (ajout par rapport à l'activité 1)
|
|
=======================================================================================*/
|
|
|
|
void ALIMENTATION_Init(void);
|
|
float ALIMENTATION_GetBatteryLevel(void);
|
|
int ALIMENTATION_IsLevelEnough(void);
|
|
|
|
|
|
#endif
|