4/22/2014

printf - usage

function

printf

int printf ( const char * format, ... );
Print formatted data to stdout
Writes the C string pointed by format to the standard output (stdout). If format includes format specifiers (subsequences beginning with %), the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers.


Parameters

format
C string that contains the text to be written to stdout.
It can optionally contain embedded format specifiers that are replaced by the values specified in subsequent additional arguments and formatted as requested.

A format specifier follows this prototype: [see compatibility note below]
%[flags][width][.precision][length]specifier

Where the specifier character at the end is the most significant component, since it defines the type and the interpretation of its corresponding argument:
specifierOutputExample
d or iSigned decimal integer392
uUnsigned decimal integer7235
oUnsigned octal610
xUnsigned hexadecimal integer7fa
XUnsigned hexadecimal integer (uppercase)7FA
fDecimal floating point, lowercase392.65
FDecimal floating point, uppercase392.65
eScientific notation (mantissa/exponent), lowercase3.9265e+2
EScientific notation (mantissa/exponent), uppercase3.9265E+2
gUse the shortest representation: %e or %f392.65
GUse the shortest representation: %E or %F392.65
aHexadecimal floating point, lowercase-0xc.90fep-2
AHexadecimal floating point, uppercase-0XC.90FEP-2
cCharactera
sString of characterssample
pPointer addressb8000000
nNothing printed.
The corresponding argument must be a pointer to a signed int.
The number of characters written so far is stored in the pointed location.
%A % followed by another % character will write a single % to the stream.%

The format specifier can also contain sub-specifiers: flags, width, .precision and modifiers (in that order), which are optional and follow these specifications:

flagsdescription
-Left-justify within the given field width; Right justification is the default (see width sub-specifier).
+Forces to preceed the result with a plus or minus sign (+ or -) even for positive numbers. By default, only negative numbers are preceded with a - sign.
(space)If no sign is going to be written, a blank space is inserted before the value.
#Used with o, x or X specifiers the value is preceeded with 0, 0x or 0X respectively for values different than zero.
Used with a, A, e, E, f, F, g or G it forces the written output to contain a decimal point even if no more digits follow. By default, if no digits follow, no decimal point is written.
0Left-pads the number with zeroes (0) instead of spaces when padding is specified (see width sub-specifier).

widthdescription
(number)Minimum number of characters to be printed. If the value to be printed is shorter than this number, the result is padded with blank spaces. The value is not truncated even if the result is larger.
*The width is not specified in the format string, but as an additional integer value argument preceding the argument that has to be formatted.

.precisiondescription
.numberFor integer specifiers (d, i, o, u, x, X): precision specifies the minimum number of digits to be written. If the value to be written is shorter than this number, the result is padded with leading zeros. The value is not truncated even if the result is longer. A precision of 0 means that no character is written for the value 0.
For a, A, e, E, f and F specifiers: this is the number of digits to be printed after the decimal point (by default, this is 6).
For g and G specifiers: This is the maximum number of significant digits to be printed.
For s: this is the maximum number of characters to be printed. By default all characters are printed until the ending null character is encountered.
If the period is specified without an explicit value for precision, 0 is assumed.
.*The precision is not specified in the format string, but as an additional integer value argument preceding the argument that has to be formatted.

The length sub-specifier modifies the length of the data type. This is a chart showing the types used to interpret the corresponding arguments with and without length specifier (if a different type is used, the proper type promotion or conversion is performed, if allowed):
specifiers
lengthd iu o x Xf F e E g G a Acspn
(none)intunsigned intdoubleintchar*void*int*
hhsigned charunsigned charsigned char*
hshort intunsigned short intshort int*
llong intunsigned long intwint_twchar_t*long int*
lllong long intunsigned long long intlong long int*
jintmax_tuintmax_tintmax_t*
zsize_tsize_tsize_t*
tptrdiff_tptrdiff_tptrdiff_t*
Llong double
Note that the c specifier takes an int (or wint_t) as argument, but performs the proper conversion to a char value (or a wchar_t) before formatting it for output.

Note: Yellow rows indicate specifiers and sub-specifiers introduced by C99. See for the specifiers for extended types.
... (additional arguments)
Depending on the format string, the function may expect a sequence of additional arguments, each containing a value to be used to replace a format specifier in the format string (or a pointer to a storage location, for n).
There should be at least as many of these arguments as the number of values specified in the format specifiers. Additional arguments are ignored by the function.


Return Value

On success, the total number of characters written is returned.

If a writing error occurs, the error indicator (ferror) is set and a negative number is returned.

If a multibyte character encoding error occurs while writing wide characters, errno is set to EILSEQ and a negative number is returned.


Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* printf example */
#include 

int main()
{
   printf ("Characters: %c %c \n", 'a', 65);
   printf ("Decimals: %d %ld\n", 1977, 650000L);
   printf ("Preceding with blanks: %10d \n", 1977);
   printf ("Preceding with zeros: %010d \n", 1977);
   printf ("Some different radices: %d %x %o %#x %#o \n", 100, 100, 100, 100, 100);
   printf ("floats: %4.2f %+.0e %E \n", 3.1416, 3.1416, 3.1416);
   printf ("Width trick: %*d \n", 5, 10);
   printf ("%s \n", "A string");
   return 0;
}


Output:

Characters: a A
Decimals: 1977 650000
Preceding with blanks:       1977
Preceding with zeros: 0000001977
Some different radices: 100 64 144 0x64 0144
floats: 3.14 +3e+000 3.141600E+000
Width trick:    10
A string


Compatibility

Particular library implementations may support additional specifiers and sub-specifiers.
Those listed here are supported by the latest C and C++ standards (both published in 2011), but those in yellow were introduced in C99 (only required for C++ implementations since C++11), and may not be supported by libraries that comply with older standards.

Cb3 A20-compiling Android Image For Cubietruck

Cb3 A20-compiling Android Image For Cubietruck

About this Article

Download the source code

$mkdir cubietruck-android && cd cubietruck-android
$wget http://dl.cubieboard.org/software/a20-cubieboard/android/A20-android-4.2.tar.xz
$tar -xvf A20-android-4.2.tar.xz

Compiling image

After get the source code,you could use common to build it as follow:

Build Linux kernel

$cd lichee/
$cp linux-3.3/arch/arm/configs/cubietruck_defconfig linux-3.3/arch/arm/configs/sun7ismp_android_defconfig
$./build.sh -p sun7i_android 
Start Building:

Success Building:

Build Android image

$cd ../android42
$source build/envsetup.sh
$lunch 16 (select sugar_cubietruck-eng)
$extract-bsp
$make -j8
Finish building:

Pack Final image:
$pack
Pack success:

Install image

The final image is at /lichee/tools/pack/sun7i_android_sugar-cubietruck.img
You can use Livesuit to install it

4/21/2014

ubuntu 12.04 에서 jdk6 설치 - for Android build - cubietruck

ubuntu 12.04 에서 jdk6 설치하기


sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer 


일부 검색 사이트에서는 install 시에 sun-java6-jdk 만 언급하는 경우만 있는데
다른 ubuntu 버전에서는 성공했을지 몰라고 12.04 에서는 에러가 발생한다.
찾아보니 sun-java6-plugin 도 같이 설치해줘야 한다.

1. 소스 설치
sudo add-apt-repository ppa:flexiondotorg/java
(ppa:guido-iodice/precise-quasi-rolling)
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin

2. java vm 변경
sudo update-alternatives --config java

3. /etc/profile 수정해서 환경변수 설정
JAVA_HOME=/usr/lib/jvm/java-6-sun/
export JAVA_HOME
export PATH=$PATH:/usr/lib/jvm/java-6-sun/bin

4. 새로운 터미널창을 열어서 version 확인하기
java -version
javac -version

5. HelloJava.java 작성해서 실행확인하기
cat > HelloJava.java
class HelloJava{
    public static void main(String args[]) {
        System.out.println("Hello World");
    }
}

4/20/2014

A20 I/O Pins


Programmable I/O Pins
Port Bank A
PortBallTypeMUX 2MUX 3MUX 4MUX 5MUX 6MUX 7
PA00D05I/OERXD3SPI1_CS0UART2_RTSGRXD3reservedreserved
PA01E05I/OERXD2SPI1_CLKUART2_CTSGRXD2reservedreserved
PA02D06I/OERXD1SPI1_MOSIUART2_TXGRXD1reservedreserved
PA03E06I/OERXD0SPI1_MISOUART2_RXGRXD0reservedreserved
PA04D07I/OETXD3SPI1_CS1reservedGTXD3reservedreserved
PA05E07I/OETXD2SPI3_CS0reservedGTXD2reservedreserved
PA06D08I/OETXD1SPI3_CLKreservedGTXD1reservedreserved
PA07E08I/OETXD0SPI3_MOSIreservedGTXD0reservedreserved
PA08D09I/OERXCKSPI3_MISOreservedGRXCKreservedreserved
PA09E09I/OERXERRSPI3_CS1reservedGNULL/ERXERRI²S1_MCLKreserved
PA10D10I/OERXDVreservedUART1_TXRXDVreservedreserved
PA11E10I/OEMDCreservedUART1_RXGMDCreservedreserved
PA12D11I/OEMDIOUART6_TXUART1_RTSGMDIOreservedreserved
PA13E11I/OETXENUART6_RXUART1_CTSGTXCTL/ETXCKreservedreserved
PA14D12I/OETXCKUART7_TXUART1_DTRGNULL/ETXCKI²S1_BCLKreserved
PA15E12I/OECRSUART7_RXUART1_DSRGTXCK/ECRSI²S1_LRCKreserved
PA16D13I/OECOLCAN_TXUART1_DCDGCLKIN/ECOLI²S1_DOreserved
PA17C13I/OETXERRCAN_RXUART1_RINGGNULL/ETXERRI²S1_DIreserved
Port Bank B
PortBallTypeMUX 2MUX 3MUX 4MUX 5MUX 6MUX 7notes
PB00A15I/OTWI0_SCKreservedreservedreservedreservedreserved
PB01B15I/OTWI0_SDAreservedreservedreservedreservedreserved
PB02A14I/OPWM0reservedreservedreservedreservedreserved
PB03B14I/OIR0_TXreservedSPDIF_MCLKreservedSTANBYWFIreservedverify SPDIF_MCLK
PB04A13I/OIR0_RXreservedreservedreservedreservedreserved
PB05B13I/OI²S0_MCLKAC97_MCLKreservedreservedreservedreserved
PB06A12I/OI²S0_BCLKAC97_BCLKreservedreservedreservedreserved
PB07B12I/OI²S0_LRCKAC97_SYNCreservedreservedreservedreserved
PB08A11I/OI²S0_DO0AC97_DOreservedreservedreservedreservedverify AC97_DO
PB09C12I/OI²S0_DO1reservedreservedreservedreservedreservedverify AC97_DO
PB10C11I/OI²S0_DO2reservedreservedreservedreservedreserved
PB11C10I/OI²S0_DO3reservedreservedreservedreservedreserved
PB12C9I/OI²S0_DIAC97_DISPDIF_DIreservedreservedreservedverify SPDIF_DI
PB13B11I/OSPI2_CS1reservedSPDIF_DOreservedreservedreservedverify SPDIF_DO
PB14A10I/OSPI2_CS0JTAG_MS0reservedreservedreservedreserved
PB15B10I/OSPI2_CLKJTAG_CK0reservedreservedreservedreserved
PB16A9I/OSPI2_MOSIJTAG_DO0reservedreservedreservedreserved
PB17B9I/OSPI2_MISOJTAG_DI0reservedreservedreservedreserved
PB18A8I/OTWI1_SCKreservedreservedreservedreservedreserved
PB19B8I/OTWI1_SDAreservedreservedreservedreservedreserved
PB20C8I/OTWI2_SCKreservedreservedreservedreservedreserved
PB21C7I/OTWI2_SDAreservedreservedreservedreservedreserved
PB22A7I/OUART0_TXIR1_TXreservedreservedreservedreserved
PB23B7I/OUART0_RXIR1_RXreservedreservedreservedreserved
Port Bank C
PortBallTypeMUX 2MUX 3MUX 4MUX 5MUX 6MUX 7
PC00M23I/ONAND_WE#SPI0_MOSIreservedreservedreservedreserved
PC01M22I/ONALESPI0_MISOreservedreservedreservedreserved
PC02L32I/ONCLESPI0_CLKreservedreservedreservedreserved
PC03L22I/ONCE1reservedreservedreservedreservedreserved
PC04K23I/ONCE0reservedreservedreservedreservedreserved
PC05K22I/ONRE#reservedreservedreservedreservedreserved
PC06J23I/ONRB0SDC2_CMDreservedreservedreservedreserved
PC07J22I/ONRB1SDC2_CLKreservedreservedreservedreserved
PC08H23I/ONDQ0SDC2_D0reservedreservedreservedreserved
PC09H22I/ONDQ1SDC2_D1reservedreservedreservedreserved
PC10G23I/ONDQ2SDC2_D2reservedreservedreservedreserved
PC11G22I/ONDQ3SDC2_D3reservedreservedreservedreserved
PC12H21I/ONDQ4reservedreservedreservedreservedreserved
PC13H20I/ONDQ5reservedreservedreservedreservedreserved
PC14G21I/ONDQ6reservedreservedreservedreservedreserved
PC15G20I/ONDQ7reservedreservedreservedreservedreserved
PC16M21I/ONWPreservedreservedreservedreservedreserved
PC17F23I/ONCE2reservedreservedreservedreservedreserved
PC18F22I/ONCE3reservedreservedreservedreservedreserved
PC19L21I/ONCE4SPI2_CS0reservedreservedEINT12reserved
PC20K21I/ONCE5SPI2_CLKreservedreservedEINT13reserved
PC21J21I/ONCE6SPI2_MOSIreservedreservedEINT14reserved
PC22J20I/ONCE7SPI2_MISOreservedreservedEINT15reserved
PC23G19I/OreservedSPI0_CS0reservedreservedreservedreserved
PC24F21I/ONDQSreservedreservedreservedreservedreserved
Port Bank D
PortBallTypeMUX 2MUX 3MUX 4MUX 5MUX 6MUX 7
PD00AB15I/OLCD0_D0LVDS0_VP0reservedreservedreservedreserved
PD01AC15I/OLCD0_D1LVDS0_VN0reservedreservedreservedreserved
PD02AB14I/OLCD0_D2LVDS0_VP1reservedreservedreservedreserved
PD03AC14I/OLCD0_D3LVDS0_VN1reservedreservedreservedreserved
PD04AB13I/OLCD0_D4LVDS0_VP2reservedreservedreservedreserved
PD05AC13I/OLCD0_D5LVDS0_VN2reservedreservedreservedreserved
PD06AB12I/OLCD0_D6LVDS0_VPCreservedreservedreservedreserved
PD07AC12I/OLCD0_D7LVDS0_VNCreservedreservedreservedreserved
PD08AB11I/OLCD0_D8LVDS0_VP3reservedreservedreservedreserved
PD09AC11I/OLCD0_D9LVDS0_VN3reservedreservedreservedreserved
PD10Y15I/OLCD0_D10LVDS1_VP0reservedreservedreservedreserved
PD11AA15I/OLCD0_D11LVDS1_VN0reservedreservedreservedreserved
PD12Y14I/OLCD0_D12LVDS1_VP1reservedreservedreservedreserved
PD13AA14I/OLCD0_D13LVDS1_VN1reservedreservedreservedreserved
PD14Y13I/OLCD0_D14LVDS1_VP2reservedreservedreservedreserved
PD15AA13I/OLCD0_D15LVDS1_VN2reservedreservedreservedreserved
PD16Y12I/OLCD0_D16LVDS1_VPCreservedreservedreservedreserved
PD17AA12I/OLCD0_D17LVDS1_VNCreservedreservedreservedreserved
PD18Y11I/OLCD0_D18LVDS1_VP3reservedreservedreservedreserved
PD19AA11I/OLCD0_D19LVDS1_VN3reservedreservedreservedreserved
PD20Y10I/OLCD0_D20CSI1_MCLKreservedreservedreservedreserved
PD21AA10I/OLCD0_D21SMC_VPPENreservedreservedreservedreserved
PD22AB10I/OLCD0_D22SMC_VPPPPreservedreservedreservedreserved
PD23AC10I/OLCD0_D23SMC_DETreservedreservedreservedreserved
PD24Y9I/OLCD0_CLKSMC_VCCENreservedreservedreservedreserved
PD25AA9I/OLCD0_DESMC_RSTreservedreservedreservedreserved
PD26AB9I/OLCD0_HSYNCSMC_SCKreservedreservedreservedreserved
PD27AC9I/OLCD0_VSYNCSMC_SDAreservedreservedreservedreserved
Port Bank E
PortBallTypeMUX 2MUX 3MUX 4MUX 5MUX 6MUX 7
PE00E23I/OTS0_CLKCSI0_PCKreservedreservedreservedreserved
PE01E22I/OTS0_ERRCSI0_CKreservedreservedreservedreserved
PE02D23I/OTS0_SYNCCSI0_HSYNCreservedreservedreservedreserved
PE03D22I/OTS0_DVLDCSI0_VSYNCreservedreservedreservedreserved
PE04C23I/OTS0_D0CSI0_D0reservedreservedreservedreserved
PE05C22I/OTS0_D1CSI0_D1reservedreservedreservedreserved
PE06B23I/OTS0_D2CSI0_D2reservedreservedreservedreserved
PE07B22I/OTS0_D3CSI0_D3reservedreservedreservedreserved
PE08A23I/OTS0_D4CSI0_D4reservedreservedreservedreserved
PE09A22I/OTS0_D5CSI0_D5reservedreservedreservedreserved
PE10B21I/OTS0_D6CSI0_D6reservedreservedreservedreserved
PE11A21I/OTS0_D7CSI0_D7reservedreservedreservedreserved
Port Bank F
PortBallTypeMUX 2MUX 3MUX 4MUX 5MUX 6MUX 7
PF00M20I/OSDC0_D1reservedJTAG_MS1reservedreservedreserved
PF01M19I/OSDC0_D0reservedJTAG_DI1reservedreservedreserved
PF02L20I/OSDC0_CLKreservedUART0_TXreservedreservedreserved
PF03L19I/OSDC0_CMDreservedJTAG_DO1reservedreservedreserved
PF04K20I/OSDC0_D3reservedUART0_RXreservedreservedreserved
PF05K19I/OSDC0_D2reservedJTAG_CK1reservedreservedreserved
Port Bank G
PortBallTypeMUX 2MUX 3MUX 4MUX 5MUX 6MUX 7
PG00F20I/OTS1_CLKCSI1_PCKSDC1_CMDreservedreservedreserved
PG01E21I/OTS1_ERRCSI1_CKSDC1_CLKreservedreservedreserved
PG02E20I/OTS1_SYNCCSI1_HSYNCSDC1_D0reservedreservedreserved
PG03D21I/OTS1_DVLDCSI1_VSYNCSDC1_D1reservedreservedreserved
PG04D20I/OTS1_D0CSI1_D0SDC1_D2CSI0_D8reservedreserved
PG05C21I/OTS1_D1CSI1_D1SDC1_D3CSI0_D9reservedreserved
PG06E19I/OTS1_D2CSI1_D2UART3_TXCSI0_D10reservedreserved
PG07C20I/OTS1_D3CSI1_D3UART3_RXCSI0_D11reservedreserved
PG08D19I/OTS1_D4CSI1_D4UART3_RTSCSI0_D12reservedreserved
PG09C19I/OTS1_D5CSI1_D5UART3_CTSCSI0_D13reservedreserved
PG10D18I/OTS1_D6CSI1_D6UART4_TXCSI0_D14reservedreserved
PG11C18I/OTS1_D7CSI1_D7UART4_RXCSI0_D15reservedreserved
Port Bank H
PortBallTypeMUX 2MUX 3MUX 4MUX 5MUX 6MUX 7
PH00A6I/OLCD1_D00reservedUART3_TXreservedEINT0CSI1_D0
PH01B6I/OLCD1_D01reservedUART3_RXreservedEINT1CSI1_D1
PH02C6I/OLCD1_D02reservedUART3_RTSreservedEINT2CSI1_D2
PH03A5I/OLCD1_D03reservedUART3_CTSreservedEINT3CSI1_D3
PH04B5I/OLCD1_D04reservedUART4_TXreservedEINT4CSI1_D4
PH05C5I/OLCD1_D05reservedUART4_RXreservedEINT5CSI1_D5
PH06A4I/OLCD1_D06reservedUART5_TXMS_BSEINT6CSI1_D6
PH07B4I/OLCD1_D07reservedUART5_RXMS_CLKEINT7CSI1_D7
PH08C4I/OLCD1_D08ERXD3KP_IN0MS_D1EINT8CSI1_D9
PH09D4I/OLCD1_D09ERXD2KP_IN1MS_D0EINT9CSI1_D8
PH10A3I/OLCD1_D10ERXD1KP_IN2MS_D2EINT10CSI1_D10
PH11B3I/OLCD1_D11ERXD0KP_IN3MS_D3EINT11CSI1_D11
PH12C3I/OLCD1_D12reservedPS2_SCK1reservedEINT12CSI1_D12
PH13A2I/OLCD1_D13reservedPS2_SDA1SMC_RSTEINT13CSI1_D13
PH14B2I/OLCD1_D14ETXD3KP_IN4SMC_VPPENEINT14CSI1_D14
PH15A1I/OLCD1_D15ETXD2KP_IN5SMC_VPPPPEINT15CSI1_D15
PH16B1I/OLCD1_D16ETXD1KP_IN6reservedEINT16CSI1_D16
PH17C1I/OLCD1_D17ETXD0KP_IN7SMC_VCCENEINT17CSI1_D17
PH18C2I/OLCD1_D18ERXCKKP_OUT0SMC_SCKEINT18CSI1_D18
PH19D1I/OLCD1_D19ERXERRKP_OUT1SMC_SDAEINT19CSI1_D19
PH20D2I/OLCD1_D20ERXDVCAN_TXreservedEINT20CSI1_D20
PH21D3I/OLCD1_D21EMDCCAN_RXreservedEINT21CSI1_D21
PH22E1I/OLCD1_D22EMDIOKP_OUT2SDC1_CMDreservedCSI1_D22
PH23E2I/OLCD1_D23ETENKP_OUT3SDC1_CLKreservedCSI1_D23
PH24E3I/OLCD1_CLKETXCKKP_OUT4SDC1_D1reservedCSI1_FIELD
PH25E4I/OLCD1_DEECRSKP_OUT5SDC1_D0reservedCSI1_PCLK
PH26F3I/OLCD1_HSYNCECOLKP_OUT6SDC1_D2reservedCSI1_HSYNC
PH27F4I/OLCD1_VSYNCETXERRKP_OUT7SDC1_D3reservedCSI1_VSYNC
Port Bank I
PortBallTypeMUX 2MUX 3MUX 4MUX 5MUX 6MUX 7
PI00A20I/OreservedTWI TWI3_SCKreservedreservedreservedreserved
PI01B20I/OreservedTWI TWI3_SDAreservedreservedreservedreserved
PI02A19I/OreservedTWI TWI4_SCKreservedreservedreservedreserved
PI03B19I/OPWM1TWI TWI4_SDAreservedreservedreservedreserved
PI04A18I/OSDC3_CMDreservedreservedreservedreservedreserved
PI05B18I/OSDC3_CLKreservedreservedreservedreservedreserved
PI06A17I/OSDC3_D0reservedreservedreservedreservedreserved
PI07B17I/OSDC3_D1reservedreservedreservedreservedreserved
PI08A16I/OSDC3_D2reservedreservedreservedreservedreserved
PI09B16I/OSDC3_D3reservedreservedreservedreservedreserved
PI10C17I/OSPI0_CS0UART5_TXreservedEINT22reservedreserved
PI11D17I/OSPI0_CLKUART5_RXreservedEINT23reservedreserved
PI12C16I/OSPI0_MOSIUART6_TXCLK_OUT_AreservedEINT24reserved
PI13D16I/OSPI0_MISOUART6_RXCLK_OUT_BreservedEINT25reserved
PI14C16I/OSPI0_CS1PS2_SCK1TCLKIN0EINT26TCLKIN0reserved
PI15D15I/OSPI1_CS1PS2_SDA1TCLKIN1EINT27TCLKIN1reserved
PI16E17I/OSPI1_CS0UART2_RTSreservedEINT28reservedreserved
PI17E16I/OSPI1_CLKUART2_CTSreservedEINT29reservedreserved
PI18E15I/OSPI1_MOSIUART2_TXreservedEINT30reservedreserved
PI19D14I/OSPI1_MISOUART2_RXreservedEINT31reservedreserved
PI20E14I/OPS2_SCK0UART7_TXHSCLreservedreservedreserved
PI21E13I/OPS2_SDA0UART7_RXHSDAreservedreservedreserved

Other Pins

PortBallFunctionType
XP_TPY22OutputAI
XN_TPAA22OutputAI
YP_TPY23OutputAI
YN_TPAA23OutputAI

See also

3/10/2014

make gcc to compile 32 bit programs on 64 bit platform


-- Ubuntu 12.04 LTS - 64 bit.

gcc for 32 bit application build.

gcc -m32

-- get linux 32 bit or 64 bit.

-- Makefile

...

LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
   # do 64 bit stuff here, like set some CFLAGS
else
   CFLAGS+=-m32
endif

...