The final project of Embedde class.

Dependencies:   C12832 LM75B ESP-call MMA7660

TIMER/TIMER.h

Committer:
pkr7098
Date:
2021-06-03
Revision:
2:37756b51ccdb
Parent:
1:ed1c6618f739

File content as of revision 2:37756b51ccdb:

#ifndef _TIMER_H
#define _TIMER_H

#include "mbed.h"
#include "JOYSTICK.h"

extern int timerHour;
extern int timerMinute;
extern int timerSecond;
extern Semaphore semaphoreTimer;
extern Semaphore semaphoreModify;
extern Semaphore semaphoreModifyThread;
extern int MODE_MODIFY_TIME;

#define ABLE_TO_MODIFY_TIME 0
#define UNABLE_TO_MODIFY_TIME   1

#define JOYSTICK_CLICK_DELAY    200
void timerModifyTimeMode(void);
void timerInit(void);
void timerTerminateTimeModify(void);
void timerStartTimeModify(void);
#endif