added guhRF; added atmega256rfr2 support
This commit is contained in:
parent
9a3c6adf8d
commit
79df347afa
115 changed files with 13276 additions and 23 deletions
|
@ -78,6 +78,7 @@
|
|||
#define ZIGBIT 4
|
||||
#define IRIS 5
|
||||
#define ATMEGA128RFA1 6
|
||||
#define ATMEGA256RFR2 7
|
||||
|
||||
#if PLATFORM_TYPE == RCB_B
|
||||
/* 1281 rcb */
|
||||
|
@ -140,7 +141,7 @@
|
|||
# define SLPTRPORT B
|
||||
# define SLPTRPIN (0x04)
|
||||
|
||||
#elif PLATFORM_TYPE == ATMEGA128RFA1
|
||||
#elif PLATFORM_TYPE == ATMEGA128RFA1 || PLATFORM_TYPE == ATMEGA256RFR2
|
||||
/* ATmega1281 with internal AT86RF231 radio */
|
||||
# define SLPTRPORT TRXPR
|
||||
# define SLPTRPIN 1
|
||||
|
@ -233,7 +234,7 @@
|
|||
* that the source code can directly use.
|
||||
* \{
|
||||
*/
|
||||
#if defined(__AVR_ATmega128RFA1__)
|
||||
#if defined(__AVR_ATmega128RFA1__) || defined(__AVR_ATmega256RFR2__)
|
||||
|
||||
#define hal_set_rst_low( ) ( TRXPR &= ~( 1 << TRXRST ) ) /**< This macro pulls the RST pin low. */
|
||||
#define hal_set_rst_high( ) ( TRXPR |= ( 1 << TRXRST ) ) /**< This macro pulls the RST pin high. */
|
||||
|
@ -367,7 +368,7 @@ typedef struct{
|
|||
void hal_init( void );
|
||||
|
||||
/* Hack for atmega128rfa1 with integrated radio. Access registers directly, not through SPI */
|
||||
#if defined(__AVR_ATmega128RFA1__)
|
||||
#if defined(__AVR_ATmega128RFA1__) || defined(__AVR_ATmega256RFR2__)
|
||||
//#define hal_register_read(address) _SFR_MEM8((uint16_t)address)
|
||||
#define hal_register_read(address) address
|
||||
uint8_t hal_subregister_read( uint16_t address, uint8_t mask, uint8_t position );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue