opencm904/include/board.h

Board specific definitions for the OpenCM9.04 board.

XTIMER_WIDTH
1
(16)
XTIMER_BACKOFF
1
5
LED0_PIN
1
GPIO_PIN(PORT_B, 9)
LED_PORT
1
GPIOB
LED0_MASK
1
(1 << 9)
LED0_ON
1
(LED_PORT->BRR = LED0_MASK)
LED0_OFF
1
(LED_PORT->BSRR  = LED0_MASK)
LED0_TOGGLE
1
(LED_PORT->ODR ^= LED0_MASK)
BTN0_PIN
1
GPIO_PIN(PORT_C, 15)
BTN0_MODE
1
GPIO_IN
STDIO_UART_BAUDRATE
1
(921600UL)
DXL_DIR_PIN

Pin used to switch RX and TX mode for the Dynamixel TTL bus.

1
GPIO_PIN(PORT_B, 5)

set = TX mode clear = RX mode

STDIO_UART_DEV

Use the USART2 for STDIO on this board.

1
UART_DEV(0)
void board_init(void)

Initialize board specific hardware, including clock, LEDs and std-IO.