zoukankan      html  css  js  c++  java
  • Wince platform configure filesdetail

    • PLATFORM\Mini2440.bat,configre BSP_xxx 选项
    代码
    set WINCEREL=1

    set BSP_NOKEYBD=
    set BSP_KEYBD_NOP=1
    set BSP_NONANDFS=
    set BSP_NOUSB=
    set BSP_NOUSBFN=
    set BSP_NODISPLAY=


    set BSP_NOBUTTON=
    set BSP_NOWATCHDOG=
    set BSP_NOLED=
    set BSD_NOPWM=
    set BSP_NODM9K=1

    set BSP_NOTOUCH=
    set BSP_NOAUDIO=1
    set BSP_NOCAMERA=
    set BSP_NOI2C=
    set BSP_SDHC_SC2440=1
    set BSP_NOSERIAL=
    set BSP_NOBACKLIGHT=


    set BSP_NOPCCARD=1
    set BSP_USEDVS=
    set BSP_NOPWRBTN=1
    set BSP_NOATAPI=1
    set BSP_NOBATTERY=1
    set BSP_NOPCIBUS=1


    @REM
    - BlueTooth builtin uart!
    set BSP_BLUETOOTH_BUILTIN_UART=1
    set SYSGEN_BTH_AUDIO=

    ::notepad
    %_TARGETPLATROOT%\smdk2440a.log
    • PLATFORM\Mini2440\SRC\INC\options.h
    代码
    //
    // Copyright (c) FriendlyARM CO., Ltd. All rights reserved.
    //
    #ifndef __OPTIONS_H
    #define __OPTIONS_H

    // --- by customer
    #define KITL_NONE
    //#define KITL_SERIAL_UART0
    //#define KITL_SERIAL_UART1
    //#define KITL_USBSERIAL
    //#define KITL_ETHERNET

    //#define LCD_N35
    //#define LCD_L80
    #define LCD_T35
    //#define LCD_A70
    //#define LCD_VGA1024768

    //#define TOUCH_SCREEN_WIDTH 1024
    //#define TOUCH_SCREEN_HEIGHT 768


    // -----
    #if defined(KITL_NONE) + defined(KITL_SERIAL_UART0) + defined(KITL_SERIAL_UART1) + defined(KITL_USBSERIAL) + defined(KITL_USBSERIAL) + defined(KITL_ETHERNET) != 1
    #error Should defined only one KITL interface
    #endif

    #if defined(LCD_N35) + defined(LCD_L80) + defined(LCD_T35) + defined(LCD_A70) + defined(LCD_VGA1024768) != 1
    #error Must define only one LCD type
    #endif

    #if defined(LCD_N35)
    #define LCD_WIDTH 240
    #define LCD_HEIGHT 320

    #elif defined(LCD_L80)
    #define LCD_WIDTH 640
    #define LCD_HEIGHT 480

    #elif defined(LCD_T35)
    #define LCD_WIDTH 240
    #define LCD_HEIGHT 320

    #elif defined(LCD_A70)
    #define LCD_WIDTH 800
    #define LCD_HEIGHT 480

    #elif defined(LCD_VGA1024768)
    #define LCD_WIDTH 1024
    #define LCD_HEIGHT 768
    #endif

    #if defined(TOUCH_SCREEN_WIDTH) + defined(TOUCH_SCREEN_HEIGHT) != 2
    #define TOUCH_SCREEN_WIDTH LCD_WIDTH
    #define TOUCH_SCREEN_HEIGHT LCD_HEIGHT
    #endif

    #endif
    • PLATFORM\Mini2440\SRC\INC\bsp_cfg.h
    代码
    //
    // Copyright (c) Microsoft Corporation. All rights reserved.
    //
    //
    // Use of this source code is subject to the terms of the Microsoft end-user
    // license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
    // If you did not accept the terms of the EULA, you are not authorized to use
    // this source code. For a copy of the EULA, please see the LICENSE.RTF on your
    // install media.
    //
    //------------------------------------------------------------------------------
    //
    // File: bsp_cfg.h
    //
    // This file contains system constant specific for SMDK2440A board.
    //
    #ifndef __BSP_CFG_H
    #define __BSP_CFG_H

    //------------------------------------------------------------------------------
    //
    // Define: BSP_DEVICE_PREFIX
    //
    // Prefix used to generate device name for bootload/KITL
    //
    #define BSP_DEVICE_PREFIX "SMDK2440" // Device name prefix
    //------------------------------------------------------------------------------
    // Board clock
    //------------------------------------------------------------------------------

    //#define S3C2440A_FCLK 399651840 // 399.65MHz
    //#define S3C2440A_FCLK 296352000 // 296.352MHz
    //#define S3C2440A_HCLK (S3C2440A_FCLK/3) // divisor 3
    //#define S3C2440A_PCLK (S3C2440A_FCLK/6) // divisor 6

    #define S3C2440A_FCLK 400000000 // 400MHz
    #define S3C2440A_HCLK (S3C2440A_FCLK/4) // divisor 4
    #define S3C2440A_PCLK (S3C2440A_FCLK/8) // divisor 8

    //------------------------------------------------------------------------------
    // Debug UART0
    //------------------------------------------------------------------------------

    #define BSP_UART0_ULCON 0x03 // 8 bits, 1 stop, no parity
    #define BSP_UART0_UCON 0x0005 // pool mode, PCLK for UART
    #define BSP_UART0_UFCON 0x00 // disable FIFO
    #define BSP_UART0_UMCON 0x00 // disable auto flow control
    #define BSP_UART0_UBRDIV ((S3C2440A_PCLK/16.0/115200 +0.5) - 1)

    //------------------------------------------------------------------------------
    // Debug UART1
    //------------------------------------------------------------------------------

    #define BSP_UART1_ULCON 0x03 // 8 bits, 1 stop, no parity
    #define BSP_UART1_UCON 0x0005 // pool mode, PCLK for UART
    #define BSP_UART1_UFCON 0x00 // disable FIFO
    #define BSP_UART1_UMCON 0x00 // disable auto flow control
    #define BSP_UART1_UBRDIV (S3C2440A_PCLK/(115200*16) - 1)

    //------------------------------------------------------------------------------
    // Static SYSINTR Mapping for driver.
    #define SYSINTR_OHCI (SYSINTR_FIRMWARE+1)

    // -----------------------------------------------------------------------------
    // define For DVS
    #define V080 0
    #define V090 1
    #define V095 2
    #define V0975 3
    #define V100 4
    #define V105 5
    #define V110 6
    #define V115 7
    #define V120 8
    #define V125 9
    #define V130 10
    #define V135 11
    #define V140 12
    #define V145 13
    #define V150 14

    #define DVS_METHOD 1 //1:DVS_ON with VSYNC, 2:DVS_ON in idle mode(not change HCLK), 3:mixed
    #define USESWPWSAVING 1
    #define MVAL_USED 0
    #define HIGHVOLTAGE V130
    #define LOWVOLTAGE V100
    #define VOLTAGEDELAY 16000

    #define Eval_Probe 1

    #define DVSON 0x1
    #define HCLKHALF 0x2
    #define ACTIVE 0x4
    #define DeepIdle (DVSON|HCLKHALF)
    #define NIdle (DVSON)
    #define LazyActive (ACTIVE|DVSON|HCLKHALF)
    #define SlowActive (ACTIVE|DVSON)
    #define Active (ACTIVE)
    //------------------------------------------------------------

    #endif
  • 相关阅读:
    win10与ubuntu下演示运行.net core rc2 1.0.0.3002702程序
    win10系统iis下部署搭建https (ssl/tls)本地测试环境
    HTTP 错误 500.19
    win8.1安装Team Function Server 2013
    WCF在编译出现 “错误 3 命令“时解决
    EXCEL中,在其中列 前面or后面加一个“元”字的技巧
    职业经理感言一
    工作小应用:EXCEL查找两列重复数据
    C#设置与获取目录权限(.net控制ACL)
    WPF中窗口控件的跨线程调用
  • 原文地址:https://www.cnblogs.com/sunleecn/p/1732947.html
Copyright © 2011-2022 走看看