Skip to content

Mm platform #22

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

Closed
wants to merge 3 commits into from
Closed

Conversation

kseverinkangas-zg
Copy link

New hw platform

@@ -23,7 +23,7 @@ You will also need to supply the driver for the EEPROM. This example is known to
Clone the repository containing the collection of examples:

```
git clone https://github.com/ARMmbed/mbed-os-example-nfc.git
git clone https://github.com/vince-zeng/mbed-os-example-nfc.git
Copy link
Member

Choose a reason for hiding this comment

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

No reason to change that link.

Copy link
Author

Choose a reason for hiding this comment

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

Hmm, didn't mean to change this

@@ -54,6 +54,11 @@ Run the build:
mbed compile -t <ARM | GCC_ARM> -m <YOUR_TARGET>
```

For NXP K64F, run the following command:
Copy link
Member

Choose a reason for hiding this comment

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

Not required, it is documented above. We try to not favour a platform.

@@ -0,0 +1,343 @@
/*
Copy link
Member

Choose a reason for hiding this comment

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

It doesn't seem right to have that file in that PR. PinNames.h should be provided by the mbed os target.

Copy link
Author

Choose a reason for hiding this comment

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

this is custom target not meant to be in mbed-os

Copy link
Member

@pan- pan- Jan 10, 2019

Choose a reason for hiding this comment

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

It has no place here.

@@ -0,0 +1,23 @@
// The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches.
Copy link
Member

Choose a reason for hiding this comment

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

Same as above; you should add the target to mbed-os; not here.

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include "mbed.h"
Copy link
Member

Choose a reason for hiding this comment

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

No, avoid to include mbed.h directly as it pulls out a lot of includes and pollute the global namespace with its using namespace std an using namespace mbed statements.

If you need something specific. Include it and import it in the local namespace (if your in a cpp file) if you want shorter names.

#include "Drivers/DigitalIOut.h"

using mbed::DigitalOut;

@@ -37,6 +37,16 @@ using mbed::nfc::ndef::common::span_from_cstr;
/* URL that will be written into the tag */
const char url_string[] = "mbed.com";

#ifdef TARGET_MM
Copy link
Member

Choose a reason for hiding this comment

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

No, this has nothing to do in the main file. Hide these details in specific target code.

@@ -1,8 +1,13 @@
{
"macros": ["NFC_I2C_SDA=D14","NFC_I2C_SCL=D15","NFC_FIELD_DETECTION=D5"
Copy link
Member

Choose a reason for hiding this comment

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

That is specific to a certain config; please add it to the K64F configuration and not the global configuration.

@@ -0,0 +1,34 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

Please remove that file.

@@ -0,0 +1 @@
https://github.com/ARMmbed/mbed-nfc-nt3h2111
Copy link
Member

Choose a reason for hiding this comment

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

Could you specify the hash to load ?

@@ -0,0 +1,10 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

Forgot that one; it should be removed from this PR as well.

@kseverinkangas-zg
Copy link
Author

I will remove this PR. This wasn't the right place for it.

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.

2 participants