Better fix for compilation issues in companion

This commit is contained in:
romolo.manfredini@gmail.com
2012-03-30 18:28:51 +00:00
parent b18b6505f3
commit 95b77c1524
2 changed files with 1 additions and 6 deletions
-6
View File
@@ -76,12 +76,8 @@ inline void board_init()
uint8_t check_power()
{
#ifndef REV0
#ifndef SIMU
if ((PING & 0b00000010) && (~PINL & 0b01000000))
return 1;
#else
return 0;
#endif
#endif
return 0;
}
@@ -89,9 +85,7 @@ uint8_t check_power()
void soft_power_off()
{
#ifndef REV0
#ifndef SIMU
PORTL = 0x7f;
#endif
#endif
}
+1
View File
@@ -138,6 +138,7 @@ extern volatile uint32_t Spi_complete;
#define PORTF dummyport
#define PORTG dummyport
#define PORTH porth
#define PORTL dummyport
#define DDRA dummyport
#define DDRB dummyport
#define DDRC dummyport