Eddy DK Programmer Guide
112
Eddy-S4M GPIO Table
Section
Description
Number of GPIO
ADC
Analog Digital Converter
2
*
GPIO & User Peripheral
32
Each port in Port A, B, C can be shown as 32 GPIO ports. So GPIO ports are shown as each bit in 4 byte int variable
in program.
struct eddy_gpio {
Unsigned int value [3];
// Read/write value for each GPIO channel in Port A, B, C
Unsigned int mode [3];
// Configure read/write for each GPIO channel in Port A, B, C
Unsigned int pullup [3];
// Pullup/Pulldown when configuring write
// for each GPIO channel in Port A, B, C
Unsigned int enable [3];
// Whether to use GPIO for each GPIO channel in Port A, B, C
};
enable: 0
Æ
disable (Do not use as GPIO), 1
Æ
Enable (use as GPIO)
mode: 0
Æ
Set as input mode,, 1
Æ
Set as output mode
value: 0
Æ
Read/Write status is set to Low, 1
Æ
Read/Write status is set to High
pullup: 0
Æ
pulldown, 1
Æ
pullup
Содержание Eddy DK
Страница 1: ...1 Eddy DK Programmer Guide Ver 2 5 1 1 2011 02 15...
Страница 10: ...Eddy DK Programmer Guide 10 2 3 Eddy CPU v2 1 v2 5...
Страница 36: ...Eddy DK Programmer Guide 36 2 4 4 External Device Interface Description...
Страница 47: ...Eddy DK Programmer Guide 47 Eddy S4M v2 1 Eddy S4M v2 5...