add working routines to turn the mc1322x radio on and off

This commit is contained in:
Mariano Alvira 2013-02-03 14:48:38 -05:00
parent f57ccf41e7
commit ad55ccdec4
3 changed files with 68 additions and 10 deletions

View file

@ -89,6 +89,10 @@ void ResumeMACASync(void);
void radio_init(void);
uint32_t init_from_flash(uint32_t addr);
/* maca_pwr indicates whether the radio is on or off */
/* Test it before accessing any radio function or the CPU may hang */
extern volatile uint8_t maca_pwr;
#define MAX_PACKET_SIZE (MAX_PAYLOAD_SIZE + 2) /* packet includes 2 bytes of checksum */
/* maca register and field defines */