mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 13:27:32 +08:00
M_PI_4 and M_PI_2 added (not provided by avr-gcc)
This commit is contained in:
@@ -40,6 +40,14 @@ typedef uint8_t bool_t;
|
|||||||
/* Unit (void) values */
|
/* Unit (void) values */
|
||||||
typedef uint8_t unit_t;
|
typedef uint8_t unit_t;
|
||||||
|
|
||||||
|
#ifndef M_PI_4
|
||||||
|
#define M_PI_4 (M_PI/4)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef M_PI_2
|
||||||
|
#define M_PI_2 (M_PI/2)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef cbi
|
#ifndef cbi
|
||||||
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
|
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user