getter method for abzug_state

This commit is contained in:
2022-05-24 19:03:10 +02:00
parent dcf1531033
commit e514d57ddf
2 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
#include <avr/io.h>
#include <stdint.h>
#include "avrIOhelper/io-helper.h"
#include "common.h"
uint16_t abzug_speed = 100;
@@ -14,8 +16,11 @@ void timer3_init()
DDRE |= 1 << 4;
}
uint8_t get_abzug_state(){
return TCCR3B & _BV(CS31);
}
void send_settings(void);
extern void send_settings(void);
void do_abzug(){
if (read_Input(BTN_ABZUG_EIN, RISING)) {

View File

@@ -7,5 +7,6 @@ extern uint16_t abzug_speed;
void do_abzug(void);
void timer3_init(void);
uint8_t get_abzug_state(void);
#endif