123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615 |
- SetSimTraceDivMul (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetSimTraceDivMul_TrustedCall (config_2(D));
- return;
- }
- SetSimTraceDivMul_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- struct SIM_Type * _1;
- long unsigned int _2;
- long unsigned int _3;
- long unsigned int _4;
- long unsigned int _5;
- long unsigned int _6;
- unsigned char _7;
- long unsigned int _8;
- long unsigned int _9;
- long unsigned int _10;
- long unsigned int _11;
- struct SIM_Type * _12;
- long unsigned int _13;
- <bb 2> :
- _1 = 1074036736B;
- _2 ={v} _1->CLKDIV4;
- _3 = config_15(D)->value;
- _4 = _3 + 4294967295;
- _5 = _4 << 1;
- _6 = _5 & 14;
- _7 = config_15(D)->options[0];
- _8 = (long unsigned int) _7;
- _9 = _8 + 4294967295;
- _10 = _9 & 1;
- _11 = _6 | _10;
- _12 = 1074036736B;
- _13 = _2 | _11;
- _12->CLKDIV4 ={v} _13;
- return;
- }
- SetPccPcdDivFrac (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetPccPcdDivFrac_TrustedCall (config_2(D));
- return;
- }
- SetPccPcdDivFrac_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- struct PCC_Type * _1;
- <unnamed type> _2;
- unsigned char _3;
- int _4;
- long unsigned int _5;
- long unsigned int _6;
- long unsigned int _7;
- unsigned char _8;
- long unsigned int _9;
- long unsigned int _10;
- long unsigned int _11;
- long unsigned int _12;
- struct PCC_Type * _13;
- <unnamed type> _14;
- unsigned char _15;
- int _16;
- <bb 2> :
- _1 = 1074155520B;
- _2 = config_18(D)->name;
- _3 = clockFeatures[_2][5];
- _4 = (int) _3;
- regValue_19 ={v} _1->PCCn[_4];
- regValue_20 = regValue_19 & 4294967280;
- _5 = config_18(D)->value;
- _6 = _5 + 4294967295;
- _7 = _6 & 7;
- regValue_21 = regValue_20 | _7;
- _8 = config_18(D)->options[0];
- _9 = (long unsigned int) _8;
- _10 = _9 + 4294967295;
- _11 = _10 << 3;
- _12 = _11 & 8;
- regValue_22 = regValue_21 | _12;
- _13 = 1074155520B;
- _14 = config_18(D)->name;
- _15 = clockFeatures[_14][5];
- _16 = (int) _15;
- _13->PCCn[_16] ={v} regValue_22;
- return;
- }
- SetSimClkoutDiv (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetSimClkoutDiv_TrustedCall (config_2(D));
- return;
- }
- SetSimClkoutDiv_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- long unsigned int _1;
- struct SIM_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- long unsigned int _5;
- long unsigned int _6;
- struct SIM_Type * _7;
- <bb 2> :
- _1 = config_10(D)->value;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _2 = 1074036736B;
- regValue_11 ={v} _2->CHIPCTL;
- regValue_12 = regValue_11 & 4294965503;
- _3 = config_10(D)->value;
- _4 = _3 + 4294967295;
- _5 = _4 << 8;
- _6 = _5 & 1792;
- regValue_13 = regValue_12 | _6;
- _7 = 1074036736B;
- _7->CHIPCTL ={v} regValue_13;
- <bb 4> :
- return;
- }
- SetScgHsrunDivslow (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgHsrunDivslow_TrustedCall (config_2(D));
- return;
- }
- SetScgHsrunDivslow_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- long unsigned int _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- struct SCG_Type * _5;
- <bb 2> :
- _1 = config_8(D)->value;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _2 = 1074151424B;
- regValue_9 ={v} _2->HCCR;
- regValue_10 = regValue_9 & 4294967280;
- _3 = config_8(D)->value;
- _4 = _3 + 4294967295;
- regValue_11 = regValue_10 | _4;
- _5 = 1074151424B;
- _5->HCCR ={v} regValue_11;
- <bb 4> :
- return;
- }
- SetScgHsrunDivbus (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgHsrunDivbus_TrustedCall (config_2(D));
- return;
- }
- SetScgHsrunDivbus_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- long unsigned int _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- long unsigned int _5;
- struct SCG_Type * _6;
- <bb 2> :
- _1 = config_9(D)->value;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _2 = 1074151424B;
- regValue_10 ={v} _2->HCCR;
- regValue_11 = regValue_10 & 4294967055;
- _3 = config_9(D)->value;
- _4 = _3 + 4294967295;
- _5 = _4 << 4;
- regValue_12 = regValue_11 | _5;
- _6 = 1074151424B;
- _6->HCCR ={v} regValue_12;
- <bb 4> :
- return;
- }
- SetScgHsrunDivcore (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgHsrunDivcore_TrustedCall (config_2(D));
- return;
- }
- SetScgHsrunDivcore_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- long unsigned int _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- long unsigned int _5;
- struct SCG_Type * _6;
- <bb 2> :
- _1 = config_9(D)->value;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _2 = 1074151424B;
- regValue_10 ={v} _2->HCCR;
- regValue_11 = regValue_10 & 4293984255;
- _3 = config_9(D)->value;
- _4 = _3 + 4294967295;
- _5 = _4 << 16;
- regValue_12 = regValue_11 | _5;
- _6 = 1074151424B;
- _6->HCCR ={v} regValue_12;
- <bb 4> :
- return;
- }
- SetScgVlprDivslow (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgVlprDivslow_TrustedCall (config_2(D));
- return;
- }
- SetScgVlprDivslow_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- long unsigned int _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- struct SCG_Type * _5;
- <bb 2> :
- _1 = config_8(D)->value;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _2 = 1074151424B;
- regValue_9 ={v} _2->VCCR;
- regValue_10 = regValue_9 & 4294967280;
- _3 = config_8(D)->value;
- _4 = _3 + 4294967295;
- regValue_11 = regValue_10 | _4;
- _5 = 1074151424B;
- _5->VCCR ={v} regValue_11;
- <bb 4> :
- return;
- }
- SetScgVlprDivbus (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgVlprDivbus_TrustedCall (config_2(D));
- return;
- }
- SetScgVlprDivbus_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- long unsigned int _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- long unsigned int _5;
- struct SCG_Type * _6;
- <bb 2> :
- _1 = config_9(D)->value;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _2 = 1074151424B;
- regValue_10 ={v} _2->VCCR;
- regValue_11 = regValue_10 & 4294967055;
- _3 = config_9(D)->value;
- _4 = _3 + 4294967295;
- _5 = _4 << 4;
- regValue_12 = regValue_11 | _5;
- _6 = 1074151424B;
- _6->VCCR ={v} regValue_12;
- <bb 4> :
- return;
- }
- SetScgVlprDivcore (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgVlprDivcore_TrustedCall (config_2(D));
- return;
- }
- SetScgVlprDivcore_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- long unsigned int _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- long unsigned int _5;
- struct SCG_Type * _6;
- <bb 2> :
- _1 = config_9(D)->value;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _2 = 1074151424B;
- regValue_10 ={v} _2->VCCR;
- regValue_11 = regValue_10 & 4293984255;
- _3 = config_9(D)->value;
- _4 = _3 + 4294967295;
- _5 = _4 << 16;
- regValue_12 = regValue_11 | _5;
- _6 = 1074151424B;
- _6->VCCR ={v} regValue_12;
- <bb 4> :
- return;
- }
- SetScgRunDivslow (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgRunDivslow_TrustedCall (config_2(D));
- return;
- }
- SetScgRunDivslow_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- long unsigned int _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- struct SCG_Type * _5;
- <bb 2> :
- _1 = config_8(D)->value;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _2 = 1074151424B;
- regValue_9 ={v} _2->RCCR;
- regValue_10 = regValue_9 & 4294967280;
- _3 = config_8(D)->value;
- _4 = _3 + 4294967295;
- regValue_11 = regValue_10 | _4;
- _5 = 1074151424B;
- _5->RCCR ={v} regValue_11;
- <bb 4> :
- return;
- }
- SetScgRunDivbus (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgRunDivbus_TrustedCall (config_2(D));
- return;
- }
- SetScgRunDivbus_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- long unsigned int _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- long unsigned int _5;
- struct SCG_Type * _6;
- <bb 2> :
- _1 = config_9(D)->value;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _2 = 1074151424B;
- regValue_10 ={v} _2->RCCR;
- regValue_11 = regValue_10 & 4294967055;
- _3 = config_9(D)->value;
- _4 = _3 + 4294967295;
- _5 = _4 << 4;
- regValue_12 = regValue_11 | _5;
- _6 = 1074151424B;
- _6->RCCR ={v} regValue_12;
- <bb 4> :
- return;
- }
- SetScgRunDivcore (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgRunDivcore_TrustedCall (config_2(D));
- return;
- }
- SetScgRunDivcore_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 regValue;
- long unsigned int _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- long unsigned int _5;
- struct SCG_Type * _6;
- <bb 2> :
- _1 = config_9(D)->value;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _2 = 1074151424B;
- regValue_10 ={v} _2->RCCR;
- regValue_11 = regValue_10 & 4293984255;
- _3 = config_9(D)->value;
- _4 = _3 + 4294967295;
- _5 = _4 << 16;
- regValue_12 = regValue_11 | _5;
- _6 = 1074151424B;
- _6->RCCR ={v} regValue_12;
- <bb 4> :
- return;
- }
- SetScgAsyncDiv2 (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgAsyncDiv2_TrustedCall (config_2(D));
- return;
- }
- SetScgAsyncDiv2_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 dividerValue;
- uint32 instance;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- long unsigned int _3;
- unsigned char _4;
- volatile struct scgPeriphAsyncDiv_Type * _5;
- long unsigned int _6;
- volatile struct scgPeriphAsyncDiv_Type * _7;
- <bb 2> :
- _1 = config_9(D)->name;
- _2 = clockFeatures[_1][0];
- instance_10 = (uint32) _2;
- _3 = config_9(D)->value;
- _4 = dividerValue_hardwareValue[_3];
- dividerValue_11 = (uint32) _4;
- _5 = scgPeriphAsyncDivs[instance_10];
- regValue_12 ={v} _5->ASYNC_DIV;
- regValue_13 = regValue_12 & 4294965503;
- _6 = dividerValue_11 << 8;
- regValue_14 = regValue_13 | _6;
- _7 = scgPeriphAsyncDivs[instance_10];
- _7->ASYNC_DIV ={v} regValue_14;
- return;
- }
- SetScgAsyncDiv1 (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- SetScgAsyncDiv1_TrustedCall (config_2(D));
- return;
- }
- SetScgAsyncDiv1_TrustedCall (const struct Clock_Ip_DividerConfigType * config)
- {
- uint32 dividerValue;
- uint32 instance;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- long unsigned int _3;
- unsigned char _4;
- volatile struct scgPeriphAsyncDiv_Type * _5;
- volatile struct scgPeriphAsyncDiv_Type * _6;
- <bb 2> :
- _1 = config_8(D)->name;
- _2 = clockFeatures[_1][0];
- instance_9 = (uint32) _2;
- _3 = config_8(D)->value;
- _4 = dividerValue_hardwareValue[_3];
- dividerValue_10 = (uint32) _4;
- _5 = scgPeriphAsyncDivs[instance_9];
- regValue_11 ={v} _5->ASYNC_DIV;
- regValue_12 = regValue_11 & 4294967288;
- regValue_13 = regValue_12 | dividerValue_10;
- _6 = scgPeriphAsyncDivs[instance_9];
- _6->ASYNC_DIV ={v} regValue_13;
- return;
- }
- Callback_DividerEmpty (const struct Clock_Ip_DividerConfigType * config)
- {
- <bb 2> :
- return;
- }
|