User’s Manual
53
void CL706_GPIO_TESTDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting
SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);
// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
GetClientRect(&rect);
int x = (rect.Width() - 1) / 2;
int y = (rect.Height() - 1) / 2;
// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CDialog::OnPaint();
}
}
// The system calls this to obtain the cursor to display while the user drags
// the minimized window.
HCURSOR CL706_GPIO_TESTDlg::OnQueryDragIcon()
{
return (HCURSOR) m_hIcon;
}
BOOL CL706_GPIO_TESTDlg::DestroyWindow()
{
// TODO: Add your specialized code here and/or call the base class
ShutdownWinIo();
KillTimer(1);
return CDialog::DestroyWindow();
}
void CL706_GPIO_TESTDlg::Gpio2_Out_detect()
{
//set GPIO is enabled GPIO68 69 70 71 27 57 58 75
SetPortVal(0x540, 0xF0, 1); //GPIO68 69 70 71
SetPortVal(0x541, 0x08, 1); //GPIO75
SetPortVal(0x503, 0x3F, 1); //GPIO27
SetPortVal(0x533, 0x16, 1); //GPIO57 58
//set GPIO is ouput
Summary of Contents for FEBC-3158
Page 8: ...User s Manual 1 General Information CHAPTER 1 ...
Page 11: ...User s Manual 4 FEBC 3158 S001 Dimensions Uint mm Figure 1 1 ...
Page 12: ...User s Manual 5 Hardware Installation CHAPTER 2 ...
Page 17: ...User s Manual 10 2 4 I O indication Front view Rear view Figure 2 14 ...
Page 24: ...User s Manual 17 Figure 2 24 Figure 2 25 ...
Page 28: ...User s Manual 21 BIOS Setup CHAPTER 3 ...
Page 50: ...User s Manual 43 Driver Installation CHAPTER 4 ...