TI's CC3100. A test demo with very little testing done!
Fork of cc3100_Test_Demo2 by
Diff: simplelink/cc3100_netapp.cpp
- Revision:
- 2:b3fd5b3d9860
- Parent:
- 0:e89ba455dbcf
diff -r c73566c6788a -r b3fd5b3d9860 simplelink/cc3100_netapp.cpp --- a/simplelink/cc3100_netapp.cpp Tue Feb 10 12:58:16 2015 +0000 +++ b/simplelink/cc3100_netapp.cpp Sun Feb 15 11:01:37 2015 +0000 @@ -46,18 +46,18 @@ #include "cc3100_netapp.h" #include "fPtr_func.h" +namespace mbed_cc3100 { + /*****************************************************************************/ /* Macro declarations */ /*****************************************************************************/ -#define NETAPP_MDNS_OPTIONS_ADD_SERVICE_BIT ((uint32_t)0x1 << 31) +const uint32_t NETAPP_MDNS_OPTIONS_ADD_SERVICE_BIT = ((uint32_t)0x1 << 31); #ifdef SL_TINY -#define NETAPP_MDNS_MAX_SERVICE_NAME_AND_TEXT_LENGTH 63 +const uint8_t NETAPP_MDNS_MAX_SERVICE_NAME_AND_TEXT_LENGTH = 63; #else -#define NETAPP_MDNS_MAX_SERVICE_NAME_AND_TEXT_LENGTH 255 +const uint8_t NETAPP_MDNS_MAX_SERVICE_NAME_AND_TEXT_LENGTH = 255; #endif - -namespace mbed_cc3100 { cc3100_netapp::cc3100_netapp(cc3100_driver &driver, cc3100_nonos &nonos) : _driver(driver), _nonos(nonos)