You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB
C

#ifndef FUNCTIONS_H_INCLUDED
#define FUNCTIONS_H_INCLUDED
#include "main.h"
#define TRUE 0x1
#define FALSE 0x0
#define PI 3.1415926535897932384626433832795
#define HALF_PI 1.5707963267948966192313216916398
#define TWO_PI 6.283185307179586476925286766559
#define DEG_TO_RAD 0.017453292519943295769236907684886
#define RAD_TO_DEG 57.295779513082320876798154814105
uint8_t sreg_tmp;
// Prototypes
void ElementLoop(uint8_t Len, uint8_t AddMilliSeconds, uint8_t SendingType);
uint8_t ReadKeyPin(uint8_t pin);
void CheckPaddles(void);
// Sidetone
void SideToneOn(void);
void SideToneOff(void);
void Tone(uint16_t f, uint8_t duration);
void Boop(void);
void Beep(void);
void BeepBoop(void);
// Interrupt
void IntDisable(void);
void IntEnable(void);
// EEPROM
void WriteEEprom(void);
void ReadEEprom(void);
void WriteEEpromWpM(void);
void ReadEEpromWpM(void);
// Serielle Schnittstelle
void SendSerialString(char *s);
void SendSerialChar(unsigned char data);
// Delay Millis
void DelayMilliSeconds(uint16_t ms);
void ResetMilliSeconds(void);
uint16_t GetMilliSeconds(void);
#endif