Page 46 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 46

/* Place your implementation of fputc here */
                         /* e.g. write a character to the USART */

                         USART_SendData(USART1, (u8) ch);


                         /* Loop until the end of transmission */
                          while    (USART_GetFlagStatus(USART1,         USART_FLAG_TC)       ==
                            RESET)  {}



                         return ch;
                       }

                       #ifdef  USE_FULL_ASSERT


                       /**
                         * @brief   Reports  the name  of the source file and the

                       source line number
                         *   where the assert_param error has occurred.
                         * @param file: pointer to the source file name

                         * @param line: assert_param error line source number
                         * @retval : None
                         */
                       void assert_failed(uint8_t* file, uint32_t line)

                       {
                         /* User can add his own implementation to report the file
                       name  and line  number, ex:  printf("Wrong parameters value:
                       file %s on line %d\r\n", file, line) */



                         /* Infinite loop */
                         while (1)
                         {

                         }
                       }
                       #endif





                       ②  GPIO.c






                                                         -  39  -
   41   42   43   44   45   46   47   48   49   50   51