24 lines
583 B
C
24 lines
583 B
C
// RIEN A MODIFIER //
|
|
|
|
#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 get_battery_level(void);
|
|
int is_level_enough(void);
|
|
|
|
|
|
#endif
|