things
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#define MAX_CAM_MISS 2
|
||||
#define SPARK_ADVANCE 20
|
||||
|
||||
typedef enum { SYNC_OK = 0, SYNC_PENDING = 1, SYNC_NOT_OK = 2 } sync_state_t;
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ typedef struct ring_buffer_t {
|
||||
uint8_t w_head;
|
||||
} ring_buffer_t;
|
||||
|
||||
inline void ringBufferPush(ring_buffer_t *rb, uint32_t value);
|
||||
inline void ringBufferPush(volatile ring_buffer_t *rb, uint32_t value);
|
||||
|
||||
inline uint32_t ringBufferRead(ring_buffer_t *rb, uint8_t idx);
|
||||
inline uint32_t ringBufferRead(volatile ring_buffer_t *rb, uint8_t neg_idx);
|
||||
|
||||
inline void ringBufferRevert(ring_buffer_t *rb, uint8_t val);
|
||||
inline void ringBufferRevert(volatile ring_buffer_t *rb, uint8_t val);
|
||||
|
||||
Reference in New Issue
Block a user