jeromecoutant
888c52429c
STM32L1 : refactor stm32l1xx_hal_conf.h and map ST HAL assert into MBED assert
2016-12-19 14:38:49 +00:00
bcostm
deecd6e5ac
Add SERIAL_FC in targets.json/device_has field for NUCLEO_F103RB
2016-12-19 14:38:47 +00:00
bcostm
09cf02e0ba
Add external declaration of PinMap_UART_RTS/CTS[] const tables
2016-12-19 14:38:46 +00:00
Kevin Gillespie
95ccd4d6df
Fixing serial readable function.
2016-12-19 14:38:44 +00:00
Mahadevan Mahesh
bbdcae3c0a
K66F: Enable LWIP feature
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-19 14:38:42 +00:00
Laurent MEUNIER
43854b7365
STM32 NUCLEO-L152RE Update system core clock to 32MHz
...
Even when HSE is used, it is possible to get a 32MHz system clock
8MHz x PLLMUL=12 % PLLDIV=2 = 32MHz
And we still get 48MHz USB clock:
8MHz x PLLMUL=12 % 2 = 48MHz
This allows to take full benefit of the CPU capability.
2016-12-19 14:38:41 +00:00
adustm
f114ccf94f
Add CAN2 missing pins for connector CN12
2016-12-19 14:38:39 +00:00
Laurent MEUNIER
2ac3196496
STM32 I2C - 1MHZ frequency is allowed
...
So make the assert to cover all possible values
Also assert applies only for I2C_IP_VERSION_V2.
Also in case of I2C_IP_VERSION_V1, the HAL makes the proper
checks and can dynamically scale the frequency in case of
intermediate value.
2016-12-19 14:38:30 +00:00
Laurent MEUNIER
ca12282118
enable I2C ASYNCH
...
the I2C_ASYNCH feature is added to all STM32 except
F1 family for now. Will be added when HAL update is done.
2016-12-19 14:38:28 +00:00
Laurent MEUNIER
77576190c6
HAL I2C (V2) sequential transmit / receive
...
In case of sequential transmit / receive, there is a need to:
- not use the reload option
- generate a new START on each new transaction
This applies to all HAL supporting the IP version V2.
2016-12-19 14:38:27 +00:00
Laurent MEUNIER
a8454a2766
HAL F2: I2C fix btf / rxne cases
...
Applying the same fix as in L1 and F4
2016-12-19 14:38:25 +00:00
Laurent MEUNIER
645d44e2eb
HAL L1: I2C fix btf / rxne cases
...
This is an alignement to F4 HAL as the same IP is used.
Next official HAL delivery update hall will include the same alignement.
2016-12-19 14:38:22 +00:00
Laurent MEUNIER
934a8cfb05
HAL L0: I2C / DMA updates
...
This is prelim update before official V1.8.0 HAL to the needed HAL API
available as in F0 HAL which is using the same IP.
2016-12-19 14:38:20 +00:00
Laurent MEUNIER
300c0b266e
Make most of the I2C code into a common file
...
Since most of the code in i2c_api.c is now relying on STM32 HAL, there
is now a possibility to make a common usage of this code accross families.
The IP version definition is introduced per family, to allow a switch of
functionnalities, especially the frequency management which differs.
BTw, we fix the F0 frequency settings at the same time.
F1 is managed for now as an exception as the HAL API for sequential transmit
/receive is not yet available (coming soon)
2016-12-19 14:38:19 +00:00
Mahadevan Mahesh
c54fd786e6
K64F DSPI Driver: Fix errors where DSPI state is incorrectly kept busy
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-19 14:38:17 +00:00
Mahadevan Mahesh
7ad3026e76
K64F SPI Update: Implement Asynch API's for SPI
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-19 14:38:16 +00:00
jeromecoutant
58be2d4b67
NUCLEO_F429ZI has integrated LSE
2016-12-19 14:38:14 +00:00
Radhika
bf52a8d939
Formatting changes as per guidelines
2016-12-19 14:38:06 +00:00
Radhika
aad54b90c3
Register map changes for RevG
2016-12-19 14:38:04 +00:00
jeromecoutant
8e54880eab
STM32L476: comments update
2016-12-19 14:38:03 +00:00
jeromecoutant
6a101b4021
STM32L476: no HSE is present in NUCLEO and DISCO boards
2016-12-19 14:38:01 +00:00
adustm
4496908a96
fix #2956 . Add HAL_DeInit function if gpio_irq destructor This allows ci-test-shield tests-api-interruptin to pass
2016-12-19 14:38:00 +00:00
Steven Cooreman
ec29f2e3f2
Revert "[EFR32] Adding hardware acceleration for mbed TLS"
...
This reverts commit c0301b15d2
.
2016-12-19 14:37:57 +00:00
Steven Cooreman
cb69b98fcd
Revert "[EFR32] Move the mbedTLS hardware acceleration code to EFR32 family"
...
This reverts commit a0f62b1e4f
.
2016-12-19 14:37:25 +00:00
Steven Cooreman
cf461c504f
Move Nanostack driver to Nanostack folder
...
mbed compile doesn't support two different FEATURE_X folders being merged, so we'll have to move our nanostack driver into the Nanostack folder for the time being.
2016-12-19 14:37:23 +00:00
Steven Cooreman
8486cb67cf
Make RTX using ARMCC aware of reserved stack and heap
2016-12-19 14:37:20 +00:00
Steven Cooreman
4ea645abcc
Fix linker script for ARMCC
...
Updated available RAM size and increased reserved heap to 4K
2016-12-19 14:37:18 +00:00
Steven Cooreman
90e967b1e4
Prevent compiling Nanostack driver without Nanostack
2016-12-19 14:37:16 +00:00
Steven Cooreman
1661a8ac21
fix typo in targets.json
2016-12-19 14:37:15 +00:00
Steven Cooreman
47c4f5c46f
Move the mbedTLS hardware acceleration code to EFR32 family
2016-12-19 14:37:10 +00:00
Steven Cooreman
008de9d39f
Initial radio driver
...
First check-in of the EFR32 radio driver for Nanostack
2016-12-19 14:37:08 +00:00
Steven Cooreman
24c01c2a7b
Adding hardware acceleration for mbed TLS
...
Initial check-in of hardware acceleration support on EFR32 for mbed TLS (AES, SHA and ECC).
2016-12-19 14:37:07 +00:00
Steven Cooreman
f2982dd276
Add initial support for EFR32
...
Adding target definitions and the HAL implementation for EFR32 Mighty Gecko
2016-12-19 14:35:07 +00:00
Steven Cooreman
29e1e7af2f
Move board controller pin setting to config system
2016-12-19 14:35:05 +00:00
Steven Cooreman
162801ecac
Move board controller pin setting to config system
2016-12-19 14:35:03 +00:00
ccli8
1458c54f6b
Fix spi_master_transfer failed as bit width is 32
2016-12-19 14:35:02 +00:00
ccli8
e1899bc111
Fix button naming error
2016-12-19 14:35:00 +00:00
ccli8
c0e59ab9d2
Correct return of i2c_byte_write() on NAK
2016-12-19 14:34:58 +00:00
ccli8
659cf338c5
Fix CI I2C EEPROM failed
2016-12-19 14:34:57 +00:00
ccli8
dd8ab407fa
Remove SPI MOSI1 and MISO1 pins from pinmap
...
These pins are for SPI 2-bit mode (not dual mode) and cannot be for SPI standard use.
2016-12-19 14:34:55 +00:00
ccli8
d9501be829
Remove SPI MOSI1 and MISO1 pins from pinmap
...
These pins are for SPI 2-bit mode (not dual mode) and cannot be for SPI standard use.
2016-12-19 14:34:54 +00:00
ccli8
b76f2bf587
Rename variable name in analog-in
2016-12-19 14:34:52 +00:00
ccli8
342f776bb5
Fix EADC module is initialized multiple times
...
Also fix EADC module name EADC is hardcoded.
2016-12-19 14:34:50 +00:00
ccli8
9466da4c24
Fix CI tests-api-analogin failed
...
1. Fix UNO pins A5-A7 don't support analog-in by replacing ADC with EADC to implement analog-in HAL.
2. Update CLK driver to fix EADC clock divider setting error. Also fix CLK_Idle() together.
2016-12-19 14:34:49 +00:00
ccli8
619c54c54b
Fix CI tests-api-analogin failed
...
1. Fix ADC convert finish check error.
2. Set ADC Vref to internal by default.
2016-12-19 14:34:47 +00:00
ccli8
2336b59f0a
Support separate enable of GPIO IRQ de-bounce
2016-12-19 14:34:46 +00:00
ccli8
4b7432ffd1
Fix I2C issues
...
1. Fix error on return of i2c_byte_write().
2. Fix error in zero-length transfer corner case.
2016-12-19 14:34:44 +00:00
bcostm
2a7271debe
Remove TIM_IT_UPDATE flag in HAL_Suspend/ResumeTick functions to make LPT tests pass.
2016-12-19 14:34:42 +00:00
jeromecoutant
1a6d35510e
DISCO_L053C8 doesn't support LSE
2016-12-19 14:34:41 +00:00
jeromecoutant
2b67bbf348
no HSE available by default for NUCLEO_L432KC
2016-12-19 14:34:38 +00:00
bcostm
9d8c9229f0
Add ADC_VREF label
2016-12-19 14:34:36 +00:00
bcostm
2af84bc0d3
Add more comment on the modified line
2016-12-19 14:34:33 +00:00
bcostm
41b8eda589
STM32F4 - Clear VBATE and TSVREFE bits before configuring ADC channels
2016-12-19 14:34:31 +00:00
Michael Ammann
65fc32fe11
Update PinNames.h
2016-12-19 14:34:30 +00:00
Michael Ammann
b32859764a
Add files via upload
2016-12-19 14:34:28 +00:00
Michael Ammann
10e8732b23
Create device.h
2016-12-19 14:34:26 +00:00
Michael Ammann
86514eebb6
Update targets.json
2016-12-19 14:34:25 +00:00
tomoyuki yamanaka
48dfc48c9c
Bug fix of initial value of interrupt edge in "gpio_irq_init" function.
...
Renesas modified the initial value of interrupt edge in "gpio_irq_init" function.
The value was "both egde(rise and fall)".So we modified it to "low revel".
2016-12-19 14:34:23 +00:00
Laurent MEUNIER
982595b876
stm32 spi - IRQ management
...
Disable IRQ when transfer is finished.
Also clear pending IRQ after they have been disabled.
2016-12-19 14:34:22 +00:00
Laurent MEUNIER
e18854fff6
stm32 spi : IRQ handler light optimization
...
This commit contains a few optimizations to get a better performance
in SPI Asynch mode
2016-12-19 14:33:53 +00:00
Laurent MEUNIER
362aaefedf
STM32L0 - update spi HAL driver
...
This is a temporary update waiting for the next official release
2016-12-19 14:32:46 +00:00
Laurent MEUNIER
ad14e4f122
STM32L1 - update spi HAL driver
...
This is a temporary update waiting for the next official release
2016-12-19 14:32:44 +00:00
Laurent MEUNIER
c4cfa34a63
remove unused module member in spi_s struct
2016-12-19 14:32:42 +00:00
Laurent MEUNIER
6c179ad52d
Enable SPI_ASYNCH for L0 and L1 families
2016-12-19 14:32:41 +00:00
Mahadevan Mahesh
4f6fb36d3e
Add support for FRDM-KW41
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-19 14:32:36 +00:00
bcostm
716d8f2cba
Update license + date (same license as in mbed.h file)
2016-12-19 14:32:34 +00:00
bcostm
222b2a25ff
Typo corrections (functions declaration)
2016-12-19 14:32:32 +00:00
bcostm
f526060be5
Timer 16bit: Remove volatile variables. This solved many fails with MBED_24 test.
2016-12-19 14:32:30 +00:00
bcostm
b1e558c5b4
Change TimMasterHandle variable declaration + typo corrections
2016-12-19 14:32:29 +00:00
bcostm
0ad561ee86
Add initialization of timer instance in all functions
2016-12-19 14:32:27 +00:00
bcostm
06322d86cd
Rename files (remove stm_ prefix)
2016-12-19 14:32:25 +00:00
bcostm
c24c950407
STM32L0 - Add patch done previously on these devices. This solves MBED_24 test.
2016-12-19 14:32:24 +00:00
bcostm
0e8196e5b8
Add volatile on one variable (alignment with 16bit file)
2016-12-19 14:32:22 +00:00
bcostm
ddbcad4f4a
Replace TIM_MST_GET_PCLK_FREQ macro with TIM_MST_PCLK macro
2016-12-19 14:32:20 +00:00
bcostm
e0049e5abe
STM32L1 - Don't use RepetitionCounter field in timer init
2016-12-19 14:32:19 +00:00
bcostm
731e4c8dce
STM32xx - Remove hal_tick.c files and update hal_tick.h with new macro
2016-12-19 14:32:17 +00:00
bcostm
cfb155a91f
Minor changes
2016-12-19 14:32:15 +00:00
bcostm
b209cc9db9
STM32L0 - Remove special treatment for reading the counter
2016-12-19 14:32:14 +00:00
bcostm
2252ca9b48
STM32F0/F1/L0 - Update TIM_MST_GET_PCLK_FREQ macro
2016-12-19 14:32:12 +00:00
bcostm
d1055bed49
STM32L0 - Remove devices hal_tick.c files
2016-12-19 14:32:10 +00:00
bcostm
e459f4e928
STM21L0 - Remove devices hal_tick.c file and update hal_tick.h
2016-12-19 14:32:09 +00:00
bcostm
fb066c9df5
STM32F1 - Remove devices hal-tick files and update hal_tick.h
2016-12-19 14:32:07 +00:00
bcostm
a3249fda13
STM32F0 - Add the timer type used (16b or 32b) + periph clock in hal_tick.h
2016-12-19 14:32:05 +00:00
bcostm
47112d1010
Replace all devices hal_tick files with a common 16b and 32b version
2016-12-19 14:32:03 +00:00
bcostm
96b11c1b04
Replace all devices us_ticker files with a common 16b and 32b file
2016-12-19 14:32:02 +00:00
Michel Jaouen
408e92139c
TARGET_STM32F4: USB with STM HAL for NUCLEO_F401RE, NUCLEO_F429ZI, NUCLEO_F446ZE, DISCO_F407VG, NUCLEO_F411RE
2016-12-19 14:31:52 +00:00
Michel Jaouen
5fafb73a29
TARGET_STM : USB FS STM HAL changes
2016-12-19 14:31:49 +00:00
Michel Jaouen
98d8acb6c8
DISCO_L476VG : align memory mapping with ARM
2016-12-19 14:31:47 +00:00
Michel Jaouen
e566f711a6
DISCO_L476VG: modify clock for USB support
2016-12-19 14:31:46 +00:00
andreas.larsson
9abb7c3777
Updated ARM binary
2016-11-23 17:39:28 +01:00
andreas.larsson
4648ec606b
Added updated drivers for GCC, IAR
2016-11-23 15:18:17 +01:00
andreas.larsson
c2d09bd6a2
Fixed wrong start params to cbMAIN_startWlan
2016-11-23 11:38:35 +01:00
Martin Kojtal
d60f424a7e
Merge pull request #3256 from NXPmicro/Include_stddef
...
Kinetis SDK: Include stddef.h to fix build errors seen when including…
2016-11-22 22:20:29 +00:00
Martin Kojtal
905a173a7a
Merge pull request #3268 from NXPmicro/Coding_Convention_Changes
...
Coding convention changes
2016-11-22 22:18:41 +00:00
Martin Kojtal
7f44dee6d1
Merge pull request #3278 from bcostm/nucleo-f103rb_ctsrts_pins
...
NUCLEO_F103RB - Add RTS/CTS pins for Serial Flow Control
2016-11-21 23:22:41 +00:00
Martin Kojtal
a987cc0bee
Merge pull request #3271 from ARMmbed/odin_wifi_default_on
...
WiFi: Make WiFi default networking interface on Odin board
2016-11-21 23:19:02 +00:00
bcostm
6f12eca4a6
NUCLEO_F103RB - Add RTS/CTS pins for Serial Flow Control
2016-11-17 10:15:21 +01:00
Martin Kojtal
5cea44c755
Merge pull request #3252 from pan-/fix_nrf51_rtc
...
[NORDIC - NRF51 - MBED 2] Fix non handled RTC IRQ
2016-11-16 17:43:31 +00:00
Martin Kojtal
6eb33e5f3c
Merge pull request #3251 from LMESTM/dev_stm32l0_cube_v1.7.0
...
Dev stm32l0 cube v1.7.0
2016-11-16 17:43:16 +00:00
Martin Kojtal
5750f31d6d
Merge pull request #3238 from LMESTM/dev_i2c_stm32f4hal
...
Dev i2c stm32f4hal
2016-11-16 17:42:12 +00:00
Bartek Szatkowski
20b7f05721
WiFi: Make WiFi default networking interface on Odin board
...
That disables Ethernet by default and makes sure the Ethernet tests are
not failing when it's disabled.
2016-11-16 12:00:09 +00:00
Mahadevan Mahesh
b78e552d35
Kinetis SDK: Coding convention fixes
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-15 14:23:29 -06:00
Mahadevan Mahesh
93aca0bbf2
K22F: Coding convention fixes
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-15 14:10:54 -06:00
Mahadevan Mahesh
05382afa37
K64F: Coding convention fixes
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-15 14:10:48 -06:00
Mahadevan Mahesh
26146e8929
KW24D: Coding convention fixes
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-15 14:04:13 -06:00
Mahadevan Mahesh
5356246fbc
KL82Z: Coding convention fixes
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-15 14:04:07 -06:00
Mahadevan Mahesh
31d6bb914a
KL43Z: Coding convention fixes
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-15 14:04:01 -06:00
Mahadevan Mahesh
279925e161
KL27Z: Coding convention fixes
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-15 14:03:55 -06:00
Mahadevan Mahesh
682df90b2e
K82F: Coding convention fixes
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-15 12:32:03 -06:00
Mahadevan Mahesh
652c81ce76
K66F: Coding convention fixes
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-15 12:31:55 -06:00
Sam Grove
ad35eafe93
Merge pull request #3253 from micromint/master
...
Fix default polarity on LPC43XX PWM driver
2016-11-14 21:53:03 -06:00
Sam Grove
e875dbc90d
Merge pull request #3237 from javierpedrido/master
...
Added back USART 6 pins
2016-11-14 21:46:59 -06:00
Sam Grove
31c81131df
Merge pull request #3233 from brimston3/fix_k20_pwmclk
...
K20xx Calculate PWM clock relative to bus clock
2016-11-14 21:44:51 -06:00
Sam Grove
c131a27dcf
Merge pull request #3231 from monkiineko/master
...
STM32F3: DISCO_F303VC - Add missing UART and ADC pin muxing options
2016-11-14 21:44:32 -06:00
Sam Grove
cb930e7482
Merge pull request #3243 from bridadan/fix-make-exporters
...
Fix make exporters compilation
2016-11-14 10:59:20 -06:00
Mahadevan Mahesh
d635ef6ba0
Kinetis SDK: Include stddef.h to fix build errors seen when including SDK header files
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-10 13:22:13 -06:00
Anna Bridge
f6f872a858
Merge pull request #3159 from radhika-raghavendran/master
...
User trim values for NCS36510
2016-11-10 17:06:54 +00:00
Anna Bridge
805af00b87
Merge pull request #3194 from NXPmicro/Update_K64_SDK_Drivers
...
Update K64 sdk drivers
2016-11-10 17:05:02 +00:00
Anna Bridge
baec7b3aec
Merge pull request #3198 from jeromecoutant/PR_F410_ASYNC
...
NUCLEO_F410RB: Add I2C_ASYNCH capability
2016-11-10 17:04:28 +00:00
Anna Bridge
67e03ee065
Merge pull request #3211 from OpenNuvoton/nuvoton
...
[NUC472/M453] Support single UART shared by multiple serial objects and other updates
2016-11-10 17:03:42 +00:00
Anna Bridge
a553b23250
Merge pull request #3217 from jeromecoutant/PR_F469_ASYNC
...
Add I2C_ASYNCH capability for DISCO_F469NI
2016-11-10 17:02:54 +00:00
micromint
aede0fc6f3
Fix default polarity on LPC43XX PWM driver
2016-11-10 13:00:34 -04:00
Vincent Coubard
9649637e42
[NORDIC - NRF51 - MBED 2] Fix a bug related to the RTC interrupt enabled.
...
Enable the interrupt for the OS tick when the OS tick is enabled rather than
all the time. Otherwise, the interrupt will be triggered bu never handled.
2016-11-10 16:47:25 +00:00
Laurent MEUNIER
e293e07749
stm32f4 make comment more explicit
...
As reported during review, this was not understandable as it is.
the get_i2c_obj allows to get a pointer to i2c_s struct from the
handle pointer. This therefore makes a hard-coded assumption
about the struct itself
2016-11-10 17:30:04 +01:00
Laurent MEUNIER
fa9d147f69
Update Serial following L0 HAL update
2016-11-10 11:03:46 +01:00
Laurent MEUNIER
ab0a8ad508
STM32L0: Cube update V1.5.0 to v1.7.0
...
Including HAL and CMSIS udpate
2016-11-10 11:03:46 +01:00
Sam Grove
7963e8e7c1
Merge pull request #3160 from peter-harliman/wrong_index_lpc43xx_tx_end_ring
...
Fix wrong index at LPC43xx tx end ring assignment
2016-11-09 15:22:14 -06:00
Brian Daniels
f6e79cb111
Fixing invalid comment notation in assembly file
2016-11-09 12:09:09 -06:00
Brian Daniels
52dc7c5423
Renames all prebuilt binaries to be prefixed with 'lib'
...
This fixes an issue with make_iar, since IAR requires all libraries that
are linked to be prefixed with 'lib'.
2016-11-09 11:08:01 -06: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
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
Radhika
d637f6d3ad
Modified user trim default values.
2016-11-09 17:12:35 +05:30
Andrew Domaszek
8482aafa2a
Calculate PWM clock relative to bus clock
2016-11-08 23:42:59 -05: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
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
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
jeromecoutant
5271f89c82
Add I2C_ASYNCH capability for DISCO_F469NI
2016-11-07 11:45:46 +01:00
ccli8
4ae76be2ce
[NUC472/M453] Reduce (interrupt) stack size from 4 KB to 2 KB
2016-11-07 12:28:20 +08:00
ccli8
c557842d68
[NUC472] Reduce (interrupt) stack size from 12 KB to 4 KB
2016-11-07 10:59:42 +08:00
ccli8
2922de8dff
[NUC472/M453] Remove dead code in device.h
2016-11-07 10:59:42 +08:00
ccli8
e09d9a15f5
[NUC472/M453] Support UART H/W module shared by multiple serial S/W objects
...
1. With GCC_ARM and uARM, some greentea tests fail due to no support for this.
2. Bind UART H/W module to correct serial S/W object for interrupt.
2016-11-07 10:59:42 +08:00
Niklas Hauser
1c2a7d8842
Added the commit: Access MCG and SIM through secure access
...
This is needed for uvisor
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-04 14:59:12 -05:00
jeromecoutant
36740a1fdf
NUCLEO_F410RB: Add I2C_ASYNCH capability
...
It has disappeeared with https://github.com/ARMmbed/mbed-os/pull/2765
2016-11-04 14:08:42 +01: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
Mahadevan Mahesh
931da516a9
K64F: Update to the latest SDK drivers
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-03 07:07:49 -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
Peter Harliman Liem
b3e5c97244
Fix wrong index at LPC43xx tx end ring assignment
...
NUM_TX_FRAG should be used instead of NUM_RX_FRAG
2016-10-28 22:48:37 +08:00
cyliangtw
33cfe1f599
remove dead code in device.h of NUC472 & M453
2016-10-28 18:39:56 +08:00
Radhika
eaf7265aa6
User trim added.
...
Astyle and pylint run on code.
2016-10-28 15:02:52 +05:30
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
Michel Jaouen
b225a5ca97
STM32F1xx : GCC_ARM remove zero bss done at startup.
...
Zero bss is done after the call to _start.
2016-10-27 10:40:17 +02:00
Michel Jaouen
702f64a6f2
STM32F0xx: GCC_ARM remove zero bss, in startup.
...
zero bss is done in libc init after call to _start.
2016-10-27 10:40:02 +02:00
Michel Jaouen
9f20c4641d
STM32F0xx : GCC_ARM use a call to _start which performs
...
zero bss, C++ init and the call to main.
Remove direct call to __libc_init_array and main not needed
as _start is beeing called.
2016-10-27 10:39:02 +02:00
Michel Jaouen
af090e3e6e
STM32L0xx : GCC_ARM remove zero bss, in startup.
...
zero bss is done in libc init after call to _start.
2016-10-27 10:38:56 +02:00
Michel Jaouen
479a1a2715
STM32L1xx : GCC_ARM remove zero bss, in startup.
...
zero bss is done in libc init after call to _start.
2016-10-27 10:38:52 +02:00