Content originally posted in LPCWare by iltonoliviera on Fri Oct 07 21:27:20 MST 2011
[B]Please help!
in code i try use FIO2DIR :[/B]
LPC_GPIO3->FIO2DIR = 0x000000FF;
LPC_GPIO2->FIODIR = 0x000000FF;/* P2.xx defined as Outputs */
LPC_GPIO2->FIOCLR = 0x000000FF;/* turn off all the LEDs */
[B]
When Build give this error :[/B]
**** Build of configuration Debug for project GPIO ****
make all
Building file: ../src/IOtest.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2_LPC17xx -I"C:\Users\ilton\Documents\LPCXpresso_4.1.0_190\workspace\CMSISv2_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/IOtest.d" -MT"src/IOtest.d" -o"src/IOtest.o" "../src/IOtest.c"
../src/IOtest.c: In function 'main':
[COLOR=Red]../src/IOtest.c:38:12: error: 'LPC_GPIO_TypeDef' has no member named 'FIO2DIR'
make: *** [src/IOtest.o] Error 1[/COLOR]