Reduce STM32F4 compile warnings
This commit is contained in:
parent
ccef14e2b2
commit
606a4362b3
|
@ -110,6 +110,7 @@
|
||||||
#define NUM_SERIAL 1
|
#define NUM_SERIAL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef _BV
|
||||||
#define _BV(b) (1 << (b))
|
#define _BV(b) (1 << (b))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#ifndef _FASTIO_STM32F4_H
|
#ifndef _FASTIO_STM32F4_H
|
||||||
#define _FASTIO_STM32F4_H
|
#define _FASTIO_STM32F4_H
|
||||||
|
|
||||||
|
#undef _BV
|
||||||
#define _BV(b) (1 << (b))
|
#define _BV(b) (1 << (b))
|
||||||
|
|
||||||
#define USEABLE_HARDWARE_PWM(p) true
|
#define USEABLE_HARDWARE_PWM(p) true
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
#define NANOSECONDS_PER_CYCLE (1000000000.0 / F_CPU)
|
#define NANOSECONDS_PER_CYCLE (1000000000.0 / F_CPU)
|
||||||
|
|
||||||
// Remove compiler warning on an unused variable
|
// Remove compiler warning on an unused variable
|
||||||
#define UNUSED(x) (void) (x)
|
#define UNUSED(x) ((void)(x))
|
||||||
|
|
||||||
// Macros to make a string from a macro
|
// Macros to make a string from a macro
|
||||||
#define STRINGIFY_(M) #M
|
#define STRINGIFY_(M) #M
|
||||||
|
|
Loading…
Reference in a new issue