안녕하세요...

파일이 약간 다르네요...

제가 가지고 있는 헤더파일을 올립니다...

확인 해보세요..

#define S1D_WRITE_PALETTE(p,i,r,g,b)
{
((volatile S1D_VALUE*)(p))[0x1E2/sizeof(S1D_VALUE)] = (S1D_VALUE)(i);
((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)] = (S1D_VALUE)(r);
((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)] = (S1D_VALUE)(g);
((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)] = (S1D_VALUE)(b);
}

#define S1D_READ_PALETTE(p,i,r,g,b)
{
((volatile S1D_VALUE*)(p))[0x1E2/sizeof(S1D_VALUE)] = (S1D_VALUE)(i);
r = ((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)];
g = ((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)];
b = ((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)];
}

이 부분이 다름니다...

#define S1D_WRITE_PALETTE(p,i,r,g,b)
{
((volatile S1D_VALUE*)(p))[0x1E2/sizeof(S1D_VALUE)] = (S1D_VALUE)(i);
((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)] = (S1D_VALUE)(r);
((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)] = (S1D_VALUE)(g);
((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)] = (S1D_VALUE)(b);
}

#define S1D_READ_PALETTE(p,i,r,g,b)
{
((volatile S1D_VALUE*)(p))[0x1E2/sizeof(S1D_VALUE)] = (S1D_VALUE)(i);
r = ((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)];
g = ((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)];
b = ((volatile S1D_VALUE*)(p))[0x1E4/sizeof(S1D_VALUE)];
}


다른 부분은 아직 확인을 하지 않았지만 님께서 올리신 에러부분이 이부분이라서..


그럼 수고하세요..


dear_linux wrote..
: 파일을 올립니다...