Firmware changes to match rewired control board.
This is a bit more difficult than just reassigning pins as the usage of the timers has changed to the point of using 16 bit timers where 32 bit timers would have been ideal. This makes the use of the prescaler necessary, and we need to cope with a different prescaler value being used on different timers.
This commit is contained in:
12
main.c
12
main.c
@@ -22,12 +22,16 @@
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user