]> jspc29.x-matter.uni-frankfurt.de Git - mvd_firmware.git/commitdiff
added gcc toolbench package
authorMichael Wiebusch <stratomaster@gmx.net>
Mon, 16 Dec 2013 10:22:55 +0000 (11:22 +0100)
committerMichael Wiebusch <stratomaster@gmx.net>
Mon, 16 Dec 2013 10:22:55 +0000 (11:22 +0100)
STM32_toolchain/arm-2012.09-63-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 [new file with mode: 0644]
firmware/src/main.c

diff --git a/STM32_toolchain/arm-2012.09-63-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 b/STM32_toolchain/arm-2012.09-63-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
new file mode 100644 (file)
index 0000000..324d58c
Binary files /dev/null and b/STM32_toolchain/arm-2012.09-63-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 differ
index be7d17c65ad22818c1c9314c1c406e30bad3d53c..fde842dd71c14d80fe3423cb9b2ded822724651d 100644 (file)
@@ -57,7 +57,7 @@ int main(int argc, char *argv[]) {
   // 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;
@@ -65,12 +65,12 @@ int main(int argc, char *argv[]) {
   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();
@@ -235,7 +235,7 @@ void SysTick_Handler(void)
   
   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