Commit Graph

3850 Commits (703aee4f6112ebf55a96db5dd15f22b72d43b61a)

Author SHA1 Message Date
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
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
Brian Daniels a36d49aacc Adding NOT_SUPPORTED errors to tests 2016-02-29 12:38:16 -06:00
bcostm 052f23a70a Add STM32L073RZ device 2016-02-29 16:21:24 +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
adustm 1535bf2874 [NUCLEO_F746ZG] support rtos for this new target 2016-02-26 11:36:35 +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
adustm 20c34f47ad [B96B_F446VE] remove spaces (typo) 2016-02-22 15:29:05 +01:00
adustm 8e8af8fb62 [B96B_F446VE] Remove unused IRQ_RX1 interrupt (init / irq_set / ...) 2016-02-22 15:28:47 +01:00
adustm 4a4cb7fb07 [B96B_F446VE] Add more details about the timing_pts table 2016-02-22 15:27:51 +01:00
adustm 3df28ea0b8 [B96B_F446VE] remove unused IRQ_RX1 interrupt 2016-02-22 15:24:42 +01:00
dbestm ab3cda47b9 fix formatting 2016-02-22 14:28:20 +01:00
adustm 028465a9b8 [B96B_F446VE] change serial type
Use only the index, not the UARTName any more.
In case of app with 2 serial (using DMA) + 1 serial (stdio), we have found a bug. The dma handler is overwritten by the last initialized serial object.
Therefore read and write functions did not work anymore.
We have reworked this file to save 1 handler per UART IP, and align it with MBED OS file.
Tests have been passed. Same status as before (OK except MBED_37, manual test for SERIAL_ASYNC also OK).
2016-02-22 13:07:35 +00:00
mtkrtk 9211a3afea Enable SPI_3 2016-02-20 10:17:51 +09:00
bcostm c30cb0129e Update ARM_MICRO startup files
Fix issue #1348 with stack/heap  and with many ST shields.
2016-02-19 16:51:31 +01:00
bcostm a4cf478240 Set NVIC_RAM_VECTOR_ADDRESS to 0x10000000 2016-02-19 10:09:08 +01:00
modtronix-com b78542d10e Changed target name from NZ32SC151 to NZ32_SC151 2016-02-18 09:49:14 +00:00
Martin Kojtal b57f7d5684 Merge pull request #1545 from TomoYamanaka/master
Support of export function to the IAR.
2016-02-18 09:42:15 +00:00
tomoyuki yamanaka 60b7accf22 Additional changes to support of export function to the IAR.
In support of export function to the IAR, delete unnecessary extern declaration.
2016-02-17 11:39:01 +09:00
dbestm 37afc01c39 Merge remote-tracking branch 'refs/remotes/origin/master' into dev_l476rg_rtc 2016-02-16 17:44:02 +01:00
dbestm 8b04249028 [NUCLEO_L476RG] RTC+LSE
make the RTC works properly with LSE and add the possibility to use the
LSI (internal clock)
2016-02-16 17:30:54 +01:00
0xc0170 44df3e5bd7 mbed lib revision - 114 2016-02-16 15:49:36 +00:00
dbestm d63cc2109b [NUCLEO_F446RE] RTC+LSE+init 2016-02-15 17:21:32 +01:00
Martin Kojtal e641fd47cf Merge pull request #1547 from Parthasarathy/master
Fixed GCC Compiler warnings
2016-02-15 09:50:40 +00:00
Martin Kojtal 20948ad920 Merge pull request #1535 from sg-/remove-gcc-cw
Remove stale gcc tools
2016-02-15 08:54:17 +00:00
tomoyuki yamanaka 27caef30a4 Support of export function to the IAR.
We modified the following to support the export function to the IAR.
- In tools files, add RZ_A1H to the target of IAR.
- In tools files, add the tmpl files.
2016-02-15 14:49:31 +09:00
Parthasarathy.S a8e52a9fc0 Fixed style and build issue 2016-02-14 21:33:35 +05:30
Parthasarathy.S 86b8516024 Fixed build error 2016-02-14 21:33:33 +05:30
Parthasarathy.S d578a72b93 Fix for compiler warnings 2016-02-14 21:33:31 +05:30
Moin Shaik a736139336 Merge branch 'master' of https://github.com/mbedmicro/mbed into peripherals_driver_warnings_fix_ready 2016-02-14 21:33:29 +05:30
0xc0170 9dcb51ce87 Merge branch 'maclobdell-patch-1' 2016-02-12 08:46:36 +01:00
Mac Lobdell 8abc70e657 Fix SAML21J18A.sct
Remove extra new lines which caused comments to be exposed as code.
2016-02-12 08:45:55 +01:00
Paul Staron 91fae56245 Update Teensy3_1 OS_CLOCK
Corrected OS_CLOCK to 96MHz
2016-02-11 21:54:04 +00:00
sg- c7f84c86f7 Remove all references and use of code warrior GCC in docs, build and
exporters¦
2016-02-11 01:07:58 -06:00
Martin Kojtal c301abb233 Merge pull request #1522 from dinau/disco-uvision4-exporter
Add uVision4 exporters for DISCO-{F051R8, F100RB, F303VC, F407VG}
2016-02-11 07:53:34 +01:00
Martin Kojtal 66c0620619 Merge pull request #1521 from adustm/b_b96b_serial_flow_control
[STM B96B_F446VE] HW Control Flow for serial
2016-02-10 08:43:49 +01:00
0xc0170 4f59006467 mbed lib revision - 113 2016-02-02 07:44:54 +00:00
0xc0170 b28b71e97e Merge branch 'master' of https://github.com/leibin2014/mbed into leibin2014-master
Conflicts:
	libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/system_stm32f0xx.c
2016-02-01 18:20:15 +00:00
adustm c11325e11b [B96B_F446VE] add IRQ_RX1 interrupt
Can contains 2 fifos. Both generates its own interrupt.
IRQ_RX occurs when a message has arrived in FIFO-0 , FIFO-0 is full or
overrun.
IRQ_RX1 occurs when a message has arrived in FIFO-1 , FIFO-1 is full or
overrun.
2016-02-01 10:13:29 +01:00
dinau 6e45dafa0e Add uVision4 exporters for DISCO-{F051R8, F100RB, F303VC, F407VG}
(1) Add above exporters.
(2) Modified only comments in "cmsis_nvic.h" files.
2016-01-31 19:34:42 +09:00
Martin Kojtal 01e730cfb2 Merge pull request #1512 from neilt6/master
[LPC11U68, LPC1549] Fixed PwmOut SCT Bugs
2016-01-30 16:51:34 +00:00
adustm 6da4190be9 [STM B96B_F446VE] HW Control Flow for serial 2016-01-29 17:59:45 +01:00
Martin Kojtal d465cb53a3 Merge pull request #1506 from star297/master
Update rtc_api.c
2016-01-29 14:01:30 +00:00
Martin Kojtal d1cd09d7f1 Merge pull request #1517 from anpilog/stm32f0x_hsi_fix
Fix HSI configuration for STM32F0x.
2016-01-29 14:00:43 +00:00
adustm a58480e9eb [B96B_F446VE] Add the target for can test 2016-01-29 14:20:51 +01:00
Martin Kojtal bad9c12012 Merge pull request #1493 from adustm/b96b_asyn_serial_new
B96B async serial
2016-01-29 13:16:35 +00:00
adustm 0e739aaab3 [B96B_F446VE] remove specific B96B results
Requested by Martin: test is now failing, as B96B_F446VE gives
RX_COMPLETE event on top of errors and Char_Match
2016-01-29 14:12:55 +01:00
adustm 6ff8955d58 [B96B_F446VE] Add Can test files + bug fix in can_api.c 2016-01-29 14:09:25 +01:00
adustm fa5e1f7e73 [B96B_F446VE] remove unnecessary wait after code review
tested OK
2016-01-28 17:35:42 +01:00
adustm 1325d8c8c2 [B96B_F446VE] Add CAN Feature 2016-01-28 16:31:12 +01:00
anpilog 11d2f7e3da Fix HSI configuration for STM32F0x. If HSI is used then PF0 is locked by RCC. 2016-01-28 20:20:35 +08:00
Steven Cooreman aacdd047d1 Fix incorrect clock settings for running off of the HFRCO. 2016-01-28 11:43:07 +01:00
Steven Cooreman a675c20840 Apparently a copy-paste has gone wrong here 2016-01-28 11:27:18 +01:00
adustm 230ddcfab4 [B96B_F446VE] Add this platform to UT_SERIAL_ASYNCH unitary test 2016-01-26 14:57:06 +01:00
adustm 3712f7c6a7 [B96B_F446VE] use of static functions 2016-01-26 14:57:06 +01:00
adustm 5b0bfb1361 [B96B_ASYNC] some fixes to pass serial_asynch.cpp test
Flush errors and current data register at reading start
Allow separate serial obj for TX and RX (= do not initialize [TX/RX]_DMA
when not needed.
Char_match: make it work with long buffers and return the correct
position of the char_match.
2016-01-26 14:57:06 +01:00
adustm 3aaf866154 [B96B_F446VE] bug fix for serial_async unitary test
do not initialise dma tx/rx when it is not activated.
2016-01-26 14:57:06 +01:00
adustm 524f4a6ac7 [B96B_Serial_Async] Add asynchronous feature for the platform B96B 2016-01-26 14:57:06 +01:00
neilt6 132f1e75a5 [LPC11U68, LPC1549] Fixed PwmOut SCT Bugs
* Fixed period & pulse-width off-by-one errors
* Fixed 0% duty cycle output
* Improved duty cycle resolution at high frequencies
2016-01-21 09:30:14 -07:00
Martin Kojtal 813874ee2b Merge pull request #1507 from kgills/i2c_pinname_fix
[MAX32600MBED] Fixing a typo with the I2C pin names.
2016-01-20 08:10:00 +00:00
Kevin Gillespie 9d6336a6e9 Fixing a typo with the I2C pin names. 2016-01-19 16:17:54 -06:00
Paul Staron d9d5e97a97 Update rtc_api.c
Removed redundant RTC->CR define code + added RTC compensation code to calibrate RTC.
2016-01-17 20:42:14 +00:00
Martin Kojtal fa45092ecb Merge pull request #1505 from stevew817/feature/new/fast_i2c
[Silicon Labs] Allow faster I2C baudrates
2016-01-15 14:14:22 +01:00
Steven Cooreman 22c246c94d Fix comment 2016-01-15 13:21:07 +01:00
Steven Cooreman fffbe3201c Too quick on the commit 2016-01-15 13:18:32 +01:00
Steven Cooreman 8ea7d713d6 Extend I2C implementation to deal with higher frequencies 2016-01-15 13:14:08 +01:00
Steven Cooreman 7d8b2c0ca4 Fix regression towards older platforms (did not have RXBLOCK set, resulting in receiving characters even with RX set to NC) by condensing code. 2016-01-15 12:02:25 +01:00
leibin 4d66e2d0b1 The predivider should be 2 here. 2016-01-15 16:53:33 +08:00
Martin Kojtal 45dbe35006 Merge pull request #1490 from ytsuboi/add-TY51822r3
[TY51822r3] add platform
2016-01-15 07:47:49 +00:00
Martin Kojtal 6010f32619 Merge pull request #1482 from mjrgh/master
Remove doubling of buffer size in realiseEndpoint()
2016-01-15 07:42:32 +00:00
Martin Kojtal 0b57f8a29a Merge pull request #1481 from mjrgh/patch-2
Fix interrupt handler for endpoints > 2
2016-01-15 07:41:28 +00:00
Martin Kojtal 919364e6e7 Merge pull request #1501 from stevew817/pearl_support_rebased
[Silicon Labs] Add support for the new EFM32 Pearl Gecko
2016-01-15 07:33:40 +00:00
Steven Cooreman 3d8637cdfb Fixes to serial_api:
* Allow pins to be configured as NC without failing or asserting
* Fix putc() to not return before the entire character has been physically shifted out.
* Use MBED_ASSERT
* Fix baudrate calculation to avoid wrong configuration on startup for stdio
2016-01-14 16:45:39 +01:00
Steven Cooreman 6ab14faf91 Fix wrong copy-paste in digitalInOut test 2016-01-14 16:43:02 +01:00
Steven Cooreman 9d35328001 Clean up failed merge 2016-01-13 09:57:38 +01:00
Steven Cooreman 037dd8c455 Add back the manual placement of the DMA section for GCC to optimize the RAM layout w.r.t. alignment. 2016-01-12 17:25:58 +01:00
Steven Cooreman a0ba4e6489 Pull up EFM32 linker and startup files to latest SDK version. 2016-01-12 17:25:55 +01:00
Steven Cooreman 91ad34addb Update emlib to 4.2.1 to get a critical fix for DCDC on Pearl 2016-01-12 17:25:50 +01:00
Mikko Polojarvi 2ba71ea761 SiLabs: Remove emlib LDMA modifications
Emlib should now match the standard SiLabs release. Required extensions
have been moved to dma_api and marked with LDMAx_ prefix.
2016-01-12 17:25:46 +01:00
Steven Cooreman cb2a653bba Typo in AnalogOut 2016-01-12 17:25:43 +01:00
Steven Cooreman 41e2d8b75f Remove static define that would result in erroneous code when unset, and remove said code. 2016-01-12 17:25:41 +01:00
Steven Cooreman 48b20be0e6 Demote LDMA interrupt priority. We assume that completion of a DMA transfer means the transaction is finished already, and its handling is thus less time-sensitive than being in the middle of an interrupt-driven Serial or SPI transaction. 2016-01-12 17:25:38 +01:00
Steven Cooreman 468ddc86bd Fix error in comment 2016-01-12 17:25:36 +01:00
Steven Cooreman 7df5e479a2 Fix version mismatch between included emlib and readme 2016-01-12 17:25:34 +01:00
Steven Cooreman cfc1eea36b No need to set up the interrupt handler every single time in lp_ticker. 2016-01-12 17:25:31 +01:00
Steven Cooreman 495f7a4e45 Removed unnecessary code in _putc. 2016-01-12 17:25:29 +01:00
Steven Cooreman 924d931553 Cleanup and bugfixes of the PWM implementation.
* Setting the PWM period now correctly updates all other channels to keep their duty cycle
* No longer keep values in RAM that can be read directly from a register
* Setting the PWM duty cycle to 100% no longer makes the signal glitch on every period
* Code condensation
2016-01-12 17:25:26 +01:00
Steven Cooreman 919cf3d14e Light documentation on the sleep API 2016-01-12 17:25:24 +01:00
Steven Cooreman f5d44116e8 Reduce I2C object footprint 2016-01-12 17:25:21 +01:00
Steven Cooreman 0847fd5e2e Fixes to Pearl pinmap:
* Added PD9 back in (for some reason it was at some point removed from the pinmap, not sure why because it is a usable pin when you remove the on-board sensor or use the Pearl chip standalone)
* Fixed PWM locations to match the pin-CC channel combinations.
2016-01-12 17:25:18 +01:00
Steven Cooreman 8563fe8c54 Sync port_api.c with port_api.h 2016-01-12 17:25:16 +01:00
Steven Cooreman db45cd476f analogout_api: clean up functions that are no longer part of the API. 2016-01-12 17:25:14 +01:00
Steven Cooreman b233828ebb Cleanup in AnalogIn: remove functions that are unnecessary and no longer part of the API. 2016-01-12 17:25:11 +01:00
Steven Cooreman f20e96008d Update serial_api to not rely on the maximum number of serial peripherals, but rather allocate resources depending on how many peripherals the chip actually has. Should help with memory usage and clarity, also gets rid of a random badly-named #define in objects. 2016-01-12 17:25:09 +01:00
Steven Cooreman a59c73c4de Fixes to analogOut:
* Implement _free
* Make sure the pin is set to disabled
2016-01-12 17:25:06 +01:00
Steven Cooreman b4c171802e Silence GCC 2016-01-12 17:25:04 +01:00
Steven Cooreman dc2e6317ba lp_ticker code condensation 2016-01-12 17:25:01 +01:00
Steven Cooreman 8fac7bb8e6 Pinmap update for Pearl:
* Remove DAC reference
* Assign part of the pins to each PWM CC channel
* Add APORT4X pins to the ADC map
2016-01-12 17:24:58 +01:00
Steven Cooreman 1631aac5aa Remove unnecessary checking of bit before setting GPIO 2016-01-12 17:24:56 +01:00
Steven Cooreman f4133b8d36 Update modules.h to reflect the actual configuration of Pearl Gecko. 2016-01-12 17:24:54 +01:00
Steven Cooreman d7a4ebba21 Removed useless #error in analogin 2016-01-12 17:24:52 +01:00
Steven Cooreman 3f61aafd0a removed a line of code duplication 2016-01-12 17:24:49 +01:00
Steven Cooreman 8bec4e22bb PWM refactoring to be less confusing with all the #ifdef for routes 2016-01-12 17:24:47 +01:00
Steven Cooreman 653e91df5d Get rid of the check_usart_clock function which is unused and unnecessary. Usart-specific clocking resides in either spi or serial (or both) api files. 2016-01-12 17:24:44 +01:00
Steven Cooreman 05ce194f25 Move to CMSIS defines to check for presence of certain LF clock trees 2016-01-12 17:24:42 +01:00
Aksel Skauge Mellbye f05fd7fcea EFM32 Pearl Gecko Serial: Remove dynamic peripheral allocation. 2016-01-12 17:24:40 +01:00
Aksel Skauge Mellbye c0ec7ad8d9 EFM32 Pearl Gecko SPI: Remove dynamic resource allocation.
Allocate peripherals to specific subsets of pins. USART0 is available on port A, B and D, while USART1 is available on port C and F.
2016-01-12 17:24:37 +01:00
Aksel Skauge Mellbye 9dff016946 EFM32 Pearl Gecko test pins. 2016-01-12 17:24:35 +01:00
Aksel Skauge Mellbye d2609676ba EFM32: Fix HFRCO support for P2 devices. 2016-01-12 17:24:32 +01:00
Aksel Skauge Mellbye 8634cf54d6 EFM32 Pearl Gecko IAR support. 2016-01-12 17:22:14 +01:00