Compare commits
4 commits
494ec955c5
...
87c50652ff
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87c50652ff | ||
|
|
c2ed5387d5 | ||
|
|
bb296e17a6 | ||
|
|
9fc36c938c |
3 changed files with 3 additions and 4 deletions
|
|
@ -404,7 +404,7 @@ int adc_frame_cmd(struct command *cmd, const struct command_par *par)
|
|||
int r = 0;
|
||||
int n = 1;
|
||||
|
||||
if (frame & 0x8000) {
|
||||
if (frame & 0x8000 || !frame) {
|
||||
if (frame == 0xc000)
|
||||
frame |= ch << 10;
|
||||
if (!e)
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ int read_bate(int from_phase, int to_phase, int value, int idx)
|
|||
case 9: if (phase==to_phase)
|
||||
timeout = value;
|
||||
else
|
||||
timeout = 1000;
|
||||
timeout = 10000;
|
||||
r = ssp_wait(timeout);
|
||||
break;
|
||||
case 3: pressure_reading[3] = pressure_reading[2];
|
||||
|
|
|
|||
3
ssp.c
3
ssp.c
|
|
@ -256,7 +256,6 @@ unsigned int ssp_busy(void)
|
|||
const unsigned int mask = 0xffff
|
||||
| (SSPSR_RNE << 16)
|
||||
| (SSPSR_BSY << 16)
|
||||
| (SSP_INT_RX << 24)
|
||||
| (SSP_INT_TX << 24)
|
||||
;
|
||||
if (c & mask)
|
||||
|
|
@ -284,7 +283,7 @@ struct ssp_config ssp_confs[] = {
|
|||
.ssel = SSP_ADS8688,
|
||||
},
|
||||
{
|
||||
.mode = SSPCR0_16bits | SSP_kHz(30000),
|
||||
.mode = SSPCR0_16bits | SSP_kHz(5000),
|
||||
.ssel = SSP_LTC2656,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue