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
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
22void buzzer_turn_on() { Chip_GPIO_SetPinOutHigh(LPC_GPIO_PORT, 2, 8); }
23
24
25void buzzer_turn_off() { Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 2, 8); }
void buzzer_init()
Inicializa el pin de control del buzzer.
void buzzer_turn_off()
Desactiva el buzzer.
void buzzer_turn_on()
Activa el buzzer.
Interfaz del driver de buzzer.