Files
solar_mppt_converter/avr_global_config.h
Christian Lind Madsen 61d13470de first commit
2025-05-11 22:33:48 +02:00

37 lines
714 B
C

/*
* avr_global_config.h
*
* Created: 11-05-2025 19:16:05
* Author: Christian L. V. Madsen (OZ1CM)
*/
#ifndef AVR_GLOBAL_CONFIG_H_
#define AVR_GLOBAL_CONFIG_H_
#include <avr/io.h>
#include "avr_gpio_driver/avr_gpio.h"
#define AVR_ATTINY_414
#define F_CPU 16000000
// Input Current sense
#define PORT_IIN_SENSE GPIO_PORTA
#define PIN_IIN_SENSE 1
// Input Voltage Sense
#define PORT_VIN_SENSE GPIO_PORTA
#define PIN_VIN_SENSE 2
// Output Current sense
#define PORT_IOUT_SENSE GPIO_PORTA
#define PIN_IOUT_SENSE 3
// Output Voltage Sense
#define PORT_VOUT_SENSE GPIO_PORTA
#define PIN_VOUT_SENSE 4
// PWM Output
#define PORT_BUCK_PWM GPIO_PORTB
#define PIN_BUCK_PWM 0
#endif /* AVR_GLOBAL_CONFIG_H_ */