The unified diff between revisions [9f05a1eb..] and [4f22e7ef..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'main.c'
# # old_revision [9f05a1eb606ea1c0421aa4a0b25b83b4fe4a20c8] # new_revision [4f22e7ef7d3064e3b51a5b868a4722f3f13c747b] # # patch "main.c" # from [cffbf353c53aca29609c39daadeb325f98328bd5] # to [dca584ff21fb033c2abff13cfb14db9c8c2c93c2] # ============================================================ --- main.c cffbf353c53aca29609c39daadeb325f98328bd5 +++ main.c dca584ff21fb033c2abff13cfb14db9c8c2c93c2 @@ -22,12 +22,16 @@ void init_pins(void) void init_pins(void) { - PINSEL0 = 0x00a88055; /* P0.0 and P0.1 assigned to UART */ + PINSEL0 = 0x2a09a255; /* P0.0 and P0.1 assigned to UART */ /* P0.2 and P0.3 assigned to I2C */ + /* P0.4 and P0.6 assigned to CAP0.[12] */ /* P0.7 and P0.9 assigned to MAT2.[02] */ - /* P0.10 and P0.11 assigned to CAP1.[01] */ - PINSEL1 = 0x20000828; /* P0.21 and P0.30 assigned to MAT3.[03] */ - /* P0.17 and P0.18 assigned to CAP1.[23] */ + /* P0.8 assigned to UART1 */ + /* P0.12 and P0.13 assigned to MAT1.[01] */ + /* P0.14 assigned to SPI1 */ + + PINSEL1 = 0x00000540; /* P0.19 to P0.21 assigned to SPI1 */ + SCS = 1; FP0XDIR = 0x04000000; /* P0.26 is an output */ FP0XVAL = 0x0;