Commit Graph

9736 Commits (5317ea5bb61b13ae17e2d43d936582c2f40b4205)

Author SHA1 Message Date
Laurent MEUNIER 5317ea5bb6 STM32: I2C - pin mode
The default pin mode shall be set as part of the pinamp_pinout, and
as defined in tables of PeripheralPins.c, but this is currently
over-written by a call to pin_mode(pin, PullNone); from
mbed_pinmap_common.c, so we need a set the mode again here, including
OpenDrain config as needed for I2C.
2017-02-16 18:57:34 +01:00
Laurent MEUNIER 21bc5af3c2 STM32: common pinmap using LL layer to access registers
this first makes pinmap.c a common file

then rework it with several goals:
- avoid gpio / irq / pin management extra dependencies
- improve performances when switching between pin modes

This change is based on LL layer to access to registers level
instead of using HAL higher level API.

The family specific functions are implemented in pin_device.h
of each family. Mostly this is F1 family that is differnt
from other ones.
2017-02-16 18:57:18 +01:00
Laurent MEUNIER dce2ca75d8 STM32: gpio few performance improvements
Those are minor changes to increase performance of widely used
GPIO functions.
2017-02-16 18:55:56 +01:00
Laurent MEUNIER 3517eb108e STM32: Change Set_GPIO_Clock return type
Directly return a GPIO_TypeDef pointer to avoid extra casts.
Also move it to GPIO file.
2017-02-16 18:55:44 +01:00
Laurent MEUNIER 6bd488db4d STM32: gpio irq: Use LL registers access
Instead of using HAL_GPIO_Init / Deinit which makes a lot of registers
being written and re-written, and which creates extra gpio / pin / irq
dependencies, we directly set the IRQ related registers thanks for the
STM32 LL layers which provides APIs to modify registers.
2017-02-16 18:55:36 +01:00
Laurent MEUNIER 74774f9424 STM32 Make gpio_irq_api.c a common files
This requires the creation of gpio_irq_device.h file, where
family specific EXTI IRQ mapping is defined
2017-02-16 18:55:28 +01:00
Laurent MEUNIER 0e2cc3824b STM32 : Make port_api.c a common file 2017-02-16 18:55:20 +01:00
Sam Grove 65956d108e Merge pull request #3677 from c1728p9/armcc_linker_flags
ARM - pass linker flags along to the linker
2017-02-02 11:05:59 -06:00
Sam Grove 3a90cde132 Merge pull request #3676 from c1728p9/add_mbed_section_attribute
Add MBED_SECTION attribute
2017-02-02 11:03:29 -06:00
Sam Grove 2c54177115 Merge pull request #3674 from ARMmbed/feature_hal_sleep
NRF51822: HAL: Restore WEAK declaration for hal_(deep)sleep
2017-02-02 11:01:45 -06:00
Sam Grove b681b49295 Merge pull request #3664 from 0xc0170/fix_ncs36510sleep
Fix ncs36510 sleep definitions
2017-02-02 10:59:56 -06:00
Sam Grove 7083dc5339 Merge pull request #3661 from theotherjimmy/uvision-add-cpu
[Exporters] Add core to uvision exporter template
2017-02-02 10:58:53 -06:00
Sam Grove 5d946c46a5 Merge pull request #3653 from bridadan/fatal_error_detection
Adding fatal error detection to toolchains
2017-02-02 10:57:32 -06:00
Sam Grove 185af3e139 Merge pull request #3642 from mbedNoobNinja/VK_RZ_pins
Missing IRQ pin fix for platform VK_RZ_A1H
2017-02-02 10:56:49 -06:00
Sam Grove dd9b6451ef Merge pull request #3632 from mbedNoobNinja/master
IDE Export support for platform VK_RZ_A1H
2017-02-02 10:54:11 -06:00
Sam Grove b4becc77c9 Merge pull request #3629 from LMESTM/dev_stm32_l0_ll_layer
STM32: L0 LL layer
2017-02-02 10:51:55 -06:00
Sam Grove b9449dad7c Merge pull request #3628 from LMESTM/fix_warnings
Fix warnings
2017-02-02 10:50:58 -06:00
Sam Grove 419982c546 Merge pull request #3626 from bcostm/dev_usb_nucleo-f412zg
NUCLEO_F412ZG : Add USB Device +Host
2017-02-02 10:48:07 -06:00
Sam Grove f163e1e1af Merge pull request #3624 from TomoYamanaka/master
Fix Stack stats by running the test command with "-DMBED_HEAP_STATS_ENABLED=1"
2017-02-02 10:46:41 -06:00
Sam Grove def8b32121 Merge pull request #3181 from ohagendorf/nucleo_f207_peripheralpinsextension
NUCLEO_F207ZG extending PeripheralPins.c: all available alternate functions can be used now
2017-02-02 10:38:37 -06:00
Russ Butler 660b221285 ARM - pass linker flags along to the linker
On the ARM toolchain linker flags specified in the build profile do
not get passed to armlink. This patch adds these flags to the
arguments sent to armlink.
2017-02-01 09:23:31 -06:00
Russ Butler 605614a600 Add MBED_SECTION attribute
Allow the section that code is placed in to be explicitly specified
with the attribute MBED_SECTION.
2017-02-01 09:20:29 -06:00
Bartek Szatkowski 762e15e772 NRF51822: HAL: Restore WEAK declaration for hal_(deep)sleep
Otherwise we have a conflict between NRF51822 and DELTA_DFCM_NNN40.
2017-02-01 09:30:48 +00:00
Jimmy Brisson eadbe71d58 Add core to uvision exporter template
Strip trailing F's and D's off of the Cputype in uvision
2017-01-31 12:18:52 -06:00
0xc0170 3384572f14 ncs36510: fix sleep/deepslep name - add prefix hal_
This resolves an error that sleep is already defined.
2017-01-31 12:00:02 +00:00
0xc0170 86d136074c ncs36510: fix sleep header private file
This private header should have unique name, that does not collide with
generic names like sleep.h
2017-01-31 11:59:00 +00:00
mbedNoobNinja d627bf2d1f Export IDE support added 2017-01-31 10:23:21 +02:00
Anna Bridge 450701f211 Merge pull request #3651 from 0xc0170/max32630
Max32630 - fix LED4
2017-01-30 11:00:38 +00:00
bcostm e397e44f9e Enable USB tests in Travis build 2017-01-27 17:26:47 +01:00
bcostm e609796406 Enable USB Host 2017-01-27 17:22:07 +01:00
bcostm 592a25aa3c Add F412ZG in USBHAL files 2017-01-27 17:22:07 +01:00
bcostm 864a9b83e5 Add USB macros in targets.json for F412ZG 2017-01-27 17:22:07 +01:00
Laurent MEUNIER b63ca7eee2 Fix alignements 2017-01-27 16:00:39 +01:00
Brian Daniels 3ad3a9f1d5 Adding fatal error detection to toolchians.
Before the toolchains would ignore error messages that contained the
string "Fatal error". This would lead to a silent failure unless the
compile command was ran with verbose options. This is now fixed.
2017-01-27 12:07:13 +02:00
0xc0170 801708b594 Maxim 3630: define LED4 same as LED1 2017-01-27 11:10:53 +02:00
Martin Kojtal 15cd3da4ba Merge pull request #3640 from maximmbed/max32630
MAX32630FTHR: Adding new platform
2017-01-27 11:01:03 +02:00
Martin Kojtal ade6722707 Merge pull request #3607 from ARMmbed/feature_hal_sleep
Platform: Add sleep/deepsleep user facing functions
2017-01-26 13:55:33 +02:00
Martin Kojtal f231655619 Merge pull request #3635 from bcostm/fix_i2c
STM32 I2C : Fix bug in i2c_byte_read function
2017-01-26 10:39:03 +02:00
Martin Kojtal 5d09014bf1 Merge pull request #3631 from LMESTM/dev_stm32_hal_F3_V1.7.0
F3 CUBE update V1.7.0
2017-01-26 10:37:49 +02:00
Martin Kojtal fc6848435a Merge pull request #3630 from AnotherButler/patch-3
Delete mbed_targets.md
2017-01-26 10:37:24 +02:00
Martin Kojtal 23647442fb Merge pull request #3601 from theotherjimmy/clean-export-dir
Clean export dir
2017-01-26 10:36:38 +02:00
Martin Kojtal bdcda386d5 Merge pull request #3618 from LMESTM/dev_stm32_PinNamesTypes
STM32: Move types definitions to a common file
2017-01-26 10:35:59 +02:00
Martin Kojtal 7831da1e0e Merge pull request #3617 from Patater/efm32gg-linkerscript-fix
EFM32GG: Fix GCC_ARM linker script
2017-01-26 10:35:34 +02:00
Martin Kojtal a8f4b455fa Merge pull request #3614 from LMESTM/dev_stm32_PortNames
STM32: make PortNames.h a common file
2017-01-26 10:35:16 +02:00
Martin Kojtal c7a2dc6d30 Merge pull request #3613 from ARMmbed/fix_readme_build
README: Build info; Docs version updated
2017-01-26 10:34:07 +02:00
Martin Kojtal 4e28b25399 Merge pull request #3612 from bulislaw/fix_network_host_tool
tests: Fix error on MacOS for udp_dtls_handshake test
2017-01-26 10:33:32 +02:00
Martin Kojtal 57ec7493f2 Merge pull request #3608 from ilg-ul/jinja
Exporters: make jinja engine strict
2017-01-26 10:32:55 +02:00
Martin Kojtal b4ffd9a937 Merge pull request #3605 from TsungtaWu/master
Add DELTA_DFCM_NNN50 platform
2017-01-26 10:32:02 +02:00
Martin Kojtal dec3f01dd9 Merge pull request #3604 from bridadan/rename_gt_test_env
Renaming test_env.cpp in greentea to avoid warning
2017-01-26 10:31:13 +02:00
Martin Kojtal 9680901e7c Merge pull request #3603 from AnotherButler/patch-2
Delete testing_mbed_OS_5.md
2017-01-26 10:30:50 +02:00