Skip to content

Commit 82d161e

Browse files
LPC11C24 - added support for 100kbps because this is the bit rate used by the bootloader
1 parent 1702ec0 commit 82d161e

File tree

1 file changed

+3
-1
lines changed
  • libuavcan_drivers/lpc11c24/driver/src

1 file changed

+3
-1
lines changed

libuavcan_drivers/lpc11c24/driver/src/can.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ BitTimingSettings computeBitTimings(std::uint32_t bitrate)
154154
case 500000: return BitTimingSettings{ 0, 0x1c05 }; // 16 quanta, 87.5%
155155
case 250000: return BitTimingSettings{ 0, 0x1c0b }; // 16 quanta, 87.5%
156156
case 125000: return BitTimingSettings{ 0, 0x1c17 }; // 16 quanta, 87.5%
157+
case 100000: return BitTimingSettings{ 0, 0x1c1d }; // 16 quanta, 87.5%
157158
default: return BitTimingSettings{ 0, 0 };
158159
}
159160
}
@@ -174,7 +175,8 @@ uavcan::uint32_t CanDriver::detectBitRate(void (*idle_callback)())
174175
1000000,
175176
500000,
176177
250000,
177-
125000
178+
125000,
179+
100000
178180
};
179181

180182
const auto ListeningDuration = uavcan::MonotonicDuration::fromMSec(1050);

0 commit comments

Comments
 (0)