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
Laurent MEUNIER
57e0225248
STM32: gpio: factorize gpio_api.c and gpio_object.h
...
Let's make the code more common for gpios.
The only difference between STM32 families is that BRR register may
not be available. In case BRR is not available, we use the 16 left bits
of BSRR instead. We could always use BSRR, but BRR saves one left-shift
operation, so let's use it when available.
By default we will consider using BRR, except for platforms that define
GPIO_IP_WITHOUT_BRR.
2017-01-12 19:24:32 +01:00
Laurent MEUNIER
7a36614e74
STM32: remove useless include
...
gpio_object.h is included from common_objects.h,
so no need to have it here.
2017-01-12 19:11:36 +01:00
Sam Grove
cefae22703
Merge pull request #3492 from Nodraak/fix/3463/can_read_return_value
...
Fix #3463 CAN read() return value
2017-01-09 10:17:27 -06:00
Sam Grove
ddcd3ad711
Merge pull request #3488 from LMESTM/dev_stm_i2c_v2_unitary_functions
...
Dev stm i2c v2 unitary functions
2017-01-09 10:15:55 -06:00
Adrien Chardon
885b018f77
Set bit without reseting the whole register
2017-01-03 11:46:27 +01:00
Adrien Chardon
7e0b4fe3c9
Fix can_read() return value for STM32 boards
2017-01-03 11:46:25 +01:00
Michel Jaouen
8af69dcbd6
STM32 HAL HCD : USBHOST changes for f4,f2,l4,f7
...
- reset toggle_out , toggle_in at init
- in/out toggle in on ctrl endpoint
- remove call back when transmission restarted
2017-01-02 09:48:15 +01:00
jeromecoutant
ab28a5e5cb
STM32: Refactor lp_ticker.c + rtc_api.c + sleep.c + rtc_api_hal.h files
2016-12-21 16:54:18 +00:00
Laurent MEUNIER
20c9af8bec
STM32: I2C unitary functions for IP V2
...
STM32 supported targets have 2 possible versions of I2C.
This patch makes the start / stop / read and write byte work ok for IP V2.
This was not working before and does not seem to be widely used.
2016-12-21 09:27:52 +01:00
Anna Bridge
d1aa6eea52
Merge pull request #3410 from jeromecoutant/PR_ST_L4_ASSERT
...
STM32L4 : map ST HAL assert into MBED assert
2016-12-19 17:33:13 +00:00
Martin Kojtal
04f940de2d
Merge pull request #3324 from LMESTM/dev_i2c_common_code
...
Dev i2c common code
2016-12-09 15:30:00 +01:00
jeromecoutant
3734269326
STM32L4 : correct ST HAL API call
...
- ll_utils: compilation issue
- GPIO: mode was not allowed by ST HAL API
2016-12-09 13:58:22 +01:00
jeromecoutant
64e92a54de
STM32L4 : refactor stm32l4xx_hal_conf.h and map ST HAL assert into MBED assert
2016-12-08 16:15:47 +01:00
Martin Kojtal
bd499daae8
Merge pull request #3304 from jeromecoutant/PR_L476
...
STM32L476: no HSE is present in NUCLEO and DISCO boards
2016-12-02 15:48:38 +01:00