inspektors/include/main.h
2017-11-28 15:25:12 +02:00

18 lines
362 B
C

#ifndef MAIN_H
#define MAIN_H
#include <stdint.h>
#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))
void init_led(void);
void init_pwm(void);
void read_temp(void);
void run_servos(void);
uint16_t read_adc(uint8_t channel);
#endif