blob: 69cc237d629010909b2c04f52ea487e27fd27f1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* STM32L Discovery board configuration */
#ifndef __BOARD_H
#define __BOARD_H
/* 16 MHz SYSCLK clock frequency */
#define CPU_CLOCK 16000000
/* Use USART3 as console serial port */
#define CONFIG_CONSOLE_UART 1
#define USB_CHARGE_PORT_COUNT 0
/* Host connects to keyboard controller module via I2C */
#define HOST_KB_BUS_I2C
/* GPIO signal list */
enum gpio_signal {
/* Inputs with interrupt handlers are first for efficiency */
GPIO_USER_BUTTON = 0, /* Blue user button */
/* Other inputs */
/* Outputs */
GPIO_BLUE_LED, /* Blue debug LED */
GPIO_GREEN_LED, /* Green debug LED */
/* Number of GPIOs; not an actual GPIO */
GPIO_COUNT
};
void configure_board(void);
#endif /* __BOARD_H */
|