This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PORTA of LM3S328

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);
                }
}

Parents Reply Children