[Horus] Extra trims added (#3393)

This commit is contained in:
Andre Bernet
2016-04-02 16:45:43 +04:00
parent 27d37f7b78
commit 1f6a711d24
24 changed files with 257 additions and 59 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ uint32_t readTrims()
result |= 0x40;
if (~TRIMS_GPIO_REG_RHR & TRIMS_GPIO_PIN_RHR)
result |= 0x80;
#if 0
#if !defined(SIMU)
if (~TRIMS_GPIO_REG_LSD & TRIMS_GPIO_PIN_LSD)
result |= 0x100;
if (~TRIMS_GPIO_REG_LSU & TRIMS_GPIO_PIN_LSU)
@@ -79,7 +79,7 @@ uint32_t readTrims()
return result;
}
uint8_t trimDown(uint8_t idx)
uint16_t trimDown(uint16_t idx)
{
return readTrims() & (1 << idx);
}