2017-11-24 13:29:36 +02:00
|
|
|
#ifndef MAIN_H
|
|
|
|
#define MAIN_H
|
|
|
|
|
2017-11-28 15:25:12 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2017-11-25 11:23:47 +02:00
|
|
|
#define SET(PORT, PIN) (PORT |= (1 << PIN))
|
|
|
|
#define CLR(PORT, PIN) (PORT &= (~(1 << PIN)))
|
|
|
|
#define CHK(PORT, PIN) (PORT & (1 << PIN))
|
|
|
|
#define TOG(PORT, PIN) (PORT ^= (1 << PIN))
|
2017-11-24 22:58:52 +02:00
|
|
|
|
2017-11-28 15:25:12 +02:00
|
|
|
void init_led(void);
|
|
|
|
void init_pwm(void);
|
|
|
|
void read_temp(void);
|
|
|
|
void run_servos(void);
|
|
|
|
uint16_t read_adc(uint8_t channel);
|
2017-11-24 13:29:36 +02:00
|
|
|
|
|
|
|
#endif
|