123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299 |
- Symbol table:
- Uart_Ipw_AbortReceivingData/65 (Uart_Ipw_AbortReceivingData) @06d21d20
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_Abort/41
- Calls:
- Uart_Ipw_AbortSendingData/64 (Uart_Ipw_AbortSendingData) @06d21c40
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_Abort/41
- Calls:
- Uart_Ipw_GetBaudrate/63 (Uart_Ipw_GetBaudrate) @06d21a80
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_GetBaudrate/40
- Calls:
- Uart_Ipw_SetBaudrate/62 (Uart_Ipw_SetBaudrate) @06d218c0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_SetBaudrate/39
- Calls:
- Uart_Ipw_Deinit/61 (Uart_Ipw_Deinit) @06d21700
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_Deinit/38
- Calls:
- Uart_Ipw_Init/60 (Uart_Ipw_Init) @06d21540
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_Init/37
- Calls:
- Uart_pxPBcfgVariantPredefined/59 (Uart_pxPBcfgVariantPredefined) @06d24120
- Type: variable
- Body removed by symtab_remove_unreachable_nodes
- Visibility: external public
- References:
- Referring: Uart_Init/37 (read)
- Availability: not_available
- Varpool flags: read-only
- Uart_Ipw_SetRxBuffer/58 (Uart_Ipw_SetRxBuffer) @06d212a0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_StartSetBuffer/36
- Calls:
- Uart_Ipw_SetTxBuffer/57 (Uart_Ipw_SetTxBuffer) @06d211c0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_StartSetBuffer/36
- Calls:
- Uart_Ipw_AsyncSend/56 (Uart_Ipw_AsyncSend) @06d21000
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_StartAsyncSend/35
- Calls:
- Uart_Ipw_AsyncReceive/55 (Uart_Ipw_AsyncReceive) @06c93000
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_StartAsyncReceive/34
- Calls:
- Uart_Ipw_SyncSend/54 (Uart_Ipw_SyncSend) @06c93e00
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_StartSyncSend/33
- Calls:
- Uart_Ipw_GetTransmitStatus/53 (Uart_Ipw_GetTransmitStatus) @06c93d20
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_GetStatus/47 Uart_SetBaudrate/39 Uart_StartAsyncSend/35 Uart_StartSyncSend/33
- Calls:
- Det_ReportRuntimeError/52 (Det_ReportRuntimeError) @06c93b60
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_StartSyncSend/33 Uart_StartSyncReceive/32
- Calls:
- Uart_Ipw_SyncReceive/51 (Uart_Ipw_SyncReceive) @06c93a80
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_StartSyncReceive/32
- Calls:
- Det_ReportError/50 (Det_ReportError) @06c939a0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_GetVersionInfo/48 Uart_GetStatus/47 Uart_GetStatus/47 Uart_GetStatus/47 Uart_AsyncSend/46 Uart_AsyncSend/46 Uart_AsyncSend/46 Uart_AsyncSend/46 Uart_AsyncReceive/45 Uart_AsyncReceive/45 Uart_AsyncReceive/45 Uart_AsyncReceive/45 Uart_SyncReceive/44 Uart_SyncReceive/44 Uart_SyncReceive/44 Uart_SyncReceive/44 Uart_SyncSend/43 Uart_SyncSend/43 Uart_SyncSend/43 Uart_SyncSend/43 Uart_SetBuffer/42 Uart_SetBuffer/42 Uart_SetBuffer/42 Uart_SetBuffer/42 Uart_Abort/41 Uart_Abort/41 Uart_GetBaudrate/40 Uart_GetBaudrate/40 Uart_GetBaudrate/40 Uart_SetBaudrate/39 Uart_SetBaudrate/39 Uart_SetBaudrate/39 Uart_Deinit/38 Uart_Init/37 Uart_Init/37 Uart_StartAsyncSend/35 Uart_StartAsyncReceive/34 Uart_StartSyncSend/33 Uart_StartSyncReceive/32
- Calls:
- Uart_Ipw_GetReceiveStatus/49 (Uart_Ipw_GetReceiveStatus) @06c938c0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: Uart_GetStatus/47 Uart_SetBaudrate/39 Uart_StartAsyncReceive/34 Uart_StartSyncReceive/32
- Calls:
- Uart_GetVersionInfo/48 (Uart_GetVersionInfo) @06c93460
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Det_ReportError/50
- Uart_GetStatus/47 (Uart_GetStatus) @06c931c0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_Ipw_GetReceiveStatus/49 Uart_Ipw_GetTransmitStatus/53 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
- Uart_AsyncSend/46 (Uart_AsyncSend) @06c42d20
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_StartAsyncSend/35 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
- Uart_AsyncReceive/45 (Uart_AsyncReceive) @06c427e0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_StartAsyncReceive/34 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
- Uart_SyncReceive/44 (Uart_SyncReceive) @06c422a0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_StartSyncReceive/32 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
- Uart_SyncSend/43 (Uart_SyncSend) @06c42ee0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_StartSyncSend/33 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
- Uart_SetBuffer/42 (Uart_SetBuffer) @06c42c40
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_StartSetBuffer/36 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
- Uart_Abort/41 (Uart_Abort) @06c429a0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_Ipw_AbortReceivingData/65 Uart_Ipw_AbortSendingData/64 Det_ReportError/50 Det_ReportError/50
- Uart_GetBaudrate/40 (Uart_GetBaudrate) @06c42700
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_Ipw_GetBaudrate/63 Det_ReportError/50 Det_ReportError/50 Det_ReportError/50
- Uart_SetBaudrate/39 (Uart_SetBaudrate) @06c42460
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)Uart_au32ClockFrequency/30 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_Ipw_SetBaudrate/62 Det_ReportError/50 Uart_Ipw_GetTransmitStatus/53 Uart_Ipw_GetReceiveStatus/49 Det_ReportError/50 Det_ReportError/50
- Uart_Deinit/38 (Uart_Deinit) @06c421c0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)Uart_apConfig/31 (read)Uart_au8DriverStatus/29 (write)Uart_apConfig/31 (write)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_Ipw_Deinit/61 Det_ReportError/50
- Uart_Init/37 (Uart_Init) @06c3ad20
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: Uart_au8DriverStatus/29 (read)Uart_pxPBcfgVariantPredefined/59 (read)Uart_apConfig/31 (write)Uart_apConfig/31 (read)Uart_apConfig/31 (read)Uart_apConfig/31 (read)Uart_apConfig/31 (read)Uart_au32ClockFrequency/30 (write)Uart_au8DriverStatus/29 (write)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: Uart_Ipw_Init/60 Det_ReportError/50 Det_ReportError/50
- Uart_StartSetBuffer/36 (Uart_StartSetBuffer) @06c3a7e0
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by: Uart_SetBuffer/42
- Calls: Uart_Ipw_SetRxBuffer/58 Uart_Ipw_SetTxBuffer/57
- Uart_StartAsyncSend/35 (Uart_StartAsyncSend) @06c3aee0
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by: Uart_AsyncSend/46
- Calls: Uart_Ipw_AsyncSend/56 Det_ReportError/50 Uart_Ipw_GetTransmitStatus/53
- Uart_StartAsyncReceive/34 (Uart_StartAsyncReceive) @06c3ac40
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by: Uart_AsyncReceive/45
- Calls: Uart_Ipw_AsyncReceive/55 Det_ReportError/50 Uart_Ipw_GetReceiveStatus/49
- Uart_StartSyncSend/33 (Uart_StartSyncSend) @06c3a9a0
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by: Uart_SyncSend/43
- Calls: Det_ReportRuntimeError/52 Uart_Ipw_SyncSend/54 Det_ReportError/50 Uart_Ipw_GetTransmitStatus/53
- Uart_StartSyncReceive/32 (Uart_StartSyncReceive) @06c3a700
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by: Uart_SyncReceive/44
- Calls: Det_ReportRuntimeError/52 Uart_Ipw_SyncReceive/51 Det_ReportError/50 Uart_Ipw_GetReceiveStatus/49
- Uart_apConfig/31 (Uart_apConfig) @06c35438
- Type: variable definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring: Uart_Init/37 (read)Uart_Init/37 (read)Uart_Init/37 (write)Uart_Init/37 (read)Uart_Init/37 (read)Uart_Deinit/38 (read)Uart_Deinit/38 (write)
- Availability: available
- Varpool flags:
- Uart_au32ClockFrequency/30 (Uart_au32ClockFrequency) @06c35360
- Type: variable definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring: Uart_Init/37 (write)Uart_SetBaudrate/39 (read)
- Availability: available
- Varpool flags:
- Uart_au8DriverStatus/29 (Uart_au8DriverStatus) @06c352d0
- Type: variable definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring: Uart_SyncReceive/44 (read)Uart_AsyncReceive/45 (read)Uart_Init/37 (read)Uart_AsyncSend/46 (read)Uart_Init/37 (write)Uart_Deinit/38 (write)Uart_SetBaudrate/39 (read)Uart_GetBaudrate/40 (read)Uart_Abort/41 (read)Uart_SetBuffer/42 (read)Uart_SyncSend/43 (read)Uart_Deinit/38 (read)Uart_GetStatus/47 (read)
- Availability: available
- Varpool flags:
- Uart_GetVersionInfo (struct Std_VersionInfoType * VersionInfo)
- {
- <bb 2> :
- if (VersionInfo_2(D) == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 10, 3);
- goto <bb 5>; [INV]
- <bb 4> :
- VersionInfo_2(D)->vendorID = 43;
- VersionInfo_2(D)->moduleID = 255;
- VersionInfo_2(D)->sw_major_version = 1;
- VersionInfo_2(D)->sw_minor_version = 0;
- VersionInfo_2(D)->sw_patch_version = 0;
- <bb 5> :
- return;
- }
- Uart_GetStatus (uint8 Channel, uint32 * BytesTransfered, Uart_DataDirectionType TransferType)
- {
- uint8 CoreId;
- Uart_StatusType TempReturn;
- Uart_StatusType D.6442;
- int _1;
- <unnamed type> _2;
- Uart_StatusType _18;
- <bb 2> :
- TempReturn_5 = 4;
- CoreId_6 = 0;
- _1 = (int) CoreId_6;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 9, 1);
- goto <bb 11>; [INV]
- <bb 4> :
- if (Channel_8(D) > 2)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportError (255, 0, 9, 2);
- goto <bb 11>; [INV]
- <bb 6> :
- if (BytesTransfered_9(D) == 0B)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- Det_ReportError (255, 0, 9, 3);
- goto <bb 11>; [INV]
- <bb 8> :
- if (TransferType_10(D) == 0)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- TempReturn_14 = Uart_Ipw_GetTransmitStatus (Channel_8(D), BytesTransfered_9(D));
- goto <bb 11>; [INV]
- <bb 10> :
- TempReturn_12 = Uart_Ipw_GetReceiveStatus (Channel_8(D), BytesTransfered_9(D));
- <bb 11> :
- # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_14(9), TempReturn_12(10)>
- _18 = TempReturn_3;
- <bb 12> :
- <L12>:
- return _18;
- }
- Uart_AsyncSend (uint8 Channel, const uint8 * Buffer, uint32 BufferSize)
- {
- uint8 CoreId;
- Std_ReturnType TempReturn;
- Std_ReturnType D.6428;
- int _1;
- <unnamed type> _2;
- Std_ReturnType _17;
- <bb 2> :
- TempReturn_5 = 1;
- CoreId_6 = 0;
- _1 = (int) CoreId_6;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 5, 1);
- goto <bb 11>; [INV]
- <bb 4> :
- if (Channel_8(D) > 2)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportError (255, 0, 5, 2);
- goto <bb 11>; [INV]
- <bb 6> :
- if (Buffer_9(D) == 0B)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- Det_ReportError (255, 0, 5, 3);
- goto <bb 11>; [INV]
- <bb 8> :
- if (BufferSize_10(D) == 0)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- Det_ReportError (255, 0, 5, 7);
- goto <bb 11>; [INV]
- <bb 10> :
- TempReturn_12 = Uart_StartAsyncSend (CoreId_6, Channel_8(D), Buffer_9(D), BufferSize_10(D));
- <bb 11> :
- # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_5(9), TempReturn_12(10)>
- _17 = TempReturn_3;
- <bb 12> :
- <L12>:
- return _17;
- }
- Uart_AsyncReceive (uint8 Channel, uint8 * Buffer, uint32 BufferSize)
- {
- uint8 CoreId;
- Std_ReturnType TempReturn;
- Std_ReturnType D.6414;
- int _1;
- <unnamed type> _2;
- Std_ReturnType _17;
- <bb 2> :
- TempReturn_5 = 1;
- CoreId_6 = 0;
- _1 = (int) CoreId_6;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 7, 1);
- goto <bb 11>; [INV]
- <bb 4> :
- if (Channel_8(D) > 2)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportError (255, 0, 7, 2);
- goto <bb 11>; [INV]
- <bb 6> :
- if (Buffer_9(D) == 0B)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- Det_ReportError (255, 0, 7, 3);
- goto <bb 11>; [INV]
- <bb 8> :
- if (BufferSize_10(D) == 0)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- Det_ReportError (255, 0, 7, 7);
- goto <bb 11>; [INV]
- <bb 10> :
- TempReturn_12 = Uart_StartAsyncReceive (CoreId_6, Channel_8(D), Buffer_9(D), BufferSize_10(D));
- <bb 11> :
- # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_5(9), TempReturn_12(10)>
- _17 = TempReturn_3;
- <bb 12> :
- <L12>:
- return _17;
- }
- Uart_SyncReceive (uint8 Channel, uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
- {
- uint8 CoreId;
- Std_ReturnType TempReturn;
- Std_ReturnType D.6400;
- int _1;
- <unnamed type> _2;
- Std_ReturnType _18;
- <bb 2> :
- TempReturn_5 = 1;
- CoreId_6 = 0;
- _1 = (int) CoreId_6;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 6, 1);
- goto <bb 11>; [INV]
- <bb 4> :
- if (Channel_8(D) > 2)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportError (255, 0, 6, 2);
- goto <bb 11>; [INV]
- <bb 6> :
- if (Buffer_9(D) == 0B)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- Det_ReportError (255, 0, 6, 3);
- goto <bb 11>; [INV]
- <bb 8> :
- if (BufferSize_10(D) == 0)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- Det_ReportError (255, 0, 6, 7);
- goto <bb 11>; [INV]
- <bb 10> :
- TempReturn_13 = Uart_StartSyncReceive (CoreId_6, Channel_8(D), Buffer_9(D), BufferSize_10(D), Timeout_11(D));
- <bb 11> :
- # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_5(9), TempReturn_13(10)>
- _18 = TempReturn_3;
- <bb 12> :
- <L12>:
- return _18;
- }
- Uart_SyncSend (uint8 Channel, const uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
- {
- uint8 CoreId;
- Std_ReturnType TempReturn;
- Std_ReturnType D.6386;
- int _1;
- <unnamed type> _2;
- Std_ReturnType _18;
- <bb 2> :
- TempReturn_5 = 1;
- CoreId_6 = 0;
- _1 = (int) CoreId_6;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 4, 1);
- goto <bb 11>; [INV]
- <bb 4> :
- if (Channel_8(D) > 2)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportError (255, 0, 4, 2);
- goto <bb 11>; [INV]
- <bb 6> :
- if (Buffer_9(D) == 0B)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- Det_ReportError (255, 0, 4, 3);
- goto <bb 11>; [INV]
- <bb 8> :
- if (BufferSize_10(D) == 0)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- Det_ReportError (255, 0, 4, 7);
- goto <bb 11>; [INV]
- <bb 10> :
- TempReturn_13 = Uart_StartSyncSend (CoreId_6, Channel_8(D), Buffer_9(D), BufferSize_10(D), Timeout_11(D));
- <bb 11> :
- # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_5(9), TempReturn_13(10)>
- _18 = TempReturn_3;
- <bb 12> :
- <L12>:
- return _18;
- }
- Uart_SetBuffer (uint8 Channel, uint8 * Buffer, uint32 BufferSize, Uart_DataDirectionType Direction)
- {
- uint8 CoreId;
- Std_ReturnType TempReturn;
- Std_ReturnType D.6372;
- int _1;
- <unnamed type> _2;
- Std_ReturnType _18;
- <bb 2> :
- TempReturn_5 = 1;
- CoreId_6 = 0;
- _1 = (int) CoreId_6;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 11, 1);
- goto <bb 11>; [INV]
- <bb 4> :
- if (Channel_8(D) > 2)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportError (255, 0, 11, 2);
- goto <bb 11>; [INV]
- <bb 6> :
- if (Buffer_9(D) == 0B)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- Det_ReportError (255, 0, 11, 3);
- goto <bb 11>; [INV]
- <bb 8> :
- if (BufferSize_10(D) == 0)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- Det_ReportError (255, 0, 11, 7);
- goto <bb 11>; [INV]
- <bb 10> :
- TempReturn_13 = Uart_StartSetBuffer (CoreId_6, Channel_8(D), Buffer_9(D), BufferSize_10(D), Direction_11(D));
- <bb 11> :
- # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_5(9), TempReturn_13(10)>
- _18 = TempReturn_3;
- <bb 12> :
- <L12>:
- return _18;
- }
- Uart_Abort (uint8 Channel, Uart_DataDirectionType TransmissionType)
- {
- uint8 CoreId;
- Std_ReturnType TempReturn;
- Std_ReturnType D.6358;
- int _1;
- <unnamed type> _2;
- Std_ReturnType _16;
- <bb 2> :
- TempReturn_5 = 1;
- CoreId_6 = 0;
- _1 = (int) CoreId_6;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 8, 1);
- goto <bb 9>; [INV]
- <bb 4> :
- if (Channel_8(D) > 2)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportError (255, 0, 8, 2);
- goto <bb 9>; [INV]
- <bb 6> :
- if (TransmissionType_9(D) == 0)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- TempReturn_13 = Uart_Ipw_AbortSendingData (Channel_8(D));
- goto <bb 9>; [INV]
- <bb 8> :
- TempReturn_11 = Uart_Ipw_AbortReceivingData (Channel_8(D));
- <bb 9> :
- # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_13(7), TempReturn_11(8)>
- _16 = TempReturn_3;
- <bb 10> :
- <L9>:
- return _16;
- }
- Uart_GetBaudrate (uint8 Channel, uint32 * Baudrate)
- {
- uint8 CoreId;
- Std_ReturnType TempReturn;
- Std_ReturnType D.6347;
- int _1;
- <unnamed type> _2;
- Std_ReturnType _15;
- <bb 2> :
- TempReturn_5 = 1;
- CoreId_6 = 0;
- _1 = (int) CoreId_6;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 3, 1);
- goto <bb 9>; [INV]
- <bb 4> :
- if (Channel_8(D) > 2)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportError (255, 0, 3, 2);
- goto <bb 9>; [INV]
- <bb 6> :
- if (Baudrate_9(D) == 0B)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- Det_ReportError (255, 0, 3, 3);
- goto <bb 9>; [INV]
- <bb 8> :
- Uart_Ipw_GetBaudrate (Channel_8(D), Baudrate_9(D));
- TempReturn_11 = 0;
- <bb 9> :
- # TempReturn_3 = PHI <TempReturn_5(3), TempReturn_5(5), TempReturn_5(7), TempReturn_11(8)>
- _15 = TempReturn_3;
- <bb 10> :
- <L9>:
- return _15;
- }
- Uart_SetBaudrate (uint8 Channel, Uart_BaudrateType Baudrate)
- {
- Uart_StatusType TransmitStatus;
- Uart_StatusType ReceiveStatus;
- uint8 CoreId;
- Std_ReturnType TempReturn;
- Std_ReturnType D.6336;
- int _1;
- <unnamed type> _2;
- int _3;
- int _4;
- long unsigned int _5;
- Std_ReturnType _22;
- <bb 2> :
- TempReturn_8 = 1;
- CoreId_9 = 0;
- _1 = (int) CoreId_9;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 2, 1);
- goto <bb 10>; [INV]
- <bb 4> :
- if (Channel_11(D) > 2)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportError (255, 0, 2, 2);
- goto <bb 10>; [INV]
- <bb 6> :
- ReceiveStatus_13 = Uart_Ipw_GetReceiveStatus (Channel_11(D), 0B);
- TransmitStatus_15 = Uart_Ipw_GetTransmitStatus (Channel_11(D), 0B);
- if (ReceiveStatus_13 == 1)
- goto <bb 8>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 7> :
- if (TransmitStatus_15 == 1)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- Det_ReportError (255, 0, 2, 6);
- goto <bb 10>; [INV]
- <bb 9> :
- _3 = (int) CoreId_9;
- _4 = (int) Channel_11(D);
- _5 = Uart_au32ClockFrequency[_3][_4];
- TempReturn_18 = Uart_Ipw_SetBaudrate (Channel_11(D), Baudrate_16(D), _5);
- <bb 10> :
- # TempReturn_6 = PHI <TempReturn_8(3), TempReturn_8(5), TempReturn_8(8), TempReturn_18(9)>
- _22 = TempReturn_6;
- <bb 11> :
- <L10>:
- return _22;
- }
- Uart_Deinit ()
- {
- uint8 CoreId;
- uint8 u8ChLoop;
- int _1;
- <unnamed type> _2;
- int _3;
- const struct Uart_ConfigType * _4;
- int _5;
- const struct Uart_ChannelConfigType * _6;
- unsigned char _7;
- int _8;
- unsigned char u8ChLoop.1_9;
- int _10;
- <bb 2> :
- u8ChLoop_14 = 0;
- CoreId_15 = 0;
- CoreId_16 = 0;
- _1 = (int) CoreId_16;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 != 1)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 1, 1);
- goto <bb 8>; [INV]
- <bb 4> :
- u8ChLoop_18 = 0;
- goto <bb 6>; [INV]
- <bb 5> :
- _3 = (int) CoreId_16;
- _4 = Uart_apConfig[_3];
- _5 = (int) u8ChLoop_11;
- _6 = _4->Configs[_5];
- _7 = _6->UartChannelId;
- Uart_Ipw_Deinit (_7);
- _8 = (int) CoreId_16;
- Uart_au8DriverStatus[_8] = 0;
- u8ChLoop.1_9 = u8ChLoop_11;
- u8ChLoop_22 = u8ChLoop.1_9 + 1;
- <bb 6> :
- # u8ChLoop_11 = PHI <u8ChLoop_18(4), u8ChLoop_22(5)>
- if (u8ChLoop_11 <= 2)
- goto <bb 5>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 7> :
- _10 = (int) CoreId_16;
- Uart_apConfig[_10] = 0B;
- <bb 8> :
- return;
- }
- Uart_Init (const struct Uart_ConfigType * Config)
- {
- uint8 Channel;
- uint8 CoreId;
- uint8 u8ChLoop;
- int _1;
- <unnamed type> _2;
- int _3;
- int _4;
- const struct Uart_ConfigType * _5;
- int _6;
- const struct Uart_ConfigType * _7;
- int _8;
- const struct Uart_ChannelConfigType * _9;
- int _10;
- const struct Uart_ConfigType * _11;
- int _12;
- const struct Uart_ChannelConfigType * _13;
- int _14;
- const struct Uart_ConfigType * _15;
- int _16;
- const struct Uart_ChannelConfigType * _17;
- const struct Uart_Ipw_HwConfigType * _18;
- int _19;
- const struct Uart_ConfigType * _20;
- int _21;
- const struct Uart_ChannelConfigType * _22;
- int _23;
- int _24;
- long unsigned int _25;
- int _26;
- unsigned char u8ChLoop.0_27;
- <bb 2> :
- CoreId_32 = 0;
- _1 = (int) CoreId_32;
- _2 = Uart_au8DriverStatus[_1];
- if (_2 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 0, 4);
- goto <bb 11>; [INV]
- <bb 4> :
- if (Config_34(D) != 0B)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportError (255, 0, 0, 9);
- goto <bb 11>; [INV]
- <bb 6> :
- _3 = (int) CoreId_32;
- _4 = (int) CoreId_32;
- _5 = Uart_pxPBcfgVariantPredefined[_3];
- Uart_apConfig[_4] = _5;
- u8ChLoop_36 = 0;
- goto <bb 10>; [INV]
- <bb 7> :
- _6 = (int) CoreId_32;
- _7 = Uart_apConfig[_6];
- _8 = (int) u8ChLoop_28;
- _9 = _7->Configs[_8];
- if (_9 != 0B)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- _10 = (int) CoreId_32;
- _11 = Uart_apConfig[_10];
- _12 = (int) u8ChLoop_28;
- _13 = _11->Configs[_12];
- Channel_37 = _13->UartChannelId;
- _14 = (int) CoreId_32;
- _15 = Uart_apConfig[_14];
- _16 = (int) u8ChLoop_28;
- _17 = _15->Configs[_16];
- _18 = _17->UartChannelConfig;
- Uart_Ipw_Init (Channel_37, _18);
- _19 = (int) CoreId_32;
- _20 = Uart_apConfig[_19];
- _21 = (int) u8ChLoop_28;
- _22 = _20->Configs[_21];
- _23 = (int) CoreId_32;
- _24 = (int) Channel_37;
- _25 = _22->ChannelClockFrequency;
- Uart_au32ClockFrequency[_23][_24] = _25;
- _26 = (int) CoreId_32;
- Uart_au8DriverStatus[_26] = 1;
- <bb 9> :
- u8ChLoop.0_27 = u8ChLoop_28;
- u8ChLoop_41 = u8ChLoop.0_27 + 1;
- <bb 10> :
- # u8ChLoop_28 = PHI <u8ChLoop_36(6), u8ChLoop_41(9)>
- if (u8ChLoop_28 <= 2)
- goto <bb 7>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 11> :
- return;
- }
- Uart_StartSetBuffer (uint8 CoreId, uint8 Channel, uint8 * Buffer, uint32 BufferSize, Uart_DataDirectionType Direction)
- {
- Std_ReturnType TempReturn;
- Std_ReturnType D.6313;
- Std_ReturnType _11;
- <bb 2> :
- TempReturn_2 = 1;
- if (Direction_3(D) == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Uart_Ipw_SetTxBuffer (Channel_5(D), Buffer_6(D), BufferSize_7(D));
- goto <bb 5>; [INV]
- <bb 4> :
- Uart_Ipw_SetRxBuffer (Channel_5(D), Buffer_6(D), BufferSize_7(D));
- <bb 5> :
- TempReturn_10 = 0;
- _11 = TempReturn_10;
- <bb 6> :
- <L3>:
- return _11;
- }
- Uart_StartAsyncSend (uint8 CoreId, uint8 Channel, const uint8 * Buffer, uint32 BufferSize)
- {
- Std_ReturnType TempReturn;
- Std_ReturnType D.6308;
- <unnamed type> _1;
- Std_ReturnType _13;
- <bb 2> :
- TempReturn_4 = 1;
- _1 = Uart_Ipw_GetTransmitStatus (Channel_6(D), 0B);
- if (_1 == 1)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 5, 6);
- goto <bb 5>; [INV]
- <bb 4> :
- TempReturn_11 = Uart_Ipw_AsyncSend (Channel_6(D), Buffer_8(D), BufferSize_9(D));
- <bb 5> :
- # TempReturn_2 = PHI <TempReturn_4(3), TempReturn_11(4)>
- _13 = TempReturn_2;
- <bb 6> :
- <L3>:
- return _13;
- }
- Uart_StartAsyncReceive (uint8 CoreId, uint8 Channel, uint8 * Buffer, uint32 BufferSize)
- {
- Std_ReturnType TempReturn;
- Std_ReturnType D.6303;
- <unnamed type> _1;
- Std_ReturnType _13;
- <bb 2> :
- TempReturn_4 = 1;
- _1 = Uart_Ipw_GetReceiveStatus (Channel_6(D), 0B);
- if (_1 == 1)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 7, 6);
- goto <bb 5>; [INV]
- <bb 4> :
- TempReturn_11 = Uart_Ipw_AsyncReceive (Channel_6(D), Buffer_8(D), BufferSize_9(D));
- <bb 5> :
- # TempReturn_2 = PHI <TempReturn_4(3), TempReturn_11(4)>
- _13 = TempReturn_2;
- <bb 6> :
- <L3>:
- return _13;
- }
- Uart_StartSyncSend (uint8 CoreId, uint8 Channel, const uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
- {
- Std_ReturnType TempReturn;
- Std_ReturnType D.6298;
- <unnamed type> _1;
- Std_ReturnType _16;
- <bb 2> :
- TempReturn_4 = 1;
- _1 = Uart_Ipw_GetTransmitStatus (Channel_6(D), 0B);
- if (_1 == 1)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 4, 6);
- goto <bb 6>; [INV]
- <bb 4> :
- TempReturn_12 = Uart_Ipw_SyncSend (Channel_6(D), Buffer_8(D), BufferSize_9(D), Timeout_10(D));
- if (TempReturn_12 == 6)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportRuntimeError (255, 0, 4, 8);
- TempReturn_14 = 1;
- <bb 6> :
- # TempReturn_2 = PHI <TempReturn_4(3), TempReturn_12(4), TempReturn_14(5)>
- _16 = TempReturn_2;
- <bb 7> :
- <L5>:
- return _16;
- }
- Uart_StartSyncReceive (uint8 CoreId, uint8 Channel, uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
- {
- Std_ReturnType TempReturn;
- Std_ReturnType D.6291;
- <unnamed type> _1;
- Std_ReturnType _16;
- <bb 2> :
- TempReturn_4 = 1;
- _1 = Uart_Ipw_GetReceiveStatus (Channel_6(D), 0B);
- if (_1 == 1)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- Det_ReportError (255, 0, 6, 6);
- goto <bb 6>; [INV]
- <bb 4> :
- TempReturn_12 = Uart_Ipw_SyncReceive (Channel_6(D), Buffer_8(D), BufferSize_9(D), Timeout_10(D));
- if (TempReturn_12 == 6)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- Det_ReportRuntimeError (255, 0, 6, 8);
- TempReturn_14 = 1;
- <bb 6> :
- # TempReturn_2 = PHI <TempReturn_4(3), TempReturn_12(4), TempReturn_14(5)>
- _16 = TempReturn_2;
- <bb 7> :
- <L5>:
- return _16;
- }
|