Merge pull request #1493 from adustm/b96b_asyn_serial_new

B96B async serial
pull/1495/merge
Martin Kojtal 2016-01-29 13:16:35 +00:00
commit bad9c12012
4 changed files with 759 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 {

View File

@ -39,6 +39,10 @@
#define TEST_SERIAL_ONE_TX_PIN PE10 // usart0
#define TEST_SERIAL_TWO_RX_PIN PC1 // usart1
#elif defined(TARGET_B96B_F446VE)
#define TEST_SERIAL_ONE_TX_PIN D1 // UART2
#define TEST_SERIAL_TWO_RX_PIN D4 // UART5
#else
#error Target not supported