Skip to content

Commit

Permalink
Uncomment debug logging and remove commented extern
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Crockett committed Jul 17, 2014
1 parent f05b191 commit 6509c83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CC3000_Host_Driver/evnt_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ INT32 hci_unsolicited_event_handler(void)
//*****************************************************************************
void set_socket_active_status(INT32 Sd, INT32 Status)
{
//DEBUG("Sd=%d, Status %s",Sd, Status == SOCKET_STATUS_ACTIVE ? "SOCKET_STATUS_ACTIVE" : "SOCKET_STATUS_INACTIVE");
DEBUG("Sd=%d, Status %s",Sd, Status == SOCKET_STATUS_ACTIVE ? "SOCKET_STATUS_ACTIVE" : "SOCKET_STATUS_INACTIVE");
if(M_IS_VALID_SD(Sd) && M_IS_VALID_STATUS(Status))
{
for (;;) {
Expand Down
2 changes: 0 additions & 2 deletions CC3000_Host_Driver/evnt_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ extern INT32 hci_unsolicited_event_handler(void);
#define M_IS_VALID_SD(sd) ((0 <= (sd)) && ((sd) <= 7))
#define M_IS_VALID_STATUS(status) (((status) == SOCKET_STATUS_ACTIVE)||((status) == SOCKET_STATUS_INACTIVE))

//extern UINT32 socket_active_status;

extern void set_socket_active_status(INT32 Sd, INT32 Status);
extern INT32 get_socket_active_status(INT32 Sd);

Expand Down
6 changes: 3 additions & 3 deletions SPARK_Firmware_Driver/src/cc3000_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ long SpiWrite(unsigned char *ucBuf, unsigned short usLength)
if(NotAborted)
{
NotAborted = Reserve(eSPI_STATE_WRITE_WAIT_IRQ);
//WARN("CC3000 SpiWrite acquire bus");
WARN("CC3000 SpiWrite acquire bus");
if(NotAborted)
{
usLength = SpiSetUp(ucBuf, usLength);
Expand Down Expand Up @@ -405,7 +405,7 @@ void SPI_DMA_IntHandler(void)

SpiPauseSpi();
SetState(eSPI_STATE_IDLE, eDeAssert);
//WARN("CC3000 DmaHandler release read spi bus");
WARN("CC3000 DmaHandler release read spi bus");
// Call out to the Unsolicited handler
// It will handle the event or leave it there for an outstanding opcode
// It it handles it the it Will resume the SPI ISR
Expand Down Expand Up @@ -434,7 +434,7 @@ void SPI_DMA_IntHandler(void)
else
{
SetState(eSPI_STATE_IDLE, eDeAssert);
//WARN("CC3000 DmaHandler release write spi bus");
WARN("CC3000 DmaHandler release write spi bus");
}
}
break;
Expand Down

0 comments on commit 6509c83

Please sign in to comment.