mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 02:07:55 +00:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
@@ -27,15 +27,14 @@
|
||||
namespace jtag {
|
||||
|
||||
uint32_t JTAG::shift(const size_t count, uint32_t value) {
|
||||
for(size_t i=0; i<count; i++) {
|
||||
const auto tdo = target.clock(
|
||||
(i == (count - 1)) ? 1 : 0,
|
||||
value & 1
|
||||
);
|
||||
value >>= 1;
|
||||
value |= tdo << (count - 1);
|
||||
}
|
||||
return value;
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
const auto tdo = target.clock(
|
||||
(i == (count - 1)) ? 1 : 0,
|
||||
value & 1);
|
||||
value >>= 1;
|
||||
value |= tdo << (count - 1);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
} /* namespace jtag */
|
||||
|
Reference in New Issue
Block a user