Loading...
Searching...
No Matches
board.h File Reference

Basic definitions for the MCB2388 board. More...

Detailed Description

Basic definitions for the MCB2388 board.

Author
Benjamin Valentin benpi.nosp@m.cco@.nosp@m.beuth.nosp@m.-hoc.nosp@m.hschu.nosp@m.le.d.nosp@m.e

Definition in file board.h.

#include "lpc23xx.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

LED pin definitions and handlers

#define LED0_PIN   GPIO_PIN(2, 0)
 
#define LED1_PIN   GPIO_PIN(2, 1)
 
#define LED2_PIN   GPIO_PIN(2, 2)
 
#define LED3_PIN   GPIO_PIN(2, 3)
 
#define LED4_PIN   GPIO_PIN(2, 4)
 
#define LED5_PIN   GPIO_PIN(2, 5)
 
#define LED6_PIN   GPIO_PIN(2, 6)
 
#define LED7_PIN   GPIO_PIN(2, 7)
 
#define LED0_MASK   (BIT0)
 
#define LED1_MASK   (BIT1)
 
#define LED2_MASK   (BIT2)
 
#define LED3_MASK   (BIT3)
 
#define LED4_MASK   (BIT4)
 
#define LED5_MASK   (BIT5)
 
#define LED6_MASK   (BIT6)
 
#define LED7_MASK   (BIT7)
 
#define LED0_ON   (FIO2SET = LED0_MASK)
 
#define LED0_OFF   (FIO2CLR = LED0_MASK)
 
#define LED0_TOGGLE   (FIO2PIN ^= LED0_MASK)
 
#define LED1_ON   (FIO2SET = LED1_MASK)
 
#define LED1_OFF   (FIO2CLR = LED1_MASK)
 
#define LED1_TOGGLE   (FIO2PIN ^= LED1_MASK)
 
#define LED2_ON   (FIO2SET = LED2_MASK)
 
#define LED2_OFF   (FIO2CLR = LED2_MASK)
 
#define LED2_TOGGLE   (FIO2PIN ^= LED2_MASK)
 
#define LED3_ON   (FIO2SET = LED3_MASK)
 
#define LED3_OFF   (FIO2CLR = LED3_MASK)
 
#define LED3_TOGGLE   (FIO2PIN ^= LED3_MASK)
 
#define LED4_ON   (FIO2SET = LED4_MASK)
 
#define LED4_OFF   (FIO2CLR = LED4_MASK)
 
#define LED4_TOGGLE   (FIO2PIN ^= LED4_MASK)
 
#define LED5_ON   (FIO2SET = LED5_MASK)
 
#define LED5_OFF   (FIO2CLR = LED5_MASK)
 
#define LED5_TOGGLE   (FIO2PIN ^= LED5_MASK)
 
#define LED6_ON   (FIO2SET = LED6_MASK)
 
#define LED6_OFF   (FIO2CLR = LED6_MASK)
 
#define LED6_TOGGLE   (FIO2PIN ^= LED6_MASK)
 
#define LED7_ON   (FIO2SET = LED7_MASK)
 
#define LED7_OFF   (FIO2CLR = LED7_MASK)
 
#define LED7_TOGGLE   (FIO2PIN ^= LED7_MASK)
 

INT0 (Button) pin definitions

#define BTN0_PIN   GPIO_PIN(2, 10)
 
#define BTN0_MODE   GPIO_IN
 
#define BTN0_INT_FLANK   GPIO_FALLING
 

Configuration for the 16x2 character LCD display

#define HD44780_PARAM_COLS   (16U)
 
#define HD44780_PARAM_ROWS   (2U)
 
#define HD44780_PARAM_PIN_RS   GPIO_PIN(1, 28)
 
#define HD44780_PARAM_PIN_RW   GPIO_PIN(1, 29)
 
#define HD44780_PARAM_PIN_ENABLE   GPIO_PIN(1, 31)
 
#define HD44780_PARAM_PINS_DATA
 

Macro Definition Documentation

◆ BTN0_INT_FLANK

#define BTN0_INT_FLANK   GPIO_FALLING

Definition at line 89 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN

Definition at line 88 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(2, 10)

Definition at line 87 of file board.h.

◆ HD44780_PARAM_COLS

#define HD44780_PARAM_COLS   (16U)

Definition at line 96 of file board.h.

◆ HD44780_PARAM_PIN_ENABLE

#define HD44780_PARAM_PIN_ENABLE   GPIO_PIN(1, 31)

Definition at line 100 of file board.h.

◆ HD44780_PARAM_PIN_RS

#define HD44780_PARAM_PIN_RS   GPIO_PIN(1, 28)

Definition at line 98 of file board.h.

◆ HD44780_PARAM_PIN_RW

#define HD44780_PARAM_PIN_RW   GPIO_PIN(1, 29)

Definition at line 99 of file board.h.

◆ HD44780_PARAM_PINS_DATA

#define HD44780_PARAM_PINS_DATA
Value:
{ GPIO_PIN(1, 24), GPIO_PIN(1, 25), \
GPIO_PIN(1, 26), GPIO_PIN(1, 27), \
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
#define GPIO_UNDEF
Definition of a fitting UNDEF value.

Definition at line 101 of file board.h.

◆ HD44780_PARAM_ROWS

#define HD44780_PARAM_ROWS   (2U)

Definition at line 97 of file board.h.

◆ LED0_MASK

#define LED0_MASK   (BIT0)

Definition at line 41 of file board.h.

◆ LED0_OFF

#define LED0_OFF   (FIO2CLR = LED0_MASK)

Definition at line 51 of file board.h.

◆ LED0_ON

#define LED0_ON   (FIO2SET = LED0_MASK)

Definition at line 50 of file board.h.

◆ LED0_PIN

#define LED0_PIN   GPIO_PIN(2, 0)

Definition at line 32 of file board.h.

◆ LED0_TOGGLE

#define LED0_TOGGLE   (FIO2PIN ^= LED0_MASK)

Definition at line 52 of file board.h.

◆ LED1_MASK

#define LED1_MASK   (BIT1)

Definition at line 42 of file board.h.

◆ LED1_OFF

#define LED1_OFF   (FIO2CLR = LED1_MASK)

Definition at line 55 of file board.h.

◆ LED1_ON

#define LED1_ON   (FIO2SET = LED1_MASK)

Definition at line 54 of file board.h.

◆ LED1_PIN

#define LED1_PIN   GPIO_PIN(2, 1)

Definition at line 33 of file board.h.

◆ LED1_TOGGLE

#define LED1_TOGGLE   (FIO2PIN ^= LED1_MASK)

Definition at line 56 of file board.h.

◆ LED2_MASK

#define LED2_MASK   (BIT2)

Definition at line 43 of file board.h.

◆ LED2_OFF

#define LED2_OFF   (FIO2CLR = LED2_MASK)

Definition at line 59 of file board.h.

◆ LED2_ON

#define LED2_ON   (FIO2SET = LED2_MASK)

Definition at line 58 of file board.h.

◆ LED2_PIN

#define LED2_PIN   GPIO_PIN(2, 2)

Definition at line 34 of file board.h.

◆ LED2_TOGGLE

#define LED2_TOGGLE   (FIO2PIN ^= LED2_MASK)

Definition at line 60 of file board.h.

◆ LED3_MASK

#define LED3_MASK   (BIT3)

Definition at line 44 of file board.h.

◆ LED3_OFF

#define LED3_OFF   (FIO2CLR = LED3_MASK)

Definition at line 63 of file board.h.

◆ LED3_ON

#define LED3_ON   (FIO2SET = LED3_MASK)

Definition at line 62 of file board.h.

◆ LED3_PIN

#define LED3_PIN   GPIO_PIN(2, 3)

Definition at line 35 of file board.h.

◆ LED3_TOGGLE

#define LED3_TOGGLE   (FIO2PIN ^= LED3_MASK)

Definition at line 64 of file board.h.

◆ LED4_MASK

#define LED4_MASK   (BIT4)

Definition at line 45 of file board.h.

◆ LED4_OFF

#define LED4_OFF   (FIO2CLR = LED4_MASK)

Definition at line 67 of file board.h.

◆ LED4_ON

#define LED4_ON   (FIO2SET = LED4_MASK)

Definition at line 66 of file board.h.

◆ LED4_PIN

#define LED4_PIN   GPIO_PIN(2, 4)

Definition at line 36 of file board.h.

◆ LED4_TOGGLE

#define LED4_TOGGLE   (FIO2PIN ^= LED4_MASK)

Definition at line 68 of file board.h.

◆ LED5_MASK

#define LED5_MASK   (BIT5)

Definition at line 46 of file board.h.

◆ LED5_OFF

#define LED5_OFF   (FIO2CLR = LED5_MASK)

Definition at line 71 of file board.h.

◆ LED5_ON

#define LED5_ON   (FIO2SET = LED5_MASK)

Definition at line 70 of file board.h.

◆ LED5_PIN

#define LED5_PIN   GPIO_PIN(2, 5)

Definition at line 37 of file board.h.

◆ LED5_TOGGLE

#define LED5_TOGGLE   (FIO2PIN ^= LED5_MASK)

Definition at line 72 of file board.h.

◆ LED6_MASK

#define LED6_MASK   (BIT6)

Definition at line 47 of file board.h.

◆ LED6_OFF

#define LED6_OFF   (FIO2CLR = LED6_MASK)

Definition at line 75 of file board.h.

◆ LED6_ON

#define LED6_ON   (FIO2SET = LED6_MASK)

Definition at line 74 of file board.h.

◆ LED6_PIN

#define LED6_PIN   GPIO_PIN(2, 6)

Definition at line 38 of file board.h.

◆ LED6_TOGGLE

#define LED6_TOGGLE   (FIO2PIN ^= LED6_MASK)

Definition at line 76 of file board.h.

◆ LED7_MASK

#define LED7_MASK   (BIT7)

Definition at line 48 of file board.h.

◆ LED7_OFF

#define LED7_OFF   (FIO2CLR = LED7_MASK)

Definition at line 79 of file board.h.

◆ LED7_ON

#define LED7_ON   (FIO2SET = LED7_MASK)

Definition at line 78 of file board.h.

◆ LED7_PIN

#define LED7_PIN   GPIO_PIN(2, 7)

Definition at line 39 of file board.h.

◆ LED7_TOGGLE

#define LED7_TOGGLE   (FIO2PIN ^= LED7_MASK)

Definition at line 80 of file board.h.