// UART init the StdPeriphLib way
- USART_InitStructure.USART_BaudRate = 115200;
+ USART_InitStructure.USART_BaudRate = 9600;
// USART_InitStructure.USART_BaudRate = 19200;
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
USART_InitStructure.USART_StopBits = USART_StopBits_1;
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
-// STM_EVAL_COMInit(COM1, &USART_InitStructure);
+ STM_EVAL_COMInit(COM1, &USART_InitStructure);
// STM_EVAL_COMInit(COM2, &USART_InitStructure);
-// USART_SendData(EVAL_COM1, (uint8_t) 'A');
-// USART_SendData(EVAL_COM1, (uint8_t) 'B');
-// USART_SendData(EVAL_COM1, (uint8_t) 'C');
+ USART_SendData(EVAL_COM1, (uint8_t) 0);
+ USART_SendData(EVAL_COM1, (uint8_t) 1);
+ USART_SendData(EVAL_COM1, (uint8_t) 2);
// USART_SendData(EVAL_COM2, (uint8_t) 'B');
init_SPI2();
static uint8_t spi_addr = 0;
-
+ USART_SendData(EVAL_COM1, (uint8_t) 0);
SPIBuffer[0] = (uint16_t) spi_addr; // address
SPIBuffer[1] = (uint16_t) spi_addr; // data content