motor dc driver with lcd nextion nx8048t050_011

Dependencies:   mbed QEI_hw NVIC_set_all_priorities SoftPWM

https://os.mbed.com/media/uploads/exarkun/wp_20180730_002.jpg https://os.mbed.com/media/uploads/exarkun/wp_20180823_003.jpg https://os.mbed.com/media/uploads/exarkun/wp_20180730_007.jpg https://os.mbed.com/media/uploads/exarkun/wp_20171120_004.jpg

https://os.mbed.com/media/uploads/exarkun/wp_20191002_006.jpg https://os.mbed.com/media/uploads/exarkun/wp_20191002_003.jpg https://os.mbed.com/media/uploads/exarkun/wp_20191002_004.jpg https://os.mbed.com/media/uploads/exarkun/wp_20191002_005.jpg https://os.mbed.com/media/uploads/exarkun/wp_20190322_003.jpg https://os.mbed.com/media/uploads/exarkun/wp_20180925_002.jpg https://os.mbed.com/media/uploads/exarkun/wp_20181010_006.jpg https://os.mbed.com/media/uploads/exarkun/wp_20181220_001.jpg

https://os.mbed.com/media/uploads/exarkun/wp_20181220_002.jpg

Revision:
1:2fe82be93e80
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/timer.hpp	Fri Oct 18 13:14:40 2019 +0000
@@ -0,0 +1,73 @@
+/*
+#ifndef __TIMER__
+#define __TIMER__
+
+
+void initTimer(int Id, int timeout);
+
+#endif
+
+*/
+
+
+
+
+#ifndef INC_TIMERS_H_
+#define INC_TIMERS_H_
+
+
+#include "mbed.h"
+
+#define null 0
+//#define true 1
+//#define false 0
+
+//#include "lpc_types.h"
+//#include "cyblib.h"
+//#include "stdlib.h"
+
+    
+    typedef enum
+    {
+        autoReloadTimer = 0,
+        oneShotTimer = 1,
+    }Timer_option;
+
+
+    typedef struct TimerElement
+    {
+        struct TimerElement *next;
+        struct TimerElement *prev;
+        int nb_ms;
+        int oldTick;
+        int Id;
+        Timer_option option;
+    }TimerElement;
+
+    typedef struct Timers_Buffers
+    {
+        TimerElement *first;
+        int count;
+        int lastCall;
+    }Timers_Buffer;
+
+    
+    /*=======================================================================
+     *
+     *=======================================================================*/
+    void inittimerBuffer();
+
+    /*
+     * Id: identifiant de timer
+     * nbMsTimer: durée en ms
+     * option: autoReloadTimer/oneShotTimer
+     * */
+    void initTimer();
+    void startTimer(int Id, int nbMsTimer, Timer_option option);
+    bool IsTimerElapsed(int Id);
+    void killTimer(int Id);
+    void ResetTimer(int Id);
+    bool Wait2(int Id, int nbMs);
+
+
+#endif /* INC_TIMERS_H_ */