If you increase the clock frequency of your micro, then yes, you will need to adjust any features of your code that rely on it being a certain frequency. This may be many things or not, depending on your design.
Any asynchronous comms like USART, peripherals like ADC/DAC are an obvious concern here. SPI and I2C will just be at a higher clock rate, which may or may not be desired (or may not work if the bus is borderline at the original frequency) Memory interface times, functions that rely on a certain clock rate (like the delay you mention may be affected), etc , etc.
You get the idea.
To determine what you need to do, you will need to examine your code carefully. Depending on how it is written it may adapt easily or not.
For instance, often a macro is used to calculated the divider ratio for a peripheral so all that needs to be changed is a #define of the clock frequency. If your code uses this type of technique then adjusting will be less painful - I would imagine any Renasas libraries will do this, so it will hopefully just be a case of reading the library documentation.
Here is an example of some UART setup code (part of the USART init function for an STM32 ARM peripheral library I happen to be using currently) Notice the final BRR register value is based on the apbclock rate and the value of USART_BaudRate (passed in a struct to the init function) This means any changes in clock frequency are handled as long as a global define (which is used in the RCC_GetClocksFreq() function) is updated:
/*---------------------------- USART BRR Configuration -----------------------*/
/* Configure the USART Baud Rate -------------------------------------------*/
RCC_GetClocksFreq(&RCC_ClocksStatus);
if (usartxbase == USART1_BASE)
{
apbclock = RCC_ClocksStatus.PCLK2_Frequency;
}
else
{
apbclock = RCC_ClocksStatus.PCLK1_Frequency;
}
/* Determine the integer part */
if ((USARTx->CR1 & CR1_OVER8_Set) != 0)
{
/* Integer part computing in case Oversampling mode is 8 Samples */
integerdivider = ((25 * apbclock) / (2 * (USART_InitStruct->USART_BaudRate)));
}
else /* if ((USARTx->CR1 & CR1_OVER8_Set) == 0) */
{
/* Integer part computing in case Oversampling mode is 16 Samples */
integerdivider = ((25 * apbclock) / (4 * (USART_InitStruct->USART_BaudRate)));
}
tmpreg = (integerdivider / 100) << 4;
/* Determine the fractional part */
fractionaldivider = integerdivider - (100 * (tmpreg >> 4));
/* Implement the fractional part in the register */
if ((USARTx->CR1 & CR1_OVER8_Set) != 0)
{
tmpreg |= ((((fractionaldivider * 8) + 50) / 100)) & ((uint8_t)0x07);
}
else /* if ((USARTx->CR1 & CR1_OVER8_Set) == 0) */
{
tmpreg |= ((((fractionaldivider * 16) + 50) / 100)) & ((uint8_t)0x0F);
}
/* Write to USART BRR */
USARTx->BRR = (uint16_t)tmpreg;