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;
110 uint16_t u_config, u_value, u_fault;
120 printf(
"Maxim MAXREFDES63#\r\n");
133 if(uch_first_entry==1)
135 if(USART_GetFlagStatus(USART1,USART_FLAG_RXNE)==RESET)
139 if(USART_GetFlagStatus(USART1,USART_FLAG_RXNE)==RESET)
147 uch_input = getchar();
148 printf(
"%c\r\n",uch_input);
156 printf(
"\n\n\n\rEnter in the Configuration Byte in hex format. \n\rFor example FF to set all outputs to push-pull mode\n\r");
163 printf(
"\n\n\n\rEnter the desired output data in hex format. \n\rFor example, type FF for all output high\n\r");
165 u_value=(u_value<<8)+u_config;
168 printf(
"\n\n\rFault status byte = 0x%2.0X",u_fault);;
174 printf(
"\n\rInvalid Keypress, please try again\r\n");
182 #ifdef USE_FULL_ASSERT
191 void assert_failed(uint8_t* file, uint32_t line)