Commit Graph

3879 Commits (765aeb0dc6c67c798358ca4c5b465d1f7f1ef6c4)

Author SHA1 Message Date
Martin Kojtal 007223c954 RTX - fix missing header guards for Cortex-M4 (GCC ARM)
The HAL CM4 is valid only for FPU present. These guards were added
to mbed SDK, as there are targets Cortex-M4.
2016-05-05 12:11:04 -05:00
Martin Kojtal aa6f0b8df1 RTOS - update for RTX v4.79 for Cortex-M
Thread - stack methods are not available for now, as tcb pointer was removed from
internal structure. To obtain it, we could get it from the kernel, but this should be
reconsidered. Either RTOS should provide it, or these methods will become deprecated.
2016-05-05 12:11:02 -05:00
Martin Kojtal 9a68561b69 RTX - update to v4.79 for Cortex-M
Changes to the original kernel:

Cortex-M requires to define __CMSIS_OS_RTX, and __MBED_CMSIS_RTOS_CM. The macro __MBED_CMSIS_RTOS_CM
is mbed specific macro, to track changes to the kernel. This should keep us aware what has changed. For instance,
one breaking change was thread adding instances variable, which were not in mbed. This can be find as
it's protected via __MBED_CMSIS_RTOS_CM ifdef.

```
// added for mbed compatibility
// original RTX code
```

Startup for toolchains - mbed defines own stack pointer (set_main_stack()), therefore it should be called in the startup.
IAR added low level init calls and dynamic intialization to the IAR startup. All defined in RTX_CM_lib.h.

The timer thread has task id 0x01, main task 0x02. There are exception for main task not to check for
overflows. This is mbed specific, was reapplied from mbed code base.

IAR fixed SVC calls, this fix had to be reapplied (repo mbed PR 736 for more information).
2016-05-05 12:11:00 -05:00
Bartosz Szczepanski 1244d1504f [STM32F4 family] Assign CAN filter number properly
There are 28 filter banks which are shared between CAN1 and CAN2. By default
they are divided in half:

    * CAN1 -> 0  ... 13
    * CAN2 -> 14 ... 27

that's why we need to decied which filter number has to be chosen.

Change-Id: If5f0da035c1435c61d4748b12d6617e9005cfd83
2016-05-05 11:26:39 +02:00
Bartosz Szczepanski d76bdde5a0 [STM32L4] Fix IAR section placement failed error
For some reason STACKHEAP block was placed in SRAM2 section which lead to
*Error[Lp011]: section placement failed - unable to allocate space for sections/
block* error. This patch modifies the STM32L4 linker script and places STACKHEAP
into SRAM1 section which was previously unused.

Change-Id: Ibe6ca52a9fe7af232a3eade2f6b1f2ce28c9bd49
2016-05-05 10:37:40 +02:00
Mahadevan Mahesh df4c79cd74 Fix build warnings
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-05-04 15:01:24 -05:00
Laurent Meunier c5c95d11f3 Use runtime error detection
Rather than MBED_ASSERT, let's use error() function to detect out of range
parameters during runtime execution
2016-05-04 09:25:40 +02:00
Laurent Meunier 731148eb72 Back to 10ms period
As suggested in review comments, let's keep default 10ms period
2016-05-04 08:59:57 +02:00
Laurent Meunier c9350f8e5a Update ARDUINO test to allow period change 2016-05-03 18:05:43 +02:00
Laurent Meunier 7c657ad5c9 [STM32F3] Increase the supported period range (#1682)
Introducing the prescaler management allows a wider period range support,
from about 65ms before now up to about 32s. We're also introducing
asserts in case the period or prescaler is truncated as the HW registers
are 16 bits large.
2016-05-03 18:05:43 +02:00
Mahadevan Mahesh fef9bc3961 USB support for KL27
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-05-02 14:52:31 -05:00
adustm 2b5364d87d [STM32F1] Update Toolchain files 2016-05-02 17:39:27 +02:00
adustm 9e21fcc816 [STM32F1] update CMSIS files from last Cube_HAL release 2016-05-02 17:38:59 +02:00
adustm 318da5419b [STM32F1] Cube_hal driver update 2016-05-02 17:37:48 +02:00
Mahadevan Mahesh da0924f95c Networking update for FRDM K64 platform
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-04-29 15:54:01 -05:00
Mahadevan Mahesh 840cd1ccb5 Move PWM API to the target specific folder
Some use the FTM module and some use the TPM module.

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-04-29 15:53:57 -05:00
Mahadevan Mahesh fffadba309 Moved SDK 2.0 platforms back to TARGET_Freescale from TARGET_NXP.
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-04-29 15:53:53 -05:00
Mahadevan Mahesh f512738f91 Add support for KL27Z FRDM board
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-04-29 15:45:05 -05:00
Mahadevan Mahesh 06698f4ffa Add support for the K64F Hexiwear board
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-04-29 15:45:02 -05:00
Mahadevan Mahesh-R9AADQ 6ff2badf1f Added support for Kinetis K22
Use Kinetis SDK 2.0
Moved to TARGET_NXP

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-04-29 15:44:58 -05:00
Mahadevan Mahesh-R9AADQ 2c9c632aad Added Kinetis K64 support
Use Kinetis SDK 2.0. Moved this to TARGET_NXP

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-04-29 15:44:54 -05:00
Mahadevan Mahesh-R9AADQ acb896b3cb Removed Freescale Kinetis SDK 1.0 based implementations
This will be replaced by Kinetis SDK 2.0 based implemenation under the TARGET_NXP folder

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-04-29 15:27:42 -05:00
Martin Kojtal d1dc989912 Merge pull request #1697 from soutade/master
Typo fix in HAL_CM0.S of ARM7 rtx
2016-04-29 10:13:29 -05:00
svastm 7966ee4067 [NUCLEO_L031K6] Change the default pwm pin 2016-04-29 15:58:43 +02:00
Grégory Soutadé d5489b3723 Typo fix in HAL_CM0.S of ARM7 rtx 2016-04-29 07:58:34 +02:00
Martin Kojtal fe9720f24b Merge pull request #1626 from mtkrtk/rz_a1h_async_patch
[Renesas RZ/A1H] Enable asynchronous communications
2016-04-28 19:07:37 -05:00
Martin Kojtal 670e7bcb47 Merge pull request #1639 from mbedNoobNinja/master
New mbed platform VK_RZ_A1H
2016-04-28 19:07:17 -05:00
Martin Kojtal d224239ce9 Merge pull request #1690 from LMESTM/dev_stm32fxxx_cleanup
stm32fxxx cleanup
2016-04-28 19:07:05 -05:00
Martin Kojtal 884e1adeec i2c - fix return value description i2c_byte_write() (#1694)
Fixes #1670.
2016-04-28 19:06:38 -05:00
0xc0170 868ca35dfb mbed lib revision - 119 2016-04-27 13:07:46 -05:00
adustm 2451ac1026 [STM32F4 STM32F7] Overwrite HAL_Delay to allow SD example (#1624)
* [STM32F4 STM32F7] Overwrite HAL_Delay to allow SD example

The weak function HAL_Delay is overwritten to use us ticker API. 
The user can use stm32f[4/7]xx_hal_sd.c that calls
HAL_Delay
This will allow us to add an example detecting / writing / reading an SD
card on DISCO_F469NI and DISCO_F746NG

(cherry picked from commit d491e3cd8b)
2016-04-26 13:36:04 -05:00
Kevin Gillespie 0b67bf08c8 Fixing the send break for the MAXWSNENV and MAX32600MBED. (#1684)
Our UART doesn't have the ability to send a break, so we make the TX a GPIO and drive it low during the break_set() and then release it back to the UART in the break_clear().
2016-04-26 13:20:17 -05:00
Martin Kojtal e090a88f3a Merge pull request #1681 from toyowata/master
[ARM_MPS2_M7] Fix capital letter filename
2016-04-26 11:15:35 -05:00
mbedNoobNinja fa0bf58e3c New mbed platform VK_RZ_A1H 2016-04-26 17:27:39 +03:00
Laurent Meunier 557dcd8881 [STM32F4] remove deprecated STM32F4XX directory
None of the compiled STM32 targets seem to rely on this code anymore,
so better clean it up.
2016-04-26 15:34:59 +02:00
Laurent Meunier 9554bb790d [STM32F3] remove deprecated STM32F3XX directory
None of the compiled STM32 targets seems to rely on this code anymore,
so better clean it up.
2016-04-26 15:34:59 +02:00
mtkrtk e96f6bf036 SPI should notify internal complete 2016-04-26 18:23:32 +09:00
mtkrtk 50e79a45f8 CircularBuffer::push() is critical section 2016-04-25 17:36:53 +09:00
mtkrtk c5422eed25 Change CThunk method for Cortex-A
thumb2 code executes invalid ram space, and it causes crash
Add instruction cache clean codes
2016-04-25 17:30:04 +09:00
svastm ac10c80919 [NUCLEO_L031K6] Hard tabs removal 2016-04-22 09:12:53 +02:00
Toyomasa Watarai 416cb0b6f5 Fix capital letter filename 2016-04-22 13:25:44 +09:00
svastm 290f9fe795 [NUCLEO_L031K6] Correct hard tabs 2016-04-21 17:42:19 +02:00
svastm c0e03817aa [NUCLEO_L031K6] Update some tests 2016-04-21 16:27:19 +02:00
svastm 8503cec203 [NUCLEO_L031K6] Add RTOS support 2016-04-21 16:26:43 +02:00
svastm 39486f74a0 [NUCLEO_L031K6] Update HAL API 2016-04-21 16:24:19 +02:00
svastm a58c1959c4 [NUCLEO_L031K6] Add HAL target 2016-04-21 16:23:19 +02:00
svastm 28e7579b05 [NUCLEO_L031K6] Add CMSIS target 2016-04-21 16:22:43 +02:00
mtkrtk 6d3e9e32bf Clear cache cleaning code 2016-04-21 17:34:46 +09:00
mtkrtk bd5d415514 Fix interrupt timings 2016-04-21 17:33:56 +09:00
mtkrtk c724a1fea4 Ensure api is active after pushing 2016-04-21 17:27:30 +09:00
mtkrtk 6e101e0301 Fix cache cleaning method 2016-04-21 17:22:40 +09:00
Martin Kojtal b5e7f79753 Merge pull request #1669 from svastm/master
[STM32L0] Update STM32Cube_L0 from v1.2 to v1.5
2016-04-19 11:00:22 +01:00
Mridupawan Das 92a345200d adding hwflwctl support for NUCLEO_L476RG (#1658) 2016-04-17 17:37:14 +01:00
Colin Hogben a11f73cb26 Fix incorrect pin in PinMap_UART_RX - issue mbedmicro/mbed#1657 (#1675)
PTC6 was wrong, should be PTD6
2016-04-17 17:35:16 +01:00
svastm 2bc21a7641 Code misalignment correction 2016-04-15 14:37:08 +02:00
bcostm 9b277ae859 [STM32L4] Change LSI_VALUE to 32 kHz (#1662)
* Add DEVICE_RTC_LSI=0

* Change LSI value to 32 kHz

This is the value written in the device datasheet.

* Replace tabulations with spaces
2016-04-15 10:48:47 +01:00
svastm b77627dd30 Update STM32L0 HAL API to support STM32CUBE_L0 v1.5 2016-04-14 14:48:11 +02:00
svastm ce436d5107 Update STM32CUBE_L0 from v1.2 to v1.5 2016-04-14 14:39:53 +02:00
0xc0170 5d695a8e0b mbed lib revision - 118 2016-04-13 15:42:20 +01:00
Mridupawan Das 9cd482817d adding hwflwctl support for NUCLEO_F401RE (#1654) 2016-04-12 08:54:48 +01:00
Eosis 02b197ca16 Removing the appending of the method name to an RPC call (#1593)
The RPC call appended the method name to the output after the method
had already finished processing. It was unexpected for my use case,
and doesn't feel like the obvious thing to do.  This could be appended
in the RPC method itself, instead.

The adding of the method to the output was first commited in commit
556b889b5f.
2016-04-11 17:27:11 +01:00
Toyomasa Watarai f28131a577 [LPC812] Fixed PwmOut SCT bugs (#1656)
* [LPC812] Fixed PwmOut SCT bugs

* Fixed 0% duty cycle output
* Fixed pulse width 0 output
* Remove unused comment-out code
* Correct cast type for GCC toolchain

* [LPC812] Fix incorrect duty cycle

* The new PWM period now update existing PWM channels, so duty cycle is
kept
* Remove comment and unused code
2016-04-08 17:47:02 +01:00
mtkrtk 4f25c166ac Revert "Revert "Add support for Renesas RZ/A1H""
This reverts commit 21bd16debe.
2016-04-08 17:44:29 +09:00
mtkrtk 21bd16debe Revert "Add support for Renesas RZ/A1H"
This reverts commit 621f1f1aa6.
2016-04-08 17:44:10 +09:00
mtkrtk 55110c2d84 All async tests passed 2016-04-07 17:34:53 +09:00
Parthasarathy dd3c5f7fa8 Added support for SAMG55
* * Base Commit for SAMG55J19. No errors and no implementations.

* * Added gpio files.

* * Added pinmap files.

* * Base commit for usticker implementation.

* * Added gcc_arm export functionality

* * added files for usticker.
* added template file for samd55j19

* * GPIO IRQ base commit.

* * updated with changes in gpio irq driver.

* * Reverted back unexpected commit in SAM0 gpio driver.

* * updated gpio_irq driver.

* * correction in gpio and gpio_irq drivers.
* added support for some test for gpio.

* * base commit for peripheralpins for usart.
* update in serial apis.

* * updated serial apis.

* * updated serial apis and test.

* * update serial apis for asynch apis.

* * updated peripheral pins for i2c and spi.
* added test support for serial flow control

* * Base commit for low power ticker implementation.

* * base commit for port apis.
* update in lp ticker apis.

* * Added test support for port.

* * base commit for sleep apis.

* * Base commit for spi.

* * updated with corrections in gpio irq.
* usticker file updated with latest source.

* * updated with corrections for unexpected board reset.
* updated gpio irq apis and added test for the same.

* * updated sleep api for deepsleep.

* * updated serial apis.

* Added uc_ticker and SPI api implementations

* Removed unused SPI pin map

* Updated review feedback

* * implemented lpticker with TC module.
* updated files for KnR Coding Statndard.
* updated serial and usticker apis.

* * Base commit for AnalogueIn apis.

* * RTC apis base commit without implementation.

* * Updated with corrections in lpticker implementations.

* * Added implementation for rtc apis.

* * updated with implementations for pwm.
* changed usticker from TC0 to TC1.

* Added I2C support

* * removed setvector usage from usticker and lpticker implementations
* added tests for SAMG55J19

* * Removed unwanted .o and .d files.
* Updated I2C files for KnR Coding Standards.
* Update for reducing compiler warnings in peripheralpins,c
* Updated with PWM free implementation.

* * Removed unwanted headers file inclusion.
* Compiler warning corrections in serial_api.c

* * Updated ADC with 16 bit mode initialization and code refinements.
* Updated PWM with code refinements.

* Updated I2C review feedback and fixed style

* Updated target name for SAMG55

* * Added Test Support for I2C with AT30TSE75X and Added Support for SAMG55J19 in atmelstudio project exporter

* * Added Test Support for I2C with AT30TSE75X and Added Support for SAMG55J19 in atmelstudio project exporter

* Used NVIC_SetVector for interrupt callback

* Removed Target macro define in test

* Updated test cases to have SAMG55 support

* * Updated with corrections in Serial and SPI asynchronous implementations.
* Updated deepsleep api implementation
* Merged LP_Ticker with latest code from mbed 3.0 repository.

* * updated with corrections in I2C Asynch implementation.
2016-04-05 18:05:59 +01:00
dbestm e2cb35e9ad [XXX_F746XG] Move erasing of BkUpR in RTC API
The erasing of back up register is only needed when using LSI in RTC API
2016-04-04 22:02:48 +01:00
dbestm 7f6c0b8269 [XXX_F10XRB] enhance RTC API
Add a define to select between LSE or LSI
2016-04-04 16:11:02 +02:00
dbestm 76649d8a97 [XXX_L15XX] Move erasing of BkUpR in RTC API
the erasing of back up register is only needed when using LSI
2016-04-04 11:09:10 +01:00
Martin Kojtal c90b7f81d2 Merge pull request #1648 from dbestm/dev_xxx_l0x3xx_rtc
[XXX_L0X3XX] Move erasing of BkUpR in RTC API
2016-04-04 11:08:52 +01:00
dbestm 50845e8069 [XXX_L0X3XX] Move erasing of BkUpR in RTC API
The erasing of back up register is needed only when using LSI in RTC API
2016-04-04 11:05:52 +02:00
Russ Butler 9fd3e09506 Prevent recursive processing of us_ticker in FSL
When a ticker is scheduled to run so fast that it is pending again
before the previous event has been processed then this next event
is processed (recursively) by calling into us_ticker_irq_handle().
This can lead to a stack overflow.

This patch prevents this recursion by replacing the call to
us_ticker_irq_handler() with a call to set the interrupt to pending
again.  This allows the next timer event to be processed without
making the stack deeper.
2016-04-03 16:55:15 -05:00
Martin Kojtal 47c580be86 Merge pull request #1640 from dbestm/dev_xxx_f3xx_rtc
[XXX_F3XX] enhance RTC API
2016-04-01 17:44:02 +01:00
Martin Kojtal 43b94d2fcf Merge pull request #1638 from dbestm/dev_xxx_f746xg_rtc
[xxx_F746XG] enhance RTC api
2016-04-01 17:43:34 +01:00
Martin Kojtal 53fd30ab31 Merge pull request #1641 from dbestm/dev_xxx_F0xx_rtc
[XXX_F0XX] enhance RTC API
2016-04-01 17:42:31 +01:00
Martin Kojtal 7b82f27438 Merge pull request #1642 from dbestm/dev_xxx_l476xg_rtc
[XXX_L476XG] remove erasing of BkUpR in RTC API
2016-04-01 17:42:12 +01:00
Martin Kojtal 5ebcc34601 Merge pull request #1643 from dbestm/dev_xxx_f4xx_rtc
[XXX_F4XX] remove erasing of BkUpR in RTC API
2016-04-01 17:38:14 +01:00
mtkrtk 621f1f1aa6 Add support for Renesas RZ/A1H 2016-04-01 22:10:29 +09:00
mtkrtk 7a9ce241a7 i2c_eeprom_asynch.cpp test passed 2016-04-01 21:39:07 +09:00
mtkrtk 994c59dce2 Add support for Renesas RZ/A1H 2016-04-01 21:37:34 +09:00
dbestm 31defa8bcd [xxx_F4XX] remove erasing of BkUpR in RTC API
the erasing of back up register is only needed when using LSI in RTC API
2016-04-01 11:39:51 +02:00
dbestm 9d60138873 [xxx_L476XG] remove erase of BkUpR in RTC API
the erase of back up regsiters are needed only when using RTC+LSI
2016-04-01 11:18:06 +02:00
dbestm fe0ea5c436 [XXX_F0XX] enhance RTC api
add define to select LSI or LSE
modify rtc api accordingly
2016-04-01 10:50:46 +02:00
dbestm f6cafe37c8 [XXX_F3XX] enhance rtc api
add define to select LSI or LSE, update rtc api accordingly
2016-03-31 17:34:42 +02:00
mtkrtk 641a2dc414 Enable caches to improve performance 2016-03-31 21:55:13 +09:00
mtkrtk 2586a691ed Add cache cleaning codes for Cortex-A
if m_thunk is on data caches, the codes will not be executed.
2016-03-31 21:54:32 +09:00
dbestm 8a1a67d189 [xxx_F746XG] enhance RTC api
to support LSI and LSE with a define in device.h
2016-03-31 10:44:01 +02:00
dbestm e42e174852 [XXX_L15XXX] enhance RTC files 2016-03-30 17:49:39 +02:00
mtkrtk fd02430291 spi_asynch test passed 2016-03-30 22:29:42 +09:00
0xc0170 58c0b22c8c mbed lib revision - 117 2016-03-30 12:40:37 +01:00
mtkrtk 9ef1d7b2f4 spi_asynch test passed 2016-03-30 20:29:46 +09:00
mtkrtk 2a0b00008b Fix settings 2016-03-30 20:24:10 +09:00
mtkrtk 418fd7ec94 serial_async test passed 2016-03-30 09:21:51 +09:00
Martin Kojtal 4694003b10 Merge pull request #1633 from ducky64/master
Make Nucleo F303K8 number of interrupts consistent with amount of SRAM allocated
2016-03-29 11:11:17 +02:00
ducky64 0bbfa7ddbf Add Nucleo F303K8 support to RPC 2016-03-26 20:09:57 -07:00
ducky64 c74a616be6 Make Nucleo F303K8 number of interrupts consistent with amount of SRAM
reserved by linker scripts
2016-03-26 12:44:43 -07:00
bcostm 18f90871db Replace tabs with spaces 2016-03-25 14:56:56 +01:00
bcostm 481a451f2c Update LSI typical value to 38MHz (datasheet value)
MBED_16 test re-checked ok with LSI on the 3 STM32L0 platforms.
2016-03-25 14:56:01 +01:00
bcostm 3d6e522177 Move rtc_api.c in upper folder
This file should be common for all L0 targets.
2016-03-25 14:08:04 +01:00
Martin Kojtal 286b61db8a Merge pull request #1554 from bcostm/stm32l4_arm_startup_files
[STM32L4] Update ARM_MICRO startup files
2016-03-24 10:21:16 +01:00
mtkrtk 8a6d2b0835 Enable asynchronous communications 2016-03-24 16:25:22 +09:00
mtkrtk 1df975a3a5 Enable asynchronous communications 2016-03-24 16:08:43 +09:00
mtkrtk 69c311f263 Add support for Cortex-A series 2016-03-24 16:06:31 +09:00
dbestm 3e896871e6 [xx_L476xx] update LSI timeout defines
move hal_conf.h in device folder
clean define related to LSI timeout
2016-03-24 07:44:00 +01:00
Martin Kojtal dd3cba536f Merge pull request #1622 from c1728p9/fix_kl05_uart_clock
Prevent KL05 from using an unstable clock
2016-03-24 07:15:23 +01:00
Martin Kojtal ff9d4e2266 Merge pull request #1625 from dbestm/dev_l0x3_rtc
[xxx_L0X3] debug RTC to add a proper init check feature
2016-03-24 07:03:30 +01:00
dbestm 6dbe57b058 [xxx_L0X3] debug RTC to add a proper init check feature 2016-03-21 15:01:11 +01:00
Russ Butler 273b464fe0 Prevent KL05 from using an unstable clock
Add a delay after switching to the FEE clock mode so the FLL has a
chance to acquire a better lock.  This fixes a bug where the first byte
sent over the UART is corrupt.
2016-03-20 19:40:13 -05:00
Martin Kojtal 1f340445d5 Merge pull request #1615 from MultiTechSystems/hardfault-handler
add hard fault handlers for MultiTech mDot and Dragonfly platforms
2016-03-18 08:27:55 +00:00
Martin Kojtal 0a0fcbb5fd Merge pull request #1603 from arnaudrichard/master
Fix IRQ enabled in serial_irq_set()
2016-03-17 15:34:27 +00:00
bcostm 0ae3ed496d Remove I2C PA11 and PA12 pins
There is no I2C on these pins.
2016-03-17 08:44:46 +01:00
Mike Fiore ba2a974fd1 add hard fault handlers for MultiTech mDot and Dragonfly platforms 2016-03-16 12:55:50 -05:00
0xc0170 287c3b71f4 mbed lib revision - 116 2016-03-15 15:34:00 +00:00
Martin Kojtal 3afb550952 Merge pull request #1611 from bcostm/dev_rtc_stm32f4
[STM32F4] Add DEVICE_RTC_LSI=0 to all targets
2016-03-15 08:54:05 +00:00
Martin Kojtal 1fa489b0c5 Merge pull request #1597 from neilt6/rtos-idle-patch
[RTOS] Added idle hook API
2016-03-15 08:53:52 +00:00
Martin Kojtal fec574a5ed Merge pull request #1596 from geky/master
Increased allocated netbufs to handle DTLS handshakes
2016-03-14 16:14:12 +00:00
Martin Kojtal 2144dadad2 Merge pull request #1608 from MultiTechSystems/f4-serial-overrun
avoid getting stuck in serial IRQ if ORE is set without RXNE
2016-03-14 16:02:28 +00:00
bcostm 9db204bcf0 Add DEVICE_RTC_LSI=0 2016-03-14 16:01:24 +00:00
Brian Daniels 3362325a03 Fixing issue with NOT_SUPPORTED messages 2016-03-14 10:29:23 -05:00
bcostm b956e27237 Add DEVICE_RTC_LSI = 0 to all targets
Added for clarity. This flag must be set to 1 if the LSE xtal is not
present on the board or if the RTC must be clocked by the internal
clock.
2016-03-14 14:26:27 +01:00
tomoyuki yamanaka 23c02e1675 Modify macro value of device error in device.h.
We modified the value of "DEVICE_STDIO_MESSAGES" and "DEVICE_ERROR_PATTERN" in order to output the error message.
2016-03-14 11:24:37 +09:00
Mike Fiore 68b034541a avoid getting stuck in serial IRQ if ORE is set without RXNE - issue #1605 2016-03-11 11:49:03 -06:00
Martin Kojtal f178fc4835 Merge pull request #1602 from sunsmilearm/master
Change the uart pin to DIP pin for XBED_LPC1768
2016-03-11 09:10:17 +01:00
Arnaud RICHARD cbcdfab741 Fix IRQ enabled in serial_irq_set()
UART_IT_TC was enabled instead of UART_IT_TXE
 This was causing an issue because UART_IT_TXE (and not UART_IT_TC) was disabled  by same function.
  Consequently if a transfer was ongoing when serial_irq_set() was called to disable IRQ, UART_IT_TC would still trigger (once).
 Side effect is maybe speed: I guess using UART_IT_TC prevented implementation of continuous transfer.
 This commit is focused on solving an issue observed with TARGET_STM32F4. It doesn't presume it should or shouldn't be done for other targets.
2016-03-10 14:40:41 +01:00
sunsmilearm 30df100f88 Update PinNames.h
Change the "tab" to 4 "space"
2016-03-10 17:57:53 +08:00
Xiao Sun 7569cdfda4 Change the uart pin to DIP pin 2016-03-10 14:10:03 +08:00
Martin Kojtal 6501de9044 Merge pull request #1548 from dbestm/dev_F446_rtc
[NUCLEO_F446RE] RTC+LSE+init
2016-03-09 17:55:20 +00:00
dbestm 81f3abc770 Merge remote-tracking branch 'refs/remotes/mbedmicro/master' into dev_F446_rtc 2016-03-09 15:40:37 +01:00
Martin Kojtal 2c6c939564 Merge pull request #1580 from ohagendorf/f3xx_adc
[STM32F3xx] bug fix multiple ADC channels using multiple ADC blocks
2016-03-09 08:33:47 +00:00
Adam Green 5b5d7ee1d4 Fix issue #1599
My previous commit, c6d2c81, broke Keil builds and maybe even IAR.

I need to learn how to read C code :)  I thought I was masking off the
O_BINARY bit only for GCC builds but it turns out that my update was
in the fall-through case for all toolchains.  This commit now places
the O_BINARY masking operation into a GCC specific #ifdef clause.

Testing:
I tested the same fopen("/local/out.txt","rb") code as before but this
time I built it with the online compiler and GCC_ARM. I tested the
resulting binaries on mbed-LPC11U24 and mbed-LPC1768 boards.

Thanks to @neilt6 for catching & reporting this!
2016-03-08 14:13:00 -08:00
Neil Thiessen c52e0dce48 Update rtos_idle.h
Removed unnecessary loop function prototype.
2016-03-08 10:55:56 -07:00
neilt6 9db32475d6 [RTOS] Added idle hook API
Added a new API for attaching a user-provided function to be executed by
the idle task.
2016-03-08 09:48:02 -07:00
0xc0170 dafb5c3a69 Enable rpc library usage on the Nucleo_F072 & Nucleo_F411RE boards
Adding additional 'defined' statements to line 62 of parse_pins.cpp should in theory enable the rpc libraries for all other Nucleo boards, since all stm32 parts use the same pin labeling scheme i.e. P(port)_pinNumber e.g. PA_3,
PC_15 e.t.c.
2016-03-08 09:03:25 +00:00
Adam Green c6d2c81c7f LocalFileSystem fails to open binary files
Fixes issue #1562 reported by @justbuchanan.

When building code with GCC-ARM / newlib, attempting to use the
b (binary) mode in a fopen() call would fail. newlib would parse
this option and pass it down to the LocalFileSystem open call which
didn't like the unexpected O_BINARY flag in openmode.

The openmode_to_posix() function in retarget.cpp would never set the
O_BINARY flag for the other toolchains but for GCC it would just pass
down whatever newlib placed there.  This commit masks out the O_BINARY
bit so that it never gets passed down to the file system drivers, just
as occurs for the other supported toolchains.

Test case:
  FILE *fp = fopen("/local/out.txt", "rb");

I tested that code on mbed LPC1768 and LPC11U24 boards while using
GCC_ARM as the toolchain. It failed on both platforms previous to
this change and succeeded there after.
2016-03-07 13:34:32 -08:00
Martin Kojtal ee20d03969 Merge pull request #1588 from adustm/master
[STM32F7] Update STM32F7Cube_FW version
2016-03-07 09:45:59 +00:00
Martin Kojtal abf43a33ce Merge pull request #1587 from neilt6/master
[LPC11U68, LPC1549] Fixed PwmOut SCT Bugs
2016-03-05 06:52:10 +01:00
neilt6 b3e2763784 [LPC11U68, LPC1549] Improved PwmOut Documentation
Improved commenting in pwmout_write(), pwmout_period_us(), and
pwmout_pulsewidth_us().
2016-03-04 09:23:23 -07:00
adustm c97e05f496 [STM32F7_NUCLEO_F746ZG] Update target files with latest STM32F7Cube_FW version 2016-03-04 14:32:17 +01:00
adustm 49338852ad [STM32F7_DISCO_F746NG] Update target files with latest STM32F7Cube_FW version 2016-03-04 14:32:00 +01:00
adustm 0b9cc09727 [STM32F7] Update STM32Cube_FW version 2016-03-04 14:28:07 +01:00
Christopher Haster 8dd5647069 Increased allocated netbufs to handle DTLS handshakes
UDP based protocols such as DTLS may fragment large packets, resulting
in many packets being sent at once. This can lead to significant/irrecoverable
packet loss on systems that respond to packets slower than network transfers.

Increasing MEMP_NUM_NETBUF to 8 allows lwip to handle a DTLS handshake
successfully and should be more robust for similar protocols.

DTLS handshake:
https://tools.ietf.org/html/rfc4347#section-4.2.3
2016-03-04 04:02:28 -06:00
Toyomasa Watarai a86504d205 [LPC824] Add more comments for PwmOut fix 2016-03-04 16:00:32 +09:00
neilt6 792b359a36 [LPC11U68, LPC1549] Fixed PwmOut SCT Bugs
* 0% duty cycle now reads back correctly
* Period & pulse-width changes now take effect immediately if the timer
is halted
2016-03-03 15:28:59 -07:00
Toyomasa Watarai 6ab159af26 [LPC824] Fixed PwmOut SCT Bugs
* Fixed period & pulse-width off-by-one errors
* Fixed 0% and 100% duty cycle output
2016-03-03 17:09:35 +09:00
Brian Daniels c38209f6d6 Adding more [NOT_SUPPORTED] messages to tests 2016-03-02 13:13:36 -06:00
Martin Kojtal de3b14ec92 Merge pull request #1576 from PeterConheeney/master
latest changes to add arduino support, plus fixes for IOTSS BEID
2016-03-02 15:29:53 +01:00
Martin Kojtal c0da36d9a4 Merge pull request #1577 from bcostm/rtos_nucleo-l073rz
[NUCLEO_L073RZ] Add device in RTOS files
2016-03-02 12:28:28 +01:00
0xc0170 b9f6f5c776 mbed lib revision - 115 2016-03-02 11:02:18 +01:00
Peter Conheeney ca41874978 disabled i2c slave 2016-03-01 08:51:08 +00:00
Martin Kojtal 2b8c9ef4fb Merge pull request #1578 from bridadan/add-not-supported-to-tests
Adding NOT_SUPPORTED errors to tests
2016-03-01 08:08:45 +01:00