26 lines
765 B
C
26 lines
765 B
C
/*
|
|
* util.h
|
|
*
|
|
* Created: 17-10-17 20:59:25
|
|
* Author: Adrien
|
|
*/
|
|
|
|
|
|
#ifndef UTIL_H_
|
|
#define UTIL_H_
|
|
#include <stdint.h>
|
|
typedef enum {A0=14, A1, A2, A3, A4, A5} AnalogPin;
|
|
uint8_t uint8ToBCD(uint8_t val);
|
|
volatile uint8_t *pinToPINX(uint8_t pin);
|
|
uint8_t pinArduinoToPINXX(uint8_t pin);
|
|
void setupMilis();
|
|
unsigned long millis();
|
|
void intTo4DigitArray(unsigned int d, uint8_t * array, uint8_t arrayMax);
|
|
unsigned int millisToHHMM();
|
|
void millisToHH_MM(uint8_t * HH, uint8_t *MM);
|
|
void millisToHH_MM_Decalage(uint8_t * HH, uint8_t *MM, unsigned long decalage);
|
|
unsigned long HHMMToMillis(unsigned int HHMM);
|
|
unsigned int HH_MMtoHHMM(uint8_t HH, uint8_t MM);
|
|
void HHMMtoHH_MM(uint8_t HHMM, uint8_t * HH, uint8_t *MM);
|
|
uint8_t VerifappuisBP();
|
|
#endif /* UTIL_H_ */ |