Skip to content

Add mbed app shield test for the SPI display and improve the armcc regex support to support armsm output #1078

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 3 commits into from
May 4, 2015

Conversation

screamerbg
Copy link
Contributor

No description provided.

{
"id": "MBED_35", "description": "SPI C12832 display",
"source_dir": join(TEST_DIR, "mbed", "spi_C12832"),
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'C12832')],
Copy link
Contributor

Choose a reason for hiding this comment

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

About adding new libraries, you should at least:

  • Define new library ('C12832') metadata in libraries.py.
  • Use paths.py to define library constant & paths to your new library (sources and headers), note path to library and its constant (e.g. CPPUTEST_LIBRARY) ends with _LIBRARY. In your case it should be C12832_LIBRARY:
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, C12832_LIBRARY)],

Note: There is another option, you can just make C12832 drivers' code as part of this test (maybe not the best idea).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

None of the libraries under "libraries\tests\peripherals" is using the definitions as per your post. In fact I was using "ADXL345" as example how to add new libraries. Fancy changing all the other libraries so there is good example how it must be done? :)

Copy link
Contributor

Choose a reason for hiding this comment

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

My bad!
You are right, I forgot about peripheral libs. You've followed correct way to do it :)

0xc0170 added a commit that referenced this pull request May 4, 2015
Tests: mbed app shield test for the SPI display and improve the armcc regex support to support armsm output
@0xc0170 0xc0170 merged commit d50b62d into ARMmbed:master May 4, 2015
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