FreeCalypso > hg > ffs-editor
comparison src/cs/services/etm/etm_tmcore.c @ 14:4f94a09e0a6a
ETM patches for passing link
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 15 May 2020 04:31:50 +0000 |
parents | 92470e5d0b9e |
children |
comparison
equal
deleted
inserted
replaced
13:c07376e250c1 | 14:4f94a09e0a6a |
---|---|
352 { | 352 { |
353 extern uint16 etm_audio_revision; | 353 extern uint16 etm_audio_revision; |
354 extern uint16 etm_task_revision; | 354 extern uint16 etm_task_revision; |
355 int error, fid, ffs_tm_version; | 355 int error, fid, ffs_tm_version; |
356 volatile int revision = 0; | 356 volatile int revision = 0; |
357 #if 0 /* FC FFS editor */ | |
357 T_VERSION *l1s_version; | 358 T_VERSION *l1s_version; |
359 #endif | |
358 | 360 |
359 fid = etm_get32(buf); | 361 fid = etm_get32(buf); |
360 | 362 |
361 tr_etm(TgTrCore, "ETM CORE: _version: fid(0x%x)", fid); | 363 tr_etm(TgTrCore, "ETM CORE: _version: fid(0x%x)", fid); |
362 | 364 |
365 #if 0 /* FC FFS editor */ | |
363 l1s_version = (T_VERSION*) l1s_get_version(); | 366 l1s_version = (T_VERSION*) l1s_get_version(); |
367 #endif | |
364 | 368 |
365 switch (fid) { | 369 switch (fid) { |
366 // Code Versions related to ETM modules | 370 // Code Versions related to ETM modules |
367 case SW_REV_ETM_CORE: | 371 case SW_REV_ETM_CORE: |
368 error = etm_pkt_put32(pkt, ETM_CORE_VERSION); | 372 error = etm_pkt_put32(pkt, ETM_CORE_VERSION); |
390 error = etm_pkt_put32(pkt, ETM_API_VERSION); | 394 error = etm_pkt_put32(pkt, ETM_API_VERSION); |
391 break; | 395 break; |
392 // Code Versions related to L1, see in l1_defty.h | 396 // Code Versions related to L1, see in l1_defty.h |
393 // Get the version on this way "revision = l1s.version.dsp_code_version;" | 397 // Get the version on this way "revision = l1s.version.dsp_code_version;" |
394 // doesn't work because of struct aligment -> compile flag -mw !!!! | 398 // doesn't work because of struct aligment -> compile flag -mw !!!! |
399 #if 0 /* FC FFS editor */ | |
395 case SW_DSP_CODE_VERSION: | 400 case SW_DSP_CODE_VERSION: |
396 revision = ((T_VERSION*) l1s_version)->dsp_code_version; | 401 revision = ((T_VERSION*) l1s_version)->dsp_code_version; |
397 error = etm_pkt_put32(pkt, revision); | 402 error = etm_pkt_put32(pkt, revision); |
398 break; | 403 break; |
399 case SW_DSP_PATCH_VERSION: | 404 case SW_DSP_PATCH_VERSION: |
414 break; | 419 break; |
415 case SW_MCU_TM_VERSION: | 420 case SW_MCU_TM_VERSION: |
416 revision = ((T_VERSION*) l1s_version)->mcu_tm_version; | 421 revision = ((T_VERSION*) l1s_version)->mcu_tm_version; |
417 error = etm_pkt_put32(pkt, revision); | 422 error = etm_pkt_put32(pkt, revision); |
418 break; | 423 break; |
424 #endif | |
419 default: | 425 default: |
420 error = ETM_NOSYS; | 426 error = ETM_NOSYS; |
421 } | 427 } |
422 | 428 |
423 tr_etm(TgTrCore, "ETM CORE: _version: version(%d)", revision); | 429 tr_etm(TgTrCore, "ETM CORE: _version: version(%d)", revision); |