• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15load(
16    "//pw_build:pigweed.bzl",
17    "pw_cc_binary",
18    "pw_cc_library",
19)
20
21package(default_visibility = ["//visibility:public"])
22
23licenses(["notice"])
24
25pw_cc_library(
26    name = "pre_init",
27    srcs = [
28        "boot.cc",
29        "vector_table.c",
30    ],
31    hdrs = [
32        "config/FreeRTOSConfig.h",
33        "config/stm32f4xx_hal_conf.h",
34    ],
35    deps = [
36        "//pw_boot",
37        "//pw_boot_cortex_m",
38        "//pw_malloc",
39        "//pw_preprocessor",
40        "//pw_string",
41        "//pw_sys_io_stm32cube",
42        "//third_party/freertos",
43        "//third_party/stm32cube",
44    ],
45)
46
47pw_cc_binary(
48    name = "demo",
49    srcs = [
50        "main.cc",
51    ],
52    deps = [
53        "//pw_thread:thread",
54        "//pw_thread:thread_core",
55        "//pw_thread_freertos:thread",
56        "//third_party/freertos",
57    ],
58)
59