add comment about operation mode set for max1168

This commit is contained in:
Felix Ruess
2010-12-18 00:03:44 +01:00
parent aa2fccc419
commit 5db8f97a72
2 changed files with 2 additions and 0 deletions
@@ -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;