-
Notifications
You must be signed in to change notification settings - Fork 0
/
mos.yml
48 lines (40 loc) · 1.26 KB
/
mos.yml
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
38
39
40
41
42
43
44
45
46
47
48
author: mongoose-os
description: Implements SPI API on Mongoose OS
type: lib
version: 1.0
platforms: [ cc3200, cc3220, esp32, esp8266, stm32 ]
sources:
- src
includes:
- include
build_vars:
# Default implementation is a bit-banging one, using GPIO. It's slow but
# should work on all platforms. Platforms that have hardware implementations
# will override it in their arch-specific configs.
MGOS_ENABLE_SPI_GPIO: 1
config_schema:
- ["spi", "o", {title: "SPI settings"}]
- ["spi.enable", "b", false, {title: "Enable SPI"}]
- ["spi.debug", "b", false, {title: "Debug SPI bus activity"}]
conds:
- when: build_vars.MGOS_ENABLE_SPI_GPIO == "1"
apply:
sources:
- src/common_gpio
config_schema:
- ["spi.miso_gpio", "i", -1, {title: "GPIO to use for MISO"}]
- ["spi.mosi_gpio", "i", -1, {title: "GPIO to use for MOSI"}]
- ["spi.sclk_gpio", "i", -1, {title: "GPIO to use for SCLK"}]
- ["spi.cs0_gpio", "i", -1, {title: "GPIO to use for CS0"}]
- ["spi.cs1_gpio", "i", -1, {title: "GPIO to use for CS1"}]
- ["spi.cs2_gpio", "i", -1, {title: "GPIO to use for CS2"}]
tags:
- c
- js
- spi
- core
- docs:core:SPI
manifest_version: 2018-06-20
no_implicit_init_deps: true
init_after:
- core