포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 1GB 입니다.

사양 설정을 H/W switch로 해두고, Driver를 만들까 하다가 쉬운 방법을 찾았습니다.
조금 응용하면, Application에서 간단하게 GPIO control하기 쉽습니다.

#include "Pkfuncs.h"
/****************************************/
/* Extract from "mes_cfg.h"                                */
/****************************************/
#define IOCTL_HAL_MES_GPIO        CTL_CODE(FILE_DEVICE_HAL, 4071, METHOD_NEITHER, FILE_ANY_ACCESS)

/****************************************/
/* Extract from "mes_ioctl.h"                        */
/****************************************/
typedef struct kk {
        DWORD                cmd;
        DWORD                arg[16];
} MESIOControl;

#define MES_IOCTL_GPIO_SetOutputValue                0x05
#define MES_IOCTL_GPIO_SetOutputValueBit                0x06
#define MES_IOCTL_GPIO_GetInputValue                0x07
#define MES_IOCTL_GPIO_GetInputValueBit                0x08

extern "C" BYTE Get_DipSW(void)
{
        MESIOControl        InArg, OutArg;
        BYTE         cDipSw;
        InArg.cmd        = MES_IOCTL_GPIO_GetInputValue;
        InArg.arg[0]= 2;        //PORT C
        KernelIoControl(IOCTL_HAL_MES_GPIO,
                &InArg, sizeof(InArg),
                &OutArg, sizeof(OutArg), NULL);
        cDipSw = (BYTE)(OutArg.arg[0] >> 24) & 0x0f;                                        

        WCHAR szTemp[1024] = L"";
        wsprintf(szTemp, L"nDipSw %02x",cDipSw );
        OutputDebugString(szTemp);

        return cDipSw;
}
List of Articles
번호 제목 글쓴이 날짜 조회 수

CE의 App에서 간단하게 GPIO 읽기.

pollux spi관련 드라이버 및 예제 file

pollux용 regs-spi.h file [1]

[드라이버] I2C 드라이버 커널에 통합하기 & 버그수정 & 예제 file [2]

[드라이버] pollux spi 드라이버입니다. mp2530f용으로 참조하시기 ... file [2]

[커널] mp2530f i2c와 tvp5150 지원 커널 [2]

[자료] 이어폰 리셋문제 해결에 대한 사진자료 file [1]

[re] [자료] 이어폰 리셋문제 해결에 대한 사진자료 file [1]

[자료] AESOP MP2530F Linux Installation Guide (ENG) file [4]

MP2530F용 RTC driver file

수정된 mp2530f용 linux serial driver file [3]

[re] 수정된 mp2530f용 linux serial driver file [3]

AESOP2530용 uC/TCP 소스 file [3]

[자료] smsc9115(smsc9118) 용 u-boot source code file [2]

[자료] AESOP MP2530F - WinCE 5.0 BSP 2nd Release - Pa... file [1]

[자료]MP2530 에 SDL UI뛰우기 file [2]

[참고] AESOP MP2530F - WinCE 5.0 BSP 2nd Release - Pa... [1]

[자료]MP2530 UBOOT에 BMP 로고 뛰우기 file [3]

[자료] AESOP MP2530F - WinCE 5.0 BSP 2nd Release [13]

[자료] bootelf 명령어 지원하는 u-boot binary file [3]

사용자 로그인