mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
firmware: octsimtest: use TRACE_* macros instead of direct printf
Change-Id: I41864bc2f64905a4f2ccb50769b1840e8a490c76
This commit is contained in:
@@ -94,7 +94,7 @@ out_stop:
|
|||||||
|
|
||||||
int mcp23017_init(uint8_t slave, uint8_t iodira, uint8_t iodirb)
|
int mcp23017_init(uint8_t slave, uint8_t iodira, uint8_t iodirb)
|
||||||
{
|
{
|
||||||
printf("mcp23017_init\n\r");
|
TRACE_DEBUG("mcp23017_init\n\r");
|
||||||
|
|
||||||
// all gpio input
|
// all gpio input
|
||||||
if (mcp23017_write_byte(slave, MCP23017_IODIRA, iodira))
|
if (mcp23017_write_byte(slave, MCP23017_IODIRA, iodira))
|
||||||
@@ -105,11 +105,11 @@ int mcp23017_init(uint8_t slave, uint8_t iodira, uint8_t iodirb)
|
|||||||
if (mcp23017_write_byte(slave, MCP23017_IOCONA, 0x20)) //disable SEQOP (autoinc addressing)
|
if (mcp23017_write_byte(slave, MCP23017_IOCONA, 0x20)) //disable SEQOP (autoinc addressing)
|
||||||
goto out_err;
|
goto out_err;
|
||||||
|
|
||||||
printf("mcp23017 found\n\r");
|
TRACE_DEBUG("mcp23017 found\n\r");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out_err:
|
out_err:
|
||||||
printf("mcp23017 NOT found!\n\r");
|
TRACE_WARNING("mcp23017 NOT found!\n\r");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ void mux_init(void)
|
|||||||
/* set the slot selection mux */
|
/* set the slot selection mux */
|
||||||
int mux_set_slot(uint8_t s)
|
int mux_set_slot(uint8_t s)
|
||||||
{
|
{
|
||||||
printf("%s(%u)\r\n", __func__, s);
|
TRACE_INFO("%s(%u)\r\n", __func__, s);
|
||||||
|
|
||||||
if (s > 7)
|
if (s > 7)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
@@ -90,7 +90,7 @@ int mux_get_slot(void)
|
|||||||
/* set the frequency divider mux */
|
/* set the frequency divider mux */
|
||||||
void mux_set_freq(uint8_t s)
|
void mux_set_freq(uint8_t s)
|
||||||
{
|
{
|
||||||
printf("%s(%u)\r\n", __func__, s);
|
TRACE_INFO("%s(%u)\r\n", __func__, s);
|
||||||
|
|
||||||
/* no need for 'break before make' here, this would also affect
|
/* no need for 'break before make' here, this would also affect
|
||||||
* the SIM card I/O signals which we don't want to disturb */
|
* the SIM card I/O signals which we don't want to disturb */
|
||||||
|
|||||||
Reference in New Issue
Block a user