mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Trivial changes from review of last PR.
This commit is contained in:
@@ -87,6 +87,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* COMP2 default configuration **********************************************/
|
/* COMP2 default configuration **********************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_COMP2
|
#ifdef CONFIG_STM32_COMP2
|
||||||
|
|||||||
@@ -86,6 +86,8 @@ int stm32_comp_setup(void)
|
|||||||
|
|
||||||
if (!initialized)
|
if (!initialized)
|
||||||
{
|
{
|
||||||
|
/* Get the comparator interface */
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_COMP2
|
#ifdef CONFIG_STM32_COMP2
|
||||||
comp = stm32_compinitialize(2);
|
comp = stm32_compinitialize(2);
|
||||||
if (comp == NULL)
|
if (comp == NULL)
|
||||||
@@ -113,6 +115,8 @@ int stm32_comp_setup(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Register the comparator character driver at /dev/comp0 */
|
||||||
|
|
||||||
ret = comp_register("/dev/comp0", comp);
|
ret = comp_register("/dev/comp0", comp);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ config COMP
|
|||||||
---help---
|
---help---
|
||||||
Select to enable support for Analog Comparators (COMPs).
|
Select to enable support for Analog Comparators (COMPs).
|
||||||
|
|
||||||
|
|
||||||
config DAC
|
config DAC
|
||||||
bool "Digital-to-Analog Conversion"
|
bool "Digital-to-Analog Conversion"
|
||||||
default n
|
default n
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# drivers/analog/Make.defs
|
# drivers/analog/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2011-2012, 2017 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@@ -104,4 +104,3 @@ ifeq ($(CONFIG_COMP),y)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,10 @@ static const struct file_operations comp_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
comp_ioctl /* ioctl */
|
comp_ioctl /* ioctl */
|
||||||
#ifndef CONFIG_DISABLE_POLL
|
#ifndef CONFIG_DISABLE_POLL
|
||||||
, 0
|
, NULL /* poll */
|
||||||
|
#endif
|
||||||
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
|
, NULL /* unlink */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user