doc: efm32: timer: enable peripheral_apis style
This commit is contained in:
parent
c8b8285446
commit
ae777bb920
@ -1,3 +1,11 @@
|
|||||||
|
/** @defgroup timer_defines TIMER Defines
|
||||||
|
*
|
||||||
|
* @brief <b>Defined Constants and Types for the TIMER module</b>
|
||||||
|
*
|
||||||
|
* @ingroup EZR32WG_defines
|
||||||
|
*
|
||||||
|
* LGPL License Terms @ref lgpl_license
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* This file is part of the libopencm3 project.
|
* This file is part of the libopencm3 project.
|
||||||
*
|
*
|
||||||
@ -17,9 +25,6 @@
|
|||||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBOPENCM3_EFM32_EZR32WG_TIMER_H
|
#pragma once
|
||||||
#define LIBOPENCM3_EFM32_EZR32WG_TIMER_H
|
|
||||||
|
|
||||||
#include <libopencm3/efm32/common/timer_common.h>
|
#include <libopencm3/efm32/common/timer_common.h>
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/** @defgroup timer_defines TIMER Defines
|
||||||
|
*
|
||||||
|
* @brief <b>Defined Constants and Types for the TIMER module</b>
|
||||||
|
*
|
||||||
|
* @ingroup EFM32HG_defines
|
||||||
|
*
|
||||||
|
* LGPL License Terms @ref lgpl_license
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* This file is part of the libopencm3 project.
|
* This file is part of the libopencm3 project.
|
||||||
*
|
*
|
||||||
@ -15,8 +23,7 @@
|
|||||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBOPENCM3_TIMER_H
|
#pragma once
|
||||||
#define LIBOPENCM3_TIMER_H
|
|
||||||
|
|
||||||
#include <libopencm3/efm32/common/timer_common.h>
|
#include <libopencm3/efm32/common/timer_common.h>
|
||||||
|
|
||||||
@ -27,5 +34,3 @@
|
|||||||
|
|
||||||
/* TIMER_CCx_CTRL */
|
/* TIMER_CCx_CTRL */
|
||||||
#define TIMER_CC_CTRL_PRSCONF (1 << 28)
|
#define TIMER_CC_CTRL_PRSCONF (1 << 28)
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/** @defgroup timer_defines TIMER Defines
|
||||||
|
*
|
||||||
|
* @brief <b>Defined Constants and Types for the TIMER module</b>
|
||||||
|
*
|
||||||
|
* @ingroup EFM32LG_defines
|
||||||
|
*
|
||||||
|
* LGPL License Terms @ref lgpl_license
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* This file is part of the libopencm3 project.
|
* This file is part of the libopencm3 project.
|
||||||
*
|
*
|
||||||
@ -15,9 +23,6 @@
|
|||||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBOPENCM3_TIMER_H
|
#pragma once
|
||||||
#define LIBOPENCM3_TIMER_H
|
|
||||||
|
|
||||||
#include <libopencm3/efm32/common/timer_common.h>
|
#include <libopencm3/efm32/common/timer_common.h>
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/** @defgroup timer_defines TIMER Defines
|
||||||
|
*
|
||||||
|
* @brief <b>Defined Constants and Types for the TIMER module</b>
|
||||||
|
*
|
||||||
|
* @ingroup EFM32WG_defines
|
||||||
|
*
|
||||||
|
* LGPL License Terms @ref lgpl_license
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* This file is part of the libopencm3 project.
|
* This file is part of the libopencm3 project.
|
||||||
*
|
*
|
||||||
@ -17,9 +25,6 @@
|
|||||||
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBOPENCM3_EFM32_WG_TIMER_H
|
#pragma once
|
||||||
#define LIBOPENCM3_EFM32_WG_TIMER_H
|
|
||||||
|
|
||||||
#include <libopencm3/efm32/common/timer_common.h>
|
#include <libopencm3/efm32/common/timer_common.h>
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
/** @addtogroup timer_file TIMER peripheral API
|
||||||
|
* @ingroup peripheral_apis
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* This file is part of the libopencm3 project.
|
* This file is part of the libopencm3 project.
|
||||||
*
|
*
|
||||||
@ -19,6 +22,8 @@
|
|||||||
|
|
||||||
#include <libopencm3/efm32/timer.h>
|
#include <libopencm3/efm32/timer.h>
|
||||||
|
|
||||||
|
/**@{*/
|
||||||
|
|
||||||
#define HAS_DEAD_TIME_INSERTION(timer) (timer == TIMER0)
|
#define HAS_DEAD_TIME_INSERTION(timer) (timer == TIMER0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,3 +65,5 @@ void timer_set_top(uint32_t timer, uint32_t top)
|
|||||||
{
|
{
|
||||||
TIMER_TOP(timer) = top;
|
TIMER_TOP(timer) = top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**@}*/
|
Loading…
x
Reference in New Issue
Block a user