Fix style
This commit is contained in:
@ -72,7 +72,7 @@ bool peci_available(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Returns true on success, false on error
|
// Returns true on success, false on error
|
||||||
bool peci_get_temp(int16_t * data) {
|
bool peci_get_temp(int16_t *data) {
|
||||||
//TODO: Wait for completion?
|
//TODO: Wait for completion?
|
||||||
// Clear upstream status
|
// Clear upstream status
|
||||||
ESUCTRL0 = ESUCTRL0;
|
ESUCTRL0 = ESUCTRL0;
|
||||||
@ -226,7 +226,7 @@ bool peci_available(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Returns true on success, false on error
|
// Returns true on success, false on error
|
||||||
bool peci_get_temp(int16_t * data) {
|
bool peci_get_temp(int16_t *data) {
|
||||||
// Wait for completion
|
// Wait for completion
|
||||||
while (HOSTAR & 1) {}
|
while (HOSTAR & 1) {}
|
||||||
// Clear status
|
// Clear status
|
||||||
|
@ -112,15 +112,15 @@ volatile uint8_t __xdata __at(0x31A3) ESGCTRL3;
|
|||||||
|
|
||||||
// Upstream flags
|
// Upstream flags
|
||||||
volatile uint8_t __xdata __at(0x31B0) ESUCTRL0;
|
volatile uint8_t __xdata __at(0x31B0) ESUCTRL0;
|
||||||
#define ESUCTRL0_ENABLE BIT(7)
|
#define ESUCTRL0_ENABLE BIT(7)
|
||||||
#define ESUCTRL0_GO BIT(6)
|
#define ESUCTRL0_GO BIT(6)
|
||||||
#define ESUCTRL0_DONE BIT(1)
|
#define ESUCTRL0_DONE BIT(1)
|
||||||
#define ESUCTRL0_BUSY BIT(0)
|
#define ESUCTRL0_BUSY BIT(0)
|
||||||
|
|
||||||
// Upstream cycle type
|
// Upstream cycle type
|
||||||
volatile uint8_t __xdata __at(0x31B1) ESUCTRL1;
|
volatile uint8_t __xdata __at(0x31B1) ESUCTRL1;
|
||||||
// OOB message
|
// OOB message
|
||||||
#define ESUCTRL1_OOB 0x07
|
#define ESUCTRL1_OOB 0x07
|
||||||
|
|
||||||
// Upstream tag @ [7:4], upstream length [11:8] @ [3:0]
|
// Upstream tag @ [7:4], upstream length [11:8] @ [3:0]
|
||||||
volatile uint8_t __xdata __at(0x31B2) ESUCTRL2;
|
volatile uint8_t __xdata __at(0x31B2) ESUCTRL2;
|
||||||
@ -136,7 +136,7 @@ volatile uint8_t __xdata __at(0x31B8) ESUCTRL8;
|
|||||||
|
|
||||||
// PUT_OOB status
|
// PUT_OOB status
|
||||||
volatile uint8_t __xdata __at(0x31C0) ESOCTRL0;
|
volatile uint8_t __xdata __at(0x31C0) ESOCTRL0;
|
||||||
#define ESOCTRL0_STATUS BIT(7)
|
#define ESOCTRL0_STATUS BIT(7)
|
||||||
|
|
||||||
volatile uint8_t __xdata __at(0x31C1) ESOCTRL1;
|
volatile uint8_t __xdata __at(0x31C1) ESOCTRL1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user