добавила дефайны, необходимые для некоторых библиотек
This commit is contained in:
1 parent
cb95c51a3f
commit
fbe6abaa4f
1 file changed
+4
@@ -24,6 +24,10 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define clockCyclesPerMicrosecond() (F_CPU / 1000000L)
|
||||||
|
#define clockCyclesToMicroseconds(a) ((a) / clockCyclesPerMicrosecond())
|
||||||
|
#define microsecondsToClockCycles(a) ((a) * clockCyclesPerMicrosecond())
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Initialize timer for creating delays
|
* \brief Initialize timer for creating delays
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in new issue
Block a user