Commit Graph

17291 Commits (mbed-os-5.9)

Author SHA1 Message Date
jeromecoutant f2901a42c3 DISCO_F413ZH : map SPI3 to WIFI module 2018-06-15 13:30:56 +01:00
Vladimir Umek ee0d0f9c02 RTX5 (Cortex-A): exception handling restructured, post processing moved after context save. 2018-06-15 13:30:56 +01:00
Vladimir Umek f5dfc74af2 RTX5: fixed nesting interrupt handling (Cortex-A) 2018-06-15 13:30:56 +01:00
Vladimir Umek 10ec047efc RTX5: ignoring CPUID field in GIC implementation updated interrupt handler for GCC and IAR 2018-06-15 13:30:56 +01:00
Vladimir Umek bbcf5f1aba RTX5: disabled OS Tick interrupt during post processing in IRQ handler for Cortex-A devices 2018-06-15 13:30:56 +01:00
Donatien Garnier d55cc644ab Cordio H4: Added some comments explaining the use of RawSerial as opposed to using Serial 2018-06-15 13:30:56 +01:00
Donatien Garnier 88e06862c3 BLE: Replace Serial with RawSerial in Cordio H4 Transport Driver 2018-06-15 13:30:56 +01:00
jeromecoutant f1f2bb4df4 STM32L4 ADC internal channels update 2018-06-15 13:30:56 +01:00
jeromecoutant 587c6d9e60 STM32L1 ADC internal channels update 2018-06-15 13:30:56 +01:00
jeromecoutant 720a5b6cd4 STM32L0 ADC internal channels update 2018-06-15 13:30:56 +01:00
jeromecoutant 11817b7db3 STM32F7 ADC internal channels update 2018-06-15 13:30:56 +01:00
jeromecoutant a95bdd8caf STM32F3 ADC internal channels update 2018-06-15 13:30:56 +01:00
jeromecoutant aa84af280c STM32F2 ADC internal channels update 2018-06-15 13:30:56 +01:00
jeromecoutant 525eb1ec6e STM32F1 ADC internal channels update 2018-06-15 13:30:56 +01:00
jeromecoutant 08d8df33c6 STM32F0 ADC internal channels update 2018-06-15 13:30:56 +01:00
jeromecoutant c4698a5bde STM32F4 ADC internal channels update 2018-06-15 13:30:56 +01:00
Mirela Chirica 51a3be6caf Cellular: BC95 socket creation to fail on missing socket id in the response 2018-06-15 13:30:56 +01:00
Martin Kojtal 445339616d AStyle: fix indentation for longer lines
Long lines like this would have parameters misaligned but shorter lines would be OK.

```
 void LoRaMac::check_frame_size(uint16_t size)
 {
     uint8_t value = _lora_phy.get_max_payload(_mcps_indication.rx_datarate,
-                                              _params.is_repeater_supported);
+                    _params.is_repeater_supported);
+
+    _lora_phy.a(_mcps_indication.b,
+                b.is_repeater_supported);
```

With this option (applied to the code above), we get

```
@@ -319,6 +319,9 @@ void LoRaMac::check_frame_size(uint16_t size)
     uint8_t value = _lora_phy.get_max_payload(_mcps_indication.rx_datarate,
                                               _params.is_repeater_supported);

+    _lora_phy.a(_mcps_indication.b,
+                b.is_repeater_supported);
```

Both are aligned the same. However there is a limit of astyle - 120 columns for this.
We do in most cases lines from 80 to 120 as suggested in our code lines thus this should
be good.
2018-06-15 13:30:56 +01:00
Martin Kojtal 8a436bff8f AStyle: don't indent cases
This was a bug in our configuration. Earlier versions of our style did not
specify this option. We found out for some code in our codebase that it was
changed because of the setting.

An example:

```
case: {
    // code here
}

//would be changed to

case: {
    // code here
   }
```

The first one is correct and do not need to be indented (it's enough switch is
indented).
2018-06-15 13:30:56 +01:00
Alan Chuang 467a994bc7 make uart console port configurable via mbed_app.json 2018-06-15 13:30:56 +01:00
Russ Butler fd68ba0d64 Fix possible bug with SysTimer
Ensure the SysTimer isn't added to the timer list twice by adding
an extra call to remove() inside suspend().
2018-06-15 13:30:56 +01:00
Karl Zhang da400af894 FPGAIO: Add MISC IO initialization support 2018-06-15 13:30:56 +01:00
ccli8 9ab170483f Fix RTC cannot cross reset cycle 2018-06-15 13:30:56 +01:00
ccli8 3eaaf65203 Add back RTC to device_has target configuration 2018-06-15 13:30:56 +01:00
ccli8 d2e415871b Power down RTC access from CPU domain in rtc_free
After rtc_free, RTC gets inaccessible from CPU domain but keeps counting.
2018-06-15 13:30:56 +01:00
Kimmo Vaisanen e1288ab6c2 Lora: Add greentea tests for LoRaRadio API
This LoRaRadio test set adds basic tests which can be run with a single HW.
2018-06-15 13:30:56 +01:00
Veijo Pesonen 67a329f382 Makes UDPSOCKET_SENDTO_INVALID part of the netsocket extended test set 2018-06-15 13:30:56 +01:00
Veijo Pesonen 35f980ba4f gethostbyname won't accept empty name
Considers both versions - synchronous and asynchronous. Earlier the
underlying stack was trusted to do this check.
2018-06-15 13:30:56 +01:00
Mika Leppänen e703861333 Corrected asynchronous DNS functionality
- Set network stack to store event queue so that mbed::mbed_event_queue() call
  is not needed every time call_in() is called
- Added dns state variables and enum (states are: created, initiated and cancelled)
- Corrected DNS response handling so that if DNS server returns that host name is
  unknown the DNS query is not tried again
- Reorder mutexes in nsapi_dns_query_multiple_async()
- Created nsapi_dns_query_async_initiate_next() function to initiate the next
  DNS query from the queue after delete of previous query
- Added dsn_timer_running variable to supervise DNS timer start/stop
- Changed cancel function to only mark query as deleted and moved deletion
  to timer function. This allows to run socket close on DNS thread
- Added new nsapi error NSAPI_ERROR_TIMEOUT for DNS (and other) timeouts
2018-06-15 13:30:56 +01:00
TomoYamanaka 875c0ebdad Fix redeclaration of type name "bool_t"
I fixed redeclaration of type name "bool_t" for target Renesas because this typedef has been defined in rtx_core_ca.h by #6273.
2018-06-15 13:30:56 +01:00
Ari Parkkila 5cd450ce70 Cellular: Fix AT URC handler not to dismiss incoming chars 2018-06-15 13:30:56 +01:00
Marcus Chang 28060c1b63 Fix array overflow in gpio configuration code for NRF5x
Reintroduce PR #6021

https://github.com/ARMmbed/mbed-os/pull/6021

which was accidentally removed by PR #6711

https://github.com/ARMmbed/mbed-os/pull/6711
2018-06-15 13:30:56 +01:00
Marc Emmers 5cb665ed07 Added STM32L433RC to iar exporter options 2018-06-15 13:30:56 +01:00
Kari Haapalehto a4ff62e145 Add check for _interface 2018-06-15 13:30:56 +01:00
Mike Harrington bd6503fb81 Fixed incorrect clean_flags method and float-abi linker option for CCES exporter. 2018-06-15 13:30:56 +01:00
amq a87d40396f EFM32: make mbed_rtx.h depend of families instead of targets 2018-06-15 13:30:56 +01:00
Steven 31ef22180c EFM32 IRQ handling fix
* IRQ handling got updated previously to a non-functional state when both callbacks were registered (it'd fire a fall callback for both rise and fall events). With this update, that faulty behaviour is corrected. Due to delays between the detection of the edge and the handling of the interrupt (and the fact that information about which edge you received on the pin is not stored anywhere), there is no way to be absolutely sure which edge got triggered on the pin. Therefore, we make a best-guess effort by looking at the pin state at the time of IRQ handling, and fire a callback as if that was the end state of the event. This will usually work out fine, except in cases were the signal is toggling faster than the IRQ handler's response time. In that case, a user won't get both callbacks (as expected for a pulse), but only the last event.
* Stripped some dead code.
2018-06-15 13:30:56 +01:00
Steven 41e08d7232 Fix to flash API on EFM32
* Since mbed does not overwrite itself, make the flashing routines run out of flash by default
* Report a writeable size of 4 bytes (previously erroneously reported a full eraseable page as the minimum write size)
2018-06-15 13:30:56 +01:00
Steven 6207b90726 Update pinout of TB_SENSE_12 to production revision
* Updated pinout of EXP header from pre-production to production
* Move assignment of PF7 to SPI_2 to be compatible with the new SPI flash routing
2018-06-15 13:30:56 +01:00
Mirela Chirica 2b2f53e92f Cellular: Added ENOTTY define in mbed_retarget stub 2018-06-15 13:30:56 +01:00
Mirela Chirica ca0ba7727a Cellular: Added missing copyrights 2018-06-15 13:30:56 +01:00
Mirela Chirica 3586af6da7 Cellular: Unit tests fixes 2018-06-15 13:30:56 +01:00
PHST 40de17a345 EFM32PG12_STK3402 - Correct wrong Expansion header Pin naming
Referencing to "UG257: EFM32 Pearl Gecko PG12 Starter Kit User's Guide - Chapter 4" (https://www.silabs.com/documents/public/user-guides/ug257-stk3402-usersguide.pdf) it should be like in this commit.
2018-06-15 13:30:56 +01:00
Teppo Järvelin 7944db6411 Cellular: review fixes. 2018-06-15 13:30:56 +01:00
Teppo Järvelin 79739de1aa Cellular: review changes. 2018-06-15 13:30:56 +01:00
Teppo Järvelin 0c23935cae Cellular: Fixed connect-disconnect sequence can now be called multiple times. 2018-06-15 13:30:56 +01:00
Cruz Monrreal 866850acc1
Merge pull request #7171 from ARMmbed/release-candidate
Release candidate for mbed-os-5.9.0-rc3
2018-06-08 12:47:03 -05:00
Krzysztof Stachowiak e5b59ab945 Update Mbed TLS after corrections for the import procedure 2018-06-08 09:23:59 +01:00
Krzysztof Stachowiak 1a6028b60d Update MbedTLS to 2.10.0 (from an RC) 2018-06-08 09:23:59 +01:00
Krzysztof Stachowiak 1394b03e64 Update Mbed TLS do version 2.10.0-rc1 2018-06-08 09:23:59 +01:00