pic32-clicker/include/board.h

board configuration for the MikroE PIC32 Clicker

see: http://www.mikroe.com/pic32/pic32mx-clicker/ For more information on the board.

TICKS_PER_US

Set how many increments of the count register per uS needed by the timer code.

1
(48)
EIC_IRQ

We are using an External Interrupt Controller (all pic32 devices use this mode)

1
(1)
LED1_PIN
1
GPIO_PIN(PORT_B, 1)
LED2_PIN
1
GPIO_PIN(PORT_B, 2)
LED1_MASK
1
(1 << 1)
LED2_MASK
1
(1 << 2)
LED1_ON
1
(LATBSET = LED1_MASK)
LED1_OFF
1
(LATBCLR = LED1_MASK)
LED1_TOGGLE
1
(LATBINV = LED1_MASK)
LED2_ON
1
(LATBSET = LED2_MASK)
LED2_OFF
1
(LATBCLR = LED2_MASK)
LED2_TOGGLE
1
(LATBINV = LED2_MASK)
void board_init(void)

Board level initialization.