Commit Graph

2927 Commits (6bd3caa9688e9091fc478889dab1c8ba0b18c7bf)

Author SHA1 Message Date
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 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
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
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
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
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
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
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
adustm 5376c62f3d [STM32F7 family] fix issue with RTC init
the logical test for RTC_ISR_INITS was wronlgy reported from other
STMfamilies.
MBED_16 test works with this modification.
2016-03-01 08:03:23 +01:00
ohagendorf f96f9c2e2e [STM32F3xx] bug fix multiple ADC channels using multiple ADC blocks
When two or more analogue inputs are initialized on more than one ADC HW block the initialisation fails with:
Cannot initialize ADC

The reason is the reusage of just one ADC_HandleTypeDef for all initializations (in mbed\targets\hal\TARGET_STM\TARGET_STM32F3\analogin_api.c). After the first (successful) ADC initialisation AdcHandle.State is set to HAL_ADC_STATE_READY).
But for another ADC block initialisation the AdcHandle.State has to be reset so that the HAL initialize it (in mbed\targets\cmsis\TARGET_STM\TARGET_STM32F3\stm32f3xx_hal_adc_ex.c line 424). When this state is not reset the HAL returns with an initialization error. And this error induces the above mbed error message.

The error message can be reproduced just with AnalogIn in1(xx); AnalogIn in2(yy); where xx and yy belongs to two different ADC blocks.
2016-02-29 23:50:07 +01:00
Peter Conheeney cd524f3d43 removed empty functions 2016-02-29 12:23:05 +00:00
Peter Conheeney bec257786a commit of latest changes to arduino support, plus fixes for IOTSS BEID 2016-02-29 12:02:47 +00:00
Martin Kojtal 01648b2a3b Merge pull request #1573 from mtkrtk/analogin_patch
[Renesas RZ/A1H] Fix analogin peripheral names
2016-02-29 12:32:34 +01:00
mtkrtk 1a3a19bb08 Fix analogin peripheral names 2016-02-29 17:06:32 +09:00
dc37 775c5c9eb2 Fix clock configuration for LPC1549.
Datasheet (Table 82) says MSEL bits should be 5, and the PSEL bits should
be 1, for the correct FCCO frequency of 288MHz. The current configuration
has FCCO = 144MHz, which is technically out of spec.
Tested on a custom LPC1549 board with crystal oscillator running at 12MHz.
2016-02-26 19:42:26 -06:00
Martin Kojtal bd0417cb15 Merge pull request #1520 from adustm/b_b96b_can
[STM B96B_F446VE] Add CAN feature
2016-02-26 17:07:15 +00:00
adustm d53f444a6f [STM32F7 family] revert RTC change in this PR that is due to new platform. It will be done through a separate PR. 2016-02-26 11:36:59 +00:00
adustm 3b3f89294e [NUCLEO_F746ZG] fix pins and system files after manual and automatic test phase 2016-02-26 11:36:57 +00:00
adustm 1ecd69bd87 [STMF7 family] add more SPI and I2C for the new NUCLEO_F746ZG platform 2016-02-26 11:36:54 +00:00
adustm d47d87c869 [NUCLEO_F746ZG] 8MHz, not 25 2016-02-26 11:36:52 +00:00
adustm 0068bb55d2 [NUCLEO_F746ZG] cmsis toolchain files 2016-02-26 11:36:46 +00:00
adustm 809afe7802 [NUCLEO_F746ZG] cmsis files 2016-02-26 11:36:44 +00:00
adustm 252056c17d [NUCLEO_F746ZG] HAL Files 2016-02-26 11:36:42 +00:00
adustm c6e57e50a0 [NUCLEO_F746ZG] Add new target to hal files 2016-02-26 11:36:37 +00:00
Martin Kojtal c00b00481f Merge pull request #1564 from neilt6/lpc1549-analogin-fix
[LPC1549] Improve AnalogIn Performance
2016-02-26 07:43:53 +00:00
Martin Kojtal fb3928665a Merge pull request #1560 from kgills/i2c_byte_write_fix
[MAX32600MBED MAXWSNENV] Fixing the return for i2c_byte_write.
2016-02-25 10:12:51 +00:00
Martin Kojtal 8577dc9680 Merge pull request #1558 from dbestm/dev_l476rg_rtc
l476rg rtc
2016-02-25 09:42:00 +00:00
Martin Kojtal 8e70fc70ed Merge pull request #1556 from mtkrtk/develop
[Renesas RZ/A1H] Enable SPI_3 on GR-PEACH
2016-02-25 09:33:38 +00:00
neilt6 6525b8ee3e [LPC1549] Improve AnalogIn Performance
Modified the LPC1549 AnalogIn implementation to use the ADCs in
synchronous mode, which is consistent with the LPC11U68 implementation.
This improves performance, and allows the IRC oscillator to be powered
down if necessary.
2016-02-24 14:07:09 -07:00
Kevin Gillespie 9bc9668287 Fixing the return for i2c_byte_write. 2016-02-22 15:45:54 -06:00
adustm fc84dd9234 [STM32F7 family] fix issue with RTC init
the logical test for RTC_ISR_INITS was wronlgy reported from other
STMfamilies.
MBED_16 test works with this modification.
2016-02-22 17:20:27 +01:00