76 #include "stm32f10x.h"
77 #include "stm32f10x_gpio.h"
78 #include "stm32f10x_rcc.h"
79 #include "stm32f10x_usart.h"
80 #include "stm32f10x_spi.h"
90 #define MAJOR_REVISION 01
91 #define MINOR_REVISION 00
108 uint8_t uch_first_entry=1;
117 printf(
"Maxim MAXREFDES62#\r\n");
130 if(uch_first_entry==1)
132 if(USART_GetFlagStatus(USART1,USART_FLAG_RXNE)==RESET)
136 if(USART_GetFlagStatus(USART1,USART_FLAG_RXNE)==RESET)
144 uch_input = getchar();
145 printf(
"%c\r\n",uch_input);
157 }
while(uch_input>
'1' || uch_input<
'0');
163 while(uch_input!=0x1B)
171 printf(
"\r\nLoopback test PASSED\r\n");
173 printf(
"\r\nLoopback test FAILED\r\n");
181 printf(
"\r\nLoopback test PASSED\r\n");
183 printf(
"\r\nLoopback test FAILED\r\n");
184 printf(
"Press any key to return to the main menu\r\n");
191 printf(
"\n\rInvalid Keypress, please try again\r\n");
199 #ifdef USE_FULL_ASSERT
208 void assert_failed(uint8_t* file, uint32_t line)