Browse Source

drop #include for util.h which was not committed

master
Daniel Peter Chokola 2 years ago
parent
commit
417fded299
  1. 6
      Src/sx127x.c

6
Src/sx127x.c

@ -8,7 +8,6 @@
/* Includes */ /* Includes */
#include "sx127x.h" #include "sx127x.h"
#include "spi.h" #include "spi.h"
#include "util.h"
/* Definitions */ /* Definitions */
/* Common Registers */ /* Common Registers */
@ -211,6 +210,11 @@
#define RREG(x) ((x) & SX127X_READ_MASK) #define RREG(x) ((x) & SX127X_READ_MASK)
#define CS_ASSERT() do { sx127x->port->BSRR = sx127x->pin << 16; } while(0) #define CS_ASSERT() do { sx127x->port->BSRR = sx127x->pin << 16; } while(0)
#define CS_DEASSERT() do { sx127x->port->BSRR = sx127x->pin; } while(0) #define CS_DEASSERT() do { sx127x->port->BSRR = sx127x->pin; } while(0)
#define return_if_fail(cond) \
if(!(cond)) { return; }
#define return_val_if_fail(cond, val) \
if(!(cond)) { return (val); }
#define return_null_if_fail(cond) return_val_if_fail((cond), NULL)
/* Private Variables */ /* Private Variables */

Loading…
Cancel
Save