some refactoring

This commit is contained in:
Conor Patrick
2018-10-21 13:14:59 -04:00
parent fac29a5f7b
commit 77e2756cb7
9 changed files with 174 additions and 152 deletions

View File

@@ -0,0 +1,12 @@
#ifndef _DEVICE_H_
#define _DEVICE_H_
#include <stdint.h>
#include "stm32l4xx_ll_tim.h"
void delay(uint32_t ms);
#define millis() (((uint32_t)TIM6->CNT) | (__65_seconds<<16))
extern uint32_t __65_seconds;
#endif