doc: nvic: generate a discoverable link name
The nvic_ functions all had a broken link to an f1 list of irqs. Change the header generator to generate a fixed name, and link to them. Because of their scoping, this ok, they find the correct family's irq definitions.
This commit is contained in:
parent
ce5d1ca9a2
commit
b4b2a2101c
@ -51,7 +51,7 @@
|
|||||||
*
|
*
|
||||||
* Enables a user interrupt.
|
* Enables a user interrupt.
|
||||||
*
|
*
|
||||||
* @param[in] irqn Unsigned int8. Interrupt number @ref nvic_stm32f1_userint
|
* @param[in] irqn Unsigned int8. Interrupt number @ref CM3_nvic_defines_irqs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void nvic_enable_irq(uint8_t irqn)
|
void nvic_enable_irq(uint8_t irqn)
|
||||||
@ -64,7 +64,7 @@ void nvic_enable_irq(uint8_t irqn)
|
|||||||
*
|
*
|
||||||
* Disables a user interrupt.
|
* Disables a user interrupt.
|
||||||
*
|
*
|
||||||
* @param[in] irqn Unsigned int8. Interrupt number @ref nvic_stm32f1_userint
|
* @param[in] irqn Unsigned int8. Interrupt number @ref CM3_nvic_defines_irqs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void nvic_disable_irq(uint8_t irqn)
|
void nvic_disable_irq(uint8_t irqn)
|
||||||
@ -77,7 +77,7 @@ void nvic_disable_irq(uint8_t irqn)
|
|||||||
*
|
*
|
||||||
* True if the interrupt has occurred and is waiting for service.
|
* True if the interrupt has occurred and is waiting for service.
|
||||||
*
|
*
|
||||||
* @param[in] irqn Unsigned int8. Interrupt number @ref nvic_stm32f1_userint
|
* @param[in] irqn Unsigned int8. Interrupt number @ref CM3_nvic_defines_irqs
|
||||||
* @return Boolean. Interrupt pending.
|
* @return Boolean. Interrupt pending.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ uint8_t nvic_get_pending_irq(uint8_t irqn)
|
|||||||
* Force a user interrupt to a pending state. This has no effect if the
|
* Force a user interrupt to a pending state. This has no effect if the
|
||||||
* interrupt is already pending.
|
* interrupt is already pending.
|
||||||
*
|
*
|
||||||
* @param[in] irqn Unsigned int8. Interrupt number @ref nvic_stm32f1_userint
|
* @param[in] irqn Unsigned int8. Interrupt number @ref CM3_nvic_defines_irqs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void nvic_set_pending_irq(uint8_t irqn)
|
void nvic_set_pending_irq(uint8_t irqn)
|
||||||
@ -106,7 +106,7 @@ void nvic_set_pending_irq(uint8_t irqn)
|
|||||||
* Force remove a user interrupt from a pending state. This has no effect if
|
* Force remove a user interrupt from a pending state. This has no effect if
|
||||||
* the interrupt is actively being serviced.
|
* the interrupt is actively being serviced.
|
||||||
*
|
*
|
||||||
* @param[in] irqn Unsigned int8. Interrupt number @ref nvic_stm32f1_userint
|
* @param[in] irqn Unsigned int8. Interrupt number @ref CM3_nvic_defines_irqs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void nvic_clear_pending_irq(uint8_t irqn)
|
void nvic_clear_pending_irq(uint8_t irqn)
|
||||||
@ -119,7 +119,7 @@ void nvic_clear_pending_irq(uint8_t irqn)
|
|||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/** @brief NVIC Return Enabled Interrupt
|
/** @brief NVIC Return Enabled Interrupt
|
||||||
*
|
*
|
||||||
* @param[in] irqn Unsigned int8. Interrupt number @ref nvic_stm32f1_userint
|
* @param[in] irqn Unsigned int8. Interrupt number @ref CM3_nvic_defines_irqs
|
||||||
* @return Boolean. Interrupt enabled.
|
* @return Boolean. Interrupt enabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ uint8_t nvic_get_irq_enabled(uint8_t irqn)
|
|||||||
* There are 4 priority levels only, given by the upper two bits of the
|
* There are 4 priority levels only, given by the upper two bits of the
|
||||||
* priority byte, as required by ARM standards. No grouping available.
|
* priority byte, as required by ARM standards. No grouping available.
|
||||||
*
|
*
|
||||||
* @param[in] irqn Unsigned int8. Interrupt number @ref nvic_stm32f1_userint
|
* @param[in] irqn Unsigned int8. Interrupt number @ref CM3_nvic_defines_irqs
|
||||||
* @param[in] priority Unsigned int8. Interrupt priority (0 ... 255 in steps of
|
* @param[in] priority Unsigned int8. Interrupt priority (0 ... 255 in steps of
|
||||||
* 16)
|
* 16)
|
||||||
*/
|
*/
|
||||||
@ -170,7 +170,7 @@ void nvic_set_priority(uint8_t irqn, uint8_t priority)
|
|||||||
*
|
*
|
||||||
* Interrupt has occurred and is currently being serviced.
|
* Interrupt has occurred and is currently being serviced.
|
||||||
*
|
*
|
||||||
* @param[in] irqn Unsigned int8. Interrupt number @ref nvic_stm32f1_userint
|
* @param[in] irqn Unsigned int8. Interrupt number @ref CM3_nvic_defines_irqs
|
||||||
* @return Boolean. Interrupt active.
|
* @return Boolean. Interrupt active.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ template_nvic_h = '''\
|
|||||||
|
|
||||||
#include <libopencm3/cm3/nvic.h>
|
#include <libopencm3/cm3/nvic.h>
|
||||||
|
|
||||||
/** @defgroup CM3_nvic_defines_{partname_doxygen} User interrupts for {partname_humanreadable}
|
/** @defgroup CM3_nvic_defines_irqs User interrupts for {partname_humanreadable}
|
||||||
@ingroup CM3_nvic_defines
|
@ingroup CM3_nvic_defines
|
||||||
|
|
||||||
@{{*/
|
@{{*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user