User`s manual
RX62N Group, RX621 Group 4. Library Reference
Program example
/* RPDL definitions */
#include "r_pdl_io_port.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Set the lower 4 bits on port P1 to output */
R_IO_PORT_ModifyControl(
PDL_IO_PORT_1,
PDL_IO_PORT_DIRECTION | PDL_IO_PORT_OR,
0x0F
);
/* Enable the pull-up on pin PA3 */
R_IO_PORT_ModifyControl(
PDL_IO_PORT_A_3,
PDL_IO_PORT_PULL_UP | PDL_IO_PORT_OR,
1
);
}
R20UT0084EE0112 Rev.1.12 Page 4-32
July. 16, 2014