diff options
Diffstat (limited to 'examples/intel-quark-d2000')
-rw-r--r-- | examples/intel-quark-d2000/schematic.h | 51 | ||||
-rw-r--r-- | examples/intel-quark-d2000/schematic/intel-quark-d2000.sch | 8 |
2 files changed, 3 insertions, 56 deletions
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 |