forked from Determinant/bluepill-usbhid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.rs
37 lines (36 loc) · 1.09 KB
/
build.rs
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
extern crate gcc;
fn main() {
gcc::Config::new()
.target("arm-none-eabi")
.compiler("arm-none-eabi-gcc")
.pic(false)
.flag("-DSTM32F103xB")
.flag("-DUSE_HAL_DRIVER")
.flag("-mcpu=cortex-m3")
.flag("-mthumb")
.flag("-Wall")
.flag("-fdata-sections")
.flag("-ffunction-sections")
.flag("-Wa,-a,-ad")
.flag("-g")
.file("c/main.c")
.file("c/stm32f1xx_hal.c")
.file("c/stm32f1xx_hal_cortex.c")
.file("c/stm32f1xx_hal_gpio.c")
.file("c/stm32f1xx_hal_pcd.c")
.file("c/stm32f1xx_hal_pcd_ex.c")
.file("c/stm32f1xx_hal_rcc.c")
.file("c/stm32f1xx_hal_rcc_ex.c")
.file("c/stm32f1xx_it.c")
.file("c/stm32f1xx_ll_usb.c")
.file("c/system_stm32f1xx.c")
.file("c/usbd_conf.c")
.file("c/usbd_core.c")
.file("c/usbd_ctlreq.c")
.file("c/usbd_customhid.c")
.file("c/usbd_custom_hid_if.c")
.file("c/usbd_desc.c")
.file("c/usb_device.c")
.file("c/usbd_ioreq.c")
.compile("usbcdc");
}