mbed SDK library sources
Fork of mbed-src by
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Revision 81:a9456fdf72fa, committed 2014-01-31
- Comitter:
- mbed_official
- Date:
- Fri Jan 31 09:00:05 2014 +0000
- Parent:
- 80:66393a7b209d
- Child:
- 82:0b31dbcd4769
- Commit message:
- Synchronized with git revision 2a782f50677ef823f25764c76cfed1bec98740be
Full URL: https://github.com/mbedmicro/mbed/commit/2a782f50677ef823f25764c76cfed1bec98740be/
Remove unnecessary semicolons.
Changed in this revision
--- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/spi_api.c Thu Jan 30 12:15:05 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/spi_api.c Fri Jan 31 09:00:05 2014 +0000 @@ -202,7 +202,7 @@ int spi_slave_receive(spi_t *obj) { return (ssp_readable(obj) && !ssp_busy(obj)) ? (1) : (0); -}; +} int spi_slave_read(spi_t *obj) { return obj->spi->DR;
--- a/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/spi_api.c Thu Jan 30 12:15:05 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/spi_api.c Fri Jan 31 09:00:05 2014 +0000 @@ -198,7 +198,7 @@ int spi_slave_receive(spi_t *obj) { return (ssp_readable(obj) && !ssp_busy(obj)) ? (1) : (0); -}; +} int spi_slave_read(spi_t *obj) { return obj->spi->DR;
--- a/targets/hal/TARGET_NXP/TARGET_LPC13XX/spi_api.c Thu Jan 30 12:15:05 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC13XX/spi_api.c Fri Jan 31 09:00:05 2014 +0000 @@ -202,7 +202,7 @@ int spi_slave_receive(spi_t *obj) { return (ssp_readable(obj) && !ssp_busy(obj)) ? (1) : (0); -}; +} int spi_slave_read(spi_t *obj) { return obj->spi->DR;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/platform_init.c Fri Jan 31 09:00:05 2014 +0000 @@ -0,0 +1,39 @@ + +#include "gpio_api.h" +#include "wait_api.h" + + // called before main +void mbed_main() +{ + gpio_t modemEn, modemRst, modemPwrOn, modemLvlOe, modemILvlOe, modemUsbDet; + gpio_t gpsEn, gpsRst, led, modemRts; + + gpio_init(&modemEn, MDMEN, PIN_OUTPUT); + gpio_init(&modemRst, MDMRST, PIN_OUTPUT); + gpio_init(&modemPwrOn, MDMPWRON, PIN_OUTPUT); + gpio_init(&modemLvlOe, MDMLVLOE, PIN_OUTPUT); + gpio_init(&modemILvlOe, MDMILVLOE, PIN_OUTPUT); + gpio_init(&modemUsbDet, MDMUSBDET, PIN_OUTPUT); + gpio_init(&gpsEn, GPSEN, PIN_OUTPUT); + gpio_init(&gpsRst, GPSRST, PIN_OUTPUT); + gpio_init(&led, LED, PIN_OUTPUT); + gpio_init(&modemRts, MDMRTS, PIN_OUTPUT); + + gpio_write(&led, 0); // LED1: 0=off + gpio_write(&modemRts, 0); // RTS: 0=ready to send + // we start with the gps disabled + gpio_write(&gpsEn, 0); // LDOEN: 1=on,0=off + gpio_write(&gpsRst, 0); // RESET: 0=reset,1=operating + // we start with the modem disabled + gpio_write(&modemLvlOe, 1); // LVLEN: 1=disabled (uart/gpio) + gpio_write(&modemILvlOe, 0); // ILVLEN: 0=disabled (i2c) + gpio_write(&modemUsbDet, 0); // USBDET: 0=disabled + gpio_write(&modemPwrOn, 1); // PWRON: 1=idle, 0=action + gpio_write(&modemEn, 0); // LDOEN: 1=on, 0=off + gpio_write(&modemRst, 0); // RESET: 0=reset, 1=operating + + wait_ms(50); // when USB cable is inserted the interface chip issues + // multiple resets to the target CPU We wait here for a short period to + // prevent those resets from propagating to the modem and other + // components. +}
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/spi_api.c Thu Jan 30 12:15:05 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/spi_api.c Fri Jan 31 09:00:05 2014 +0000 @@ -206,7 +206,7 @@ int spi_slave_receive(spi_t *obj) { return (ssp_readable(obj) && !ssp_busy(obj)) ? (1) : (0); -}; +} int spi_slave_read(spi_t *obj) { return obj->spi->DR;
--- a/targets/hal/TARGET_NXP/TARGET_LPC23XX/spi_api.c Thu Jan 30 12:15:05 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC23XX/spi_api.c Fri Jan 31 09:00:05 2014 +0000 @@ -208,7 +208,7 @@ int spi_slave_receive(spi_t *obj) { return (ssp_readable(obj) && !ssp_busy(obj)) ? (1) : (0); -}; +} int spi_slave_read(spi_t *obj) { return obj->spi->DR;
--- a/targets/hal/TARGET_NXP/TARGET_LPC408X/spi_api.c Thu Jan 30 12:15:05 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC408X/spi_api.c Fri Jan 31 09:00:05 2014 +0000 @@ -215,7 +215,7 @@ int spi_slave_receive(spi_t *obj) { return (ssp_readable(obj) && !ssp_busy(obj)) ? (1) : (0); -}; +} int spi_slave_read(spi_t *obj) { return obj->spi->DR;
--- a/targets/hal/TARGET_NXP/TARGET_LPC43XX/spi_api.c Thu Jan 30 12:15:05 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC43XX/spi_api.c Fri Jan 31 09:00:05 2014 +0000 @@ -183,7 +183,7 @@ int spi_slave_receive(spi_t *obj) { return (ssp_readable(obj) && !ssp_busy(obj)) ? (1) : (0); -}; +} int spi_slave_read(spi_t *obj) { return obj->spi->DR;
--- a/targets/hal/TARGET_NXP/TARGET_LPC81X/spi_api.c Thu Jan 30 12:15:05 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC81X/spi_api.c Fri Jan 31 09:00:05 2014 +0000 @@ -194,7 +194,7 @@ int spi_slave_receive(spi_t *obj) { return (ssp_readable(obj) && !ssp_busy(obj)) ? (1) : (0); -}; +} int spi_slave_read(spi_t *obj) { return obj->spi->RXDAT;