Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of cc3100_Test_Demo by
Diff: simplelink/cc3100_netapp.cpp
- Revision:
- 2:b3fd5b3d9860
- Parent:
- 0:e89ba455dbcf
--- 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)
