Yes, the iodefine.h header file must in your project if it not present you can make new project and apply necessary io file check buttons. but the important is you can access by struct name then .(dot) separator then particuler register .(dot) BIT.(dot) name_of_bit. example like IO.PDR1.BIT.B2 = 1 //will make bit 2 of port1 high You must add #include "iodefine.h" to your current working source file. The formate and register name may different for your controller io.
↧