Skip to content

Commit

Permalink
fixup! libschc_gnrc / gnrc_schc: Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Oct 17, 2022
1 parent 9b286dd commit 5db7bfc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions makefiles/pseudomodules.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ PSEUDOMODULES += gnrc_nettype_lwmac
PSEUDOMODULES += gnrc_nettype_ndn
## @}

## @defgroup net_gnrc_nettype_schc gnrc_nettype_schc
## Enables @ref GNRC_NETTYPE_SCHC
## @{
PSEUDOMODULES += gnrc_nettype_schc
## @}

## @defgroup net_gnrc_nettype_sixlowpan gnrc_nettype_sixlowpan
## Enables @ref GNRC_NETTYPE_SIXLOWPAN
## @{
Expand Down
8 changes: 4 additions & 4 deletions sys/include/net/gnrc/nettype.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ typedef enum {
GNRC_NETTYPE_NETIF = -1,
GNRC_NETTYPE_UNDEF = 0, /**< Protocol is undefined */

#if IS_USED(MODULE_GNRC_NETTYPE_SCHC) || defined(DOXYGEN)
GNRC_NETTYPE_SCHC, /**< Protocol is SCHC */
#endif

/**
* @{
* @name Link layer
Expand All @@ -84,6 +80,10 @@ typedef enum {
GNRC_NETTYPE_SIXLOWPAN, /**< Protocol is 6LoWPAN */
#endif

#if IS_USED(MODULE_GNRC_NETTYPE_SCHC) || defined(DOXYGEN)
GNRC_NETTYPE_SCHC, /**< Protocol is SCHC */
#endif

#if IS_USED(MODULE_GNRC_NETTYPE_LORAWAN) || defined(DOXYGEN)
GNRC_NETTYPE_LORAWAN, /**< Protocol is LoRaWAN */
#endif
Expand Down

0 comments on commit 5db7bfc

Please # to comment.