File tree Expand file tree Collapse file tree 5 files changed +555
-12
lines changed Expand file tree Collapse file tree 5 files changed +555
-12
lines changed Original file line number Diff line number Diff line change 60
60
61
61
ifneq (,$(filter cc2420,$(USEMODULE)))
62
62
USEMODULE += netdev_802154
63
- USEMODULE += transceiver
64
63
USEMODULE += ieee802154
65
64
endif
66
65
Original file line number Diff line number Diff line change 133
133
#define TRANSCEIVER_MC1322X (0x08) ///< MC1322X transceivers
134
134
#define TRANSCEIVER_NATIVE (0x10) ///< NATIVE transceivers
135
135
#define TRANSCEIVER_AT86RF231 (0x20) ///< AT86RF231 transceivers
136
+ #define TRANSCEIVER_NETAPI (0x30) ///< netapi compatible L* layers
136
137
137
138
/**
138
139
* @brief Data type for transceiver specification
@@ -146,6 +147,10 @@ typedef uint64_t transceiver_eui64_t;
146
147
147
148
/**
148
149
* @brief Message types for transceiver interface
150
+ *
151
+ * @note **ATTENTION:** Packages received from a netapi layer are neither
152
+ * of type radio_packet_t nor ieee802154_packet_t as they normally are
153
+ * (depending on the radio), but netapi_rcv_pkt_t!
149
154
*/
150
155
enum transceiver_msg_type_t {
151
156
/* Message types for driver <-> transceiver communication */
Original file line number Diff line number Diff line change @@ -261,6 +261,22 @@ typedef struct {
261
261
} netapi_reg_t ;
262
262
263
263
264
+ #ifdef MODULE_TRANSCEIVER
265
+ /**
266
+ * @brief PID for a netapi layer, when used with the transceiver module.
267
+ *
268
+ * @detail This variable is only needed, iff this definitions are used with
269
+ * the transceiver module in legacy applications. Needs to be set
270
+ * externaly (e. g. the layer, that uses netapi). Guard it against
271
+ * other layers using netapi with the transceiver with
272
+ * the macro `HAS_NETAPI_PID`, the transceiver module will check
273
+ * if it is there and only than allow adapter capabilities. Since
274
+ * only one netapi layer can be used with this hack, it is
275
+ * advised to let only layers below network layer use this.
276
+ */
277
+ extern kernel_pid_t netapi_pid ;
278
+ #endif /* MODULE_TRANSCEIVER */
279
+
264
280
#ifdef MODULE_NETAPI /* Only include if module netapi is compiled */
265
281
/**
266
282
* @brief Sends a command to a protocol's control thread.
Original file line number Diff line number Diff line change 1
- ifneq (,$(filter cc2420,$(USEMODULE ) ) )
2
- INCLUDES += -I$(RIOTBASE)/sys/net/include
3
- endif
4
-
5
- ifneq (,$(filter at86rf231,$(USEMODULE ) ) )
6
- INCLUDES += -I$(RIOTBASE)/sys/net/include
7
- endif
8
-
9
- ifneq (,$(filter mc1322x,$(USEMODULE ) ) )
10
- INCLUDES += -I$(RIOTBASE)/sys/net/include
11
- endif
1
+ INCLUDES += -I$(RIOTBASE ) /sys/net/include
12
2
13
3
include $(RIOTBASE ) /Makefile.base
You can’t perform that action at this time.
0 commit comments