diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/arduino-led/CMakeLists.txt | 1 | ||||
-rw-r--r-- | examples/arduino-led/schematic.h | 14 | ||||
-rw-r--r-- | examples/intel-quark-d2000/schematic.h | 51 | ||||
-rw-r--r-- | examples/intel-quark-d2000/schematic/intel-quark-d2000.sch | 8 |
4 files changed, 4 insertions, 70 deletions
diff --git a/examples/arduino-led/CMakeLists.txt b/examples/arduino-led/CMakeLists.txt index a615fb7..7855dff 100644 --- a/examples/arduino-led/CMakeLists.txt +++ b/examples/arduino-led/CMakeLists.txt @@ -4,6 +4,7 @@ kicad_generate_header( OUTPUT schematic.h NET schematic/arduino-led.net REF U1 + TEMPLATE arduino-uno IN_SOURCE) if (FALSE) diff --git a/examples/arduino-led/schematic.h b/examples/arduino-led/schematic.h deleted file mode 100644 index c935528..0000000 --- a/examples/arduino-led/schematic.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef SCHEMATIC_H -#define SCHEMATIC_H - -/* -THIS FILE IS GENERATED. DO NOT EDIT. - -Generated from schematic for reference U1, part ARDUINO_UNO in library kicad_utils. -*/ - -namespace schematic { -static const int STATUS_LED = 3; -static const int ANALOG_LIGHT_1 = 2; -} // namespace schematic -#endif // SCHEMATIC_H diff --git a/examples/intel-quark-d2000/schematic.h b/examples/intel-quark-d2000/schematic.h deleted file mode 100644 index 8bc46ae..0000000 --- a/examples/intel-quark-d2000/schematic.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef SCHEMATIC_H -#define SCHEMATIC_H - -/* -THIS FILE IS GENERATED. DO NOT EDIT. - -Generated from schematic for reference U1, part INTEL_QUARK_D2000 in library kicad_utils. -*/ - -#include <stddef.h> -#include <qm_gpio.h> - -enum schematic_direction { - schematic_direction_out = 1, - schematic_direction_in = 2 -}; -static const uint8_t SCHEMATIC_STATUS_LED = 15; - -static inline -qm_rc_t schematic_PUSH_BUTTON_direction(enum schematic_direction dir) { - qm_gpio_port_config_t cfg; - - qm_gpio_get_config(QM_GPIO_0, &cfg); - - if (dir == schematic_direction_out) { - cfg.direction |= BIT(SCHEMATIC_PUSH_BUTTON); - } else { - cfg.direction &= ~BIT(SCHEMATIC_PUSH_BUTTON); - } - - return qm_gpio_set_config(QM_GPIO_0, &cfg); -} - -static const uint8_t SCHEMATIC_PUSH_BUTTON = 11; - -static inline -qm_rc_t schematic_PUSH_BUTTON_direction(enum schematic_direction dir) { - qm_gpio_port_config_t cfg; - - qm_gpio_get_config(QM_GPIO_0, &cfg); - - if (dir == schematic_direction_out) { - cfg.direction |= BIT(SCHEMATIC_PUSH_BUTTON); - } else { - cfg.direction &= ~BIT(SCHEMATIC_PUSH_BUTTON); - } - - return qm_gpio_set_config(QM_GPIO_0, &cfg); -} - -#endif // SCHEMATIC_H diff --git a/examples/intel-quark-d2000/schematic/intel-quark-d2000.sch b/examples/intel-quark-d2000/schematic/intel-quark-d2000.sch index b9fd1bd..a30ecb8 100644 --- a/examples/intel-quark-d2000/schematic/intel-quark-d2000.sch +++ b/examples/intel-quark-d2000/schematic/intel-quark-d2000.sch @@ -66,10 +66,10 @@ F 3 "" H 2250 2900 50 0000 C CNN 1 0 0 -1 $EndComp $Comp -L GND #PWR1 +L GND #PWR01 U 1 1 579883CB P 1750 4250 -F 0 "#PWR1" H 1750 4000 50 0001 C CNN +F 0 "#PWR01" H 1750 4000 50 0001 C CNN F 1 "GND" H 1750 4100 50 0000 C CNN F 2 "" H 1750 4250 50 0000 C CNN F 3 "" H 1750 4250 50 0000 C CNN @@ -101,9 +101,7 @@ $EndComp Wire Wire Line 2550 2900 3700 2900 Wire Wire Line - 1750 4250 1750 3300 -Wire Wire Line - 1750 3300 1750 2900 + 1750 2900 1750 4250 Wire Wire Line 1750 2900 1950 2900 Wire Wire Line |