From 9b33f60a2cd2f2d255acf2415639ae3ba8342dce Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 20 Nov 2023 19:49:36 -0600 Subject: [PATCH] [coco] add devkitc board type --- data/webui/config/fujinet-coco-devkitc.yaml | 18 ++++++++++ include/pinmap.h | 1 + include/pinmap/coco_devkitc.h | 38 +++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 data/webui/config/fujinet-coco-devkitc.yaml create mode 100644 include/pinmap/coco_devkitc.h diff --git a/data/webui/config/fujinet-coco-devkitc.yaml b/data/webui/config/fujinet-coco-devkitc.yaml new file mode 100644 index 000000000..390284bb6 --- /dev/null +++ b/data/webui/config/fujinet-coco-devkitc.yaml @@ -0,0 +1,18 @@ +paths: + font_path: /file? + css_path: /file?css + js_path: /file?js +components: + network: true + hardware: true + hosts_list: true + mount_list: true + printer_settings: true + modem_settings: true + hsio_settings: true + timezone: true + udp_stream: true + program_recorder: true + disk_swap: true + boot_settings: true + apetime: false diff --git a/include/pinmap.h b/include/pinmap.h index d6912c0a3..4e4ab9233 100644 --- a/include/pinmap.h +++ b/include/pinmap.h @@ -9,6 +9,7 @@ #include "pinmap/adamv1.h" #include "pinmap/iec.h" #include "pinmap/iec-d32pro.h" +#include "pinmap/coco_devkitc.h" #include "pinmap/iec-nugget.h" #include "pinmap/fujiloaf-rev0.h" #include "pinmap/fujiapple-iec.h" diff --git a/include/pinmap/coco_devkitc.h b/include/pinmap/coco_devkitc.h new file mode 100644 index 000000000..bae6e9ad5 --- /dev/null +++ b/include/pinmap/coco_devkitc.h @@ -0,0 +1,38 @@ +/* FujiNet Hardware Pin Mapping */ +#ifdef PINMAP_COCO_DEVKITC + +/* SD Card - fnFsSD.cpp */ +#define PIN_CARD_DETECT GPIO_NUM_12 // fnSystem.h +#define PIN_CARD_DETECT_FIX GPIO_NUM_15 // fnSystem.h +#define PIN_SD_HOST_CS GPIO_NUM_5 // fnFsSD.cpp +#define PIN_SD_HOST_MISO GPIO_NUM_19 +#define PIN_SD_HOST_MOSI GPIO_NUM_23 +#define PIN_SD_HOST_SCK GPIO_NUM_18 + +/* UART - fnuart.cpp */ +#define PIN_UART0_RX GPIO_NUM_3 // USB Serial +#define PIN_UART0_TX GPIO_NUM_1 // USB Serial +#define PIN_UART1_RX GPIO_NUM_13 // RS232 +#define PIN_UART1_TX GPIO_NUM_21 // RS232 +#define PIN_UART2_RX GPIO_NUM_33 +#define PIN_UART2_TX GPIO_NUM_21 + +/* Buttons - keys.cpp */ +#define PIN_BUTTON_A GPIO_NUM_0 // Button 0 on DEVKITC-VE +#define PIN_BUTTON_B GPIO_NUM_NC // No Button B +#define PIN_BUTTON_C GPIO_NUM_39 // Safe reset + +/* LEDs - leds.cpp */ +#define PIN_LED_WIFI GPIO_NUM_14 +#define PIN_LED_BUS GPIO_NUM_12 +#define PIN_LED_BT GPIO_NUM_NC // No BT LED + +/* Audio Output - samlib.h */ +#define PIN_DAC1 GPIO_NUM_25 // not connected + +/* Coco */ +#define PIN_CASS_MOTOR GPIO_NUM_34 // Second motor pin is tied to +3V +#define PIN_CASS_DATA_IN GPIO_NUM_33 +#define PIN_CASS_DATA_OUT GPIO_NUM_26 + +#endif /* PINMAP_COCO_DEVKITC */