LM4F120
Energia 0101E0011 will not compile code, it compiles fine with Energia 0101E0009. This is part of a larger program, that I would like to move to Energia 0101E0011
Errors:
GPS_Time_Set_1_1_0.ino: In function 'void loop()':
GPS_Time_Set_1_1_0.ino:1093:26: error: 'SYSCTL_PERIPH_UART0' was not declared in this scope
GPS_Time_Set_1_1_0.ino:1093:45: error: 'SysCtlPeripheralEnable' was not declared in this scope
GPS_Time_Set_1_1_0.ino:1097:30: error: 'SYSCTL_PERIPH_UART7' was not declared in this scope
My code:
#include "driverlib/uart.h"
#include "inc/hw_ints.h"
// Variables
#define UART_BASE UART7_BASE
#define INT_UART INT_UART7
#define PERIPHERAL_UART SYSCTL_PERIPH_UART7
#define GPIO_BASE GPIO_PORTE_BASE
#define GPIO_PINS (GPIO_PIN_0 | GPIO_PIN_1)
void setup()
{
}
void loop()
{
//Start Initialize UART0
SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);
GPIOPinConfigure(GPIO_PE0_U7RX);
// Enable the peripherals used by this example.
ROM_SysCtlPeripheralEnable(PERIPHERAL_UART);
// Set up I/O pins for chosen port
ROM_GPIOPinTypeUART(GPIO_BASE, GPIO_PINS);
// Configure the UART for 9600, 8-N-1 operation.
ROM_UARTConfigSetExpClk(UART_BASE, ROM_SysCtlClockGet(), 9600,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
UART_CONFIG_PAR_NONE));
ROM_IntEnable(INT_UART);
ROM_UARTIntEnable(UART_BASE, UART_INT_RX | UART_INT_RT);
}
}