請先看『使用說明』
IO Device:F75113 LPC under Linux(64bit)
From LEXWiKi
(Difference between revisions)
(New page: Category:AllowPages == The Sample code source you can download from == Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Linux/F75113_linux_src.tar.gz F75113_li...) |
(→The Sample code source you can download from) |
||
(17 intermediate revisions not shown.) | |||
Line 2: | Line 2: | ||
== The Sample code source you can download from == | == The Sample code source you can download from == | ||
- | + | <Google Drive> | |
- | + | Source file: [https://drive.google.com/file/d/1C0TCqHOvWg6s2W-XM3tS-g19H622tRBl/view?usp=sharing F75113v2.5.1L_Src] | |
- | + | Binary file: [https://drive.google.com/file/d/1kl7PraqehLaMnf7BNY4bUuwWkLETNbdv/view?usp=sharing F75113v2.5.1L_Bin] | |
- | [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Linux/ | + | |
+ | <FTP> | ||
+ | |||
+ | Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Linux/LPC/F75113V2.5.1L_src.tar.gz F75113v2.5.1L_Src] | ||
+ | |||
+ | Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/F75113/Linux/LPC/F75113v2.5.1L_bin.tar.gz F75113v2.5.1L_Bin] | ||
+ | |||
+ | We do the demo test with a test tool which DIx connect to DOx with Relay. | ||
+ | |||
+ | == MB Support List == | ||
+ | <!--box uid=f777871962f1c0432784d4e0e73802b8.1586.Q5cca63c172578--> | ||
+ | <!-- | ||
+ | ****************************************************************************************** | ||
+ | * | ||
+ | * ** PLEASE DON'T EDIT THIS TABLE DIRECTLY. Use the edit table link under the table. ** | ||
+ | * | ||
+ | ****************************************************************************************** --> | ||
+ | {|border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;" | ||
+ | |- | ||
+ | ! |SKylake/Kab | ||
+ | | | ||
+ | 3I610CW | ||
+ | <br> | ||
+ | 3I610HW/BW | ||
+ | <br> | ||
+ | 3I610NX | ||
+ | <br> | ||
+ | PM170DW | ||
+ | |- | ||
+ | ! |Card | ||
+ | | | ||
+ | M113A | ||
+ | |} | ||
+ | [{{SERVER}}/lexwiki/index.php?title=Special:TableEdit&id=f777871962f1c0432784d4e0e73802b8.1586.Q5cca63c172578&page=1586&pagename={{FULLPAGENAMEE}} edit table] | ||
+ | <!--box uid=f777871962f1c0432784d4e0e73802b8.1586.Q5cca63c172578--> | ||
- | We do the demo test with a test tool which DIx connect to DOx with Relay. | ||
== How to use this Demo Application == | == How to use this Demo Application == | ||
Line 23: | Line 56: | ||
4. Press the "Start" button to test CIO4 function | 4. Press the "Start" button to test CIO4 function | ||
- | 5. WDT | + | 5. Press the "Enable" button to test WDT function |
+ | |||
+ | If you need to use the WDT,Please use "sh F75113set.sh" | ||
+ | |||
+ | He can help you set the WDT register for normal use WDT | ||
== F75113 GPIO Picture == | == F75113 GPIO Picture == | ||
[[Image:t5.jpg]] | [[Image:t5.jpg]] | ||
+ | |||
+ | == F75113 WDT Picture == | ||
+ | |||
+ | [[Image:wdt.jpg]] | ||
+ | |||
== Introduction == | == Introduction == | ||
Line 33: | Line 75: | ||
=== GPIO Status Register Write === | === GPIO Status Register Write === | ||
- | init_fintek_sio( | + | init_fintek_sio(eSIO_TYPE_F75113, 0 ,&sio_data) |
ActiveSIO(sio_data.ic_port, sio_data.key); | ActiveSIO(sio_data.ic_port, sio_data.key); | ||
CHECK_RET(_EnableGPIO(0x06 , eGPIO_Mode_Enable)); | CHECK_RET(_EnableGPIO(0x06 , eGPIO_Mode_Enable)); | ||
Line 43: | Line 85: | ||
=== GPIO Status Register Read === | === GPIO Status Register Read === | ||
- | init_fintek_sio( | + | init_fintek_sio(eSIO_TYPE_F75113, 0 ,&sio_data) |
ActiveSIO(sio_data.ic_port, sio_data.key); | ActiveSIO(sio_data.ic_port, sio_data.key); | ||
CHECK_RET(_EnableGPIO(0x06 , eGPIO_Mode_Enable)); | CHECK_RET(_EnableGPIO(0x06 , eGPIO_Mode_Enable)); | ||
Line 78: | Line 120: | ||
gpointer user_data) | gpointer user_data) | ||
{ | { | ||
- | + | int nRet = 0; | |
- | + | sFintek_sio_data sio_data; | |
- | + | set_debug(1); | |
+ | if( nRet = init_fintek_sio(eSIO_TYPE_F75113,0, &sio_data)) | ||
+ | { | ||
+ | fprintf(stderr,"init_fintek_sio error\n"); | ||
+ | exit(3); | ||
+ | } | ||
+ | ActiveSIO(sio_data.ic_port, sio_data.key); | ||
+ | DeactiveSIO(sio_data.ic_port); | ||
+ | gtk_main_quit(); | ||
} | } |
Current revision
Contents |
The Sample code source you can download from
<Google Drive>
Source file: F75113v2.5.1L_Src
Binary file: F75113v2.5.1L_Bin
<FTP>
Source file: F75113v2.5.1L_Src
Binary file: F75113v2.5.1L_Bin
We do the demo test with a test tool which DIx connect to DOx with Relay.
MB Support List
SKylake/Kab |
3I610CW
|
---|---|
Card |
M113A |
How to use this Demo Application
1. Press the "Start" button to test CIO1 function
2. Press the "Start" button to test CIO2 function
3. Press the "Start" button to test CIO3 function
4. Press the "Start" button to test CIO4 function
5. Press the "Enable" button to test WDT function
If you need to use the WDT,Please use "sh F75113set.sh"
He can help you set the WDT register for normal use WDT
F75113 GPIO Picture
F75113 WDT Picture
Introduction
GPIO Status Register Write
init_fintek_sio(eSIO_TYPE_F75113, 0 ,&sio_data) ActiveSIO(sio_data.ic_port, sio_data.key); CHECK_RET(_EnableGPIO(0x06 , eGPIO_Mode_Enable)); CHECK_RET(_SetGpioOutputEnableIdx( 0x06 , eGPIO_Direction_Out)); CHECK_RET(_SetGpioDriveEnable( 0x06 , eGPIO_Drive_Mode_OpenDrain)); CHECK_RET(_SetGpioOutputDataIdx( 0x06 , 1)); DeactiveSIO(sio_data.ic_port);
GPIO Status Register Read
init_fintek_sio(eSIO_TYPE_F75113, 0 ,&sio_data) ActiveSIO(sio_data.ic_port, sio_data.key); CHECK_RET(_EnableGPIO(0x06 , eGPIO_Mode_Enable)); CHECK_RET(_SetGpioOutputEnableIdx( 0x06 , eGPIO_Direction_In)); CHECK_RET(_GetGpioInputDataIdx( 0x06 , &data)); DeactiveSIO(sio_data.ic_port);
GPIO Comparison
CHECK_RET(_GetGpioInputDataIdx (0x10,&BDIO_data)); if((BDIO_data == 1) & (BDIO_startvalue_data == 0) ) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton2), TRUE); } CHECK_RET(_GetGpioInputDataIdx (0x11,&BDI1_data)); if((BDI1_data == 1) & (BDI1_startvalue_data == 0) ) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton4), TRUE); } CHECK_RET(_GetGpioInputDataIdx (0x12,&BDI2_data)); if((BDI2_data == 1) & (BDI2_startvalue_data == 0) ) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton6), TRUE); } CHECK_RET(_GetGpioInputDataIdx (0x13,&BDI3_data)); if((BDI3_data == 1) & (BDI3_startvalue_data == 0) ) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton8), TRUE); }
F75113 driver delete
on_window1_destory (GtKObject *object, gpointer user_data) { int nRet = 0; sFintek_sio_data sio_data; set_debug(1); if( nRet = init_fintek_sio(eSIO_TYPE_F75113,0, &sio_data)) { fprintf(stderr,"init_fintek_sio error\n"); exit(3); } ActiveSIO(sio_data.ic_port, sio_data.key); DeactiveSIO(sio_data.ic_port); gtk_main_quit(); }