Skip to content

Conversation

@bridadan
Copy link
Contributor

This adds the compile-time checks that allows builds to show up as "SKIPPED". For targets that don't support the given APIs, I've added the skip check so it's more apparent what is and what isn't being tested.

@BlackstoneEngineering
Copy link
Contributor

Weird, i thought I already had all those in place, not sure where they went.

As for the [WARN] I vaguely remember that was there for a reason.

@0xc0170
Copy link
Collaborator

0xc0170 commented Feb 22, 2017

LGTM (one small change requested)

@@ -1,3 +1,8 @@
// check if SPI is supported on this device
#if !DEVICE_SPI
#error SPI is not supported on this platform, add 'DEVICE_SPI' definition to your platform.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why [NOT_SUPPORTED] not in this one?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

green tea magic as i recall. Cant remember why though. Lets remove it and see what breaks eh?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nope, I was just copy pasting from the TESTS/api/SPI test and apparently that one gets it wrong as well! I will send a patch! Thanks for the catch!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you make sure to test your changes on multiple boards to make sure it doesnt break SPI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double checked compilation on K64F and DELTA_DFCM_NNN50 and it looked good to me.

Perhaps we should add some Travis CI checks to double check compilation.... 😜

@bridadan
Copy link
Contributor Author

I've updated the PR with your requested changes @0xc0170, would you mind taking a look?

@0xc0170 0xc0170 merged commit 1200728 into ARMmbed:master Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants