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 mbed-dev by
Diff: targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.cpp
- Revision:
- 170:e3b6fe271b81
- Parent:
- 168:e84263d55307
- Child:
- 173:7d866c31b3c5
--- a/targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.cpp Thu Jul 06 15:42:05 2017 +0100 +++ b/targets/TARGET_Realtek/TARGET_AMEBA/RTWInterface.cpp Wed Jul 19 17:31:21 2017 +0100 @@ -85,12 +85,14 @@ return RTW_SUCCESS; } -RTWInterface::RTWInterface() +RTWInterface::RTWInterface(bool debug) : _dhcp(true), _ip_address(), _netmask(), _gateway() { emac_interface_t *emac; int ret; + extern u32 GlobalDebugEnable; + GlobalDebugEnable = debug?1:0; emac = wlan_emac_init_interface(); if (!emac) { printf("Error init RTWInterface!\r\n");