gpio: tle9104: TODOs
This commit is contained in:
parent
b9efa23c98
commit
e3545bcdc4
|
@ -90,6 +90,7 @@ static bool parityBit(uint16_t val) {
|
|||
// (1 + number of bits set) mod 2 = parity bit
|
||||
int count = 1;
|
||||
|
||||
/* TODO: use __builtin_popcount() */
|
||||
while (val != 0) {
|
||||
if (val & 0x01) {
|
||||
count++;
|
||||
|
@ -125,6 +126,8 @@ int Tle9104::spi_rw(uint16_t tx, uint16_t *rx) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
/* TODO: check Fault Global and Fault Communication flags */
|
||||
|
||||
// return data
|
||||
if (rx) {
|
||||
*rx = rxd;
|
||||
|
|
Loading…
Reference in New Issue