From 9730e393483c3f83e36e9444b3f7b321223f34cf Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 10 Feb 2023 08:48:33 -0600 Subject: [PATCH] support files. --- boards/fujinet-cx16.json | 47 +++++++++++++++++++++++++++++ data/webui/config/fujinet-cx16.yaml | 18 +++++++++++ include/pinmap.h | 1 + include/pinmap/cx16.h | 47 +++++++++++++++++++++++++++++ include/version.h | 6 ++-- 5 files changed, 116 insertions(+), 3 deletions(-) create mode 100644 boards/fujinet-cx16.json create mode 100644 data/webui/config/fujinet-cx16.yaml create mode 100644 include/pinmap/cx16.h diff --git a/boards/fujinet-cx16.json b/boards/fujinet-cx16.json new file mode 100644 index 000000000..74cb30b49 --- /dev/null +++ b/boards/fujinet-cx16.json @@ -0,0 +1,47 @@ +{ + "build": { + "arduino":{ + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": "-DARDUINO_ESP32_DEV", + "f_cpu": "240000000L", + "f_flash": "40000000L", + "flash_mode": "dio", + "mcu": "esp32", + "variant": "esp32", + "partitions": "fujinet_partitions_8MB.csv" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "default_tool": "ftdi", + "onboard_tools": [ + "ftdi" + ], + "openocd_board": "esp-wrover.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "#FujiNet CX16", + "upload": { + "flash_size": "8MB", + "maximum_ram_size": 327680, + "maximum_size": 8388608, + "protocols": [ + "esptool", + "espota", + "ftdi" + ], + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://github.com/FujiNetWIFI/fujinet-platformio", + "vendor": "FujiNet Project" +} diff --git a/data/webui/config/fujinet-cx16.yaml b/data/webui/config/fujinet-cx16.yaml new file mode 100644 index 000000000..390284bb6 --- /dev/null +++ b/data/webui/config/fujinet-cx16.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 6506c7588..c5dc40317 100644 --- a/include/pinmap.h +++ b/include/pinmap.h @@ -10,5 +10,6 @@ #include "pinmap/esp32s3.h" #include "pinmap/lynx.h" #include "pinmap/rs232_rev0.h" +#include "pinmap/cx16.h" #endif /* PINMAP_H */ diff --git a/include/pinmap/cx16.h b/include/pinmap/cx16.h new file mode 100644 index 000000000..353ed1255 --- /dev/null +++ b/include/pinmap/cx16.h @@ -0,0 +1,47 @@ +/* FujiNet Hardware Pin Mapping */ +#ifdef PINMAP_CX16 + +/* SD Card */ +#define PIN_CARD_DETECT 12 // fnSystem.h +#define PIN_CARD_DETECT_FIX 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 */ +#define PIN_UART0_RX 3 // fnUART.cpp +#define PIN_UART0_TX 1 +#define PIN_UART1_RX 9 +#define PIN_UART1_TX 10 +#define PIN_UART2_RX 33 +#define PIN_UART2_TX 21 + +/* Buttons */ +#define PIN_BUTTON_A 0 // keys.cpp +#define PIN_BUTTON_B 34 +#define PIN_BUTTON_C 14 + +/* LEDs */ +#define PIN_LED_WIFI 2 // led.cpp +#define PIN_LED_BUS 4 +// pins 12-15 are used to interface with the JTAG debugger +// so leave them alone if we're using JTAG +#if !defined(JTAG) +#define PIN_LED_BT 13 +#else +#define PIN_LED_BT 4 +#endif + +/* Atari SIO Pins */ +#define PIN_INT 26 // sio.h +#define PIN_PROC 22 +#define PIN_CKO 32 +#define PIN_CKI 27 +#define PIN_MTR 36 +#define PIN_CMD 39 + +/* Audio Output */ +#define PIN_DAC1 25 // samlib.h + +#endif /* PINMAP_ATARIV1 */ diff --git a/include/version.h b/include/version.h index 62eece2a3..a7bf33195 100644 --- a/include/version.h +++ b/include/version.h @@ -10,8 +10,8 @@ #define FN_VERSION_MAJOR 0 #define FN_VERSION_MINOR 5 -#define FN_VERSION_BUILD "e0b91511" +#define FN_VERSION_BUILD "e25b7760" -#define FN_VERSION_DATE "2023-02-06 03:13:55" +#define FN_VERSION_DATE "2023-02-10 03:16:21" -#define FN_VERSION_FULL "0.5.e0b91511" +#define FN_VERSION_FULL "0.5.e25b7760"