Adam Gausmann
dc49c2b5f5
Add separate flags for I2C slave transfer in progress
...
Fixes ARMmbed/mbed-os#15498
Adds 2 boolean flags to the STM32 `i2c_s` object
to indicate whether a transfer is in progress,
separate from the existing "transfer pending" flags.
`i2c_slave_write`, `i2c_slave_read` and their associated callbacks
are modified to use these flags in addition to the pending flags.
The original behavior of the pending flags is preserved.
2024-03-28 10:47:59 -05:00
Jerome Coutant
f3f030eb1c
STM32F1: add MCU_STM32F103xG support
2023-01-03 12:51:19 +01:00
Jerome Coutant
95f874a87e
STM32F103xE: correct GCC startup file
2023-01-03 12:51:19 +01:00
Jerome Coutant
74ca88bae0
STM32F1: add MCU_STM32F103xD support
2023-01-03 12:51:19 +01:00
Jerome Coutant
1cd6bf1399
STM32F1: add MCU_STM32F103xC support
2022-03-31 15:31:47 +02:00
Mathieu Othacehe
3c0c9c2b33
STM32: increase i2c slave rx limit.
...
Use uint16_t variables for i2c slave_rx_buffer_size and slave_rx_count
variables. This allows to receive more than 255 bytes in slave mode. The
bytes are received one by one in slave mode so there are no hardware
limitations forcing a 1 byte rx count limit.
2022-01-28 11:58:52 +01:00
Jerome Coutant
66fa2dd0c2
STM32F1 remove non-UTF characters
2021-10-12 17:52:05 +02:00
Jerome Coutant
a3d21b7672
STM32F1: add more alternate functions
2021-09-17 15:37:56 +02:00
Martin Kojtal
9bcc48678a
Merge pull request #14976 from world-direct/feature/target_stm32f1
...
Add more uarts for STM32F103xG
2021-08-13 13:08:02 +01:00
Lukas Karel
727daf910b
add more uarts for STM32F103xG
2021-08-04 09:05:59 +02:00
Martin Kojtal
7095dc79fa
Merge pull request #14688 from MubeenHCLite/CAN_rxinterrupt_fix
...
Solution for mutex problem in CAN read ISR
2021-07-12 17:21:56 +02:00
Mohammed Mubeen
8622f66b46
Resolved review comments
2021-07-03 13:22:25 +05:30
anish-k
eb06d5eb59
analogout: STM32: modified analogout_free api
...
removed hardcoded pins, implemented multi channel check
implemented DAC_2 initialization for H7 board
Added #if defined DAC_CHANNEL_2
2021-07-02 21:34:24 +05:30
Mohammed Mubeen
5d861f895d
Merge branch 'master' into CAN_rxinterrupt_fix
2021-06-29 18:32:48 +05:30
Mohammed Mubeen
1a2d624828
Added Raw CAN (unlocked can read api) and updated the code for the
...
rxInterrupt to work for all CAN instances
2021-06-29 12:46:21 +05:30
Martin Kojtal
b74f62c974
Merge pull request #14659 from arduino/i2c_slave_patch
...
STM32: make i2c_salve_read return the number of bytes read
2021-06-10 14:10:31 +02:00
pennam
cd35063694
Add missing changes in objects.h file for others STM32 components
2021-06-03 10:12:04 +02:00
jeromecoutant
81dc8f8605
STM32: correct __cplusplus brackets in ci2c_device.h
2021-05-24 14:47:05 +02:00
jeromecoutant
073c82e568
STM32: correct __cplusplus brackets in can_device.h
2021-05-24 14:39:32 +02:00
Martin Kojtal
32d1c99d3c
Merge pull request #14480 from jeromecoutant/PR_STM32_STANDARD
...
STM32: Standard Pin Names
2021-04-15 17:30:50 +02:00
Martin Kojtal
dd1da3da40
Merge pull request #14469 from jeromecoutant/PR_FLASH_PROGRAM
...
STM32: remove critical sections in flash_program_page
2021-04-14 20:15:11 +02:00
jeromecoutant
69a7e3eeff
STM32F1: standard pin names
2021-04-14 10:23:28 +02:00
Martin Kojtal
8b8f4e52a0
Merge pull request #14521 from AnishKumarHCL/pwm_gpiopull_fix
...
Updated TARGET_STM32 board pinMap_PWM table with GPIO_NOPULL
2021-04-14 09:54:22 +02:00
Anish Kumar
780d7c4a00
Updated TARGET_STM32 PeripheralPins.c and PeripheralPinMaps.h Replaced GPIO_PULLUP with GPIO_NOPULL in PinMap_PWM table
2021-04-08 18:42:01 +05:30
reme
e523617360
UPDATE STM32CubeF1 with v1.8.3
2021-04-01 09:18:43 +02:00
Anna Bridge
b91a705e74
Merge pull request #14444 from jeromecoutant/PR_GPIO_FREE
...
STM32: reset GPIO value is analog mode
2021-03-29 11:23:15 +01:00
jeromecoutant
d0ea0466ad
STM32: remove critical sections in flash_program_page
2021-03-24 17:40:18 +01:00
George Psimenos
61cfaa15cd
Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides
2021-03-23 11:17:17 +00:00
George Psimenos
885cdef5f7
Add standard pin-names validation script & tests
2021-03-18 17:01:53 +00:00
jeromecoutant
7203125827
STM32 ANALOGOUT : correct GPIO free
2021-03-18 14:53:00 +01:00
Marek Czerski
f64e64dc9d
STM32: AnalogOut: do not call HAL_DAC_Start in dac_write
...
dac_write (used by AnalogOut.write) calls HAL_DAC_Start
every time. It is required to call HAL_DAC_Start only once.
HAL_DAC_Start uses internally HAL_Delay(1) making AnalogOut
not suitable for use in high speed application.
This change removes call to HAL_DAC_Start in dac_write and
moves it to analogout_init.
2021-03-12 09:56:41 +01:00
Martin Kojtal
e37f7a67f2
Merge pull request #14351 from ladislas/ladislas/stm32f7/use_callbacks
...
STM32 - Add if !defined check for USE_HAL_XXX_REGISTER_CALLBACKS
2021-03-08 11:08:45 +00:00
Harrison Mutai
da73b4bf8d
CMake: Refactor target MCU_STM32F103xE library name
2021-03-04 15:37:47 +00:00
Ladislas de Toldi
aa30a254a9
STM32F1 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS
2021-02-25 16:10:21 +01:00
Yong Cong Sin
d458f24680
Remove custom board from CMakeLists.txt
2021-02-20 18:27:38 +08:00
Yong Cong Sin
d81f520073
Divide HSE by 2 if the external XTAL used is 16 MHz
2021-02-19 15:35:47 +08:00
Yong Cong Sin
a36d006b7c
Add STM32F103xE SOC support
2021-02-19 10:57:34 +08:00
Robert Walton
ed4027edf0
Fix STM32F103xB target
2021-02-15 11:06:43 +00:00
Martin Kojtal
2d3bf3fd34
CMake STM32: fixing prefixes in the targets
2021-02-10 15:23:22 +00:00
Martin Kojtal
6bf459e3ce
CMake STM32: fix mbed-stm linking libs names
2021-02-10 12:24:10 +00:00
Martin Kojtal
544e5b94c3
CMake STM32: fix targets naming
...
Follow the naming for other CMake targets, using prefix mbed-, lower case with dashes
2021-02-09 17:07:44 +00:00
Robert Walton
d9e184b6c6
cmake: Refactor ST targets
...
Refactor all ST targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.
A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-04 15:26:36 +00:00
jeromecoutant
1bbceb48f0
STM32 / CMAKE / targets : correct CMakeLists.txt files
2021-01-15 15:11:16 +01:00
pea-pod
e1c754b179
Add SPI bitwidths to ST targets where supported
2021-01-11 07:53:07 -06:00
Martin Kojtal
fc16d2bae7
STM: fix ARMClang sct files, using proper -E command
...
This is required for ARMClang, otherwise there is an error with unknown command.
2020-11-25 13:35:36 +00:00
Martin Kojtal
b552127916
Merge pull request #13931 from jeromecoutant/PR_I2C_LEGACY
...
STM32 I2C: use correct HAL API
2020-11-24 14:12:05 +00:00
Martin Kojtal
a1fc9cdad5
Merge pull request #13915 from 0xc0170/cmake-stm32
...
CMake: add all TARGET_STM targets
2020-11-24 14:09:28 +00:00
reme
16e63dc108
STM32 FLASH API : add critical sections
...
See PR #13802 (for F4 board)
Concerned boards are
STM32F0
STM32F1
STM32F2
STM32F3
STM32F4
STM32F7
STM32G0
STM32G4
STM32H7
STM32L0
STM32L1
STM32L4
STM32L5
Adding test of return code of HAL_FLASH_Lock() function
Adding board STM32F4
Running AStyle
2020-11-20 08:03:24 +00:00
jeromecoutant
b01940200c
STM32 I2C: use correct HAL API
2020-11-19 12:03:48 +01:00
Martin Kojtal
c49d0b88aa
CMake: STM32F1 Cube fix driver includes
2020-11-17 16:52:10 +00:00