mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
atusd firmware now supports setting the TST pin.
- common/io.h: TST is connected to P0_7 - include/at86rf230.h: added test mode registers REG_CONT_TX_0 (0x36) and REG_CONT_TX_1 (0x3d), with their values - atspi/atspi.c (set_test_mode): set or reset TST and the LED - atspi/atspi.c (reset_rf): leave test mode - atspi/atspi.c (test_mode): enter test mode - atspi/atspi.c (main): flash the LED when in test mode - include/atspi/ep0.h (enum atspi_requests), atspi/ep0.c (my_setup): new command ATSPI_TEST to enter test mode - include/atspi/ep0.h (EP0ATSPI_MINOR): bumped protocol to version 0.1 - include/at86rf230.h: corrected comment before TRX_CMD field to indicate that the register is called TRX_STATE
This commit is contained in:
@@ -67,6 +67,9 @@ enum {
|
||||
REG_XAH_CTRL = 0x2c,
|
||||
REG_CSMA_SEED_0 = 0x2d,
|
||||
REG_CSMA_SEED_1 = 0x2e,
|
||||
|
||||
REG_CONT_TX_0 = 0x36,
|
||||
REG_CONT_TX_1 = 0x3d,
|
||||
};
|
||||
|
||||
/* --- TRX_STATUS [7] ------------------------------------------------------ */
|
||||
@@ -113,7 +116,7 @@ enum {
|
||||
TRAC_STATUS_INVALID = 7
|
||||
};
|
||||
|
||||
/* --- TRX_CMD [4:0] ----------------------------------------------------- */
|
||||
/* --- TRX_STATE [4:0] ----------------------------------------------------- */
|
||||
|
||||
#define TRX_CMD_SHIFT 0
|
||||
#define TRX_CMD_MASK 7
|
||||
@@ -285,4 +288,15 @@ enum {
|
||||
#define CSMA_SEED_1_SHIFT 0
|
||||
#define CSMA_SEED_1_MASK 7
|
||||
|
||||
/* --- REG_CONT_TX_0 [7:0] ------------------------------------------------- */
|
||||
|
||||
#define CONT_TX_MAGIC 0x0f
|
||||
|
||||
/* --- REG_CONT_TX_1 [7:0] ------------------------------------------------- */
|
||||
|
||||
#define CONT_TX_MOD 0x00 /* modulated */
|
||||
#define CONT_TX_M2M 0x10 /* f_CH-2 MHz */
|
||||
#define CONT_TX_M500K 0x80 /* f_CH-0.5 MHz */
|
||||
#define CONT_TX_P500K 0xc0 /* f_CH+0.5 MHz */
|
||||
|
||||
#endif /* !AT86RF230_H */
|
||||
|
||||
Reference in New Issue
Block a user