[B96B_Serial_Async] Add asynchronous feature for the platform B96B

pull/1493/head
adustm 2016-01-07 11:06:43 +01:00
parent bf2315b9c9
commit 524f4a6ac7
3 changed files with 742 additions and 54 deletions

View File

@ -40,8 +40,8 @@
#define DEVICE_ANALOGOUT 1
#define DEVICE_SERIAL 1
#define DEVICE_SERIAL_ASYNCH 0
#define DEVICE_SERIAL_ASYNCH_DMA 0
#define DEVICE_SERIAL_ASYNCH 1
#define DEVICE_SERIAL_ASYNCH_DMA 1
#define DEVICE_SERIAL_FC 0
#define DEVICE_I2C 1

View File

@ -74,6 +74,9 @@ struct serial_s {
uint32_t parity;
PinName pin_tx;
PinName pin_rx;
#if DEVICE_SERIAL_ASYNCH
uint32_t events;
#endif
};
struct spi_s {