added DI unit
This commit is contained in:
@@ -45,13 +45,20 @@
|
||||
|
||||
// -------- Platform specific includes and defines ---------
|
||||
|
||||
/// Feature flags:
|
||||
// PLAT_FLASHBANKS - has the Banks field on the Flash config struct
|
||||
// PLAT_NO_FLOATING_INPUTS - can't have digital inputs with no pull resistor
|
||||
// PLAT_USB_PHYCLOCK - requires special config of phy clock for USB
|
||||
// PLAT_USB_OTGFS - uses the USB OTG IP, needs different config code
|
||||
|
||||
#if defined(GEX_PLAT_F103_BLUEPILL)
|
||||
|
||||
// platform name for the version string
|
||||
#define GEX_PLATFORM "STM32F103-Bluepill"
|
||||
|
||||
// This platform has the Banks field on the Flash config struct for settings save
|
||||
// feature flags
|
||||
#define PLAT_FLASHBANKS 1
|
||||
#define PLAT_NO_FLOATING_INPUTS 1
|
||||
|
||||
#include <stm32f1xx.h>
|
||||
#include <stm32f1xx_hal.h>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include "units/pin/unit_pin.h"
|
||||
#include "units/digital_out/unit_dout.h"
|
||||
#include "units/digital_in/unit_din.h"
|
||||
#include "units/neopixel/unit_neopixel.h"
|
||||
#include "units/test/unit_test.h"
|
||||
|
||||
@@ -24,6 +25,7 @@ void plat_init_resources(void)
|
||||
// --- Common unit drivers ---
|
||||
ureg_add_type(&UNIT_PIN);
|
||||
ureg_add_type(&UNIT_DOUT);
|
||||
ureg_add_type(&UNIT_DIN);
|
||||
|
||||
#if HAVE_TEST_UNIT
|
||||
ureg_add_type(&UNIT_TEST);
|
||||
|
||||
Reference in New Issue
Block a user