Joris Aerts
a16dc72272
Add @param documentation for new event parameter
...
Add clear irq to attach() template function
Call irq_handler for every interrupt set
2013-07-31 10:45:28 -07:00
Joris Aerts
63b2b271d1
Refactor CAN interrupt handling to LPC176X HAL implementation
...
Add handlers for other CAN interrupt events
Changed CAN private entities to protected
2013-07-31 07:26:32 -07:00
0xc0170
33c096c9d0
Initial version of a ld and a startup for KL25Z ARM GCC
2013-07-31 10:19:18 +02:00
Joris Aerts
8ef8aac36e
Merge remote-tracking branch 'upstream/master'
2013-07-30 19:16:34 -07:00
Joris Aerts
51bfe267f4
Add can_t->index to struct and set it during can_init
2013-07-30 15:17:40 -07:00
Matthew Else
07cddbf038
Merge remote-tracking branch 'upstream/master'
2013-07-30 12:01:49 +01:00
Bogdan Marinescu
df5a993197
__cxa_pure_virtual changes
...
- rename stdio.cpp to retarget.cpp, since it doesn't contain only stdio-related
code
- move __cxa_pure_virtual from exit.c to retarget.cpp where it belongs.
2013-07-29 18:54:22 +03:00
Bogdan Marinescu
1cd95c2467
[KL25Z] Fix clock generation for I2C and SPI
...
Don't set a clock higher than the one requested for the I2C and SPI interfaces,
even if this setting is the closest to the requested one. This was causing
some issues with the EEPROM test and possibly other issues with the SPI SD test.
2013-07-29 18:20:04 +03:00
Bogdan Marinescu
48d41016cd
Added armcc support for STM32F407
2013-07-29 18:15:04 +03:00
Bogdan Marinescu
5655d2fc2a
Fix for the previous "change vector table relocation check" commit.
2013-07-29 18:13:38 +03:00
Bogdan Marinescu
beed7117ad
Add __cxa_pure_virtual to avoid pulling in functions from the C++ library
...
Fixes PRMBED-859
2013-07-29 18:13:37 +03:00
Bogdan Marinescu
14409cd7fd
Change the check for vector table relocation
...
Allows the user to specify his own VTOR location.
Fixes PRMBED-1065.
2013-07-29 18:13:37 +03:00
matthewelse
429d2e61eb
Enabled CAN for LPC11CXX in device.h
2013-07-29 10:59:18 +01:00
Matthew Else
200b263dcd
Added basic stuff necessary to compile for LPC11C24 target.
2013-07-27 18:12:35 +01:00
ytsuboi
a9f0d9a3f7
[LPC1114]: uARM fixed
...
Tested with only "[ 32] MBED_11: Ticker"
2013-07-27 02:06:12 +09:00
Matthew Else
8c2ede6f4f
Merge remote-tracking branch 'upstream/master'
2013-07-26 15:50:59 +01:00
Emilio Monti
5f0bd9d283
Update ARM toolchain symbols
2013-07-26 15:49:00 +01:00
Matthew Else
153153f261
Added serial_break_clear/serial_break_set
...
Fixes #24
2013-07-26 11:44:09 +01:00
Matthew Else
3172fd97ca
Fix both edge bug in gpio_irq_api.c
...
Fixes #22
2013-07-26 09:41:20 +01:00
Matthew Else
a356553c7d
Fixed incorrect use of static in port_api.c
...
This was causing errors when compiling in GCC_ARM
2013-07-25 16:01:45 +01:00
Matthew Else
c3ebd47071
Tidying up gpio_irq_api.c
2013-07-25 10:43:49 +01:00
Matthew Else
a7ba27618d
Fixed bug in gpio_irq_api
...
Test interruptin now works. Fixes #16
2013-07-25 10:26:46 +01:00
Matthew Else
df067bd4e9
Complete support for GPIO interrupts.
2013-07-24 16:02:01 +01:00
Matthew Else
3d08be9700
Attempt to fix the interrupts problem.
2013-07-24 11:00:07 +01:00
Toyomasa Watarai
a125a25a97
Implemented PortIn, PortOut and PortInOut API #8
...
Followingt test cases have been passed:
* PortOut (#24 )
* PortOut PortIn (#9 )
* PortInOut (#8 )
2013-07-24 18:37:12 +09:00
matthewelse
d67d4f7fc1
Create README.md
2013-07-23 15:54:13 +01:00
Matthew Else
55f91f1da8
Fixed errors in gpio_irq_api.c
2013-07-23 15:44:24 +01:00
Matthew Else
c56d1a5236
Fully implemented GPIO_IRQ
...
* Removed unused variables/comments.
* As of yet, untested...
2013-07-23 15:35:38 +01:00
Matthew Else
819ca5547c
Removed extraneous comment from the function
2013-07-23 14:21:40 +01:00
Matthew Else
8011992021
Fully implemented gpio_irq_set
2013-07-23 14:19:33 +01:00
Matthew Else
fea818fccb
Updates to interrupt handling
2013-07-22 13:56:56 +01:00
Matthew Else
1da8e8a2c7
Started to implement gpio_irq_set
2013-07-22 13:30:00 +01:00
Matthew Else
4cf6f09411
Enabled the interrupts api to compile
2013-07-22 12:46:46 +01:00
Toyomasa Watarai
2a989551aa
Fixed gpio_api
...
Corrected base address of GPIO port register
2013-07-22 18:53:45 +09:00
Matthew Else
1097af7091
Added DIP package pins to PinNames.h
2013-07-22 09:30:47 +01:00
Toyomasa Watarai
1781d58249
Merge branch 'master' of https://github.com/matthewelse/mbed
2013-07-22 15:13:13 +09:00
Toyomasa Watarai
b172cd866c
More fix for uARM build to avoid link error
2013-07-22 15:12:42 +09:00
ytsuboi
ca31bda530
Removed printf debug lines
2013-07-22 14:55:19 +09:00
Toyomasa Watarai
b4de4503a8
Fixed uARM build
...
Added EXPORT directive for stack/heap.
2013-07-22 10:29:20 +09:00
Toyomasa Watarai
794ab9cbd3
Fixed #9 and test ticker test code
...
Clean-up GPIO stuff, but it shoud be same behavior as before.
2013-07-21 23:04:46 +09:00
Toyomasa Watarai
796bbbeb0d
Fixed ARM/uARM build and compile error in DigitalOut.h
2013-07-20 19:46:24 +09:00
Matthew Else
84a76cd8d8
Added a load of debug lines
...
Basically this outputs a load of stuff to the serial port. I'm just
using this to get an idea of where the error lies within the code...
2013-07-19 16:56:49 +01:00
Matthew Else
9097bf7f55
A bit more debugging
...
Also removed a random shortcut link that didn't need to be there
2013-07-19 15:32:29 +01:00
Matthew Else
66ca1c9db2
Refactored bits of gpio_api.c
...
In between the last two commits, I added debugging lines using serial to
try and locate the line of code that was causing the issues with GPIO.
However, didn't get anywhere with this because the gpio_write function
is defined in a header file, rather than in an implementation file, so
the printf function can't go there. As a result, it's just refactoring.
2013-07-19 15:23:25 +01:00
Matthew Else
a9bb4aa5cb
Lots of changes, fixing build bugs and renaming
...
Files renamed to fit with the new style folder structure
2013-07-19 13:59:50 +01:00
Matthew Else
18c291b7ce
Added ytsuboi's modifications for using the 1114
2013-07-19 11:24:51 +01:00
Bogdan Marinescu
6d652bddfa
mbed_interface_disconnect/powerdown are now synchronous calls
...
Fixes PRMBED-804
2013-07-17 15:29:41 +03:00
Bogdan Marinescu
dd70336886
[LPC11U24] Take advantage of the full 8K of RAM
...
The linker command scripts/startup files used only 4K of RAM on this target.
2013-07-17 15:29:40 +03:00
Bogdan Marinescu
0c33d40fbb
Added support for UART break generation.
2013-07-17 15:29:39 +03:00
samuel.mokrani@arm.com
f2ea747280
[LPC1347] Change LED pin names
2013-07-17 15:27:10 +03:00
Bogdan Marinescu
7d5e9dac70
[LPC1347] Added support for the ARM toolchain.
2013-07-17 15:25:18 +03:00
Bogdan Marinescu
358e84edf3
[LPC1347] Added GPIO interrupts
2013-07-17 15:17:20 +03:00
samuel.mokrani@arm.com
5b0fe44b0d
[LPC1347]: first implementation of analogIn (not tested)
2013-07-17 15:17:19 +03:00
samuel.mokrani@arm.com
6b7f4b998e
[LPC1347]: first implementation of PWMOut (not tested)
2013-07-17 15:17:09 +03:00
Bogdan Marinescu
721082257c
Preliminary support for LPC13XX
...
Works only with GCC_ARM for now.
2013-07-17 14:57:02 +03:00
Emilio Monti
5020b9ad3b
Stop using the patched microlib
2013-07-08 17:31:04 +01:00
jesusalvarez
804176b806
Update targets and pins for LPC43xx
2013-07-07 23:27:11 -04:00
0xc0170
43ace93009
removed KL05Z hw tests + mv KL05Z to TARGET_Freescale
2013-07-04 17:57:52 +02:00
0xc0170
551f06b66b
Merge branch 'master' into freedomKL05
...
Conflicts:
workspace_tools/toolchains/arm.py
2013-07-04 17:40:46 +02:00
0xc0170
2b57ae9c23
KL25 + KL05 - no pull down, pullup for INPUT pins by default
...
- pull down removal
- ARMCC - debug information option
2013-07-03 19:39:19 +02:00
Emilio Monti
597c62e06a
Add the vendor name as a proper target label
2013-07-03 17:14:43 +01:00
Helmut Schmucker
e38bce5ccd
fix for mbed lib issue 1 (i2c problem)
...
see also https://mbed.org/users/mbed_official/code/mbed/issues/1
2013-07-03 16:12:03 +01:00
0xc0170
c1c1102a89
i2c api update
2013-07-02 20:27:20 +02:00
0xc0170
9ff042699b
Update freedomKL05 from upstream master
2013-07-02 19:44:15 +02:00
0xc0170
90bb8521aa
ADC, code indentation
...
- ADC resolution - 12bit, all pins definition
- code indentation
2013-07-02 19:34:11 +02:00
Emilio Monti
f4f34a025d
Merge pull request #9 from spectaclelabs/fix-gpio-mode
...
Fix setting STM32 GPIO input/output mode.
2013-07-02 02:44:29 -07:00
Emilio Monti
585b369ab8
Explicitly add gpio write/read prototypes to the HAL header
2013-07-02 10:37:57 +01:00
Joe Turner
fac01e3186
Fix setting GPIO input/output mode.
2013-07-02 10:37:24 +01:00
0xc0170
ed200183d0
RTC OSC32, systemUpdate v0.1
...
- RTC clock init from crystal, tested
- system update function
- startup - handler PORTB correction
2013-07-01 21:32:22 +02:00
Emilio Monti
95e66aa4c6
Move the target dependent code from the shared code to the HAL implementation
2013-07-01 18:05:31 +01:00
Bogdan Marinescu
28961db4a5
Added timeout to i2c_stop operations
...
Fixes this issue:
http://mbed.org/users/mbed_official/code/mbed/issues/3
2013-07-01 16:28:35 +01:00
Bogdan Marinescu
bfeb47f523
I2C API refactoring
...
Now the I2C send/receive functions in the mbed HAL return the number of
bytes actually transferred or an error code (a negative value). The
public API remains unchanged.
2013-07-01 16:28:32 +01:00
0xc0170
20789374a0
i2C - pulse definition, serial - define correction
2013-06-29 09:10:26 +02:00
0xc0170
7d3864f27b
Update KL05 to mbed new structure
2013-06-29 09:08:28 +02:00
0xc0170
cd5d235e2b
Merge branch 'master' into freedomKL05
...
Conflicts:
workspace_tools/targets.py
workspace_tools/tests.py
2013-06-29 07:53:32 +02:00
0xc0170
4c4d15f323
Serial api - clock, SPImaster test
2013-06-28 19:59:15 +02:00
Emilio Monti
265c5b405d
Move common CMSIS headers
...
Remove obsolete CMSIS "*.c" files
2013-06-28 16:12:45 +01:00
0xc0170
5d169ce654
Clocks correction, ticker, tests
...
- systemInit - clock update (crystal 32768Hz)
- us_ticker - MCG clock input
- Kl05 testing - pin definitions for KL05 (all run in KEIL with debugger)
2013-06-27 23:20:47 +02:00
Joe Turner
3e40b905f0
Merge branch 'master' of git://github.com/mbedmicro/mbed into STM32F4
...
Conflicts:
workspace_tools/targets.py
2013-06-26 13:34:34 +01:00
0xc0170
bf4746897f
KL05 clock removal, I2C API
...
- spi - bus clock clock correction
- i2c driver
2013-06-25 21:53:06 +02:00
jesusalvarez
ecd051c7a1
LPC43xx port from Micromint
2013-06-25 02:20:08 -04:00
0xc0170
3884f1ba3c
SPI API
2013-06-24 22:40:04 +02:00
0xc0170
19ead14dcb
KL05 Clocks, PWM, RTC, Serial
...
- clock setup update
- serial correction with core clock (define)
- pwm defines
- RTC clock
2013-06-24 19:41:54 +02:00
Emilio Monti
984ba4b113
Refactor the build system:
...
* add sets of TARGET and TOOLCHAIN "labels"
2013-06-24 14:32:08 +01:00
0xc0170
0bad32c110
Serial API
...
- serial UART0 added
- correction in gpio irq (port b)
2013-06-23 22:55:23 +02:00
0xc0170
8a41a5ba9a
KL05 analog in+out, gpio irq
...
- AnalogIn
- AnalogOut
- GPIO irq
- target KL05 added
2013-06-23 18:22:46 +02:00
0xc0170
72659a220b
HAL removing code for API which is not ported yet
2013-06-22 20:54:48 +02:00
0xc0170
a14d88f156
KL05 - target ARM - gpio, us_ticker
...
- cmsis - only one type of MCG at the moment
- HAL - gpio pins
- us_ticker
2013-06-21 20:39:27 +02:00
Joe Turner
92a5e412bd
Merge branch 'master' into STM32F4
...
Conflicts:
workspace_tools/build_api.py
workspace_tools/data/support.py
workspace_tools/libraries.py
workspace_tools/paths.py
workspace_tools/toolchains.py
2013-06-19 13:10:44 +01:00
Emilio Monti
90b614baf8
Unify mbed library sources
...
Remove stdio retargeting reference form cmsis: keep it as a standalone
object
Avoid object files clash for sources with the same name
2013-06-14 17:32:15 +01:00
Emilio Monti
31ee5e5f29
Refactoring of the mbed SDK:
...
- Provide a well defined HAL and API
- Keep separated the HAL implementations for the different targets
2013-06-10 15:44:08 +01:00
Joe Turner
fe625b1f65
Remove empty files, and not ported driver code.
2013-06-04 11:50:07 +01:00
Joe Turner
af5bc356ca
Changes to make port api work.
2013-06-04 11:30:51 +01:00
Joe Turner
79bb66bab5
Small fixes to make analog in work.
2013-06-03 16:42:28 +01:00
Joe Turner
32e7bb8b8c
GPIO fixes to make digital input work.
2013-06-03 14:55:51 +01:00
Joe Turner
a3fd58bf2b
Initialize the I2S PLL in the system startup.
2013-05-31 08:49:12 +01:00
Joe Turner
9e3cd7f379
Make GPIOs use high-speed mode
2013-05-31 08:48:40 +01:00
Emilio Monti
a0c51e0eff
mirror the mbed.org libraries
2013-05-30 18:17:50 +01:00
Emilio Monti
f3acb6c8fd
cleanup
2013-05-30 10:56:18 +01:00
Joe Turner
a71c955c35
Various small fixes to get I2C working.
2013-05-28 16:37:01 +01:00