Skip to content

Commit

Permalink
removing old printk #defines
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Apr 15, 2013
1 parent a71694a commit 8d78318
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions cc2520.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
#include <linux/workqueue.h>
#include <linux/spinlock.h>

// Used to prevent timing-critical
// operations from being interfered with
// by the printk function.
//#define DBG(x) printk x
#define DBG(x) do {} while (0)
#define ERR(x) printk x
#define INFO(x) printk x

//////////////////////////////
// Configuration for driver
Expand Down Expand Up @@ -71,14 +64,14 @@
#define CC2520_DEF_EXT_ADDR 0x01

// All these timing parameters are in microseconds.
#define CC2520_DEF_ACK_TIMEOUT 2500
#define CC2520_DEF_ACK_TIMEOUT 2500
#define CC2520_DEF_MIN_BACKOFF 320
#define CC2520_DEF_INIT_BACKOFF 4960
#define CC2520_DEF_CONG_BACKOFF 2240
#define CC2520_DEF_CSMA_ENABLED true

// We go for around a 1% duty cycle of the radio
// for LPL stuff.
// for LPL stuff.
#define CC2520_DEF_LPL_WAKEUP_INTERVAL 512000
#define CC2520_DEF_LPL_LISTEN_WINDOW 5120
#define CC2520_DEF_LPL_ENABLED true
Expand All @@ -102,9 +95,9 @@ struct cc2520_interface {
// ALWAYS the length of the packet,
// including the length byte itself,
// excluding the automatically generated
// FCS bytes.
// FCS bytes.
// The packet should start with a valid
// 802.15.4 length.
// 802.15.4 length.
int (*tx)(u8 *buf, u8 len);
void (*tx_done)(u8 status);

Expand All @@ -131,7 +124,7 @@ struct cc2520_state {
// Hardware
struct cc2520_gpio_state gpios;
struct spi_device *spi_device;

// CURRENTLY UNUSED:
struct work_struct work; /* for deferred work */
struct workqueue_struct *wq;
Expand Down Expand Up @@ -462,4 +455,4 @@ enum cc2520_spi_command_enums
CC2520_CMD_REGISTER_WRITE = 0xC0, //
};

#endif
#endif

0 comments on commit 8d78318

Please sign in to comment.