Fixed incorrect use of static in port_api.c

This was causing errors when compiling in GCC_ARM
pull/17/head
Matthew Else 2013-07-25 16:01:45 +01:00
parent 66dddfb747
commit a356553c7d
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ static uint8_t iocon_offset[4][12] = {
{0x84,0x88,0x9c,0xac,0x3c,0x48} // PORT 3
};
static PinName port_pin(PortName port, int pin) {
PinName port_pin(PortName port, int pin) {
return (PinName)((port << PORT_SHIFT) | (pin << PIN_SHIFT) | (uint32_t)iocon_offset[port][pin]);
}