``#include "rmem.h```

Don't see a use of port.h here.