mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 16:58:48 +08:00
add comment about operation mode set for max1168
This commit is contained in:
@@ -59,6 +59,7 @@ void max1168_read( void ) {
|
||||
SSP_DisableRti();
|
||||
SSP_Enable();
|
||||
/* write control byte - wait EOC on extint */
|
||||
/* use internal reference and clock, sequentially scan channels 0-7 */
|
||||
SSPDR = (1 << 0 | 1 << 3 | 7 << 5) << 8;
|
||||
max1168_status = STA_MAX1168_SENDING_REQ;
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ void max1168_read( void ) {
|
||||
Max1168Select();
|
||||
|
||||
/* write control byte - wait EOC on extint */
|
||||
/* use internal reference and clock, sequentially scan channels 0-7 */
|
||||
const uint16_t ctl_byte = (1 << 0 | 1 << 3 | 7 << 5) << 8;
|
||||
SPI_I2S_SendData(SPI2, ctl_byte);
|
||||
max1168_status = STA_MAX1168_SENDING_REQ;
|
||||
|
||||
Reference in New Issue
Block a user