mirror of https://github.com/ARMmbed/mbed-os.git
* Removed unwanted arrays in Pinmap.
* corrected macros for build to be successful without ASYNCH enabled in serial apis. * added serial_pinout_tx api in serial.pull/1297/head
parent
987567ee59
commit
8188c05c64
|
@ -20,9 +20,6 @@
|
||||||
#include "pinmap.h"
|
#include "pinmap.h"
|
||||||
#include "PeripheralNames.h"
|
#include "PeripheralNames.h"
|
||||||
|
|
||||||
/************RTC***************/
|
|
||||||
//extern const PinMap PinMap_RTC[];
|
|
||||||
|
|
||||||
/************ADC***************/
|
/************ADC***************/
|
||||||
extern const PinMap PinMap_ADC[];
|
extern const PinMap PinMap_ADC[];
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,6 @@
|
||||||
|
|
||||||
#include "PeripheralPins.h"
|
#include "PeripheralPins.h"
|
||||||
|
|
||||||
/************RTC***************/
|
|
||||||
const PinMap PinMap_RTC[] = {
|
|
||||||
/* Not connected */
|
|
||||||
{NC , NC , NC}
|
|
||||||
};
|
|
||||||
|
|
||||||
/************ADC***************/
|
/************ADC***************/
|
||||||
const PinMap PinMap_ADC[] = {
|
const PinMap PinMap_ADC[] = {
|
||||||
{PA04, ADC_4, 1},
|
{PA04, ADC_4, 1},
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#define pUSART_S(obj) obj->serial.usart
|
#define pUSART_S(obj) obj->serial.usart
|
||||||
#define pSERIAL_S(obj) ((struct serial_s*)&(obj->serial))
|
#define pSERIAL_S(obj) ((struct serial_s*)&(obj->serial))
|
||||||
#else
|
#else
|
||||||
#define pUSART_S(obj) obj->serial
|
#define pUSART_S(obj) obj->usart
|
||||||
#define pSERIAL_S(obj) ((struct serial_s*)obj)
|
#define pSERIAL_S(obj) ((struct serial_s*)obj)
|
||||||
#endif
|
#endif
|
||||||
#define _USART(obj) pUSART_S(obj)->USART
|
#define _USART(obj) pUSART_S(obj)->USART
|
||||||
|
@ -544,6 +544,11 @@ void serial_break_clear(serial_t *obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void serial_pinout_tx(PinName tx)
|
||||||
|
{
|
||||||
|
pinmap_pinout(tx, PinMap_SERCOM_PAD);
|
||||||
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* INTERRUPTS HANDLING
|
* INTERRUPTS HANDLING
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue