mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
More cleanly separate specific functionality into the relevant files
This commit is contained in:
+12
-3
@@ -30,7 +30,14 @@
|
||||
#ifndef __AVCLANDRV_H
|
||||
#define __AVCLANDRV_H
|
||||
|
||||
#include "GlobalDef.h"
|
||||
// AVC LAN bus on AC2 (PA6/7)
|
||||
// PA6 AINP0 +
|
||||
// PA7 AINN1 -
|
||||
#define INPUT_IS_SET (bit_is_set(AC2_STATUS, AC_STATE_bp))
|
||||
#define INPUT_IS_CLEAR (bit_is_clear(AC2_STATUS, AC_STATE_bp))
|
||||
|
||||
#define sbi(port, bit) (port) |= (1 << (bit)) // Set bit (i.e. to 1)
|
||||
#define cbi(port, bit) (port) &= ~(1 << (bit)) // Clear bit (i.e. set bit to 0)
|
||||
|
||||
#define STOPEvent \
|
||||
cbi(RTC.PITINTCTRL, RTC_PI_bp); \
|
||||
@@ -51,6 +58,8 @@ void AVC_ReleaseLine();
|
||||
extern uint16_t CD_ID; // CD Changer ID
|
||||
extern uint16_t HU_ID; // Head-unit ID
|
||||
|
||||
extern uint8_t printAllFrames;
|
||||
|
||||
typedef enum {
|
||||
cm_Null = 0,
|
||||
cm_Status1 = 1,
|
||||
@@ -114,6 +123,8 @@ extern uint8_t cd_Time_Sec;
|
||||
|
||||
extern uint8_t playMode;
|
||||
|
||||
extern uint8_t answerReq;
|
||||
|
||||
#ifdef SOFTWARE_DEBUG
|
||||
void AVCLan_Measure();
|
||||
#endif
|
||||
@@ -121,6 +132,4 @@ void AVCLan_Measure();
|
||||
void SetHighLow();
|
||||
#endif
|
||||
|
||||
extern uint8_t answerReq;
|
||||
|
||||
#endif // __AVCLANDRV_H
|
||||
|
||||
Reference in New Issue
Block a user