zoukankan      html  css  js  c++  java
  • 【iCore4 双核心板_ARM】例程三十一:HTTP_IAP_FPGA实验——更新升级FPGA

    实验现象:

    核心代码:

    int main(void)
    {    
        GPIO_InitTypeDef GPIO_InitStruct;
    
        __HAL_RCC_GPIOI_CLK_ENABLE();
      __HAL_RCC_GPIOH_CLK_ENABLE();
        
        HAL_GPIO_WritePin(GPIOH, GPIO_PIN_6|GPIO_PIN_8, GPIO_PIN_RESET);
        HAL_GPIO_WritePin(GPIOI, GPIO_PIN_3, GPIO_PIN_SET);
      /*Configure GPIO pin : PI8 */
      GPIO_InitStruct.Pin = GPIO_PIN_8;
      GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
      GPIO_InitStruct.Pull = GPIO_NOPULL;
      HAL_GPIO_Init(GPIOI, &GPIO_InitStruct);    
        
      /*Configure GPIO pins : PH6 PH8 */
      GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_8;
      GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
      GPIO_InitStruct.Pull = GPIO_PULLUP;
      GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
      HAL_GPIO_Init(GPIOH, &GPIO_InitStruct);
    
      /*Configure GPIO pin : PH7 */
      GPIO_InitStruct.Pin = GPIO_PIN_7;
      GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
      GPIO_InitStruct.Pull = GPIO_NOPULL;
      HAL_GPIO_Init(GPIOH, &GPIO_InitStruct);
        
      /*Configure GPIO pin : PI3 */
      GPIO_InitStruct.Pin = GPIO_PIN_3;
      GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
      GPIO_InitStruct.Pull = GPIO_PULLUP;
      GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
      HAL_GPIO_Init(GPIOI, &GPIO_InitStruct);
        
        
      led.initialize();                                                      
      key.initialize();    
      system_clock.initialize();                                                                                    
      delay.initialize(216);                                                      
      adc.initialize();                                                                                                       
      my_malloc.initialize(SRAMIN);                                        
      usart6.initialize(115200);                                                                                       
        
      OSInit();                                                                    
        
      while(lwip.initialize())                                                
      {
        LED_RED_ON;
         usart6.printf("
    ETH initialize error!
    
    ");                            
      }
        
      web.initialize();                                               
    
        OSTaskCreate(start_task,(void*)0,(OS_STK*)&START_TASK_STK[START_STK_SIZE-1],START_TASK_PRIO);
        OSStart(); //¿ªÆôUCOS        
    
    }

    源代码下载链接:

    链接: https://pan.baidu.com/s/1nvtDVgH 密码: fj9c

    iCore4链接:

  • 相关阅读:
    文字编码
    各个地区的编码
    Android中调用系统所装的软件打开文件
    Android中检测手机制式和移动网络类型
    Android使用ContentProvide(内容提供者)向其他应用程序共享数据
    windows Phone Push Notification
    解决Android加载图片时内存溢出的问题
    Android 正则表达式
    淡定
    Android简单数据存储类SharedPreferences详解及实例
  • 原文地址:https://www.cnblogs.com/xiaomagee/p/7613828.html
Copyright © 2011-2022 走看看