I'm trying to use ROM_ functions to initialize the following code:
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/gpio.h"
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.h"
#include "driverlib/uart.h"
#include "driverlib/rom.h"
#include "driverlib/rom_map.h"
#include "gets.h"
#define BUFFER_SIZE 39
uint32_t ui32SysClkFreq;
int main(void)
{
char string_[BUFFER_SIZE+1];
uint32_t ui32strLen;
ui32SysClkFreq = SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
SYSCTL_OSC_MAIN | SYSCTL_USE_PLL |
SYSCTL_CFG_VCO_480), 120000000);
//
// Configure the appropriate pins as UART pins; in this case, PA0/PA1 are
// used for UART0.
//
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);
ROM_GPIOPinConfigure(GPIO_PA0_U0RX);
ROM_GPIOPinConfigure(GPIO_PA1_U0TX);
ROM_GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
//
// Initialize the UART standard IO module, when using an 80 MHz system
// clock.
UARTStdioConfig(0, 115200, ui32SysClkFreq);
//
// Print a string.
//
UARTprintf("HELLO\r\n");
while(1){
if (UARTCharsAvail(UART0_BASE)) {
ui32strLen = UARTgets(string_, BUFFER_SIZE+1);
if (ui32strLen == (BUFFER_SIZE+1)) {
string_[BUFFER_SIZE] = '\0';
}
UARTprintf("String: %s \r\n", string_);
}
}
}
but when i try to build i get the following errors:
If I remove the ROM_ before the functions or change it to MAP_ the code compiles and runs without any problem.
What do I have to do to use those functions?