uint8_t port_dir_addr,
uint8_t port_sel_addr,
uint8_t pin
- )
+ ) @safe()
{
provides interface HplMsp430GeneralIO as IO;
}
async command bool IO.isModuleFunc() { return (PORTxSEL & (0x01<<pin)) != 0; }
async command void IO.selectIOFunc() { atomic PORTxSEL &= ~(0x01 << pin); }
async command bool IO.isIOFunc() { return (PORTxSEL & (0x01<<pin)) == 0; }
+ async command void IO.enableRen() {}
+ async command void IO.disableRen() {}
}