mbed library with additional peripherals for ST F401 board
Fork of mbed-src by
This mbed LIB has additional peripherals for ST F401 board
- UART2 : PA_3 rx, PA_2 tx
- UART3 : PC_7 rx, PC_6 tx
- I2C2 : PB_3 SDA, PB_10 SCL
- I2C3 : PB_4 SDA, PA_8 SCL
Revision 108:4cb9db2ced35, committed 2014-03-03
- Comitter:
- mbed_official
- Date:
- Mon Mar 03 11:15:08 2014 +0000
- Parent:
- 107:972de2315d5f
- Child:
- 109:bc5f94f2a67f
- Commit message:
- Synchronized with git revision 8431561fc77ff70cb9536a99659afac9e80a8611
Full URL: https://github.com/mbedmicro/mbed/commit/8431561fc77ff70cb9536a99659afac9e80a8611/
LPC1768 writeable fix + KL25Z/KL46Z RTC pin function
Changed in this revision
--- a/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralPins.c Thu Feb 27 09:45:07 2014 +0000 +++ b/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralPins.c Mon Mar 03 11:15:08 2014 +0000 @@ -19,7 +19,7 @@ /************RTC***************/ const PinMap PinMap_RTC[] = { - {PTC1, RTC_CLKIN, 2}, + {PTC1, RTC_CLKIN, 1}, }; /************ADC***************/
--- a/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PeripheralPins.c Thu Feb 27 09:45:07 2014 +0000 +++ b/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PeripheralPins.c Mon Mar 03 11:15:08 2014 +0000 @@ -18,7 +18,7 @@ /************RTC***************/ const PinMap PinMap_RTC[] = { - {PTC1, RTC_CLKIN, 2}, + {PTC1, RTC_CLKIN, 1}, }; /************ADC***************/
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/serial_api.c Thu Feb 27 09:45:07 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/serial_api.c Mon Mar 03 11:15:08 2014 +0000 @@ -364,12 +364,10 @@ } int serial_writable(serial_t *obj) { - int isWritable = 1; if (NC != uart_data[obj->index].sw_cts.pin) - isWritable = gpio_read(&uart_data[obj->index].sw_cts) == 0; - if (isWritable) - isWritable = obj->uart->LSR & 0x40; - return isWritable; + return (gpio_read(&uart_data[obj->index].sw_cts) == 0) && (obj->uart->LSR & 0x40); //If flow control: writable if CTS low + UART done + else + return obj->uart->LSR & 0x20; //No flow control: writable if space in holding register } void serial_clear(serial_t *obj) {