Commit Graph

16653 Commits (00e3e4165f267e4259ad6da0d16a8ef3b452d4fd)

Author SHA1 Message Date
jeromecoutant 00e3e4165f STM32 : few targets does not support LPTICKER 2018-06-15 13:30:56 +01:00
ccli8 0b1faf1db2 Fix mbed_crc_ctor is missing in some MbedCRC constructor
This error leaves MbedCRC/_mode uninitialized and may cause mbed-os-tests-mbed_drivers-crc/
Test SD CRC polynomials failed.
2018-06-15 13:30:56 +01:00
Yossi Levy 57ea7e188f Fixing some coverity issues. 2018-06-15 13:30:56 +01:00
Marc Emmers 32ecbb71b5 Ticker test: Add ticker_irq_handler call because the time reaching the previous interrupt_timestamp would have triggered one anyway 2018-06-15 13:30:56 +01:00
Marc Emmers 8b1bcc31dc Only schedule mbed_ticker interrupt if queue->head is changed
Reverts change from commit 1057720114
2018-06-15 13:30:56 +01:00
Olli-Pekka Puolitaival 4146eab75e Check that no GPL licence inside code 2018-06-15 13:30:56 +01:00
Andrew Leech 2ba88ba8f6 Redirect NRF asserts to mbed error() in TARGET_NRF5x and SDK 14.2 Add related details to TARGET_NRF5x Readme's 2018-06-15 13:30:56 +01:00
Andrew Leech cee87d9cef Comment out the assert test that requires non-existent symbols from linker 2018-06-15 13:30:56 +01:00
Andrew Leech 5759e17a85 Only enable DEBUG_NRF_USER when NDEBUG is not set 2018-06-15 13:30:56 +01:00
Andrew Leech 2615631a4b Address known typo in nrf sdk 11
ref: https://devzone.nordicsemi.com/f/nordic-q-a/14000/nrf_drv_adc-c-doesn-t-compile-with--ddebug_nrf
2018-06-15 13:30:56 +01:00
Andrew Leech 97ba13b773 Enable ASSERTS's in nrf sdk to catch coding errors.
These will now flow through to mbed standard error handling.
2018-06-15 13:30:56 +01:00
jeromecoutant 87c14d3659 DISCO_F413ZH : pin value error 2018-06-15 13:30:56 +01:00
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