Prusa MINI Firmware overview
wiring.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include "binary.h"
#include "itoa.h"
#include "wiring_analog.h"
#include "wiring_constants.h"
#include "wiring_digital.h"
#include "wiring_time.h"

Go to the source code of this file.

Macros

#define clockCyclesPerMicrosecond()   (SystemCoreClock / 1000000L)
 
#define clockCyclesToMicroseconds(a)   (((a)*1000L) / (SystemCoreClock / 1000L))
 
#define microsecondsToClockCycles(a)   ((a) * (SystemCoreClock / 1000000L))
 

Macro Definition Documentation

◆ clockCyclesPerMicrosecond

#define clockCyclesPerMicrosecond ( )    (SystemCoreClock / 1000000L)

◆ clockCyclesToMicroseconds

#define clockCyclesToMicroseconds (   a)    (((a)*1000L) / (SystemCoreClock / 1000L))

◆ microsecondsToClockCycles

#define microsecondsToClockCycles (   a)    ((a) * (SystemCoreClock / 1000000L))