32 lines
559 B
C
32 lines
559 B
C
#include <avr/io.h>
|
|
#include <string.h>
|
|
#include <util/delay.h>
|
|
#include <avr/interrupt.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "ioController.h"
|
|
#include "multiplexer.h"
|
|
#include "charger.h"
|
|
|
|
/* PINS */
|
|
#define WS2812B PD2
|
|
#define ACTIVELED PB5
|
|
#define PROBE15V PC1
|
|
#define PROBE5V PC2
|
|
#define Z PC0
|
|
#define VTX PB3
|
|
#define VRX PB2
|
|
#define BUZZER PB1
|
|
#define POWERON PB0
|
|
#define S2 PD7
|
|
#define S1 PD6
|
|
#define S0 PD5
|
|
|
|
#define BUAD 9600
|
|
#define BUAD_RATE_CALC ((F_CPU/16/BUAD) - 1)
|
|
|
|
void serialSetup(void);
|
|
void serialSend(const char* sendString);
|
|
|