test
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");