Text Compare
Produced: 13/12/2014 03:40:07 p.m.
   
Mode:  Differences, With Context  
Left base folder: c:\Users\Link\AppData\Local\Temp\thg.p3qw8w\LED_Facade.2.74  
Right base folder: c:\Users\Link\AppData\Local\Temp\thg.p3qw8w\LED_Facade.2  

   
File: firmware\led_facade_pic32\led_facade_pic32\firmware\src\system_config\matrix_32x8\framework\driver\usart\drv_usart_static.c  
65     PLIB_USART_BaudRateSet(USART_ID_2, SYS_CLK_PeripheralFrequencyGet(CLK_BUS_PERIPHERAL_2), 38400); = 65     PLIB_USART_BaudRateSet(USART_ID_2, SYS_CLK_PeripheralFrequencyGet(CLK_BUS_PERIPHERAL_2), 38400);
66     PLIB_USART_HandshakeModeSelect(USART_ID_2, USART_HANDSHAKE_MODE_FLOW_CONTROL);   66     PLIB_USART_HandshakeModeSelect(USART_ID_2, USART_HANDSHAKE_MODE_FLOW_CONTROL);
67     PLIB_USART_OperationModeSelect(USART_ID_2, USART_ENABLE_TX_RX_USED);   67     PLIB_USART_OperationModeSelect(USART_ID_2, USART_ENABLE_TX_RX_USED);
68     PLIB_USART_LineControlModeSelect(USART_ID_2, USART_8N1);   68     PLIB_USART_LineControlModeSelect(USART_ID_2, USART_8N1);
69     PLIB_USART_TransmitterEnable(USART_ID_2);   69     PLIB_USART_TransmitterEnable(USART_ID_2);
70     PLIB_USART_TransmitterInterruptModeSelect(USART_ID_2, USART_TRANSMIT_FIFO_NOT_FULL);   70     PLIB_USART_TransmitterInterruptModeSelect(USART_ID_2, USART_TRANSMIT_FIFO_NOT_FULL);
    -+ 71     PLIB_USART_ReceiverEnable(USART_ID_2);
      72     PLIB_USART_ReceiverInterruptModeSelect(USART_ID_2, USART_RECEIVE_FIFO_ONE_CHAR);
      73  
      74     /* Initialize TX interrupt */
      75     PLIB_INT_SourceEnable(INT_ID_0, INT_SOURCE_USART_2_TRANSMIT);
      76     PLIB_INT_VectorPrioritySet(INT_ID_0, INT_VECTOR_UART2_TX, INT_PRIORITY_LEVEL1);
      77     PLIB_INT_VectorSubPrioritySet(INT_ID_0, INT_VECTOR_UART2_TX, INT_SUBPRIORITY_LEVEL0);
      78  
      79     /* Initialize RX interrupt */
      80     PLIB_INT_SourceEnable(INT_ID_0, INT_SOURCE_USART_2_RECEIVE);
      81     PLIB_INT_VectorPrioritySet(INT_ID_0, INT_VECTOR_UART2_RX, INT_PRIORITY_LEVEL1);
      82     PLIB_INT_VectorSubPrioritySet(INT_ID_0, INT_VECTOR_UART2_RX, INT_SUBPRIORITY_LEVEL0);
      83  
      84     /* Initialize Fault interrupt */
      85     PLIB_INT_SourceEnable(INT_ID_0, INT_SOURCE_USART_2_ERROR);
      86     PLIB_INT_VectorPrioritySet(INT_ID_0, INT_VECTOR_UART2_FAULT, INT_PRIORITY_LEVEL1);
      87     PLIB_INT_VectorSubPrioritySet(INT_ID_0, INT_VECTOR_UART2_FAULT, INT_SUBPRIORITY_LEVEL0);
71   = 88  
72     PLIB_USART_Enable(USART_ID_2);   89     PLIB_USART_Enable(USART_ID_2);
73 }   90 }
74     91  
75     92  
76     93  

   
File: firmware\led_facade_pic32\led_facade_pic32\firmware\src\system_config\matrix_32x8\system_config.h  
84 #define SYS_CLK_BUS_PERIPHERAL_5            100000000ul = 84 #define SYS_CLK_BUS_PERIPHERAL_5            100000000ul
85 #define SYS_CLK_BUS_PERIPHERAL_7            200000000ul   85 #define SYS_CLK_BUS_PERIPHERAL_7            200000000ul
86 #define SYS_CLK_BUS_REFERENCE_1             10000000ul   86 #define SYS_CLK_BUS_REFERENCE_1             10000000ul
87 #define SYS_CLK_CONFIG_PRIMARY_XTAL         24000000ul   87 #define SYS_CLK_CONFIG_PRIMARY_XTAL         24000000ul
88 #define SYS_CLK_CONFIG_SECONDARY_XTAL       0ul   88 #define SYS_CLK_CONFIG_SECONDARY_XTAL       0ul
89      89   
    -+ 90 /*** Interrupt System Service Configuration ***/
      91  
      92 #define SYS_INT                     true
      93  
      94  
90 /*** Ports System Service Configuration ***/ = 95 /*** Ports System Service Configuration ***/
91     96  
92     97  
93 #define SYS_PORT_B_ANSEL        0xbffb   98 #define SYS_PORT_B_ANSEL        0xbffb
94 #define SYS_PORT_B_TRIS         0xffff   99 #define SYS_PORT_B_TRIS         0xffff
95 #define SYS_PORT_B_ODC          0x0   100 #define SYS_PORT_B_ODC          0x0

   
File: firmware\led_facade_pic32\led_facade_pic32\firmware\src\system_config\matrix_32x8\system_definitions.h  
50 #include <stddef.h> = 50 #include <stddef.h>
51 #include "system/common/sys_common.h"   51 #include "system/common/sys_common.h"
52 #include "system/common/sys_module.h"   52 #include "system/common/sys_module.h"
53 #include "system/clk/sys_clk.h"   53 #include "system/clk/sys_clk.h"
54 #include "framework/system/clk/sys_clk_static.h"   54 #include "framework/system/clk/sys_clk_static.h"
55 #include "system/devcon/sys_devcon.h"   55 #include "system/devcon/sys_devcon.h"
    -+ 56 #include "system/int/sys_int.h"
56 #include "framework/driver/usart/drv_usart_static.h" = 57 #include "framework/driver/usart/drv_usart_static.h"
57 #include "peripheral/usart/plib_usart.h"   58 #include "peripheral/usart/plib_usart.h"
    -+ 59 #include "peripheral/int/plib_int.h"
58 #include "system/ports/sys_ports.h" = 60 #include "system/ports/sys_ports.h"
59 #include "framework/driver/spi/drv_spi_static.h"   61 #include "framework/driver/spi/drv_spi_static.h"
60     62  
61     63  
62 // *****************************************************************************   64 // *****************************************************************************
63 // *****************************************************************************   65 // *****************************************************************************

   
File: firmware\led_facade_pic32\led_facade_pic32\firmware\src\system_config\matrix_32x8\system_init.c  
201     SYS_CLK_Initialize( NULL ); = 201     SYS_CLK_Initialize( NULL );
202     sysObj.sysDevcon = SYS_DEVCON_Initialize(SYS_DEVCON_INDEX_0, (SYS_MODULE_INIT*)&sysDevconInit);   202     sysObj.sysDevcon = SYS_DEVCON_Initialize(SYS_DEVCON_INDEX_0, (SYS_MODULE_INIT*)&sysDevconInit);
203     SYS_DEVCON_PerformanceConfig(SYS_CLK_SystemFrequencyGet());   203     SYS_DEVCON_PerformanceConfig(SYS_CLK_SystemFrequencyGet());
204     SYS_PORTS_Initialize();   204     SYS_PORTS_Initialize();
205     205  
206     /* System Services Initialization */      206     /* System Services Initialization */   
    -+ 207     SYS_INT_Initialize(); 
207   = 208  
208     /* Initialize Drivers */   209     /* Initialize Drivers */
209     DRV_USART0_Initialize();   210     DRV_USART0_Initialize();
210     DRV_SPI0_Initialize();   211     DRV_SPI0_Initialize();
211     DRV_SPI1_Initialize();   212     DRV_SPI1_Initialize();
212     DRV_SPI2_Initialize();   213     DRV_SPI2_Initialize();
 
215   = 216  
216     /* Initialize System Services */   217     /* Initialize System Services */
217     218  
218     219  
219     /* Initialize Middleware */   220     /* Initialize Middleware */
220     221  
    -+ 222     /* Enable Global Interrupts */
      223     SYS_INT_Enable();
      224  
      225  
221     /* Initialize the Application */ = 226     /* Initialize the Application */
222     APP_Initialize();   227     APP_Initialize();
223     228  
224 }   229 }
225     230  
226 /*******************************************************************************   231 /*******************************************************************************
227 End of File   232 End of File
228 */   233 */
229     234  

   
File: firmware\led_facade_pic32\led_facade_pic32\firmware\src\system_config\matrix_32x8\system_interrupt.c  
67   = 67  
68 // *****************************************************************************   68 // *****************************************************************************
69 // *****************************************************************************   69 // *****************************************************************************
70 // Section: System Interrupt Vector Functions   70 // Section: System Interrupt Vector Functions
71 // *****************************************************************************   71 // *****************************************************************************
72 // *****************************************************************************   72 // *****************************************************************************
    -+ 73
      74 void __ISR(_UART2_TX_VECTOR, ipl1) _IntHandlerDrvUsartTransmitInstance0(void)
      75 {
      76  
      77     /* TODO: Add code to process interrupt here */
      78  
      79     /* Clear pending interrupt */
      80     PLIB_INT_SourceFlagClear(INT_ID_0, INT_SOURCE_USART_2_TRANSMIT);
      81 }
      82 void __ISR(_UART2_RX_VECTOR, ipl1) _IntHandlerDrvUsartReceiveInstance0(void)
      83 {
      84  
      85     /* TODO: Add code to process interrupt here */
      86  
      87     /* Clear pending interrupt */
      88     PLIB_INT_SourceFlagClear(INT_ID_0, INT_SOURCE_USART_2_RECEIVE);
      89 }
      90 void __ISR(_UART2_FAULT_VECTOR, ipl1) _IntHandlerDrvUsartErrorInstance0(void)
      91 {
      92  
      93     /* TODO: Add code to process interrupt here */
      94  
      95     /* Clear pending interrupt */
      96     PLIB_INT_SourceFlagClear(INT_ID_0, INT_SOURCE_USART_2_ERROR);
      97 }
      98
      99
      100  
      101
      102
      103  
      104
      105  
      106
      107
73         = 108        
74 /*******************************************************************************   109 /*******************************************************************************
75 End of File   110 End of File
76 */   111 */
77     112