Skip to content

[EFM32] Update HAL implementation #2070

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 4 commits into from
Jul 4, 2016
Merged

Conversation

asmellby
Copy link
Contributor

Update HAL implementation for EFM32 devices:

  • Add delay parameter for greentea test runs, to make test runner wait long enough for kit to reboot after flashing
  • Use mbed critical section implementation instead of emlib implementation
  • Refactor SPI HAL implementation, and add comprehensive test
  • Fix peripheral ownership bug in SPI API found during the HAL refactoring
  • Backport some PWM and RTC fixes from mbed OS 3

@0xc0170

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 1, 2016

@mbed-bot: TEST

HOST_OSES=windows
BUILD_TOOLCHAINS=ARM,GCC_ARM
TARGETS=EFM32GG_STK3700

@@ -36,8 +36,7 @@ SPI::SPI(PinName mosi, PinName miso, PinName sclk, PinName ssel) :
// No lock needed in the constructor

spi_init(&_spi, mosi, miso, sclk, ssel);
spi_format(&_spi, _bits, _mode, 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be in a separate pull request (patch)

@mbed-bot
Copy link

mbed-bot commented Jul 1, 2016

[Build 565]
SUCCESS: Building succeeded and tests were run! Be sure to check the test results

asmellby and others added 4 commits July 4, 2016 10:03
The host-test resets the target by sending a UART break. After this, it takes some
time for the target to come back up. Without this timeout, the __sync packet
sent by greentea would not be retransmitted by the interface chip (i.e. it would never
reach the target). Testing on different devices indicates that 2 seconds delay
is sufficient for the device to reset and the  __sync packet to reach the target.
Properly support the bit_width parameter for the async API.
Fix issues with long DMA transfers (exceeding 1023 frames).
@0xc0170 0xc0170 merged commit a3a4c78 into ARMmbed:master Jul 4, 2016
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.

4 participants