Laurent MEUNIER
4c36b9cb77
test i2c asynch : test transfer return value
2016-11-09 18:03:09 +01:00
Laurent MEUNIER
3897d93b71
test i2c asynch: Remove printf usage from interrupt context
...
The cbmaster_done function is a callback which will be called from
the asynch I2C interrupt handler. Calling to printf from this context
sometimes lead to missing interrupts on the slave side. This was at least
encountered on STM32F3 MCUs.
2016-11-09 18:03:07 +01:00
Laurent MEUNIER
b491165eac
[STM32F4] Add few prints for I2C debug
2016-11-09 18:03:04 +01:00
Laurent MEUNIER
a65bacc032
[STM32F4] Master receive sequential - fix for HAL I2C
...
in case of 2 consecutives calls to HAL_I2C_Master_Sequential_Receive_IT
with the Xfer mode I2C_FIRST_AND_LAST_FRAME, the second trasnfer does
not start at all.
It seems this is because the previous state is maintained as I2C_STATE_MASTER_BUSY_RX
and therefore the START condition will not be generated
2016-11-09 18:03:02 +01:00
Laurent MEUNIER
a50dc77c60
STM32: I2C: Change the master sync implementation to use ITs
...
With this new implementation, as in slave implementaiton, we use the
interrupts instead of accessing to registers continuously.
This has 2 main advantages:
- this shall improve performances overall and allows for sleep
time in the future
- this also removes some direct registers access from this
layer of code and makes it more generic among families
2016-11-09 18:02:59 +01:00
Laurent MEUNIER
ec95aa5701
STM32: I2C: Reset I2C in case of errors to recover
...
This is to avoid an IP / bus deadlock.
This requires to store scl and sda in order to call the init function.
2016-11-09 18:02:57 +01:00
Laurent MEUNIER
42d89b0665
STM32: I2C: Update Timeout computation
...
The timeout values are based on for loops and therefore should depend
on the core frequency and the I2C interface frequency.
This patch introduces this computation and base the timeout on the time
it should take to send a byte over the I2C interface. When sending a
number of bytes, this value can also be used.
In the loops, the timeout should also be decreased before the while
condition so that its value is 0 in case the timeout elapsed and this
can be treated as an error.
2016-11-09 18:02:54 +01:00
Michel Jaouen
06ebe4fab4
TARGET_STM32F4: USB with STM HAL for
...
NUCLEO_F401RE, NUCLEO_F429ZI, NUCLEO_F446ZE, DISCO_F407VG, NUCLEO_F411RE
2016-11-09 17:24:23 +01:00
Laurent MEUNIER
79504a6a38
STM32: I2C: Change the slave API implementation to use ITs
...
With this new implementation, the slave use the Interrupt
to be notified of a request from master, instead of
accessing to registers continuously.
This has 2 main advantages:
- this shall improve performances overall and allows for sleep
time in the future
- this also removes some direct registers access from this
layer of code and makes it more generic among families
2016-11-09 17:22:28 +01:00
Laurent MEUNIER
d71537bb00
STM32: I2C: use irq helper function
2016-11-09 17:22:28 +01:00
Laurent MEUNIER
c2060e34a3
STM32: I2C: Add-up irq handlers
...
With this commit we define I2C irq handlers that can be used by the driver
in sync mode. This also provides a mecanism for enabling and/or disabling
these handlers
Those handlers will be superseded by MBED ones in case of async mode usage.
2016-11-09 17:22:28 +01:00
Laurent MEUNIER
490437ae29
STM32: I2C: Move up get_i2c_obj
...
so that it can be used as well in sync mode
2016-11-09 17:22:28 +01:00
Laurent MEUNIER
0bee69023c
STM32: I2C: Don't use global init variables
...
No need to store the init status of each IP.
Init can be called again in case we try to recover.
2016-11-09 17:22:28 +01:00
Laurent MEUNIER
2b53dfc453
STM32: I2C: configure slave address with HAL API
...
Instead of direct registers access, let's use HAL API.
This makes the code more generic accross STM32 families.
2016-11-09 17:22:28 +01:00
javierpedrido
b7882d6e9b
Added back USART 6 pins
2016-11-09 12:14:35 -03:00
Seppo Takalo
c71abfed26
Update NanostackSocket to match API changes in v5.0.7
2016-11-09 16:07:13 +02:00
Seppo Takalo
cbb300db9c
Nanostack v5.0.7
2016-11-09 15:42:41 +02:00
Seppo Takalo
e27c7840d7
Don't clone coap-service, it's subtree now
2016-11-09 15:34:58 +02:00
Seppo Takalo
1e791e2e76
Add 'features/nanostack/FEATURE_NANOSTACK/coap-service/' from commit 'a1982c1de752c50410d975a03f505a69972539f5'
...
git-subtree-dir: features/nanostack/FEATURE_NANOSTACK/coap-service
git-subtree-mainline: c0adb069c9
git-subtree-split: a1982c1de7
2016-11-09 15:27:17 +02:00
Seppo Takalo
c0adb069c9
Remove coap-service
2016-11-09 15:26:30 +02:00
Seppo Takalo
8c669c6f40
Add 'features/FEATURE_COMMON_PAL/mbed-client-randlib/' from commit '26cdd3904f3042c21155a39e940fafb266af20d2'
...
git-subtree-dir: features/FEATURE_COMMON_PAL/mbed-client-randlib
git-subtree-mainline: 6aedb5aeb7
git-subtree-split: 26cdd3904f
2016-11-09 15:13:57 +02:00
Seppo Takalo
6aedb5aeb7
Remove Randlib
2016-11-09 15:10:38 +02:00
Radhika
d637f6d3ad
Modified user trim default values.
2016-11-09 17:12:35 +05:30
Michel Jaouen
26bd467995
TARGET_STM : USB FS device support on ST HAL
2016-11-09 12:08:50 +01:00
Michel Jaouen
182c311fbd
TARGET_STM : USB FS STM HAL changes
2016-11-09 12:08:45 +01:00
Michel Jaouen
9c4e7173a5
DISCO_L476VG : align memory mapping with ARM
2016-11-09 12:08:41 +01:00
Michel Jaouen
c2032c0442
DISCO_L476VG: modify clock for USB support
2016-11-09 12:08:36 +01:00
Andrew Domaszek
8482aafa2a
Calculate PWM clock relative to bus clock
2016-11-08 23:42:59 -05:00
Christopher Haster
a3ad6181f4
nsapi - Fixed missing NSAPI_UNSPEC check in gethostbyname for ip literals
2016-11-08 18:05:35 -06:00
Bradley Scott
6d3f03c73d
STM32F3: DISCO_F303VC - Add missing ADC pin muxing options
...
Corrects the incorrect PA_5 ADC channel mapping, and removes the
non-existent PB_11 ADC channel mapping.
2016-11-08 17:07:15 -05:00
Bradley Scott
130fddc467
STM32F3: DISCO_F303VC - Add missing UART pin muxing options
2016-11-08 17:04:21 -05:00
Sam Grove
fa887764bf
Merge pull request #3206 from sarahmarshy/examples-test-filters
...
[Exporter/compile tests] Examples test filters
2016-11-08 16:02:58 -06:00
Brian Daniels
119857ac77
Ignoring args parameter for functions that don't use them
2016-11-08 13:41:40 -06:00
Brian Daniels
f1bb3f5930
Fixing issue with target_cross_ide
2016-11-08 12:51:38 -06:00
Brian Daniels
2fe1373cf1
Fixing use of get_repo_list in update function
2016-11-08 12:38:22 -06:00
Brian Daniels
b739413526
Correcting example, toolchain, and ide filters
2016-11-08 12:37:14 -06:00
Steven Cooreman
b64fa3ae18
[EFR32] Reduce test stack sizes on EFR32
2016-11-08 18:33:42 +01:00
Steven Cooreman
b6ff439aed
[EFR32] Make RTX using ARMCC aware of reserved stack and heap
2016-11-08 18:32:50 +01:00
Steven Cooreman
dc71c664db
[EFR32] Fix linker script for ARMCC
...
Updated available RAM size and increased reserved heap to 4K
2016-11-08 18:32:09 +01:00
Steven Cooreman
0f1101eec2
[EFR32] Prevent compiling Nanostack driver without Nanostack
2016-11-08 15:42:00 +01:00
Radhika
63f5c9781d
Configuration of user trim moved to targets.json
2016-11-08 17:29:32 +05:30
Martin Kojtal
96e1d5bd73
Merge pull request #3221 from andreaslarssonublox/ublox_odin_w2_drivers_update
...
u-blox odin w2 drivers update
2016-11-08 10:24:53 +00:00
Steven Cooreman
0f20cd11a9
[EFR32] fix typo in targets.json
2016-11-08 10:49:02 +01:00
Christopher Haster
e90fff3a60
stats - Added doxygen documentation to stats functions
2016-11-07 19:15:44 -06:00
Christopher Haster
9b630b3e0d
stats - Added stack stats api for individual threads
...
Added the following
- size_t mbed_stats_stack_get_each(mbed_stats_stack_t *, size_t)
2016-11-07 19:15:44 -06:00
Christopher Haster
14aa57f81c
stats - Added stats for reserved heap space for consistency
2016-11-07 19:15:44 -06:00
Christopher Haster
b6e8f44c0d
stats - Added stack stats api
...
Matched heap stats api
- void mbed_stats_heap_get(mbed_stats_heap_t *)
- void mbed_stats_stack_get(mbed_stats_stack_t *)
2016-11-07 19:15:38 -06:00
Jimmy Brisson
def0a38c4b
Add message that informs the user which hex to flash
2016-11-07 15:54:44 -06:00
andreas.larsson
31a7cd017e
Tab -> spaces
2016-11-07 21:59:27 +01:00
Christopher Haster
048a47b908
Marked the RtosTimer class as deprecated
...
The non-irq timer functionality provided by the RtosTimer is now
duplicated by the EventQueue. See RtosTimer.h for more info.
2016-11-07 13:01:08 -06:00