Skip to content
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

SPI FPGA test extension + SPI driver fix (K64F) #10989

Merged
merged 4 commits into from
Jul 8, 2019

Conversation

mprse
Copy link
Contributor

@mprse mprse commented Jul 8, 2019

Description

This PR:

  • Extend FPGA SPI test (test: async mode, different frequencies, block write)
  • Add the delay between CS assertion and first sclk edge and first sclk edge (K64F).

This PR requires first: PR #10975

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[X] Test update
[ ] Breaking change

Reviewers

@jamesbeyond @0xc0170 @fkjagodzinski @maciejbocianski

image

Copy link
Member

@fkjagodzinski fkjagodzinski left a comment

Choose a reason for hiding this comment

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

👍 just one minor remark.

TESTS/mbed_hal_fpga_ci_test_shield/spi/main.cpp Outdated Show resolved Hide resolved
spi_init(&spi, mosi, miso, sclk, ssel);
spi_format(&spi, sym_size, spi_mode, 0);
spi_frequency(&spi, 1000000);
spi_frequency(&spi, freqency);
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: frequency

Copy link
Contributor

Choose a reason for hiding this comment

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

there are same typo in bellow code as well

@mprse mprse closed this Jul 8, 2019
@mprse mprse reopened this Jul 8, 2019
mprse and others added 3 commits July 8, 2019 14:54
Add test cases for:
- async mode,
- different frequencies,
- block write
FPGA test shield requires at lease half slck period delay between CS assertion and first sclk edge.
Co-Authored-By: Filip Jagodziński <fkjagodzinski@gmail.com>
@ciarmcom
Copy link
Member

ciarmcom commented Jul 8, 2019

@mprse, thank you for your changes.
@fkjagodzinski @maclobdell @maciejbocianski @jamesbeyond @0xc0170 @ARMmbed/mbed-os-hal @ARMmbed/mbed-os-test @ARMmbed/mbed-os-maintainers please review.

Copy link
Contributor

@jamesbeyond jamesbeyond left a comment

Choose a reason for hiding this comment

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

The changes looks good to me

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 8, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jul 8, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@mprse
Copy link
Contributor Author

mprse commented Jul 8, 2019

@0xc0170 This one i ready to go in.

@0xc0170 0xc0170 removed the needs: CI label Jul 8, 2019
@0xc0170 0xc0170 merged commit 358046e into ARMmbed:master Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants