Fixed incorrect use of static in port_api.c

This was causing errors when compiling in GCC_ARM
Added new test for devices with no analog out.