sample: sip_svc: fix filter and printk formatting
Rename sample.yml and fix build and filtering. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
c5dd2c2a84
commit
bbb63d8aca
2 changed files with 8 additions and 6 deletions
|
@ -6,13 +6,15 @@ common:
|
||||||
- intel_socfpga_agilex_socdk
|
- intel_socfpga_agilex_socdk
|
||||||
tests:
|
tests:
|
||||||
sample.subsys.sip_svc:
|
sample.subsys.sip_svc:
|
||||||
tags: subsys
|
tags:
|
||||||
|
- sipsvc
|
||||||
|
platform_allow:
|
||||||
|
- intel_socfpga_agilex_socdk
|
||||||
|
integration_platforms:
|
||||||
|
- intel_socfpga_agilex_socdk
|
||||||
harness: console
|
harness: console
|
||||||
harness_config:
|
harness_config:
|
||||||
type: one_line
|
type: one_line
|
||||||
ordered: true
|
ordered: true
|
||||||
regex:
|
regex:
|
||||||
- "Got response of transaction id 0x[0-9a-f][0-9a-f] and voltage is [0-9].[0-9]+v"
|
- "Got response of transaction id 0x[0-9a-f][0-9a-f] and voltage is [0-9].[0-9]+v"
|
||||||
filter: CONFIG_ARM_SIP_SVC_HAS_INTEL_SDM_MAILBOX_FIFO
|
|
||||||
integration_platforms:
|
|
||||||
- intel_socfpga_agilex_socdk
|
|
|
@ -104,8 +104,8 @@ int main(void)
|
||||||
/* Voltage is retrieved as a fixed point number with 16 bits below binary point */
|
/* Voltage is retrieved as a fixed point number with 16 bits below binary point */
|
||||||
voltage = ((float)priv.voltage_channel0 / 65536);
|
voltage = ((float)priv.voltage_channel0 / 65536);
|
||||||
|
|
||||||
printk("Got response of transaction id 0x%02x and voltage is %fv\n", trans_id,
|
printk("Got response of transaction id 0x%02x and voltage is %fv\n",
|
||||||
voltage);
|
trans_id, (double)voltage);
|
||||||
|
|
||||||
err = sip_svc_close(mb_smc_ctrl, mb_c_token, NULL);
|
err = sip_svc_close(mb_smc_ctrl, mb_c_token, NULL);
|
||||||
__ASSERT(err != SIP_SVC_ID_INVALID, "Failed to close with sip_svc");
|
__ASSERT(err != SIP_SVC_ID_INVALID, "Failed to close with sip_svc");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue