ROM used: 17352 (35%) 17352 (35%) including unused fragments 4 Average locations per line 16 Average locations per statement RAM used: 300 (9%) at main() level 345 (10%) worst case Stack used: 10 worst case (out of 31 total available) Lines Stmts % Files ----- ----- --- ----- 116 45 4 main.c 440 0 0 ..\..\..\..\..\..\Program Files\PICC\Devices\18F4585.h 788 325 30 RB.c 219 0 0 RB.h 170 0 0 RBapp.h 770 185 17 canfunctions.c 432 0 0 canfunctions.h 297 154 14 ODaccess.c 90 46 4 ir_ports.c 42 0 0 ir_ports.h 607 270 25 hsr_serial.c 104 0 0 regloc.h 126 0 0 hsr_serial.h 14 0 0 project.h 133 53 5 RCservo.c ----- ----- 4348 1078 Total Page ROM % RAM Vol Diff Functions: ---- --- --- --- --- ---- ---------- 0 40 0 1 @delay_ms1 0 26 0 1 @PUTCHAR_BIU_1 0 70 0 5 @SPI_XFER_1 0 36 0 0 @const137 0 32 0 0 @const143 0 32 0 0 @const161 0 784 2 0 @const181 0 68 0 6 458 5.8 CANSetBaudRate 0 24 0 2 66 3.1 CANSetOperationMode 0 296 1 9 1294 7.8 CANInitialize 0 556 2 11 2209 10.1 CANSendMessage 0 280 1 16 647 7.3 CANIDToRegs 0 58 0 8 168 3.6 CANSetMask 0 130 0 8 421 4.7 CANSetFilter 0 760 2 16 2412 9.2 CANReceiveMessage 0 88 0 7 178 5.8 RBSetEEPROM 0 64 0 9 178 5.8 RBReadEEPROM Inline 1 520 4.6 URB_Sizeof Inline 6 480 3.9 URB_translate_microchip_to_ieee 0 230 1 6 480 3.9 URB_translate_ieee_to_microchip Inline 10 515 6.5 OD_read_data 0 34 0 5 @MUL1616 Inline 10 509 6.3 OD_write_data 0 62 0 2 313 4.3 RB_Get_Rx_Mapping_Length 0 62 0 2 313 4.3 RB_Get_Tx_Mapping_Length 0 232 1 6 396 5.4 RB_Get_Tx_Map_Index 0 44 0 0 @goto10457 0 232 1 6 396 5.4 RB_Get_Rx_Map_Index 0 44 0 0 @goto10470 0 220 1 5 396 5.4 RB_Get_Tx_Map_Type 0 44 0 0 @goto10483 0 220 1 5 394 5.6 RB_Get_Rx_Map_Type 0 44 0 0 @goto10496 0 264 1 6 402 6.1 RB_Get_Tx_Map_Address 0 44 0 0 @goto10509 0 264 1 6 422 4.7 RB_Get_Rx_Map_Address 0 44 0 0 @goto10522 0 726 2 4 1993 8.8 process_ir_ports 0 10 0 0 37 1.3 RB_Initialize 0 1564 5 3 1102 3.4 RB_PM_SetDefaults 0 914 3 6 726 6.8 RB_Send_PM 0 48 0 0 169 4.0 URB_Send_SDO_Reply 0 208 1 7 1041 7.7 RB_Handle_Mapping_Request Inline 8 322 8.2 OD_lookup 0 2862 8 14 3454 10.1 URB_Handle_SDO_Request 0 130 0 2 493 5.6 URBMaintainHeartbeat 0 218 1 8 344 6.5 RB_Process_Outgoing_PM 0 444 1 24 513 6.8 URB_Handle_rPDO 0 266 1 1 577 5.7 RB_reset_from_eeprom 0 392 1 3 1508 5.9 RB_setup_CAN 0 352 1 4 1979 11.4 RB_ProcessStack 0 96 0 3 366 4.7 init_ir_ports 0 266 1 4 779 9.3 transmit_ir_to_can 0 184 1 4 466 6.7 write_can_to_spi_transmit 0 180 1 3 566 4.3 update_atx_id 0 128 0 3 382 4.2 reset_atx_id 0 16 0 0 96 2.1 HSR_SerialInitialization 0 72 0 1 189 2.9 HSR_Release_v2 0 92 0 1 436 4.2 HSR_ReadPosition 0 70 0 2 169 4.1 WaitRxDataReady 0 82 0 4 237 3.1 HSR_WriteMemory_v2 0 82 0 4 237 3.1 HSR_SetPosition 0 72 0 5 @DIV1616 0 276 1 4 592 4.4 RCservo_init 0 80 0 2 @SITOF 0 352 1 14 @DIVFF 0 530 2 4 1347 8.8 initiate_pulse 0 120 0 6 @DIVS1616 0 248 1 11 @MULFF 0 62 0 4 @SFTOI 0 70 0 2 231 4.1 serial_isr 0 46 0 3 @DIV88 0 144 0 4 394 2.8 RB_App_SetFactoryDefaults 0 84 0 1 144 1.3 RB_App_ResetApp 0 64 0 2 80 2.4 ReadPos 0 220 1 4 272 5.3 MAIN Program metrics: Functions 55 Statements 1078 Comments 1792 Volume (V) 65068 Difficilty (D) 301.8 Effort to implement (E) 19634248 Time to implement (T) 303 hours, 0 minutes Est Delivered Bugs (B) 24 Cyclomatic Complexity 173 Maintainability (MI) 113 Segment Used Free ----------- ---- ---- 00000-00002 4 0 00004-00006 0 4 00008-0009C 150 0 0009E-0BFFE 17198 31796