kopia lustrzana https://github.com/DL7AD/pecanpico9
17 wiersze
388 B
C
17 wiersze
388 B
C
#ifndef __SLEEP_H__
|
|
#define __SLEEP_H__
|
|
|
|
#include "ch.h"
|
|
#include "hal.h"
|
|
#include "types.h"
|
|
|
|
#define WAIT_FOR_TRACKING_POINT trigger_new_tracking_point
|
|
#define TX_CONTINUOSLY trigger_immediately
|
|
|
|
bool p_sleep(const sleep_conf_t *config);
|
|
systime_t waitForTrigger(systime_t prev, trigger_conf_t *config);
|
|
void trigger_new_tracking_point(void);
|
|
void trigger_immediately(void);
|
|
|
|
#endif
|