adustm
897625cc96
Give access to HAL_GetTick function
2017-05-29 10:24:03 +02:00
Sam Grove
2500ab03f2
Merge pull request #4351 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_L4_V1.8.0
...
STM32L4 cube update from v1.5.0 to v1.8.0
2017-05-26 16:58:37 -05:00
Sam Grove
d11289b576
Merge pull request #4165 from adustm/can_init
...
fix #3863 Add an mbed API that allows the init of the CAN at the bus frequency
2017-05-26 10:45:19 -05:00
jeromecoutant
5dc49b7d6c
STM32L4 replace deprecated macro name
2017-05-19 11:59:38 +02:00
jeromecoutant
0178969e90
STM32Cube_FW_L4_V1.8.0
...
CMSIS v1.1.1 => v1.3.1
STM32L4 HAL v1.5.1 => v1.7.1
2017-05-18 14:36:32 +02:00
adustm
a769d2b6a5
add comment in peripheral pin of DISCO_L476VG so that
...
the user is aware of conflicts
2017-05-15 15:06:29 +02:00
Michel Jaouen
c581230cd3
USBHOST: TARGET_STM fix in hal for hub support
2017-05-09 16:18:33 +02:00
Anna Bridge
a85873c863
Merge pull request #4248 from screamerbg/fix/stm32-usb-support
...
Fixed STM32 USB Device support for mbed Classic
2017-05-05 13:51:38 +01:00
Jimmy Brisson
0c2af26523
Merge pull request #4249 from kegilbert/button-mapping-kg
...
Add consistent button names across targets
2017-05-03 11:26:36 -05:00
Kevin Gilbert
0268c85101
Fixed typos
2017-05-02 13:16:14 -05:00
Kevin Gilbert
418d83b6c2
Addressed review comments: fixed unmapped switches and added Hexiware buttons
2017-05-02 12:20:05 -05:00
Kevin Gilbert
28d1ac5a44
Added mapping to USER_BUTTON-labelled switches
...
Revert HRM1017 file source deletion
Added in small comment next to additions
Added mapping to BTN-labelled switches
Added mapping to USER_BUTTON-labelled switches
Undo incorrect mapping to SWIO pin in NORDIC target
2017-04-28 11:37:23 -05:00
Mihail Stoyanov
301ce550c9
Fixed STM32 USB Device support by migrating all specific target headers to unsupported features where they belong until USB support is officially introduced in mbed OS 5
2017-04-28 17:23:07 +01:00
Laurent MEUNIER
4eea8fa863
STM32 Fixed warning related to __packed redefinition
...
Before this patch, many warnings like below were generated
during compilation with ArmCC
[Warning] lwip_ethernet.h@57,0: #3135-D: attribute does not apply to any entity
This happens here as ``--gnu`` option of ArmCC is being used, which
enables the GNU compiler extensions that the ARM compiler supports.
This is solve by adding a extra check on __CCARM .
2017-04-27 10:32:00 +02:00
jeromecoutant
03972ebb0c
STM32L4 Internal ADC channels rework
...
Internal ADC pins are now out of PinMap_ADC array
2017-04-12 13:14:58 +02:00
Sam Grove
bfb86a7f51
Merge pull request #4125 from jeromecoutant/PR_F4_USB_CONFIG_FILE
...
STM32 USB configuration file move
2017-04-10 11:07:59 -05:00
jeromecoutant
3bbbabf202
STM32L4 USB configuration file move
2017-04-06 11:51:26 +02:00
jeromecoutant
0c2720bc19
NUCLEO_L476RG : minor serial pin update
...
SERIAL_TX and SERIAL_RX pins used for debug printf cannot be set as available
2017-04-04 14:38:17 +02:00
Michel Jaouen
fc972f0a98
fix STM USB config after L4 ,F4, F7 file tree changes
2017-03-14 15:57:40 +01:00
Michel Jaouen
873cacfc73
Revert "Revert "Target stm usb config""
...
This reverts commit ec329be6f2 .
2017-03-14 15:57:28 +01:00
Martin Kojtal
68dc25331a
Merge pull request #3843 from bcostm/fix_stm32l4_apb2_80MHz
...
STM32L476xG: set APB2 clock to 80MHz (instead of 40MHz)
2017-03-09 15:44:08 +00:00
Martin Kojtal
fd6fdd5f8c
Merge pull request #3795 from LMESTM/fix_pwm_period_calc
...
Fix pwm period calc
2017-03-09 15:39:00 +00:00
bcostm
ae6899b448
STM32L4xx: set APB2 clock to 80MHz (instead of 40MHz)
2017-03-06 13:34:01 +01:00
Laurent MEUNIER
747e8e1ea1
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-02-27 17:07:01 +01: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
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
bcostm
f527ff95ab
Add support to L4 targets.
2017-02-20 11:19:53 +01:00
Sam Grove
99dda9a60b
Merge pull request #3740 from jeromecoutant/PR_L4_RTC
...
STM32L4 HAL update for RTC Wake Up Timer
2017-02-17 09:12:01 -06:00
Laurent MEUNIER
1cbb3e18ac
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-02-17 14:11:56 +01:00
Laurent MEUNIER
32ecd00c3a
STM32: move pin_lines_desc to c file
...
Move the const table initialization from the header file
to a new C file to avoid any multiple defined errors.
2017-02-16 19:34:11 +01:00
Laurent MEUNIER
73955b678e
STM32: pins: move pin_lines_desc table to const
2017-02-16 19:34:05 +01:00
Laurent MEUNIER
273ac81680
stm32: use default in switch case
...
As commented during PR review, better use default case.
2017-02-16 19:34:01 +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
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
jeromecoutant
2433b1ad95
STM32L4 HAL update for RTC Wake Up Timer
2017-02-10 16:26:10 +01:00
Sam Grove
ec329be6f2
Revert "Target stm usb config"
2017-02-09 15:37:19 -06:00
Sam Grove
d990385058
Merge pull request #3684 from jamike/TARGET_STM_USB_CONFIG
...
Target stm usb config
2017-02-09 09:35:16 -06:00
Michel Jaouen
4d59c8857d
TARGET_STM :move usb config file to target dir
2017-02-03 10:32:19 +01:00
adustm
885515acc9
STM32L432xC folder structure rework
2017-01-27 17:41:59 +01:00
adustm
389d9ba358
STM32L476xG STM32L486xG folder structure modification
2017-01-27 17:35:27 +01: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
Laurent MEUNIER
42f6622f8e
STM32: Move types definitions to a common file
...
Only one point of attention:
STM_MODE_ANALOG_ADC_CONTROL is a specific mode that is only supported on L4.
So STM_MODE_ANALOG_ADC_CONTROL was moved to index 13 (last entry)
of gpio_mode table so that all the other modes are common and only the last
one is specific.
2017-01-24 10:58:36 +01:00
Laurent MEUNIER
5d04b97b80
STM32: make PortNames.h a common file
...
the same file can be used for all targets
2017-01-19 15:27:19 +01:00
Martin Kojtal
3933ccf76e
Merge pull request #3584 from LMESTM/dev_stm32_common_peripheralpins
...
STM32: make PeripheralPins.h a common file
2017-01-16 16:29:28 +00:00
Martin Kojtal
cc8a132f10
Merge pull request #3575 from LMESTM/dev_stm_factorize_gpio
...
Dev stm factorize gpio
2017-01-16 16:28:27 +00:00
Laurent MEUNIER
1a4394a4a2
STM32: make PeripheralPins.h a common file
...
Simple effort to avoid duplicate code.
2017-01-13 13:25:33 +01:00
Brian Daniels
24a9a4824f
Fixes linking errors when building with debug profile
...
When building with the debug profile, certain ST plaforms error with
'get_i2c_timing' not being defined. This is because the function is not
defined as 'static inline', but just 'inline'.
2017-01-12 15:09:28 -06:00