add mute switch

This commit is contained in:
2024-04-10 14:37:20 +02:00
parent 9a58eedcc4
commit 761de5a94d
5 changed files with 33 additions and 3 deletions

20
sound-driver/mute.c Normal file
View File

@ -0,0 +1,20 @@
#include <msp430g2553.h>
#include "mute.h"
void muteInit() {
// BIT6: MuteCtrl
P1DIR |= BIT6;
P1OUT &= ~BIT6;
}
void mute() {
P1OUT |= BIT6;
}
void unMute() {
P1OUT &= ~BIT6;
}