cursada_mc2
Base de control de temperatura para EDU-CIAA-NXP
Loading...
Searching...
No Matches
buzzer_driver.c
Go to the documentation of this file.
1
12
#include "
buzzer_driver.h
"
13
14
void
buzzer_init
()
15
{
16
Chip_GPIO_Init(LPC_GPIO_PORT);
17
Chip_SCU_PinMux(6, 12, MD_PUP, FUNC0);
18
Chip_GPIO_SetDir(LPC_GPIO_PORT, 2, (1 << 8), 1);
19
}
20
21
22
void
buzzer_turn_on
() { Chip_GPIO_SetPinOutHigh(LPC_GPIO_PORT, 2, 8); }
23
24
25
void
buzzer_turn_off
() { Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 2, 8); }
buzzer_init
void buzzer_init()
Inicializa el pin de control del buzzer.
Definition
buzzer_driver.c:14
buzzer_turn_off
void buzzer_turn_off()
Desactiva el buzzer.
Definition
buzzer_driver.c:25
buzzer_turn_on
void buzzer_turn_on()
Activa el buzzer.
Definition
buzzer_driver.c:22
buzzer_driver.h
Interfaz del driver de buzzer.
src
drivers
buzzer_driver.c
Generated by
1.9.8