Commit Graph

782 Commits (c76d8ffdfcb440f0914be552e2b9c6dfbe9e2527)

Author SHA1 Message Date
Mohammad Azim Khan 80fbde313c Fix heap size for NUCLEO_F746ZG on IAR 2017-03-13 11:14:43 +00:00
bcostm 4c344d76a9 Add AnalogIn pins on PF3, PF5 and PF10. Don't know why it was missing ? 2017-03-13 11:14:35 +00:00
bcostm 404b58c4df STM32L4xx: set APB2 clock to 80MHz (instead of 40MHz) 2017-03-13 11:14:11 +00:00
Głąbek, Andrzej 4257bfe774 TARGET_NRF: added a description of the recent change in spi_init(). 2017-03-13 11:14:08 +00:00
Głąbek, Andrzej 2129b29bed TARGET_NRF: corrected spi_init() to properly handle re-initialization on the same pins + minor editorial corrections. 2017-03-13 11:14:04 +00:00
jeromecoutant 74695e74cf STM32 CAN API: correct format and type
astyle done
2017-03-13 11:14:00 +00:00
Laurent MEUNIER 461aa66040 Fix XDOT compilation error
Typo with misplaced closing parenthesis leads to compilation error,
which is fixed with this patch
2017-03-13 11:13:56 +00:00
Laurent MEUNIER 1268ed8dcb STM32: fix formatting
Use the recommended style
if (condition) {
  do();
} else {
  do_else();
}
2017-03-13 11:13:52 +00:00
Laurent MEUNIER 68a5f7af42 STM32: move pwmout device tables to C file
In order to avoid possible multiple definitions errors, move the table
initialization to the C file instead of header file
2017-03-13 11:13:49 +00:00
Laurent MEUNIER ae139d6c22 STM32: pwm period and prescaler calculation
Correct the while loop limit and add a safe guard to avoid infinite loop.
2017-03-13 11:13:45 +00:00
Laurent MEUNIER 1f825c1877 STM32: make PWM driver into a common file
The pwmout driver is very similar for each STM32 family.

The only family specific part is defined in pwmout_device.h file.
It mainly contains few specific information:
- The mapping of PWM/TIMERS to APB1 or APB2 so that we can get the clock
- The clock calculation uses the right APB clock, which was sometimes
not the case before and could have lead to errors in case dividers were
enabled on APB clock settings. This case is now covered.
- Inactivation of inverted support on feaw families
2017-03-13 11:13:41 +00:00
Laurent MEUNIER 0789c24710 STM32 L1: Define PWM Channels in PeripheralsPins.c
As done for other families, let's define the PWM channel in the PWM
pins table definition rather than driver.
2017-03-13 11:13:37 +00:00
adustm deb7be1376 DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated 2017-03-13 11:13:22 +00:00
Mike Fiore 854d2f3fe5 Define GPIO_IP_WITHOUT_BRR for xDot platform. Resolves #3823. 2017-03-13 11:13:14 +00:00
Laurent MEUNIER 9ba340a964 STM32: change spi error to debug warning
In case the selected frequency is higher than the requested one, it is
better to send a debug warning rather than an blocking error.

In case of such warning, user may need to redefine the clock tree setting
at higher level (reducing peripheral's input clocks during init phase).
2017-03-13 11:13:10 +00:00
bcostm 7374f9cc87 Typo: update comment (GPIO_IP_WITHOUT_BRR) 2017-03-13 11:13:02 +00:00
Laurent MEUNIER ed6d03b9cc STM32: gpio SPEED - always set High Speed by default
Up to now, speed was set for outputs and alternate, but this is
also valid for input configuration.

By default, let's configure high speed.

This is done firts, because speed for some families like F1 is mixed
with Input/Output mode settings, so can be later over-ridden if needed.
2017-03-13 11:12:59 +00:00
Hovik Melikyan 6a5d2045a7 Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os source
By default the number of pstorage pages is set 1 and all addresses are
calculated in the pstorage module accordingly. Nordic recommends
changing this macro to whatever number is suitable for the app (see
https://devzone.nordicsemi.com/question/53066/what-will-be-the-starting-
address-of-pstorage-page-how-we-can-change-it/?answer=53085#post-id-5308
5) which is not quite elegant given that pstorage_platform.h is part of
the mbed-os repo. With this modification you can e.g. define
PSTORAGE_NUM_OF_PAGES on the command line, however note that you should
rebuild mbed-os with this setting as it affects pstorage_platform.c.
2017-03-13 11:12:55 +00:00
U-ONSEMI\\fg64rh 86fa3efa15 Conflict resolved 2017-03-13 11:12:46 +00:00
Pierre-Marie Ancele 44c60b55a6 Use #if defined TARGET_STM32L4 2017-03-13 11:12:42 +00:00
Pierre-Marie Ancele c57bce96b6 Fix GPIOG usage of STM32L4 by activating VDDIO2 power supply 2017-03-13 11:12:38 +00:00
jeromecoutant 14065c34a8 STM32 remove warning in hal_tick_32b.c file 2017-03-13 11:12:34 +00:00
adustm 5327930244 fix for issue #3715: correction in startup files for ARM and IAR, alignment of system_stm32f429xx.c files 2017-03-13 11:12:30 +00:00
Mohammad Azim Khan 8a0d18403a Increase HEAP size for UBLOX_EVK_ODIN_W2 and NUCLEO_F429ZI 2017-03-03 17:52:33 +00:00
Sam Grove b6fe5abb10 Merge pull request #3743 from jeromecoutant/PR_RTC_UPDATE
STM32 RTC api minor update
2017-02-23 10:19:11 -06:00
Sam Grove ba2176323c Merge pull request #3733 from theotherjimmy/feature-bootloader
Enable boot-loader builds
2017-02-23 10:18:31 -06:00
Jimmy Brisson d62f046e57 Fail bootloader builds on targets that don't support it
This patch will prevent building bootloader builds on targets that have
not yet had their linker scripts/scatter files changed to allow for the
ROM space shrinking expected by bootloader builds. At the point of this
patch, bootloader linker script modifications are only supported by the
NUCLEO_F429ZI, K64F, KL46Z, and Odin.
2017-02-22 18:27:23 -06:00
Christopher Haster aff49d8d1e Renamed files in platform to match source names
critical.h     -> mbed_critical.h
sleep.h        -> mbed_sleep.h
toolchain.h    -> mbed_toolchain.h
rtc_time.h     -> mbed_rtc_time.h
semihost_api.h -> mbed_semihost_api.h
wait_api.h     -> mbed_wait_api.h
2017-02-22 18:17:54 -06:00
Sam Grove a8a31da2e8 Merge pull request #3737 from bcostm/dev_can_factorization
STM32: can_api.c files factorization
2017-02-22 13:36:59 -06:00
Sam Grove 5c28715fbd Merge pull request #3742 from jeromecoutant/PR_SLEEP
STM32 : minor update in sleep HAL file
2017-02-22 13:35:01 -06:00
Sam Grove 355f69a11d Merge pull request #3802 from ARMmbed/feature-flash-api
Merge the feature-flash-api branch into master
2017-02-22 13:31:41 -06:00
Sam Grove 5491ccc0a6 Merge pull request #3803 from TomoYamanaka/master
Bug fix of initial value of interrupt edge in "gpio_irq_init" again
2017-02-22 13:21:13 -06:00
Sam Grove 0733fe0778 Merge pull request #3814 from 0xc0170/fix_i2c_delay_onsemi
NCS36510: I2C idle delay of 1us
2017-02-22 13:20:17 -06:00
jeromecoutant 3a83fc8a21 STM32 RTC api minor update
Add more detailed information in comments
Issue with sunday corrected
Issue with wrong rtc_isenabled status corrected
2017-02-22 08:50:58 +01:00
Russ Butler 071235415e Add K64F, KL46Z, F429, F439 and odin flash algos
Check in flash algos for the K64F, KL46Z, F429, F439  and Odin board
and enable these features accordingly in targets.json. This
implementation uses flash algo blob that are generated via scripts.
The K64F and KL46Z were generated directly from packs, while the
KL46Z, F429, F439 and odin were generated from code checked into
the FlashAlgo repo.
2017-02-21 14:09:06 -06:00
Martin Kojtal ff41cc97ae Merge pull request #3806 from 0xc0170/fix_issue#2989
NXP KL43Z/KL27Z: fix spi format bits check
2017-02-21 17:13:07 +00:00
Sam Grove 14bc2338eb Merge pull request #3812 from anangl/rework_i2c
TARGET_NRF5: reworked i2c_api.c
2017-02-21 11:03:27 -06:00
Sam Grove d14aa74b8c Merge pull request #3798 from c1728p9/fix_st_vtor
Fix vector table bug when using bootloader on ST
2017-02-21 11:02:17 -06:00
Sam Grove 09a0ff3b3f Merge pull request #3779 from geky/ncs36510-timing
NCS36510: Fix the sporadic semaphore timing issue
2017-02-21 10:50:14 -06:00
Sam Grove 1ee18b4ecb Merge pull request #3767 from OpenNuvoton/nuvoton
[NUC472] Support no-XRAM configuration
2017-02-21 10:49:13 -06:00
Sam Grove 4b850e268a Merge pull request #3759 from LMESTM/fix_spi_freq
STM32: spi_frequency table index fix
2017-02-21 10:47:17 -06:00
Sam Grove 3c3e04f6d2 Merge pull request #3739 from jeromecoutant/PR_F7_HSE
STM32F7 : remove multiple HSE_VALUE define value
2017-02-21 10:47:00 -06:00
jeromecoutant 053072c2dc STM32 : set back US counter after deepsleep 2017-02-21 17:46:15 +01:00
jeromecoutant e8519416c1 STM32 sleep.c remove compilation warning 2017-02-21 17:46:11 +01:00
Sam Grove b7dce71510 Merge pull request #3665 from LMESTM/dev_stm32_gpio_pins_rework
Dev stm32 gpio pins rework
2017-02-21 10:41:16 -06:00
Głąbek, Andrzej da73716092 TARGET_NRF5: corrected code style in i2c_api.c. 2017-02-21 11:47:51 +01:00
pradeep-gr c71bfdbc44 NCS36510: I2C idle delay of 1us
It is added between I2C commands as I2C_COMMAND_FIFO is too fast to push commands out.
2017-02-21 09:16:21 +00:00
Głąbek, Andrzej de2114f92b TARGET_NRF5: removed TWI master driver, as it is no longer used by i2c_api.c. 2017-02-21 07:49:11 +01:00
Głąbek, Andrzej 4bc09b3a8f TARGET_NRF5: reworked i2c_api.c. 2017-02-21 07:48:54 +01:00
0xc0170 bf77857641 NXP KL43Z/KL27Z: fix spi format bits check
Fixes #2989. It was always true for valid values (if its not 8 neither 16 bits, fail).
2017-02-20 10:42:18 +00:00