Commit Graph

395 Commits (d4627176da99ae42e3e6153917e76cb4659559f7)

Author SHA1 Message Date
Martin Kojtal 38ae4f9289 Merge pull request #2128 from LMESTM/fix_F4_serial_it_issue2119
[STM32] Serial interrupt TC vs. TXE
2016-07-15 15:21:49 +01:00
Martin Kojtal 1201f4a09c Merge pull request #2127 from svastm/fix_rtc_min_year
[STM32XX] Fix RTC minimum date
2016-07-15 15:03:14 +01:00
Martin Kojtal ee2f9174ad Merge pull request #2097 from jamike/STM32F3
Target STM32F3
2016-07-15 11:05:02 +01:00
Martin Kojtal 829289bdd9 Merge pull request #2129 from jamike/Fix_for_#2124
Fix issue #2124: IAR no rtos
2016-07-15 10:48:53 +01:00
Martin Kojtal 46057c5d70 Merge pull request #2103 from LMESTM/fix_pwmout_period
Fix pwmout period
2016-07-15 10:26:08 +01:00
Martin Kojtal edd539b499 Merge pull request #2123 from jamike/remove_uARM_sys_cpp
[TARGET_STM] : remove sys.cpp not used in TOOLCHAIN_ARM_MICRO
2016-07-14 10:08:41 +01:00
Bogdan Marinescu 6f86064ece Merge pull request #2140 from mbedmicro/k64f_flow_control
Added flow control for K64F
2016-07-12 13:07:11 +03:00
Bogdan Marinescu 089b67cc79 Merge pull request #2144 from geky/stdio-baud-config
Add config option for stdio baud rate
2016-07-12 13:06:29 +03:00
Martin Kojtal 4b441c9e9e Merge pull request #2121 from rgrover/develop
introduce a context structure to encompass global state in the K64F Storage driver
2016-07-12 10:22:36 +01:00
Hasnain Virk a4475a0cf8 Use correct mask for CTS flow control 2016-07-12 11:31:58 +03:00
Russ Butler 0343ad2674 KSDK2 - set ADC mux before taking measurement
Set the channel mux before taking a reading rather than on
initialization.  This allows ADC pins on both mux A and B to be used in
the same application.
2016-07-11 20:34:58 -05:00
Christopher Haster 126de5b07a Added config option for stdio baud rate 2016-07-11 18:42:44 -05:00
Bogdan Marinescu 998af81092 Added flow control for K64F
This commit adds hardware flow control capabilities for the K64F family
of MCUs. This is a backport of these commits:

9bfcfd0572
77042cc945

with a few changes:

- since the current version of KSDK doesn't seem to have APIs for
  manipulating the flow control settings, we change the peripheral
  registers directly.
- updated pin maps for RTS/CTS in accordance to the K64F datasheet.
2016-07-11 16:41:07 +03:00
Martin Kojtal 967b45a3ec Merge pull request #2029 from adustm/b_fix_MBED_16_STM32F4
Fix #2027 Add timeinfo.tm_isdst = -1 to pass MBED_16 test with IAR.
2016-07-11 11:07:40 +01:00
Bogdan Marinescu 2d41d9b013 Merge pull request #2138 from ohagendorf/progen_correction
[target.json - progen] changing a wrong config
2016-07-11 12:54:22 +03:00
Martin Kojtal 8188684cab Merge pull request #2136 from lrks/fix_i2c_slave_addr_ksdk2
[KSDK2_MCUS] Fix I2C slave address
2016-07-11 09:50:57 +01:00
ohagendorf 7388b446d4 [target.json - progen] changing a wrong config
ARCH_MAX has a STM32F407 mcu
2016-07-10 20:58:35 +02:00
lrks 4b77054940 Fix I2C slave address
Remove the needless bit shift for I2C slave address.
2016-07-10 10:34:13 +09:00
Christopher Haster 98d55e71d8 Moved core_util_atomic_*_ptr functions out of cortex switch 2016-07-09 11:14:16 -05:00
Christopher Haster 70013d03b6 Fixed casts around calls to atomic u32 functions
- uint32_t -> void *
- void ** -> uint32_t *

For whatever reason `uintptr_t` and `uint32_t` expand to incompatible
types `unsigned int` and `unsigned long int`. This is implicitely casted
when passed by value, but causes a warning in gcc and error in iar when
passed by pointer.

This issue is not present on x86_32 gcc
2016-07-09 11:13:20 -05:00
Michel JAOUEN e29aa6a7fa Fix issue #2124: IAR no rtos
Remove the 2nd call of mbed_sdk_init in __iar_argc_argv
2016-07-08 13:45:52 +02:00
svastm a101c4f3d8 [STM32XX] Fix RTC minimum date 2016-07-08 13:22:15 +02:00
Michel JAOUEN 6dfb37eafc [TARGET_STM] : remove sys.cpp not used in TOOLCHAIN_ARM_MICRO 2016-07-08 10:00:45 +02:00
Laurent MEUNIER 9c33f70157 [STM32] Serial interrupt TC vs. TXE
Reported in Issue #2119

There was some inconsistency in serial interrupt handling accross STM32
serial_api.c implementation. In case application wants to be notified of
Tx interrupt, it is mainly interested in transmission complete information,
which is the _TC interrupt.

The _TXE (Transmit Data REgister Empty) is used only within driver
in case SERIAL_ASYNCH is being supported to make the transmission
more efficient.
2016-07-08 09:53:32 +02:00
Christopher Haster 2c78dca69c Fixed typo in incr/decr function
Result of last minute change, interestingly only emits a
warning in gcc.
2016-07-07 22:51:31 -05:00
Sam Grove c55c07a890 Merge pull request #2054 from geky/critical-cas-ptr
Added cas instrinsics for pointer values
2016-07-07 16:59:56 -05:00
Rohit Grover 887aa833b3 rename CONFIG_HARDWARE... to have a prefix of DEVICE_STORAGE_ 2016-07-07 14:55:56 +01:00
Rohit Grover 14a14a07dc make compile-time decision about async. vs. sync. operation 2016-07-07 08:53:36 +01:00
Rohit Grover a2b683677d introduce a context structure to encompass global state 2016-07-07 08:53:36 +01:00
Rohit Grover 53def56426 get rid of an un-necessary call to NVIC_ClearPendingIRQ 2016-07-07 08:53:36 +01:00
Rohit Grover d60021ca3e remove the call to FLASH_Init() 2016-07-07 08:53:35 +01:00
Christopher Haster 946199183c Minor documentation updates for critical
- extra dereference in cas example
- clarification of incr/decr
2016-07-06 13:06:37 -05:00
Christopher Haster 9067148618 Standardized style of critical.h
per @0xc0170
2016-07-06 13:06:37 -05:00
Christopher Haster 26726cc170 Added proper usage of standard types for critical pointer functions 2016-07-06 13:06:34 -05:00
Christopher Haster cf6f8e33fb Added cas instrinsics for pointer values
- core_util_atomic_cas
- core_util_atomic_incr
- core_util_atomic_decr
2016-07-06 13:04:36 -05:00
Martin Kojtal 704c042707 Merge pull request #2109 from 0xc0170/dev_lpc2368_arm
Targets - LPC23678 ARM fails to build, remove from supported toolchains
2016-07-06 11:40:14 +01:00
Bogdan Marinescu 087b8fa648 Added proper definition for NRF51_MICROBIT_B 2016-07-06 12:31:30 +03:00
0xc0170 668dd17784 Targets - LPC23678 ARM fails to build, remove from supported toolchains
Tracking issue: https://github.com/mbedmicro/mbed/issues/2108
2016-07-06 09:41:32 +01:00
Martin Kojtal 7c00a75b05 Merge pull request #2105 from bridadan/ignore-target-specific-test
Adding .mbedignore for target specific test
2016-07-06 09:05:49 +01:00
Martin Kojtal 8d1024433a Merge pull request #2096 from 0xc0170/fix_release_targets
Fix release targets in the build_release.py
2016-07-06 09:02:44 +01:00
Brian Daniels af7da146a9 Adding .mbedignore for target specific test 2016-07-05 11:05:57 -05:00
Michel Jaouen 1794463a06 [STM32F3]: fix for uart baudrate. 2016-07-05 14:30:25 +01:00
Laurent MEUNIER 6dc9501153 [STM32L4] Handle higher range pwm periods
As first reported on STM32F3 family in #1682, we need to cope
with periods in the seconds range as well. This is fixed here in
the same way as was done for STM32F3 by using the pre-scaler.
2016-07-05 14:32:56 +02:00
Laurent MEUNIER 6eab29cc09 [STM32L1] Handle higher range pwm periods
As first reported on STM32F3 family in #1682, we need to cope
with periods in the seconds range as well. This is fixed here in
the same way as was done for STM32F3 by using the pre-scaler.
2016-07-05 14:32:54 +02:00
Laurent MEUNIER 332660eb1b [STM32L0] Handle higher range pwm periods
As first reported on STM32F3 family in #1682, we need to cope
with periods in the seconds range as well. This is fixed here in
the same way as was done for STM32F3 by using the pre-scaler.
2016-07-05 14:32:52 +02:00
Laurent MEUNIER 0cdcb9bafa [STM32F7] Handle higher range pwm periods
As first reported on STM32F3 family in #1682, we need to cope
with periods in the seconds range as well. This is fixed here in
the same way as was done for STM32F3 by using the pre-scaler.
2016-07-05 14:32:49 +02:00
Laurent MEUNIER ab45ef0378 [STM32F4] Handle higher range pwm periods
As first reported on STM32F3 family in #1682, we need to cope
with periods in the seconds range as well. This is fixed here in
the same way as was done for STM32F3 by using the pre-scaler.
2016-07-05 14:32:47 +02:00
Laurent MEUNIER ce5ee179cd [STM32F1] Handle higher range pwm periods
As first reported on STM32F3 family in #1682, we need to cope
with periods in the seconds range as well. This is fixed here in
the same way as was done for STM32F3 by using the pre-scaler.
2016-07-05 14:32:45 +02:00
Laurent MEUNIER 00e51f4fe2 [STM32F0] Handle higher range pwm periods
As first reported on STM32F3 family in #1682, we need to cope
with periods in the seconds range as well. This is fixed here in
the same way as was done for STM32F3 by using the pre-scaler.
2016-07-05 14:32:43 +02:00
Laurent MEUNIER 7dc0ce3c2b [STM32L4] place holder for common object definition
Some of the objects in object.h are the same for all targets.
Create a place where to define those common definitions, and
start using it for pwm object.
2016-07-05 14:32:40 +02:00