Skip to content

Commit

Permalink
[coco] add devkitc board type
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Nov 21, 2023
1 parent 54dce1e commit 9b33f60
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
18 changes: 18 additions & 0 deletions data/webui/config/fujinet-coco-devkitc.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions include/pinmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
38 changes: 38 additions & 0 deletions include/pinmap/coco_devkitc.h
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 9b33f60

Please sign in to comment.