no logging, no memory pool
Change-Id: Iaf5123ab0340efec7b8e11e689f529f2e95e31ca
This commit is contained in:
parent
8200fccb3f
commit
27f6045e4a
|
@ -14,6 +14,6 @@ void atmel_start_init(void)
|
|||
system_init();
|
||||
dma_memory_init();
|
||||
dma_memory_register_callback(DMA_MEMORY_COMPLETE_CB, M2M_DMA_complete_cb);
|
||||
stdio_redirect_init();
|
||||
// stdio_redirect_init();
|
||||
usb_init();
|
||||
}
|
||||
|
|
|
@ -41,43 +41,43 @@ static const struct log_info_cat log_info_cat[] = {
|
|||
[DUSB] = {
|
||||
.name = "USB",
|
||||
.description = "USB Transport",
|
||||
.enabled = 1,
|
||||
.enabled = 0,
|
||||
.loglevel = LOGL_NOTICE,
|
||||
},
|
||||
[DCCID] = {
|
||||
.name = "CCID",
|
||||
.description = "USB-CCID Protocol",
|
||||
.enabled = 1,
|
||||
.enabled = 0,
|
||||
.loglevel = LOGL_DEBUG,
|
||||
},
|
||||
[DISO7816] = {
|
||||
.name = "ISO7816",
|
||||
.description = "ISO7816-3 State machines",
|
||||
.enabled = 1,
|
||||
.enabled = 0,
|
||||
.loglevel = LOGL_DEBUG,
|
||||
},
|
||||
[DATR] = {
|
||||
.name = "ATR",
|
||||
.description = "ATR (Answer To Reset) FSM",
|
||||
.enabled = 1,
|
||||
.enabled = 0,
|
||||
.loglevel = LOGL_DEBUG,
|
||||
},
|
||||
[DTPDU] = {
|
||||
.name = "TPDU",
|
||||
.description = "TPDU FSM",
|
||||
.enabled = 1,
|
||||
.enabled = 0,
|
||||
.loglevel = LOGL_DEBUG,
|
||||
},
|
||||
[DPPS] = {
|
||||
.name = "PPS",
|
||||
.description = "PPS (Protocol and Parameter Selection) FSM",
|
||||
.enabled = 1,
|
||||
.enabled = 0,
|
||||
.loglevel = LOGL_DEBUG,
|
||||
},
|
||||
[DCARD] = {
|
||||
.name = "CARD",
|
||||
.description = "Card FSM",
|
||||
.enabled = 1,
|
||||
.enabled = 0,
|
||||
.loglevel = LOGL_DEBUG,
|
||||
},
|
||||
};
|
||||
|
@ -150,16 +150,18 @@ void libosmo_emb_init(void)
|
|||
struct log_target *stderr_target;
|
||||
|
||||
/* msgb */
|
||||
#if 0
|
||||
g_msgb_ctx = talloc_pool(g_tall_ctx, 20480);
|
||||
talloc_set_memlimit(g_msgb_ctx, 20480);
|
||||
msgb_talloc_ctx_init(g_msgb_ctx, 0);
|
||||
|
||||
#endif
|
||||
/* logging */
|
||||
log_init(&log_info, g_tall_ctx);
|
||||
#if 0
|
||||
stderr_target = log_target_create_stderr_raw();
|
||||
log_add_target(stderr_target);
|
||||
log_set_all_filter(stderr_target, 1);
|
||||
|
||||
#endif
|
||||
/* timer */
|
||||
SysTick_Config(SystemCoreClock / 1000);
|
||||
}
|
||||
|
|
|
@ -463,6 +463,9 @@ int main(void)
|
|||
g_tall_ctx = talloc_named_const(NULL, 0, "global");
|
||||
printf("g_tall_ctx=%p\r\n", g_tall_ctx);
|
||||
|
||||
//FIXME osmo_emb has a pool?
|
||||
msgb_talloc_ctx_init(g_tall_ctx, 0);
|
||||
|
||||
libosmo_emb_init();
|
||||
|
||||
LOGP(DUSB, LOGL_ERROR, "foobar usb\n");
|
||||
|
|
Loading…
Reference in New Issue