Update repo
This commit is contained in:
1 parent
0afe39c8fe
commit
d229fd964d
6 files changed
+9
-28
No files matched your search
@@ -6,7 +6,6 @@
|
||||
#include <zephyr/drivers/uart.h>
|
||||
#include <zephyr/drivers/adc.h>
|
||||
|
||||
|
||||
#define ADC_NODE DT_NODELABEL(adc1)
|
||||
|
||||
#if !DT_NODE_HAS_STATUS(ADC_NODE, okay)
|
||||
@@ -34,9 +33,8 @@ static struct adc_sequence seq = {
|
||||
.resolution = 12, // 12-bit
|
||||
};
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int main(void) {
|
||||
|
||||
if(!device_is_ready(adc_dev)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user