mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Small fix to PIOS_DEBUG_PinValue8Bit(), was also influencing other IO pins
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2975 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
5c01155c4f
commit
6d0679b9e9
@ -104,8 +104,8 @@ void PIOS_DEBUG_PinLow(uint8_t Pin)
|
||||
void PIOS_DEBUG_PinValue8Bit(uint8_t value)
|
||||
{
|
||||
#ifdef PIOS_ENABLE_DEBUG_PINS
|
||||
uint32_t bsrr_l = ((~(value & 0x0F)<<(16+6))) | ((value & 0x0F)<<6);
|
||||
uint32_t bsrr_h = ((~(value & 0xF0)<<(16+6-4))) | ((value & 0xF0)<<(6-4));
|
||||
uint32_t bsrr_l = ( ((~value)&0x0F)<<(16+6) ) | ((value & 0x0F)<<6);
|
||||
uint32_t bsrr_h = ( ((~value)&0xF0)<<(16+6-4) ) | ((value & 0xF0)<<(6-4));
|
||||
PIOS_IRQ_Disable();
|
||||
PIOS_SERVO_GPIO_PORT_1TO4->BSRR = bsrr_l;
|
||||
PIOS_SERVO_GPIO_PORT_5TO8->BSRR = bsrr_h;
|
||||
|
Loading…
x
Reference in New Issue
Block a user