Commit Graph

59 Commits (bfeb47f52360bd0a6ac1cf9b23956c746eef9343)

Author SHA1 Message Date
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
Emilio Monti 265c5b405d Move common CMSIS headers
Remove obsolete CMSIS "*.c" files
2013-06-28 16:12:45 +01: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
jesusalvarez ecd051c7a1 LPC43xx port from Micromint 2013-06-25 02:20:08 -04:00
Emilio Monti 984ba4b113 Refactor the build system:
* add sets of TARGET and TOOLCHAIN "labels"
2013-06-24 14:32:08 +01: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
Joe Turner e06063aa64 Lots of small fixes to make SPI work. 2013-05-16 11:02:16 +01:00
Joe Turner 9329d73d87 Leave enough space at the start of the RAM block for the dynamic
vectors.
2013-05-16 11:01:38 +01:00
Andreas Rebert 2662e105c4 Add support for NXP LPC4088 2013-05-16 08:53:02 +02:00
Joe Turner bec4ecab29 Add fixes for us_ticker so it updates the prescale register after the
counter is enabled, and uses the capture/compare register rather than
the auto-reset register to trigger interrupts.
2013-05-15 11:54:23 +01:00
Joe Turner 4e68eaef57 Make pinmap and port API use the correct memory region for the GPIOs. 2013-05-14 11:00:18 +01:00
Joe Turner 3a0c872df4 Small fixes to the GPIO api, meaning it works! 2013-05-14 10:59:14 +01:00
Joe Turner 8ffca414a5 Generate update event when initializing the ticker so the new prescaler
value is used straight away.
2013-05-14 10:58:37 +01:00
Joe Turner e6ff45d87c Remove moved options file. 2013-05-13 14:35:32 +01:00
Joe Turner 8efa81bb32 Lot of small fixes to cmsis code so it works correctly. 2013-05-13 14:34:38 +01:00
Emilio Monti 992f34117a Use two separate toolchains for CodeWarrior: one using EWL and one using newlib 2013-05-10 16:36:40 +01:00
samux 4292adebc1 [KL25Z]: spi slave and i2c slave support 2013-05-08 16:05:57 +01:00
Emilio Monti a6cad7b15e Prepare support for ARMCC 5.03 (mainline microlib) 2013-04-24 15:29:23 +01:00
Emilio Monti a44371aa5c Fix typo in mbed-rpc parse_pins 2013-04-24 15:26:47 +01:00
Joe Turner 179b7f677e Add us_ticker api. 2013-04-24 14:29:53 +01:00
Joe Turner 0b01040f47 Lots of small changes which get us compiling. 2013-04-24 11:48:27 +01:00
Joe Turner 7fba5bae39 Add fix for non-compiling analog in C API when median filtering is disabled. 2013-04-24 09:52:45 +01:00
Joe Turner b4c4ae8f09 Add options.json file for STM32. 2013-04-24 09:46:59 +01:00
Joe Turner f1a18358b8 Add device specific pin definitions, etc. 2013-04-24 09:46:22 +01:00
Joe Turner a28d1704be Add define to let stm32f4xx.h know which uC version we are working with. 2013-04-24 09:45:30 +01:00
Joe Turner f51b151a9c Add pinmap. 2013-04-24 09:45:09 +01:00
Joe Turner 7acc783058 Add SPI api 2013-04-24 09:44:55 +01:00
Joe Turner 56ad7f7d58 Add I2C master mode API 2013-04-24 09:44:44 +01:00
Joe Turner 93b0048cb5 Add GPIO api 2013-04-24 09:41:15 +01:00
Joe Turner 883d9855d3 Add analog in api 2013-04-24 09:40:58 +01:00
Joe Turner 96f69ae818 Add untested port api 2013-04-24 09:40:33 +01:00
Joe Turner 4718fc6e2b Add alternative function to pinmap for STM32. 2013-04-24 09:39:28 +01:00
Emilio Monti 1cfac4cec4 Add parse_pins function removed from the mbed library 2013-04-22 17:53:15 +01:00
Joe Turner d18875bee3 Add nvic dynamic vector handling. 2013-04-19 10:11:13 +01:00
Joe Turner ed9e0c1f0f Start adding STM32F4 cmsis and placeholders for the C API 2013-04-18 17:13:08 +01:00
Emilio Monti a607392724 [LPC812] Add us_ticker interrupts, board pin names and tests 2013-04-17 16:32:49 +01:00
Emilio Monti 3f684a518f Add initial KL25Z startup code and linker script for Code Warrior 2013-04-11 17:22:34 +01:00
Emilio Monti 498d5efcc4 Add LPC812 peripherals 2013-04-11 17:19:34 +01:00
Emilio Monti 3fa0f0a3c0 [KL25Z] Use channel 0 as a prescaler for channel 1 2013-03-21 13:33:59 +00:00