libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
COMP peripheral API

STM32F0xx comparator peripheral More...

Collaboration diagram for COMP peripheral API:

Functions

void comp_enable (uint8_t id)
 
void comp_disable (uint8_t id)
 
void comp_select_input (uint8_t id, uint32_t input)
 
void comp_select_output (uint8_t id, uint32_t output)
 
void comp_select_hyst (uint8_t id, uint32_t hyst)
 
void comp_select_speed (uint8_t id, uint32_t speed)
 

Detailed Description

STM32F0xx comparator peripheral

Version
1.0.0
Date
10 July 2013

LGPL License Terms libopencm3 License

Function Documentation

◆ comp_disable()

void comp_disable ( uint8_t  id)

Definition at line 38 of file comparator.c.

References COMP_CSR.

◆ comp_enable()

void comp_enable ( uint8_t  id)

Definition at line 33 of file comparator.c.

References COMP_CSR, and COMP_CSR_EN.

◆ comp_select_hyst()

void comp_select_hyst ( uint8_t  id,
uint32_t  hyst 
)

Definition at line 53 of file comparator.c.

References COMP_CSR.

◆ comp_select_input()

void comp_select_input ( uint8_t  id,
uint32_t  input 
)

Definition at line 43 of file comparator.c.

References COMP_CSR.

◆ comp_select_output()

void comp_select_output ( uint8_t  id,
uint32_t  output 
)

Definition at line 48 of file comparator.c.

References COMP_CSR.

◆ comp_select_speed()

void comp_select_speed ( uint8_t  id,
uint32_t  speed 
)

Definition at line 58 of file comparator.c.

References COMP_CSR.