zoukankan      html  css  js  c++  java
  • 0403 VIP 修改成功

    0304 VIP for 五四杯修改成功

    -----------------yw------0403---------

    1. 将app文件下的neek_vip_demo 导入文件夹下,要求neek_vip_demo中必须要含有makefile文件,导入成功!如下所示:

    clip_image002

    2. Main.c代码中,函数修改:

    void video_intr_task(){

    Control_Synchronizer_clear_interrupt();

    int touchscreen_event;

    // handle touch screen event if any

    touchscreen_event = touchscreen_event_handling(&touchscreen) ;

    // update frame size/pos variables

    if (! touchscreen_event){

    if (auto_timer<=0) { // move by inertia

    bg_col &= 0xfcffffff;

    IOWR(ALT_VIP_CUSTOM_TPG_0_BASE,0,bg_col ) ;

    if (motion_count==5)

    // free_fall_image();

    motion_count=0;

    else if (motion_count==4)

    // move_image_top_center(-1,-1,-1,-1,-1);

    motion_count=0;

    else if (motion_count==3)

    // pan_and_scroll_image(-1,-1,-1,-1,-1);

    motion_count=0;

    else if (motion_count==2)

    // zoom_and_scroll_image(-1,-1,-1,-1,-1);

    motion_count=0;

    else if (motion_count==1)

    // move_image_center(-1,-1,-1,-1,-1);

    motion_count=0;

    else{

    motion_count=0;

    move_image(-1,-1,-1,-1,-1);

    }

    bounce_image_reset();

    }

    else {

    bounce_image();

    }

    }

    Build之后生成.elf文件,Run 调试看现象。

    修改之后的现象是:图像只有移动,而没有放大、缩小。比较理想。

    将.elf文件拷入SOF_ELF文件中:

    使用命令:./eek.sh my_appl.elf cycloneIII_3c25_niosII_video.sof

    成功生成 vip_sw.flash vip_hw.flash 两个文件。

    clip_image004

    出现的问题:无法正常生成xx_sw.flash xx_hw.flash 文件。

    重新开启一次quartus ii 9.1

    初始化如下图所示:没有问题(注意是从F盘启动)

    clip_image006

    同一台微机上同时存在几个版本的quartus,就会出现这样的问题。

  • 相关阅读:
    标准化R包开发流程
    创建Rdemo项目
    rJava在ubuntu上的安装
    Linux初始root密码设置
    检查网卡错误
    统计学习方法-李航 第一章
    ubuntu16.04细节设置
    linux指令学习
    Python在ubuntu16.04上环境搭建
    kuberneets 1.17 设置 kube-reserved, system-reserved
  • 原文地址:https://www.cnblogs.com/MrYang/p/1703674.html
Copyright © 2011-2022 走看看