芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密

飞芯科技提供芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密逆向服务

PCB抄板GD32F307开发板串行通讯功能测试

PCB抄板主程序,功能不多但程序却写的很臃肿,其内容如下:
  1. int main(void)
  2. {
  3. /* initialize the LEDs */
  4. led_init();
  5. /* configure systick */
  6. systick_config();
  7. /* flash the LEDs for 1 time */
  8. led_flash(1);
  9. /* configure EVAL_COM1 */
  10. gd_eval_com_init(EVAL_COM1);
  11. /* configure TAMPER key */
  12. gd_eval_key_init(KEY_WAKEUP, KEY_MODE_GPIO);
  13. /* output a message on hyperterminal using printf function */
  14. printf("\r\n USART printf example: please press the User key \r\n");
  15. /* wait for completion of USART transmission */
  16. while(RESET == usart_flag_get(EVAL_COM1, USART_FLAG_TC)){
  17. }
  18. while(1)
  19. {
  20. /* check if the user key is pressed */
  21. if(RESET == gd_eval_key_state_get(KEY_WAKEUP))
  22. {
  23. delay_1ms(50);
  24. if(RESET == gd_eval_key_state_get(KEY_WAKEUP))
  25. {
  26. delay_1ms(50);
  27. if(RESET == gd_eval_key_state_get(KEY_WAKEUP))
  28. {
  29. /* turn on LED1 */
  30. gd_eval_led_on(LED1);
  31. /* output a message on hyperterminal using printf function */
  32. printf("\r\n USART printf example \r\n");
  33. /* wait for completion of USART transmission */
  34. while(RESET == usart_flag_get(EVAL_COM1, USART_FLAG_TC)){
  35. }
  36. }
  37. else
  38. {
  39. /* turn off LED1 */
  40. gd_eval_led_off(LED1);
  41. }
  42. }
  43. else
  44. {
  45. /* turn off LED1 */
  46. gd_eval_led_off(LED1);
  47. }
  48. }
  49. else
  50. {
  51. /* turn off LED1 */
  52. gd_eval_led_off(LED1);
  53. }
  54. }



联系方式

地址:石家庄市新华区民族路77号华强广场D座2009
电话:0311-88816616/87087811
手机:13315190088
传真:0311-67901001
联系人:张工
网址:www.taihedz.cn
邮箱:feixindz@163.com
微信:xinpianjiemi
QQ:527263666/568069805

在线客服
热线电话

企业微信