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
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
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
andreas.larsson
31a7cd017e
Tab -> spaces
2016-11-07 21:59:27 +01:00
andreas.larsson
baf519f4c5
Updated ublox ODIN-W2 binaries
2016-11-07 19:11:39 +01:00
Sam Grove
e011341f04
Merge pull request #3176 from RidaJichi/master
...
Modifying micro:bit pin names to mirror micro:bit edge connector
2016-11-07 10:25:53 -06:00
Sam Grove
89da16e4f0
Merge pull request #3127 from TomoYamanaka/master
...
Fixed the issue about push/pop of VFP register.
2016-11-07 10:25:34 -06:00
Andreas Larsson
fde39602b9
Fixed dynamic message queue for scan results
2016-11-07 15:52:59 +01:00
Andreas Larsson
a4f09b5fdb
Added cbMAIN_dispatchEventQueue
2016-11-07 15:52:58 +01:00
andreas.larsson
32dfe73b09
Added missing checks for wifi_link_out when allocating packets
2016-11-07 15:52:57 +01:00
andreas.larsson
fd7c9cc13a
Added copying of the wifi_link_out buffer since the buffer might change after call chain has ended.
2016-11-07 15:52:56 +01:00
Martin Kojtal
7eaf32baa0
Merge pull request #3075 from geky/nsapi-error-size-types-2
...
nsapi - Add standardized return types for size and errors
2016-11-07 11:13:40 +00:00
Sam Grove
9105f6fbda
Merge pull request #3186 from MultiTechSystems/mdot-spi-pins
...
MultiTech mDot - add back SPI3 pins
2016-11-03 18:47:50 -05:00
Sam Grove
0ace7955b0
Merge pull request #3104 from OpenNuvoton/nuvoton
...
[NuMaker] Support CAN and fix PWM CLK error
2016-11-03 18:46:58 -05:00
Sam Grove
d6df34619e
Merge pull request #3184 from jankii01/K64F-trng-ret
...
#3183 Compiler warning in trng_api.c with K64F
2016-11-03 02:23:00 -05:00
Sam Grove
1f783f69fa
Merge pull request #3177 from ashok-rao/new_mcu_K22512_fixing_PR_3136
...
New mcu k22512 fixing pr 3136
2016-11-03 02:21:31 -05:00
Sam Grove
ee992b0a7a
Merge pull request #3151 from NXPmicro/Add_K82_Support
...
Add support for FRDM-K82F
2016-11-03 02:16:08 -05:00
Sam Grove
6712ed1b71
Merge pull request #3099 from maximmbed/max32625
...
MAX32625
2016-11-03 02:15:43 -05:00
Sam Grove
6d250a98c3
Merge pull request #2969 from nvlsianpu/nrf52_fix_app_priorities
...
[nRF52] - switch irq priorities of driver handlers to the lowest level
2016-11-03 02:11:58 -05:00
Christopher Haster
b045c8ba00
nsapi - Adopted standardized return types in the Odin wifi interface
2016-11-02 15:37:34 -05:00
Mike Fiore
6cddb4df8b
[MTS_MDOT_F411RE] add back SPI3 pins that shouldn't have been removed
2016-11-02 13:41:04 -05:00
Jeremy Brodt
213a0891dd
[MAX32625] Removed progen from target configuration.
2016-11-02 09:58:17 -05:00
Martin Kojtal
06fc7e476a
Merge pull request #3173 from sarahmarshy/microbit-support
...
[Exporters] Add a device_name to microbit entry in targets.json
2016-11-02 09:56:00 +00:00
Janne Kiiskilä
258bcab618
Remove the variable ret due to compiler warning:
...
Compile [ 94.6%]: trng_api.c
[Warning] trng_api.c@67,9: unused variable 'ret' [-Wunused-variable]
Github issue #3183
2016-11-02 11:29:20 +02:00
Sam Grove
38a9c84bae
Merge pull request #2988 from martinjaeger/master
...
Update of can_api.c fixing #2987
2016-11-01 10:02:37 -05:00
Jeremy Brodt
722e89784c
[MAX32625] Prevent serial activity if tx/rx pin is NC.
2016-11-01 09:46:51 -05:00
Jeremy Brodt
0784f0315c
[MAX32625MBED] Adding new Maxim Integrated target.
2016-11-01 09:46:51 -05:00
Jeremy Brodt
1e5466a114
[MAX32625NEXPAQ] Adding new Maxim Integrated target.
2016-11-01 09:46:51 -05:00
Ashok Rao
80be092b86
Incorporating Brian Daniel's review comments for PR 3136
2016-11-01 11:47:22 +00:00
Rida Jichi
ac17fb7cf8
Modified micro:bit pin names to mirror micro:bit edge connector
...
Resolved issue: https://github.com/ARMmbed/mbed-os/issues/2713
Removed pins p{0..30} definitions
Defined pins P{0..20} as per micro:bit DAL's mappings:
(https://github.com/lancaster-university/microbit-dal/blob/master/inc/drivers/MicroBitPin.h )
Developers can now use the pin names as they appear on the mbed micro:bit pinout
in https://developer.mbed.org/platforms/Microbit/#pinout
Change-Id: I72b81dbe23b11d5ef215583adb211f364b4a5e91
2016-11-01 09:20:24 +00:00
Rida Jichi
3a1af14803
Replaced p{0..30} with P0_{0..30} in the NRF51822 api's
...
Change-Id: I0e080a30717ee0bcfa2db3f134acb08be851d767
2016-11-01 09:00:34 +00:00
Rida Jichi
f1bcde8f45
Ensured all NORDIC platforms define P0_{0..30} to match existing p{0..30} in PinNames.h
...
Change-Id: I8d7ff6fe5ff5377f7ec8d3bc790dde0b0627f072
2016-11-01 08:57:38 +00:00
cyliangtw
a044a65996
fixed misaligned lines in can_api.c of NUC472 & M453
2016-11-01 11:44:44 +08:00
cyliangtw
da8fd8b5b7
remove dead code in can_api.c of NUC472 & M453
2016-11-01 11:29:09 +08:00
Sarah Marsh
b3bc7f2529
Add a device_name to microbit entry in targets.json
2016-10-31 18:01:58 -05:00
Martin Jäger
eb95c14fa6
Fixing some typos
2016-10-30 16:49:49 +01:00
cyliangtw
33cfe1f599
remove dead code in device.h of NUC472 & M453
2016-10-28 18:39:56 +08:00
Martin Kojtal
4a4d09f6d1
Merge pull request #3074 from jamike/TARGET_STM_INIT_GCC_ALIGNEMENT
...
Target STM - init gcc alignement
2016-10-28 11:04:50 +02:00
Martin Kojtal
6eac2b008a
Merge pull request #3009 from pradeep-gr/master
...
TRNG enabled. TRNG APIs implemented. REV A/B/C/D flags removed. Warnings removed
2016-10-28 10:13:50 +02:00
Mahadevan Mahesh
1ac09d3a19
Add support for FRDM-K82F
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-27 11:27:24 -05:00
Michel Jaouen
4a69072161
INIT:GCC add call to HAL_Init
...
system_init, stops all on going timer.
gcc _start , perform zero initialized.
=> HAL_Init must be done again also in GCC toolchain
2016-10-27 10:40:28 +02:00