Skip to content

Commit

Permalink
Rename slaveCallback to masterCallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
mondalaci committed Aug 20, 2017
1 parent caf6302 commit 6190c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions right/src/slave_scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ uhk_slave_t Slaves[] = {
{ .init = LedSlaveDriver_Init, .update = LedSlaveDriver_Update, .perDriverId = LedDriverId_Left },
};

static void slaveCallback(I2C_Type *base, i2c_master_handle_t *handle, status_t previousStatus, void *userData)
static void masterCallback(I2C_Type *base, i2c_master_handle_t *handle, status_t previousStatus, void *userData)
{
bool isTransferScheduled = false;

Expand Down Expand Up @@ -58,7 +58,7 @@ void InitSlaveScheduler()
Slaves[i].isConnected = false;
}

I2C_MasterTransferCreateHandle(I2C_MAIN_BUS_BASEADDR, &I2cMasterHandle, slaveCallback, NULL);
I2C_MasterTransferCreateHandle(I2C_MAIN_BUS_BASEADDR, &I2cMasterHandle, masterCallback, NULL);

// Kickstart the scheduler by triggering the first callback.
Slaves[currentSlaveId].update(Slaves[currentSlaveId].perDriverId);
Expand Down

0 comments on commit 6190c4d

Please sign in to comment.