Commit Graph

692 Commits (747e8e1ea1e70777bbfb2afae3463c60ffd78a5b)

Author SHA1 Message Date
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
Laurent MEUNIER 8e5d2eb1dc STM32: pwm period and prescaler calculation
Correct the while loop limit and add a safe guard to avoid infinite loop.
2017-02-27 13:47:34 +01: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 293b9fc297 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-02-17 14:11:41 +01:00
Sam Grove e22f26ffa4 Merge pull request #3663 from helmut64/STM32L4_deepsleep_fix
Fixed a problem that the STOP2 was falling back to STOP1
2017-02-13 10:12:30 -06:00
Sam Grove d8151d7991 Merge pull request #3590 from OpenNuvoton/nuvoton
[NUC472/M453] Export IAR project and other bugfixes
2017-02-13 10:12:02 -06:00
Sam Grove ec329be6f2 Revert "Target stm usb config" 2017-02-09 15:37:19 -06:00
Sam Grove e8a7264aab Merge pull request #3723 from pradeep-gr/feature-spi
NCS36510: spi_format function bug fix
2017-02-09 09:49:04 -06:00
Sam Grove 34de26dc3a Merge pull request #3695 from c1728p9/fix_invalid_device_names
Enforce device_name is valid in targets.json
2017-02-09 09:39:05 -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
Sam Grove e0fb062ae8 Merge pull request #3649 from adustm/STM32F7_folderstruct
[STM32F7] Modify folder structure
2017-02-09 09:30:28 -06:00
Sam Grove 15cbf6628e Merge pull request #3621 from JojoS62/fix-lpcxpresso-clock
Fix for #2884, LPC824: export to LPCXpresso, target running with wron…
2017-02-09 09:30:05 -06:00
Russ Butler acdf1e3728 Fix or remove invalid device names
The field device_name is intended to match that of a target in a
device family pack. Remove this field for devices which do not have
a pack. Fix the name for devices that have the name incorrect. Update
IAR definitions for device which no longer have a device_name but
still need to have support for the IAR exporter.
2017-02-08 14:54:25 -06:00
pradeep-gr 48a78c554d NCS36510: spi_format function bug fix 2017-02-08 18:26:49 +05:30
Helmut Tschemernjak 10bb94a365 Fixed code style violation needs '{' 2017-02-07 22:24:20 +01:00
Jaeden Amero 378655f40c uVisor: Standardize available legacy heap and stack
With the RTOS, the STACK_SIZE specified here is unrelated to the stack
size available for the main thread (that runs pre_main). Save memory by
reducing the stack size to a more reasonable amount.

On uVisor, HEAP_SIZE is both a minimum available and maximum available
heap size. The heap can't grow beyond the end of the heap into the
neighboring stack. On all uVisor-supported platforms, guarantee at least
0x6000 bytes of heap space. This increases the portability of uVisor
applications as the memory available for legacy heap allocations is
guaranteed. This helps to avoid out of memory errors on platforms that
were previously guaranteeing less memory.
2017-02-07 16:46:38 +00:00
Sam Grove 0e04161356 Merge pull request #3685 from LMESTM/fix_i2c_sw_reset
STM32: I2C: reset state machine
2017-02-07 10:38:53 -06:00
Sam Grove ea7f15f511 Merge pull request #3658 from adustm/STM32F3_folder_struct
[STM32F3] Modify folder structure
2017-02-07 10:35:57 -06:00
Sam Grove 98ed807338 Merge pull request #3657 from adustm/STM32L4_folderstruc
[STM32L4] Modify folder structure
2017-02-07 10:35:41 -06:00
Sam Grove 12edb2cac2 Merge pull request #3655 from adustm/STM32F4_folderstruct
[STM32F4] Modify folder structure
2017-02-07 10:35:26 -06:00
Laurent MEUNIER 57f4df64e5 STM32: I2C: reset state machine
this I2C IP is meant for automatic STOP, based on programmed number
of bytes to be sent or receivede, not a user triggered STOP.
So the state machiine needs to be reset in case we use this I2C mbed
unitary API (start / byte_write / byte_read / stop).
2017-02-03 13:41:52 +01:00
Michel Jaouen 91c53131db TARGET_STM: add NUCLEO_F103RB 2017-02-03 10:32:30 +01:00
Michel Jaouen 4d59c8857d TARGET_STM :move usb config file to target dir 2017-02-03 10:32:19 +01: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 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 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
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
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
Helmut Tschemernjak 605059e683 Fixed a problem that the STOP2 was falling back to STOP1 because
the LPR was not turned on. Now the deepsleep mode only needs 1.6uA
instead of 10uA.
2017-01-31 11:44:41 +01:00
mbedNoobNinja d627bf2d1f Export IDE support added 2017-01-31 10:23:21 +02:00
adustm ee55574d3b STM32F302x8 folder struct 2017-01-27 19:42:02 +01:00
adustm c596cdad36 STM32F334x8 folder struct 2017-01-27 19:38:26 +01:00
adustm 703386d443 STM32F303xC folder struct 2017-01-27 19:30:27 +01:00
adustm 6970de6df7 STM32F303x8 folder struct 2017-01-27 19:27:24 +01:00
adustm c30813955f STM32F303xE folder structure modification 2017-01-27 18:36:49 +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
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
adustm a9ef00231c STM32F410xB folder structure update 2017-01-27 15:41:49 +01:00
adustm 00f80b0abe STM32F401xE folder structure update 2017-01-27 15:41:49 +01:00
adustm 2a4ef3f464 STM32F469xI folder structure update 2017-01-27 15:41:49 +01:00
adustm 0883430bba STM32F412xG folder structure update 2017-01-27 15:41:49 +01:00
adustm 5c3bf54928 STM32F407xG folder structure update 2017-01-27 15:41:49 +01:00