Move PWM and MOSFET implementations into separate module files

This commit is contained in:
2024-09-03 02:24:31 +02:00
parent cd1a481ef6
commit 0e15d5b1e2
8 changed files with 186 additions and 169 deletions

15
src/bus/mosfet.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef MAD_BUS_MOSFET_H
#define MAD_BUS_MOSFET_H
#include <avr/io.h>
// MOSFETS
#define MOS01 PB0 // Peltier Enable
#define MOS02 PB1 // Heating Enable
#define MOS03 PB2 // Lights Enable
int MOS_Init(void);
void MOS_Enable(int port);
void MOS_Disable(int port);
#endif // MAD_BUS_MOSFET_H