/* * Copyright (c) 2016 - 2025 Renesas Electronics Corporation and/or its affiliates * * SPDX-License-Identifier: BSD-3-Clause */ /*********************************************************************************************************************** * File Name : RX651_60PIN_0002.c * Description : Main Program * Creation Date: 2026-01-02 * This file was generated by Smart Configurator. ***********************************************************************************************************************/ #include "r_smc_entry.h" void main(void); void main(void) { #define PORT5_PDR (*(volatile unsigned char *)0x0008C005) #define PORT5_PODR (*(volatile unsigned char *)0x0008C025) #define PORT5_PMR (*(volatile unsigned char *)0x0008C065) unsigned int lp,lp1; PORT5_PDR = 0b00001000; PORT5_PODR = 0b00001000; PORT5_PMR = 0b00000000; while(1){ for(lp=0;lp<1000;lp++) for(lp1=0;lp1<10000;lp1++) asm("NOP"); PORT5_PODR = 0b00001000; for(lp=0;lp<1000;lp++) for(lp1=0;lp1<10000;lp1++) asm("NOP");; PORT5_PODR = 0b00000000; } }