18 lines
362 B
C
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
|