We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello everyone! I have a project where I use one LM3S328 , however I am not consegindo configure PORT (A) as output and turn it on. How do this setting ? grateful:
#include <stdlib.h> #include <stdio.h> #include <stdlib.h> //#include "../LM3S328/inc/LM3S328.h" // Device header #include "../device/lm3s_cmsis.h" #include "../device/lm3sxxxx.h" #include "../LM3S328/src/gpio.h" int main(void) { SystemCoreClockUpdate(); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA | SYSCTL_PERIPH_GPIOB | SYSCTL_PERIPH_GPIOC | SYSCTL_PERIPH_GPIOD | SYSCTL_PERIPH_GPIOE); SysCtlDelay(3); GPIOPinTypeGPIOOutput(GPIO_PORTA_BASE, GPIO_PIN_3); while(1){ GPIOPinWrite(GPIO_PORTA_BASE, GPIO_PIN_1, GPIO_PIN_1); } }
ok thank you.