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

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

华大单片机(hc32l073pata)环境搭建及点灯源程序芯片解密

芯片解密单片机源程序如下:

  1. /******************************************************************************
  2. * Include files
  3. ******************************************************************************/
  4. #include "gpio.h"

  5. /******************************************************************************
  6. * Local pre-processor symbols/macros ('#define')
  7. ******************************************************************************/

  8. /******************************************************************************
  9. * Global variable definitions (declared in header file with 'extern')
  10. ******************************************************************************/

  11. /******************************************************************************
  12. * Local type definitions ('typedef')
  13. ******************************************************************************/

  14. /******************************************************************************
  15. * Local function prototypes ('static')
  16. ******************************************************************************/

  17. /******************************************************************************
  18. * Local variable definitions ('static')                                      *
  19. ******************************************************************************/

  20. /******************************************************************************
  21. * Local pre-processor symbols/macros ('#define')
  22. ******************************************************************************/

  23. /*****************************************************************************
  24. * Function implementation - global ('extern') and local ('static')
  25. ******************************************************************************/
  26. static void App_LedInit(void);

  27. /**
  28. ******************************************************************************
  29. ** \brief  Main function of project
  30. **
  31. ** \return uint32_t return value, if needed
  32. **
  33. ** This sample
  34. **
  35. ******************************************************************************/
  36. int32_t main(void)
  37. {
  38.     ///< LED端口初始化
  39.     App_LedInit();

  40.     while(1)
  41.     {
  42.         ///< LED点亮
  43.         Gpio_SetIO(EVB_LEDR_PORT, EVB_LEDR_PIN);
  44.         delay1ms(1000);

  45.         ///< LED关闭
  46.         Gpio_ClrIO(EVB_LEDR_PORT, EVB_LEDR_PIN);
  47.         delay1ms(1000);
  48.     }
  49. }



  50. static void App_LedInit(void)
  51. {
  52.     stc_gpio_cfg_t stcGpioCfg;
  53.    
  54.     ///< 打开GPIO外设时钟门控
  55.     Sysctrl_SetPeripheralGate(SysctrlPeripheralGpio, TRUE);
  56.    
  57.     ///< 端口方向配置->输出(其它参数与以上(输入)配置参数一致)
  58.     stcGpioCfg.enDir = GpioDirOut;
  59.     ///< 端口上下拉配置->下拉
  60.     stcGpioCfg.enPu = GpioPuDisable;
  61.     stcGpioCfg.enPd = GpioPdEnable;
  62.    
  63.     ///< LED关闭
  64.     Gpio_ClrIO(EVB_LEDR_PORT, EVB_LEDR_PIN);
  65.    
  66.     ///< GPIO IO LED端口初始化
  67.     Gpio_Init(EVB_LEDR_PORT, EVB_LEDR_PIN, &stcGpioCfg);
  68.    

  69. }



联系方式

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

在线客服
热线电话

企业微信