Commit Graph

11707 Commits (1d06bf427929d168d28c44c7169ea95f10b284ee)

Author SHA1 Message Date
Martin Kojtal 4ff432904e ticker test: add fire now stub 2017-07-13 12:23:25 +01:00
Martin Kojtal 10ea63b8e7 Ticker: add fire interrupt now function
fire_interrupt function should be used for events in the past. As we have now
64bit timestamp, we can figure out what is in the past, and ask a target to invoke
an interrupt immediately. The previous attemps in the target HAL tickers were not ideal, as it can wrap around easily (16 or 32 bit counters). This new
functionality should solve this problem.

set_interrupt for tickers in HAL code should not handle anything but the next match interrupt. If it was in the past is handled by the upper layer.

It is possible that we are setting next event to the close future, so once it is set it is already in the past. Therefore we add a check after set interrupt to verify it is in future.
If it is not, we fire interrupt immediately. This results in
two events - first one immediate, correct one. The second one might be scheduled in far future (almost entire ticker range),
that should be discarded.

The specification for the fire_interrupts are:
- should set pending bit for the ticker interrupt (as soon as possible),
the event we are scheduling is already in the past, and we do not want to skip
any events
- no arguments are provided, neither return value, not needed
- ticker should be initialized prior calling this function (no need to check if it is already initialized)

All our targets provide this new functionality, removing old misleading if (timestamp is in the past) checks.
2017-07-13 12:23:25 +01:00
Martin Kojtal 441fda979d tools: fix toolchain extend inc paths
inc paths might be a list or might not be (just single string). If they don't, we are ending up with non valid include paths (one letter include paths).
This as result would not compile.
2017-07-12 16:24:06 +01:00
Yogesh Pande fbb12adbc4 Fix inconsistent mbed-trace dummy defines and original function declarations. 2017-07-12 06:39:09 -07:00
andreas.larsson 969d44d833 Remove redundant ODIN-W2 target folder 2017-07-12 15:05:25 +02:00
Yuguo Zou d46cc2ad3f Remove unused headfile
This shall prevent confusion
2017-07-12 17:49:52 +08:00
Yuguo Zou b435ff4a16 Enable/Disable debug from argument of constructor 2017-07-12 17:40:24 +08:00
justinkim 66500c0917 Unsupported RTC
delete rtc_api.c -> PWM3 pin enable
2017-07-12 13:43:08 +09:00
Yuguo Zou c7111c429e mute wifi_conf messages 2017-07-12 12:13:05 +08:00
Deepika fd43405ffe Allow user to set dummy tranfer byte for block read 2017-07-11 15:46:32 -05:00
Vincent Coubard bf419ca1b3 Max32630 UART: Fix P5_5 mapping. 2017-07-11 17:53:58 +01:00
Laurent MEUNIER be8024de28 STM32: serial: use proper GET_IT macro
Depending on families, different HAL macros are defined to check the
state of serial interrupts. In several cases, we can find only 1 macro:
__HAL_UART_GET_IT_SOURCE
Checks whether the specified UART interrupt has occurred or not

But in F0, F3, F7, L0, L4 there are 2 different macros
__HAL_UART_GET_IT
Checks whether the specified UART interrupt has occurred or not
__HAL_UART_GET_IT_SOURCE
Checks whether the specified UART interrupt source is enabled.

In the later case, __HAL_UART_GET_IT_SOURCE was being used so far,
but actually needs to be replaced by __HAL_UART_GET_IT. Using the right
macro, we also check the proper flags accordingly.
2017-07-11 17:22:33 +02:00
jeromecoutant bdd4f18acb ST USB config files 2017-07-11 16:29:44 +02:00
Bartek Szatkowski 2963308349 RTOS: Semaphore: Improve API docs 2017-07-11 15:01:40 +01:00
Bartek Szatkowski 739a429820 Test: RTOS: Semaphore: Rework tests 2017-07-11 15:01:39 +01:00
Vincent Coubard 3f4e839957 NRF52832: Extend idle thread stack size to 512 bytes.
Fix a crash where the idle thread stack size overflows. This crash
was depending on the compiler and standard library used.
2017-07-11 11:55:47 +01:00
Jimmy Brisson d25560324c Prevent double define in very old builds
Partially reverts 2ddf4b33cb
2017-07-10 15:59:54 -05:00
Jimmy Brisson 668d47305b Correct DAC pin assignment 2017-07-10 13:33:21 -05:00
Jimmy Brisson aae62bd990 Merge pull request #4674 from andreaslarssonublox/ublox_evk_nina_b1_fix_led4
Fix LED4 for UBLOX_EVK_NINA_B1
2017-07-10 12:06:11 -05:00
Jimmy Brisson a052fa3d45 Merge pull request #4561 from geky/fat-fs-volume-prefixes
fatfs: Add full support for multiple fs volume prefixes
2017-07-10 12:05:43 -05:00
Jimmy Brisson b38c85cafe Merge pull request #4525 from fahhem/patch-1
Improve the startup code on the STM32F070
2017-07-10 12:04:42 -05:00
Jimmy Brisson 868adafe57 Merge pull request #4518 from mazimkhan/mbed-tls-test-deploy
Add new target in mbedtls importer Makefile for mbedtls tests
2017-07-10 12:03:47 -05:00
Jimmy Brisson 3d86959dd8 Merge pull request #4485 from kegilbert/f429_sdk_flash_driver-rebase
Replace CMSIS flash driver by SDK flash driver
2017-07-10 12:03:03 -05:00
Rob Meades f920cc65af UBLOX_C030: correct UART 3 Tx & Rx pins (they were the wrong way around) and add the flow control lines for UART 3. 2017-07-08 11:32:46 +01:00
Jimmy Brisson efc5c47e55 Merge pull request #4720 from marcuschangarm/flashiap_read
FlashIAP: Add explicit read function to flash_api.h
2017-07-07 17:47:49 -05:00
sarahmarshy d8a7fe1467 Update ATCmdParser example code.
The previous example code was not very helpful, as it doesn't show the use of UARTSerial.
2017-07-07 16:45:01 -05:00
Jimmy Brisson 50fdca88e8 Merge pull request #4599 from studavekar/timing_tests_update
Update timing tests to be robust
2017-07-07 16:22:09 -05:00
Jimmy Brisson e6bdc324ec Allow custom_targets.json exporting 2017-07-07 14:45:58 -05:00
Jimmy Brisson 81446f69be Generate exporter suppored lists when needed 2017-07-07 14:45:32 -05:00
Christopher Haster eb4c223dd7 Toolchain: Added a note about weak functions and header files
The subtlety of where to mark functions as weak created an issue for
at least one user, so added a warning in the documentation.
2017-07-07 14:33:26 -05:00
Laurent MEUNIER 61648a53f5 Fix alignement 2017-07-07 17:27:46 +02:00
Anna Bridge 744b2a2579 Merge pull request #4546 from bridadan/fix_test_prints
Fix bad test print and move locks for printf into macro.
2017-07-07 12:44:50 +01:00
Anna Bridge 8224dab741 Merge pull request #4547 from bridadan/sort_config_data
Sort the config parameters before printing them
2017-07-07 12:44:18 +01:00
Anna Bridge 4890261c98 Merge pull request #4548 from deepikabhavnani/os_warn
Resolve Warnings for mbed-os-examples
2017-07-07 12:43:27 +01:00
Anna Bridge 28df3aeb87 Merge pull request #4635 from deepikabhavnani/spi_acquire
_acquire() function added & removed duplication in format/freq calls
2017-07-07 12:41:34 +01:00
Anna Bridge 292b4082ef Merge pull request #4636 from theotherjimmy/quote-cflags
Double escape defines in gnuarmeclipse export
2017-07-07 12:40:40 +01:00
Anna Bridge 9ebac18596 Merge pull request #4710 from amq/patch-1
Correct a typo in the github issue template
2017-07-07 12:39:06 +01:00
Anna Bridge e1bc3efd0c Merge pull request #4711 from LordGuilly/verbose_missing
added the missing verbose=verbose to printout the command line correctly at build_api.py
2017-07-07 12:38:23 +01:00
Anna Bridge d2cb0c6105 Merge pull request #4215 from theotherjimmy/lint-targets-json
Add script to lint targets.json
2017-07-07 12:36:44 +01:00
Marcus Chang abca2ca48b FlashIAP: Add explicit read function to flash_api.h
On some platforms, the in-application memory is not memory mapped
and therefore cannot be accessed using memcpy.

The flash_read function added to flash_api.h (with a weak
implementation using memcpy in mbed_flash_api.c) can be used for
reading data from areas that are not memory mapped.
2017-07-06 18:53:32 +01:00
Jimmy Brisson e0f56d1ab7 Merge pull request #4659 from jeromecoutant/PR_F767
Add the correct startup s file in TARGET_STM32F767
2017-07-06 10:18:08 -05:00
Jimmy Brisson dea489ef29 Merge pull request #4163 from adustm/STM_aes_l486rg
STM32L486RG/mbedtls: add aes hw acceleration
2017-07-06 10:17:15 -05:00
Jimmy Brisson 036778b64e Merge pull request #4685 from kegilbert/running-thread-typo-fix
Rename runnig_thread to running_thread in rtx_mutex
2017-07-06 10:16:11 -05:00
Jimmy Brisson 99b37b28bb Merge pull request #4468 from moonchen/quote-include-paths
Put quotes around include files
2017-07-06 10:13:27 -05:00
mattot01 774b5c6584 Enable greentea testing on CM3DS_MPS2 target
Set copy_method and reset_method in targets.json which is needed for
htrun.
2017-07-06 08:23:45 +02:00
lordguilly 5f22577da1 added the missing verbose=verbose to printout the command line correctly 2017-07-06 00:38:42 +01:00
amq 897b104857 Correct a typo in the github issue template 2017-07-06 00:26:21 +02:00
Bradley Scott 251459e8aa STM32: Remove i2c_read() and i2c_write() redirects to HAL_I2C_IsDeviceReady()
Some I2C devices require specific zero length read/write sequences which
the HAL_I2C_IsDeviceReady() redirect interferes with.  After Removing
these redirects, it was confirmed that zero length reads and writes
would both still work correctly for detecting presence/absence of an
I2C device on a bus.
2017-07-05 14:02:34 -04:00
Shrikant Tudavekar 8a4dbff8d6 validate base_time key received
This is required as greentea can send multiple __sync packets and cause the
to be in unexpected state.
2017-07-05 12:37:41 -05:00
bcostm 98aa178127 NUCLEO_F429ZI: comments corrections 2017-07-05 10:03:30 +02:00