ghnotgood opened a new pull request, #19216:
URL: https://github.com/apache/nuttx/pull/19216
To let developers use all procedures implemented in the corresponding .c
file when 1wire_crc.h is included.
## Summary
When `nuttx/1wire/1wire_crc.h` is included, all the procedures implemented
in the `drivers/1wire/1wire_crc.c` all available except `onewire_valid_rom`.
## Impact
`onewire_valid_rom` will be available after `#include
<nuttx/1wire/1wire_crc.h>`.
## Testing
I have compiled the NuttX with the custom implementation of 1wire protocol
that uses `onewire_valid_rom` and sucessfuly used it.
I have **not** tested this on a board where 1wire is used. Could anyone,
please, do it? It looks `onewire_valid_rom` is used only in
`drivers/1wire/1wire.c` and
```
@@ -35,6 +35,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/1wire/1wire_master.h>
#include <nuttx/1wire/1wire.h>
+#include <nuttx/1wire/1wire_crc.h>
#include "1wire_internal.h"
```
is a part of this PR, but better save than sorry. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]