Skip to content

Commit

Permalink
don't include hardware specific code by default in MBED wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
cjhdev committed Mar 14, 2021
1 parent 9c09069 commit f4291ae
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
5 changes: 5 additions & 0 deletions examples/mbed/bare_metal/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#include "mbed_ldl.h"

#include "hw/cmwx1zzabz.h"
#include "hw/sx1272mb2xas.h"
#include "hw/sx126xmb2xas.h"
#include "hw/nucleo_wl55jc.h"

const uint8_t app_key[] = MBED_CONF_APP_APP_KEY;
const uint8_t nwk_key[] = MBED_CONF_APP_NWK_KEY;
const uint8_t dev_eui[] = MBED_CONF_APP_DEV_EUI;
Expand Down
4 changes: 4 additions & 0 deletions examples/mbed/rtos/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "mbed_ldl.h"

#include "hw/sx1272mb2xas.h"
#include "hw/sx126xmb2xas.h"
#include "hw/nucleo_wl55jc.h"

const uint8_t app_key[] = MBED_CONF_APP_APP_KEY;
const uint8_t nwk_key[] = MBED_CONF_APP_NWK_KEY;
const uint8_t dev_eui[] = MBED_CONF_APP_DEV_EUI;
Expand Down
1 change: 0 additions & 1 deletion wrappers/mbed/mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ using namespace LDL;
/* constructors *******************************************************/

MAC::MAC(Store &store, SM &sm, Radio &radio) :
signal(A0, 0),
radio(radio),
sm(sm),
store(store)
Expand Down
2 changes: 0 additions & 2 deletions wrappers/mbed/mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ namespace LDL {

} run_state;

DigitalOut signal;

struct ldl_mac mac;
Radio& radio;
SM& sm;
Expand Down
5 changes: 0 additions & 5 deletions wrappers/mbed/mbed_ldl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,4 @@
#include "sx126x.h"
#include "wl55.h"

#include "hw/cmwx1zzabz.h"
#include "hw/sx1272mb2xas.h"
#include "hw/sx126xmb2xas.h"
#include "hw/nucleo_wl55jc.h"

#endif

0 comments on commit f4291ae

Please sign in to comment.