1
0
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:
Werner Almesberger
2010-11-11 02:25:54 -03:00
parent c45f1bb3c8
commit 2337557a8c
5 changed files with 59 additions and 3 deletions

View File

@@ -30,5 +30,6 @@
#define nRST_RF P2_0
#define IRQ_RF P0_0
#define SLP_TR P2_1
#define TST P0_7
#endif /* !IO_H */