Commit Graph

1673 Commits (3aff0e7c9fbb138c24ed70e856a87fdac73f63cd)

Author SHA1 Message Date
Wim 3aff0e7c9f Update I2CSlave.cpp
Removed comments again regarding need for dedicated i2c_slave_byte_read() and i2c_slave_byte_read(). This issue is captured in "I2c - slave should have own write/read functions (#896)"
2015-02-09 19:52:59 +01:00
Wim 1e098305ef Update device.h
Disabled DEVICE_I2CSLAVE option for LPC812 until the dedicated i2c_slave_byte_read() and i2c_slave_byte_write() functions have been added for all platforms.
2015-02-06 21:14:19 +01:00
Wim 83d87140aa Update I2CSlave.cpp
Added comments regarding the need for dedicated i2c_slave_byte_write() and  i2c_slave_byte_read() functions.
2015-02-06 21:11:29 +01:00
Wim 5356a00770 Update system_LPC8xx.c
Fixed SystemCoreClock calculation for LPC810 (same as for LPC812). Added MainClock variable for serial_api.
Added comments for PLL calculation. Note that SystemCoreClock for LPC810 is still 24MHz rather than rated 30MHz.
2015-02-04 20:53:28 +01:00
Wim c565c72dd1 Update I2C Slave for lpc812
The dedicated I2C Slave byte read and byte write functions need to be called
from 'common' mbed I2CSlave API for devices that have separate Master and 
Slave engines such as the lpc812 and lpc1549.
2015-02-03 21:49:50 +01:00
Wim 90c1ccb0af Update i2c_api.h
Added i2c_slave_byte_read() and i2c_slave_byte_write() for devices such as the lpc812, lpc824 and lpc1549 that have separate I2C engines for Master and Slave functions.
2015-02-03 21:43:10 +01:00
Wim eb9b8cdb8b Enabled I2CSlave 2015-02-03 21:40:07 +01:00
Wim 7045d12363 Added I2C Slave functions
Added support for I2C Slave block read, block write and byte read and write. The slave address can be set and the general call address is automatically enabled. Note that the lpc812, lpc824 and lpc1549 have the same I2C engine. This new engine is very different from the lpc1768 and other NXP mbeds. The newer engine has separate controls for Master and Slave functions and they can be enable at the same time. Note that currently the lib does not support multi-master (arbitration lost is not handled).
2015-02-03 21:39:04 +01:00
Wim d03329fb3f Update serial_api.c
Fix and enable the PLL for the LPC812. Removed unnecessary comments
2015-01-29 20:33:22 +01:00
Wim 898b4ab772 Update system_LPC8xx.h
Fix and enable the PLL for the LPC812. Removed unnecessary comments
2015-01-29 20:32:08 +01:00
Wim b2cc8227f1 Update system_LPC8xx.c
Fix and enable the PLL for the LPC812. Removed unnecessary comments
2015-01-29 20:30:43 +01:00
Wim fd82a674ab Update serial_api.c
Fixed the incorrect clocksource for the baud generator. Should be MainClock instead of SystemCoreClock. This also allows the correct use of the PLL for MainClock and SystemCoreClock without breaking the serial baudrate.
2015-01-27 21:04:17 +01:00
Wim 6fefefa3bb Update system_LPC8xx.c
LPC812 was running at 12MHz on IRC. Added and fixed PLL activation to change the clockspeed into the expected 30MHz. Clock source is still the IRC. Selecting the 12 MHz XTAL clocksource should also work with the PLL.
Added MainClock to fix wrong setting of SystemCoreClock and allow the serial_api to use the correct clock.
2015-01-27 21:00:01 +01:00
Wim 74cd948470 Update system_LPC8xx.h
Added extern MainClock to allow the use of the PLL and correct the wrong clock source for serial_api.c
2015-01-27 20:48:51 +01:00
Willem23 3b7d9635b7 I2C blockread and blockwrite fixed for LPC812
Quick fix of block read and write. The i2c_start is still wrong: it
should setup the address before initiating a Start condition. Status
read is also wrong in i2c_do_read.
2015-01-24 20:59:01 +01:00
bcostm cb36f2c472 [NUCLEO_F303RE] Update SetSysClock function 2015-01-22 11:10:09 +01:00
bcostm 8fe645ecd1 Merge branch 'master' of https://github.com/mbedmicro/mbed 2015-01-20 13:14:59 +01:00
bcostm 5e57cd3d29 [NUCLEO_F303RE] Add GCC_ARM toolchain 2015-01-20 13:10:22 +01:00
Martin Kojtal 0ab8d2e6b3 Merge pull request #844 from masaohamanaka/master
RZ_A1H - Implement some USB functions and fix some bugs about USBHost common codes.
2015-01-19 14:25:26 +00:00
Martin Kojtal befdc7ae6b Merge pull request #847 from ytsuboi/master
LPC1114 -  remove reset pin name to protect people. [LPC824] I2C pin names were crossed
2015-01-19 12:54:52 +00:00
Martin Kojtal 5c5232c36a Merge pull request #850 from NitinBhaskar/master
Initial support for LPC11U37H_401
2015-01-19 12:52:04 +00:00
nitin.bhaskar.27.09@gmail.com f38d985cc8 Initial support for LPC11U37H_401 2015-01-17 13:29:17 +05:30
Adam Green c1307163b3 Fixes to get LPC4330 GCC based builds to run
I was getting Hard Faults in even the simplest of samples before I made
these fixes.

* WaitUs() did nothing on optimized builds.  I added the volatile
  qualifier to the cyc variable to make sure that the delay loop
  doesn't get optimized out.
* I removed the #ifdef which skipped the fpuInit() call when building
  with GCC.
2015-01-16 15:58:55 -08:00
ytsuboi 5b8a42ffe9 [LPC824] I2C pin names were crossed 2015-01-17 01:33:22 +09:00
ytsuboi 7c55ec9590 [LPC1114] remove reset pin name to protect people.
If user set P0_0 as DigitalOut and set it to low, LPC1114 will be in
reset condion. To avoid this situation, p4, xp4 and dp23 was removed
from PinNames.h.
2015-01-17 00:41:17 +09:00
Paul Staron e21c65041d New platform - Teensy 3.1 2015-01-15 19:18:01 +00:00
Masao Hamanaka 7726496957 Implement some USB functions to RZ-A1H
Implemented functions as below.
- USB Host
- USB Device(Full speed)
2015-01-15 14:00:42 +09:00
bcostm fb2ed14768 [NUCLEO_F303RE] Correct ADC initialization
Same as #809
2015-01-12 16:30:05 +01:00
Martin Kojtal 7a3d2b4423 Merge pull request #837 from bcostm/master
NUCLEO_F070RB - Update tests
2015-01-12 08:14:44 +00:00
Martin Kojtal 47725f9123 Merge pull request #835 from masaohamanaka/master
RZ_A1H - Fix some bugs about InterruptIn, SPI, I2C and modify some settings.
2015-01-12 08:14:02 +00:00
bcostm 321f012f06 [NUCLEO_F070RB] Add missing line (same as F072RB) 2015-01-09 11:32:49 +01:00
Masao Hamanaka 4004624a1f Add comments.
Add comments to provide details about this code.
2015-01-09 13:50:41 +09:00
Martin Kojtal 2acefb66eb Merge pull request #809 from bcostm/master
NUCLEO_F334R8 - Fix issue with multiple ADC initialization
2015-01-08 11:57:52 +00:00
Martin Kojtal bef46907fc Merge pull request #831 from ohagendorf/stm32f4xx_reorg_hal
STM32F4xx reorganisation of hal folder
2015-01-08 11:53:03 +00:00
Masao Hamanaka 90cf47ffdf Fix some bugs about IntreruptIn.
Bugs are as below.
- Add terminal setting of IRQ4 and IRQ6 that leaked.
- When set the interrupt function by rise()/fall(), the interrupt disable state will be released by disable_irq().
- Interrupt will be continued to occur when execute disable_irq() after rise(NULL)/fall(NULL) set.
- Fix the setting timing of PMC register.
2015-01-07 19:11:14 +09:00
Masao Hamanaka f119a368e5 Fix the bug that a noise will occur in SPI.
A noise will occur when execute frequency() after set the "mode" to 3 by format().
2015-01-07 19:10:49 +09:00
Masao Hamanaka b13b047a76 Implement a stop condition transmission setting function of I2C.
User can specify the sending of STOP condition by this implement.
2015-01-07 19:10:26 +09:00
Masao Hamanaka 808c3b4d7c Take measures about optimization problems of web compiler. 2015-01-07 19:09:22 +09:00
Masao Hamanaka 0ed93c1953 Update scatter file to increase usable RAM area.
Remove a usable RAM area limit of RW and ZI area.
2015-01-07 13:04:49 +09:00
ohagendorf 716c51d232 Deleting doubled files 2015-01-06 00:35:57 +01:00
ohagendorf f5c3b18d75 [NUCLEO_F091RC] adding exporter (gcc_arm, coide), enable rtos
- Adding exporter for CoIDE and GCC_ARM
- Adding target to RTOS lib
2015-01-05 22:55:18 +01:00
ohagendorf 5ebdb92e78 [NUCLEO_F072RB] adding target to rtos lib
Every test (DTCT_1, EXAMPLE_1, MBED_xx, RTOS_x) is OK.
2015-01-05 22:43:52 +01:00
bcostm f2a6eeca8d [NUCLEO_F334R8] Correct the code used during initialization 2015-01-05 14:47:38 +01:00
bcostm ad9b6a7119 Merge branch 'master' of https://github.com/mbedmicro/mbed 2015-01-05 14:14:41 +01:00
Martin Kojtal 914dd37b11 Merge pull request #818 from ohagendorf/stm32l053_rtos
DISCO/NUCLEO_L053xx - adding to RTOS, corrections for all tests, [DISCO_L053] exporter to µVision
2015-01-05 08:08:00 +01:00
Martin Kojtal e1309e658a Merge pull request #811 from albert361/master
Add IAR toolchain support for DISCO_F429ZI
2015-01-05 07:57:36 +01:00
Martin Kojtal 3aef1389d5 Merge pull request #829 from Kazu-zamasu/LPC824-GCC_CR
Tools: LPC824 -  GCC_CR support
2015-01-05 07:55:21 +01:00
ohagendorf f98dd149b9 [MTS_MDOT_F405RG] reorg hal folder
- reorganisation of this target needed some extension of serial_api.c
used by all F4xx tagets.
- add arch_max to travis_build
2015-01-04 14:15:16 +01:00
ohagendorf 0498e2619b [STMF4xx] reorg hal folder
- some minor error correction
- add pin definition for 3 tests (MBED_A5,6,7)
- add new target disco_f401vc to travis_build

travis_build and all test are OK except missing STM32F4 target
MTS_MDOT_F405RG
2015-01-04 14:14:52 +01:00
ohagendorf 3d886a94dc [MTS_DRAGONFLY_F411RE] reorg hal folder 2015-01-04 14:11:32 +01:00