
Rev.1.00 May 22 2012
REJ09B0566
Library Reference
R_IO_PORT_Compare
Program example
/* PDL definitions */
#include “r_pdl_io_port.h”
/* PDL device-specific definitions */
#include “r_pdl_definitions.h”
void IoHandler1{}
void IoHandler2{}
void func( void )
{
/* Call function IoHandler1 if port pin PC5 is high */
R_IO_PORT_ Compare(
PDL_IO_PORT_C_5,
1,
IoHandler1
);
/* Call function IoHandler2 if port G reads as 0x5501 */
R_IO_PORT_Compare(PDL_IO_PORT_GH,
0x5501,
IoHandler2
);
}
Comentários a estes Manuais