Skip to content

Release mbed-os-5.1.5 and mbed lib v127 #2850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 138 commits into from
Sep 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
fa2f0f0
Disable RTOS tests for STM32 8K targets
jeromecoutant Sep 12, 2016
6fe0a26
8K RAM target is too small for RTOS support
jeromecoutant Sep 12, 2016
a4f46e7
travis: revove rtos support for NUCLEO_L053R8
jeromecoutant Sep 12, 2016
60eb4dd
Change cthunk implementation + cm7 support
svastm Aug 23, 2016
d7f7880
Added u-blox C029 target
Sep 12, 2016
47736db
Fixed wrong flash size. Fixed duplicate RW_IRAM1 region.
Sep 12, 2016
0f00e12
Fixed wrong RAM start and added NVIC start.
Sep 12, 2016
cefd2fb
Aligned with STM32F429
Sep 12, 2016
bf1b1ca
classic mbed: bugfix can loop test
ohagendorf Sep 13, 2016
fa559d0
Enable uvisor
fvincenzo Jun 22, 2016
0278b5e
Backport virtual NVIC mechanism from CMSIS 5 on CM3
fvincenzo Jul 22, 2016
cbefe79
Add CMSIS 5 virtual NVIC compliancy
fvincenzo Jul 22, 2016
7fa2618
Disable fcache stats if uvisor is defined
fvincenzo Jul 22, 2016
3132cd7
Add platform to uvisor importer
fvincenzo Jul 22, 2016
1d0342f
Replaced usage of vendor specific register with basic registers when …
Sep 13, 2016
b2eb185
Avoid type collision by renaming callback variable
Sep 13, 2016
f44040a
lwip - Added checks for invalid state of network
geky Aug 26, 2016
f2681b6
STM32F7 - Add asynchronous serial
svastm Aug 29, 2016
dafd1cc
STM32F7 - Enable asynchronous serial
svastm Aug 29, 2016
d3e5b5c
STM32F7 - Add tests for asynchronous serial
svastm Aug 29, 2016
879bb85
Fixed bug on memap (non-default output path)
Sep 2, 2016
f90adf1
STM32F3xx - Add Serial RTS/CTS pins
bcostm Sep 5, 2016
98993cb
STM32F3xx - Enable SERIAL_FC in targets.json
bcostm Sep 5, 2016
c3c7beb
STM32F3xx - Fix build errors
bcostm Sep 12, 2016
8dba26a
STM32L1xx - Add Serial Flow Control pins
bcostm Sep 5, 2016
02b7823
NUCLEO_L152RE - Add SERIAL_FC macro
bcostm Sep 5, 2016
2432a58
STM32L1xx - Fix build error
bcostm Sep 12, 2016
2e37551
NUCLEO_F429ZI - Add SERIAL_FC macro
bcostm Sep 5, 2016
a6c4af3
Fix uvision group naming
sarahmarshy Sep 9, 2016
c509ab6
nsapi - Added equality operators to SocketAddress class
geky Sep 12, 2016
817f7c3
Microsecond ticker optimization
stevew817 Sep 12, 2016
3b91ea6
Add a gettingstarted.html to all exporters
theotherjimmy Sep 12, 2016
2864718
Fix exporter to pull root path
stevew817 Sep 12, 2016
8c303ba
Correct adding repo_files
theotherjimmy Sep 12, 2016
fc7c05d
Revise checking toolchain path
sarahmarshy Sep 12, 2016
b1820d8
Docstrings. Empty executable search path handling.
sarahmarshy Sep 13, 2016
d594177
Toolchain check generic in mbedToolchain
sarahmarshy Sep 13, 2016
ee8ed6d
Abstract check_executable added
sarahmarshy Sep 13, 2016
33472f4
STM32F0xx - Add support of ADC internal channels
bcostm Sep 12, 2016
9e1f5d1
STM32F0xx - Fix problem with channel 18 not present on all F0 devices
bcostm Sep 12, 2016
021fc3c
Add .fs_data symbol in data section for gcc. It is neede for folowing…
nvlsianpu Sep 13, 2016
c6f6253
Add device_has to all nrf51 devices
c1728p9 Sep 13, 2016
719cbd9
Add a inc_repos option to the exporters
theotherjimmy Sep 13, 2016
ece21c9
Changed 'serial_baud' implementation to make it possible to use baud …
anangl Sep 14, 2016
9831226
Made the constant array in serial_baud() static.
anangl Sep 14, 2016
12336f0
DISCO_L476VG: add SPI nicknames
jeromecoutant Sep 14, 2016
3218ef9
Remove "lib" and "lib64" from the mbed-OS .gitignore file: they do no…
RobMeades Sep 14, 2016
b886001
Add documentation about profiles to the toolcahins
theotherjimmy Sep 15, 2016
29808b8
KSDK serial_api.c: Fix assertion error for ParityEven
mmahadevan108 Sep 15, 2016
a03e8a8
Fixing missing import for os.path.exists
bridadan Sep 18, 2016
3581b98
Add asynchronous serial
svastm Aug 12, 2016
bff0bf7
Enable asynchronous serial
svastm Aug 12, 2016
75a678c
Add tests for asynchronous serial
svastm Aug 12, 2016
9c1c5ce
STM32F4 - Fix STM32F407VG target name
tung7970 Aug 29, 2016
0d95be0
LPC11U6X - Fix multiple definition of operator new/delete
tung7970 Aug 30, 2016
c50d655
make "macros_add" as a single line
TsungtaWu Sep 14, 2016
71e1157
lwip - Fixed error code on disconnect TCP socket
geky Sep 15, 2016
8fdf183
IPV4 feature hal files factorisation
jeromecoutant Sep 16, 2016
d47628c
move spi_s to common file
Aug 24, 2016
a16cc6f
SPI ASYNCH support
Aug 24, 2016
a37bee3
SPI: avoid duplicate information accross layers
Aug 16, 2016
72bf698
UTEST Spi Asynch
Aug 24, 2016
bcf7ee2
enable SPI ASYNCH
Aug 24, 2016
9323ad2
Simplify spi Asynch transfer implementation
Sep 13, 2016
e32999c
Avoid SPI spurious interrupt
Sep 13, 2016
642a777
fixup! UTEST Spi Asynch
Sep 21, 2016
3d7a978
Change default uvision exporter to uvision5
Sep 3, 2016
e79ce44
Minor fix to match with master
Sep 12, 2016
8972cef
Minor tweak on spaces
Sep 16, 2016
034e70f
correct INITIAL_SP
jeromecoutant Sep 6, 2016
10a5f47
STM32F070RB/STM32F072RB: RTOS tests
jeromecoutant Sep 7, 2016
85f4516
STM32F070RB/STM32F072RB: decrease thread_stack_main size
jeromecoutant Sep 7, 2016
26f8dd9
STM32F070RB/STM32F072RB: issue with some mbedmicro-rtos-mbed tests
jeromecoutant Sep 7, 2016
6c98b11
RTOS_1: patch correction
jeromecoutant Sep 7, 2016
7d99a20
STM32F3 - Add low power timer
svastm Sep 6, 2016
6493708
STM32F3 - Enable the low power timer
svastm Sep 6, 2016
b52c349
Update CONTRIBUTING.md
mintisan Sep 11, 2016
ea692cf
FEATURE_IPV4/TESTS: result status could be wrong
jeromecoutant Sep 19, 2016
3035d80
tcp_client_hello_worldminor update
jeromecoutant Sep 20, 2016
60e8839
tcp_client_hello_world K&R style
jeromecoutant Sep 20, 2016
a56b4ba
New build tests.
sarahmarshy Sep 20, 2016
ab22d5e
Refactor Target and Config away from global variables
theotherjimmy Sep 1, 2016
c438266
Add asynchronous serial
svastm Aug 10, 2016
4a80c3d
Enable asynchronous serial
svastm Aug 10, 2016
bda2c51
Add tests for asynchronous serial
svastm Aug 10, 2016
5d4dda9
Added support for ADC only pins in LPC43xx
marcosfg Aug 30, 2016
6b44a61
Updated with code style guidelines
marcosfg Sep 12, 2016
7026625
Update I2C Tests to support F411
Aug 31, 2016
ca0c4e8
Enable asynch I2C on NUCLEO_F411RE
Sep 1, 2016
295a748
Test Asynch I2C on F411RE
Sep 1, 2016
ee0f0e5
HAL Fix to support Master Rx w/ repeated start
Aug 31, 2016
9b204f8
Fix I2C byte transfer API to enable Master/Slave test on F411RE
Sep 1, 2016
72f17e6
Move i2c_s to common_objects.h
Sep 1, 2016
8312e6e
Extend asynch I2C to STM32F4 boards
Sep 2, 2016
b05350b
reduce footprint for i2c_s struct
Sep 13, 2016
839d4dc
Add IAR support for remaining Silicon Labs targets
stevew817 Sep 14, 2016
6bc1694
Add all platforms (except Zero) to mbed 5 build
stevew817 Sep 15, 2016
d525718
Remove HG from mbed 5
stevew817 Sep 16, 2016
f6ac1e8
Updated ARM linker scripts for Kinetis platforms that use SDK 2.0
mmahadevan108 Sep 14, 2016
cb54c48
Serial init timeout: increase default value
jeromecoutant Sep 16, 2016
a2e6ec2
Enabled feature IPV4 for C029
Sep 13, 2016
3026131
Added mbed_mac_address
Sep 16, 2016
1e40487
Replaced GCC specific __packed__ with generic MBED_PACKED
Sep 16, 2016
bef8c9f
STM32 / IPV4: #2685 has been forgotten with #2731
jeromecoutant Sep 19, 2016
c9d067b
Fix pin interrupt select offset
toyowata Sep 20, 2016
76b284e
break statement is on new line
toyowata Sep 23, 2016
f48517c
STM32L0xx - Add UART_RTS and CTS pins
bcostm Sep 20, 2016
9335bc6
STM32L0xx - Add SERIAL_FC in "device_has"
bcostm Sep 20, 2016
b15535b
Add CAN capability
jeromecoutant Sep 20, 2016
b70f02c
STM32F0 - Add low power timer
svastm Sep 9, 2016
1e3db15
STM32F0 - Enable the low power timer
svastm Sep 9, 2016
b8e62b4
STM32L1 - Add low power timer
svastm Sep 15, 2016
9d6a90f
STM32L1 - Enable the low power timer
svastm Sep 15, 2016
bd31ad7
STM32L4 - Add low power timer
svastm Sep 16, 2016
6bb052a
STM32L4 - Enable the low power timer
svastm Sep 16, 2016
db0ff69
STM32L4 - Update deepsleep implementation
svastm Sep 21, 2016
725352a
Update KSDK SDHC driver for K64F & K66F
mmahadevan108 Sep 21, 2016
df71f8e
Print percent complete when building
theotherjimmy Sep 13, 2016
e2d8699
MBED-OS5 capability
jeromecoutant Sep 23, 2016
644d9c5
RTOS tests update
jeromecoutant Sep 22, 2016
4ba1c42
Fixing constant cleaning when compiling tests
bridadan Sep 14, 2016
12f82a1
STM32L0 - Add low power timer
svastm Sep 15, 2016
209f729
STM32L0 - Enable the low power timer
svastm Sep 15, 2016
c4c771b
STM32F7 - Add low power timer
svastm Sep 16, 2016
0f8ed02
Removed --no_static_destruction from IAR IDE flags
sarahmarshy Sep 23, 2016
8514889
rebase support for MultiTech xDot platform
mfiore02 Aug 31, 2016
3610304
initial SP for ARM_STD build was set to 0x2008000 instead of 0x200080…
mfiore02 Sep 23, 2016
72353da
add SWD & UART pin names to match pinout diagram
mfiore02 Sep 26, 2016
c7045d0
include xDot in mbed 5 releases
mfiore02 Sep 27, 2016
fa22d4d
add IAR support
mfiore02 Sep 27, 2016
0f155b1
[XDOT_L151] add RTOS configuration for xDot
adbridge Sep 28, 2016
4cf91b9
Fix up targets.json to replace instances of default_lib that have crept
adbridge Sep 28, 2016
39fa771
Update MBED_LIBRARY_VERSION to 127
adbridge Sep 28, 2016
f41fc43
Update custom target handling
theotherjimmy Sep 1, 2016
815b285
Merge pull request #2852 from theotherjimmy/release-candidate
adbridge Sep 29, 2016
713ba35
Update XDOT_L151CC default build to "standard"
adbridge Sep 29, 2016
5ee8c3a
Add missing TARGET_XDOT_L151CC definition
adbridge Sep 29, 2016
b2d8e70
STM32F7 - Add low power timer
svastm Sep 16, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ var
sdist
develop-eggs
.installed.cfg
lib
lib64

# Installer logs
pip-log.txt
Expand Down
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Description
This document is cheat sheet for everyone who wants to contribute to mbedmicro/mbed GitHub repository at GitHub.
This document is cheat sheet for everyone who wants to contribute to [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os) GitHub repository at GitHub.
All changes in code base should originate from GitHub Issues and take advantage of existing GitHub flows. Goal is to attract contributors and allow them contribute to code and documentation at the same time.

Guidelines from this document are created to help new and existing contributors understand process workflow and align to project rules before pull request is submitted. It explains how a participant should do things like format code, test fixes, and submit patches.

## Where to get more information?
You can for example read more in our ```docs``` section in [mbedmicro/mbed/doc](https://github.com/PrzemekWirkus/mbed/tree/docs/docs) directory.
You can for example read more in our ```docs``` section in [ARMmbed/mbed-os/doc](https://github.com/ARMmbed/mbed-os/tree/master/docs) directory.

# How to contribute
We really appreciate your contributions! We are Open Source project and we need your help. We want to keep it as easy as possible to contribute changes that get things working in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.

Before a pull request will be merged, the [mbed Contributor Agreement](http://developer.mbed.org/contributor_agreement/) must be signed.

You can pick up existing [mbed GitHub Issue](https://github.com/mbedmicro/mbed/issues) and solve it or implement new feature you find important, attractive or just necessary. We will review your proposal via pull request mechanism, give you comments and merge your changes if we decide your contribution satisfy criteria such as quality.
You can pick up existing [mbed-os GitHub Issue](https://github.com/ARMmbed/mbed-os/issues) and solve it or implement new feature you find important, attractive or just necessary. We will review your proposal via pull request mechanism, give you comments and merge your changes if we decide your contribution satisfy criteria such as quality.

# Enhancements vs Bugs
Enhancements are:
Expand All @@ -23,7 +23,7 @@ Enhancements are:
* Documentation work.

Bugs are:
* Issues rose internally or externally by mbedmicro/mbed users.
* Issues rose internally or externally by [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os) users.
* Internally (within mbed team) created issues from Continuous Integration pipeline and build servers.
* Issues detected using automation tools such as compilers, sanitizers, static code analysis tools etc.

Expand All @@ -39,7 +39,7 @@ Please be patient, digest Gate Keeper's feedback and respond promptly :)
* Before starting the mbed SDK porting, you might want to familiarize with the [mbed SDK library internals](http://developer.mbed.org/handbook/mbed-library-internals) first.

# Glossary
* Gate Keeper – persons responsible for overall code-base quality of mbedmicro/mbed project.
* Gate Keeper – persons responsible for overall code-base quality of [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os) project.
* Enhancement – New feature deployment, code refactoring actions or existing code improvements.
* Bugfix – Issues originated from GitHub Issues pool, raised internally within mbed classic team or issues from automated code validators like linters, static code analysis tools etc.
* Mbed classic – mbed SDK 2.0 located in GitHub at mbedmicro/mbed.
* Mbed classic – mbed SDK 2.0 located in GitHub at [ARMmbed/mbed-os](https://github.com/ARMmbed/mbed-os).
6 changes: 3 additions & 3 deletions TESTS/mbedmicro-rtos-mbed/mutex/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
*/
#if (defined(TARGET_STM32L053R8) || defined(TARGET_STM32L053C8)) && defined(TOOLCHAIN_GCC)
#define STACK_SIZE DEFAULT_STACK_SIZE/4
#elif (defined(TARGET_STM32F030R8) || defined(TARGET_STM32F070RB)) && defined(TOOLCHAIN_GCC)
#elif defined(TARGET_STM32F030R8) && defined(TOOLCHAIN_GCC)
#define STACK_SIZE DEFAULT_STACK_SIZE/4
#elif defined(TARGET_STM32F334R8) && defined(TOOLCHAIN_IAR)
#define STACK_SIZE DEFAULT_STACK_SIZE/4
#elif defined(TARGET_STM32F030R8) && defined(TOOLCHAIN_IAR)
#define STACK_SIZE DEFAULT_STACK_SIZE/4
#elif defined(TARGET_STM32F070RB) && defined(TOOLCHAIN_IAR)
#elif defined(TARGET_STM32F070RB)
#define STACK_SIZE DEFAULT_STACK_SIZE/2
#elif defined(TARGET_STM32F072RB) && defined(TOOLCHAIN_IAR)
#elif defined(TARGET_STM32F072RB)
#define STACK_SIZE DEFAULT_STACK_SIZE/2
#elif defined(TARGET_STM32F302R8) && defined(TOOLCHAIN_IAR)
#define STACK_SIZE DEFAULT_STACK_SIZE/2
Expand Down
10 changes: 5 additions & 5 deletions TESTS/mbedmicro-rtos-mbed/semaphore/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
*/
#if (defined(TARGET_STM32L053R8) || defined(TARGET_STM32L053C8)) && defined(TOOLCHAIN_GCC)
#define STACK_SIZE DEFAULT_STACK_SIZE/16
#elif (defined(TARGET_STM32F030R8) || defined(TARGET_STM32F070RB)) && defined(TOOLCHAIN_GCC)
#elif defined(TARGET_STM32F030R8) && defined(TOOLCHAIN_GCC)
#define STACK_SIZE DEFAULT_STACK_SIZE/8
#elif defined(TARGET_STM32F334R8) && (defined(TOOLCHAIN_GCC) || defined(TOOLCHAIN_IAR))
#define STACK_SIZE DEFAULT_STACK_SIZE/4
#elif defined(TARGET_STM32F103RB) && defined(TOOLCHAIN_IAR)
#define STACK_SIZE DEFAULT_STACK_SIZE/4
#elif defined(TARGET_STM32F103RB)
#define STACK_SIZE DEFAULT_STACK_SIZE/2
#elif defined(TARGET_STM32F030R8) && defined(TOOLCHAIN_IAR)
#define STACK_SIZE DEFAULT_STACK_SIZE/4
#elif defined(TARGET_STM32F070RB) && defined(TOOLCHAIN_IAR)
#elif defined(TARGET_STM32F070RB)
#define STACK_SIZE DEFAULT_STACK_SIZE/2
#elif defined(TARGET_STM32F072RB) && defined(TOOLCHAIN_IAR)
#elif defined(TARGET_STM32F072RB)
#define STACK_SIZE DEFAULT_STACK_SIZE/2
#elif defined(TARGET_STM32F302R8) && defined(TOOLCHAIN_IAR)
#define STACK_SIZE DEFAULT_STACK_SIZE/2
Expand Down
2 changes: 2 additions & 0 deletions TESTS/mbedmicro-rtos-mbed/threads/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
#if defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832)
#define STACK_SIZE 512
#elif (defined(TARGET_STM32F070RB) || defined(TARGET_STM32F072RB) || defined(TARGET_STM32F103RB))
#define STACK_SIZE 512
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
7 changes: 7 additions & 0 deletions docs/testing_mbed_OS_5.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The way tests are run and compiled in mbed OS 5 is substantially different from
- [Test names](#test-names)
- [Building tests](#building-tests)
- [Building process](#building-process)
- [App config](#app-config)
- [Running tests](#running-tests)
- [Writing tests](#writing-tests)
- [Debugging tests](#debugging-tests)
Expand Down Expand Up @@ -73,6 +74,12 @@ The full build process is:
1. For each discovered test, build all of its source files and link it with the non-test code that was built in step 1.
1. If specified, create a test specification file and place it in the given directory for use by testing tools. This is placed in the build directory by default when using mbed CLI.

#### App config

When building an mbed application, the presence of a `mbed_app.json` file allows you to set or override different config settings from libraries and targets. However, because the tests share a common build, this can cause issues when tests have different configurations that affect the OS.

If you need to use app config, this must be set via the `--app-config` option when calling `mbed test`. **If this option is not specified, the build system will ignore all `mbed_app.json` files and use the default config values.**

### Running tests

Automated tests can be run easily through mbed CLI. For information on using mbed CLI, please see its documentation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static osThreadId timer_thread_id;
static Timer timer;
static Timeout timeout;
static uint32_t due;
static void (*callback)(void);
static void (*arm_hal_callback)(void);

static void timer_thread(const void *)
{
Expand All @@ -25,7 +25,7 @@ static void timer_thread(const void *)
// !!! We don't do our own enter/exit critical - we rely on callback
// doing it (ns_timer_interrupt_handler does)
//platform_enter_critical();
callback();
arm_hal_callback();
//platform_exit_critical();
}
}
Expand All @@ -47,7 +47,7 @@ void platform_timer_disable(void)
// Not called while running, fortunately
void platform_timer_set_cb(void (*new_fp)(void))
{
callback = new_fp;
arm_hal_callback = new_fp;
}

static void timer_callback(void)
Expand Down
2 changes: 1 addition & 1 deletion features/FEATURE_UVISOR/importer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GDB:=$(PREFIX)gdb
OBJDUMP:=$(PREFIX)objdump

# Translate between uVisor namespace and mbed namespace
TARGET_TRANSLATION:=MCU_K64F.kinetis EFM32.efm32 STM32F4.stm32
TARGET_TRANSLATION:=MCU_K64F.kinetis EFM32.efm32 STM32F4.stm32 ARM_BEETLE_SOC.beetle
TARGET_PREFIX:=../
TARGET_SUPPORTED:=$(TARGET_PREFIX)targets/TARGET_UVISOR_SUPPORTED
TARGET_UNSUPPORTED:=$(TARGET_PREFIX)targets/TARGET_UVISOR_UNSUPPORTED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ bool find_substring(const char *first, const char *last, const char *s_first, co
int main() {
GREENTEA_SETUP(20, "default_auto");

bool result = true;
bool result = false;
EthernetInterface eth;
//eth.init(); //Use DHCP
eth.connect();
printf("TCP client IP Address is %s\r\n", eth.get_ip_address());

TCPSocket sock(&eth);
printf("HTTP: Connection to %s:%d\r\n", HTTP_SERVER_NAME, HTTP_SERVER_PORT);
if (sock.connect(HTTP_SERVER_NAME, HTTP_SERVER_PORT) == 0) {
printf("HTTP: Connected to %s:%d\r\n", HTTP_SERVER_NAME, HTTP_SERVER_PORT);
printf("HTTP: OK\r\n");

// We are constructing GET command like this:
// GET http://developer.mbed.org/media/uploads/mbed_official/hello.txt HTTP/1.0\n\n
Expand All @@ -66,17 +67,18 @@ int main() {
TEST_ASSERT_TRUE(found_200_ok);
TEST_ASSERT_TRUE(found_hello);

if (!found_200_ok) result = false;
if (!found_hello) result = false;
if (found_200_ok && found_hello) result = true;

printf("HTTP: Received %d chars from server\r\n", ret);
printf("HTTP: Received 200 OK status ... %s\r\n", found_200_ok ? "[OK]" : "[FAIL]");
printf("HTTP: Received '%s' status ... %s\r\n", HTTP_HELLO_STR, found_hello ? "[OK]" : "[FAIL]");
printf("HTTP: Received massage:\r\n\r\n");
printf("HTTP: Received message:\r\n");
printf("%s", buffer);
sock.close();
} else {
printf("HTTP: ERROR\r\n");
}

sock.close();
eth.disconnect();
GREENTEA_TESTSUITE_RESULT(result);
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main() {

greentea_send_kv("target_ip", eth.get_ip_address());

bool result = true;
bool result = false;

char recv_key[] = "host_port";
char ipbuf[60] = {0};
Expand Down Expand Up @@ -66,6 +66,8 @@ int main() {
result = false;
break;
}

result = true;
}

sock.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ int EthernetInterface::connect()

int EthernetInterface::disconnect()
{
lwip_bringdown();
return 0;
return lwip_bringdown();
}

const char *EthernetInterface::get_ip_address()
Expand Down
Loading