Commit Graph

9810 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 21b91c794e Merge pull request #3753 from AnotherButler/patch-2
Delete build_profiles.md
2017-02-13 10:14:39 -06: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
Amanda Butler a02e5eecc8 Delete build_profiles.md
Delete page because duplicate exists in Handbook
2017-02-12 19:58:31 -06:00
Sam Grove aa6d673d70 Merge pull request #3734 from ARMmbed/revert-3684-TARGET_STM_USB_CONFIG
Revert "Target stm usb config"
2017-02-10 11:48:44 -06:00
Sam Grove ec329be6f2 Revert "Target stm usb config" 2017-02-09 15:37:19 -06:00
Sam Grove 29cfee4ae7 Merge pull request #3708 from OpenNuvoton/nuvoton_usb
[NUC472/M453] Fix USB EP setting error in USBAudio
2017-02-09 10:05:54 -06:00
Sam Grove 9ae6f7aa49 Merge pull request #3730 from c1728p9/redirect_support
Add redirect support to toolchains
2017-02-09 09:51:32 -06:00
Sam Grove cf19bb6ae8 Merge pull request #3727 from c1728p9/fix_error_handling
Fix access before variable defined bug in test_api
2017-02-09 09:50:07 -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 49494cfb29 Merge pull request #3717 from sarahmarshy/iar-new-targets
Add IAR export support for NUCLEO_F207ZG
2017-02-09 09:47:45 -06:00
Sam Grove 2de453c8fa Merge pull request #3706 from c1728p9/pre_process
Use the C Pre-Processor on GCC Linker scripts
2017-02-09 09:40:36 -06:00
Sam Grove 942cf8cbf0 Merge pull request #3702 from bridadan/remove_old_directories
Remove old tool directories
2017-02-09 09:39:25 -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 59c2c4bd99 Merge pull request #3693 from bulislaw/rework_build_profiles
[Proposal] Simplify build profiles: debug and release only
2017-02-09 09:36:14 -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 492db95be9 Merge pull request #3669 from bridadan/catching_assembler_errors
Adding case insensitive 'error' detection
2017-02-09 09:33:17 -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
Martin Kojtal 844b94c167 Merge pull request #3692 from Patater/legacy-heap-guarantee
uVisor: Standardize available legacy heap and stack
2017-02-09 11:48:50 +01:00
Jimmy Brisson c0f27597ec Add redirect support to toolchains
We create an API for generating the linker flags needed to redirect
functions in an application
2017-02-08 17:34:35 -06:00
Jimmy Brisson 3155e71786 Add pre-processing of linker scripts to Make exporter
For toolchains that do not implicitly run the C pre-processor on their
linker scripts the toolchain is expected to define a `preproc`
attribute.  The Makefiles then pick up on this attribute and add another
rule for pre-processing the linker script automatically.
2017-02-08 17:27:11 -06:00
Jimmy Brisson af4d848144 Use the C Pre-Processor on GCC Linker scirpts
This allows us to define parts of the linker script outside of the
linker script itself. In particular, we are interested in restricting
ROM to a subsection.
2017-02-08 17:26:36 -06:00
Sam Grove cd55625faf Merge pull request #3718 from bridadan/uvisor_define_fix
Fixing uvisor defines to fix build issues
2017-02-08 17:20:42 -06:00
Russ Butler 32b9ada3ec Enforce device_name is valid in targets.json
Add a CI test ensure that device_name exists inside the pack index.
2017-02-08 14:54:26 -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
Russ Butler 8c91b417e6 exporters: allow target name to be used for IAR
Allow the IAR exporter to fall back to a target's name if the
device_name entry is missing.
2017-02-08 14:54:20 -06:00
Jimmy Brisson 83e843bd8c Fix access before variable defined bug in test_api
The worker_result variable was not guaranteed to have a `'result'` or
`'reason'` key and accessing them before testing for them could result
in an error when they are not provided. This patch changes the checks to
prevent check for their existence before accessing them.
2017-02-08 13:56:43 -06:00
Brian Daniels bca993a602 Fixing uvisor defines to fix build issues 2017-02-08 09:49:47 -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
Sarah Marsh 0677e5add6 Add IAR export support for NUCLEO_F207ZG 2017-02-07 14:25:43 -06: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 160455c972 Merge pull request #3689 from adbridge/master
Updated to allow for new directory structure for mbed-dev source.
2017-02-07 10:39:22 -06: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
Sam Grove 3a99b4cb26 Merge pull request #3627 from javier-moreno-tridonic-com/feature-detailed-for-mbed
Memap detailed function also for mbed os modules
2017-02-07 10:32:28 -06:00
Sam Grove 2b6fed7b73 Merge pull request #3619 from geky/nsapi-fix-initial-events
nsapi: Change initial state of sockets to allow events
2017-02-07 10:31:57 -06:00
Sam Grove e852d7fecf Merge pull request #3566 from betzw/betzw_wb_sleep
Put system to sleep when going idle
2017-02-07 10:30:33 -06:00
Bartek Szatkowski 40d3b22785 Build: Rework build profiles
Rename small.json to release.json, default.json to develop.json and make
it the default profile.
2017-02-07 11:41:16 +00:00
ccli8 f96b1c0ad7 [NUC472/M453] Fix USB EP setting error in USBAudio
NUC472/M453 USB doesn't support configuration of the same EP number for IN/OUT simultaneously.
2017-02-07 16:57:04 +08:00
Brian Daniels 643f0e1c8f Remove old buildbot config 2017-02-06 10:54:09 -06:00
Brian Daniels 17cbbe3748 Remove old exporter tests 2017-02-06 10:53:46 -06:00
Anna Bridge 293d049805 Updated to allow for new directory structure for mbed-dev source.
Fixed issue where some deleted files/folders where not being removed from
 the repo.
 Removed code no longer used/needed.
2017-02-03 16:50:45 +00:00