Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PMODA/B, RS-232 handshake and Arduino I/Os to the Kefir PCF #178

Merged
merged 2 commits into from
Oct 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/resources/boards/kefir/pinout.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"type": "input", "name": "BTN1", "value": "136"}, {"type": "input", "name": "BTN2", "value": "134"}, {"type": "input", "name": "BTN3", "value": "128"}, {"type": "input", "name": "BTN4", "value": "122"}, {"type": "output", "name": "LED1", "value": "137"}, {"type": "output", "name": "LED2", "value": "135"}, {"type": "output", "name": "LED3", "value": "129"}, {"type": "output", "name": "LED4", "value": "121"}, {"type": "input", "name": "CLK", "value": "49"}, {"type": "inout", "name": "SS_B", "value": "71"}, {"type": "inout", "name": "AD_CS", "value": "101"}, {"type": "inout", "name": "AD_Din", "value": "102"}, {"type": "inout", "name": "AD_Dout", "value": "104"}, {"type": "inout", "name": "AD_Clk", "value": "105"}, {"type": "inout", "name": "USB_Vp_o", "value": "112"}, {"type": "inout", "name": "USB_Vm_o", "value": "113"}, {"type": "inout", "name": "USB_Vm_i", "value": "114"}, {"type": "inout", "name": "USB_Vp_i", "value": "115"}, {"type": "inout", "name": "USB_nOE", "value": "116"}, {"type": "inout", "name": "ARDU00", "value": "138"}, {"type": "inout", "name": "ARDU01", "value": "141"}, {"type": "inout", "name": "ARDU02", "value": "143"}, {"type": "inout", "name": "ARDU03", "value": "1"}, {"type": "inout", "name": "RESET_P2", "value": "73"}, {"type": "inout", "name": "Milk_TXD", "value": "37"}, {"type": "inout", "name": "Milk_RXD", "value": "38"}]
[{"type": "input", "name": "BTN1", "value": "136"}, {"type": "input", "name": "BTN2", "value": "134"}, {"type": "input", "name": "BTN3", "value": "128"}, {"type": "input", "name": "BTN4", "value": "122"}, {"type": "output", "name": "LED1", "value": "137"}, {"type": "output", "name": "LED2", "value": "135"}, {"type": "output", "name": "LED3", "value": "129"}, {"type": "output", "name": "LED4", "value": "121"}, {"type": "input", "name": "CLK", "value": "49"}, {"type": "inout", "name": "SS_B", "value": "71"}, {"type": "inout", "name": "ISP_RESET", "value": "117"}, {"type": "inout", "name": "ISP_SCK", "value": "118"}, {"type": "inout", "name": "ISP_MOSI", "value": "119"}, {"type": "inout", "name": "ISP_MISO", "value": "120"}, {"type": "output", "name": "AD_CS", "value": "101"}, {"type": "output", "name": "AD_Din", "value": "102"}, {"type": "input", "name": "AD_Dout", "value": "104"}, {"type": "output", "name": "AD_Clk", "value": "105"}, {"type": "output", "name": "USB_Vp_o", "value": "112"}, {"type": "output", "name": "USB_Vm_o", "value": "113"}, {"type": "input", "name": "USB_Vm_i", "value": "114"}, {"type": "input", "name": "USB_Vp_i", "value": "115"}, {"type": "output", "name": "USB_nOE", "value": "116"}, {"type": "inout", "name": "ARDU00", "value": "138"}, {"type": "inout", "name": "ARDU01", "value": "141"}, {"type": "inout", "name": "ARDU02", "value": "143"}, {"type": "inout", "name": "ARDU03", "value": "1"}, {"type": "inout", "name": "ARDU04", "value": "4"}, {"type": "inout", "name": "ARDU05", "value": "8"}, {"type": "inout", "name": "ARDU06", "value": "10"}, {"type": "inout", "name": "ARDU07", "value": "12"}, {"type": "inout", "name": "ARDU08", "value": "19"}, {"type": "inout", "name": "ARDU09", "value": "21"}, {"type": "inout", "name": "ARDU10", "value": "23"}, {"type": "inout", "name": "ARDU11", "value": "25"}, {"type": "inout", "name": "ARDU12", "value": "28"}, {"type": "inout", "name": "ARDU13", "value": "31"}, {"type": "inout", "name": "ARDU26", "value": "139"}, {"type": "inout", "name": "ARDU27", "value": "142"}, {"type": "inout", "name": "ARDU28", "value": "144"}, {"type": "inout", "name": "ARDU29", "value": "2"}, {"type": "inout", "name": "ARDU30", "value": "3"}, {"type": "inout", "name": "ARDU31", "value": "7"}, {"type": "inout", "name": "ARDU32", "value": "9"}, {"type": "inout", "name": "ARDU33", "value": "11"}, {"type": "inout", "name": "ARDU34", "value": "20"}, {"type": "inout", "name": "ARDU35", "value": "22"}, {"type": "inout", "name": "ARDU36", "value": "24"}, {"type": "inout", "name": "ARDU37", "value": "26"}, {"type": "inout", "name": "ARDU38", "value": "29"}, {"type": "inout", "name": "ARDU39", "value": "32"}, {"type": "inout", "name": "ARDU40", "value": "33"}, {"type": "inout", "name": "ARDU41", "value": "34"}, {"type": "inout", "name": "RESET_P2", "value": "73"}, {"type": "inout", "name": "Milk_TXD", "value": "37"}, {"type": "inout", "name": "Milk_RXD", "value": "38"}, {"type": "inout", "name": "Milk_RTS", "value": "39"}, {"type": "inout", "name": "Milk_CTS", "value": "41"}, {"type": "inout", "name": "Milk_DTR", "value": "42"}, {"type": "inout", "name": "Milk_DSR", "value": "43"}, {"type": "inout", "name": "Milk_DCD", "value": "44"}, {"type": "inout", "name": "Milk_RI", "value": "45"}, {"type": "inout", "name": "PMA0", "value": "74"}, {"type": "inout", "name": "PMA1", "value": "75"}, {"type": "inout", "name": "PMA2", "value": "76"}, {"type": "inout", "name": "PMA3", "value": "78"}, {"type": "inout", "name": "PMA4", "value": "79"}, {"type": "inout", "name": "PMA5", "value": "80"}, {"type": "inout", "name": "PMA6", "value": "81"}, {"type": "inout", "name": "PMA7", "value": "87"}, {"type": "inout", "name": "PMB0", "value": "88"}, {"type": "inout", "name": "PMB1", "value": "90"}, {"type": "inout", "name": "PMB2", "value": "91"}, {"type": "inout", "name": "PMB3", "value": "95"}, {"type": "inout", "name": "PMB4", "value": "96"}, {"type": "inout", "name": "PMB5", "value": "97"}, {"type": "inout", "name": "PMB6", "value": "98"}, {"type": "inout", "name": "PMB7", "value": "99"}]
77 changes: 68 additions & 9 deletions app/resources/boards/kefir/pinout.pcf
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,55 @@ set_io --warn-no-port CLK 49 # input
# SPI Flash enable control
set_io --warn-no-port SS_B 71

# ISP SPI
set_io --warn-no-port ISP_RESET 117
set_io --warn-no-port ISP_SCK 118
set_io --warn-no-port ISP_MOSI 119
set_io --warn-no-port ISP_MISO 120

# MCP3008 A/D
set_io --warn-no-port AD_CS 101
set_io --warn-no-port AD_Din 102
set_io --warn-no-port AD_Dout 104
set_io --warn-no-port AD_Clk 105
set_io --warn-no-port AD_CS 101 # output
set_io --warn-no-port AD_Din 102 # output
set_io --warn-no-port AD_Dout 104 # input
set_io --warn-no-port AD_Clk 105 # output

# USB
set_io --warn-no-port USB_Vp_o 112
set_io --warn-no-port USB_Vm_o 113
set_io --warn-no-port USB_Vm_i 114
set_io --warn-no-port USB_Vp_i 115
set_io --warn-no-port USB_nOE 116
set_io --warn-no-port USB_Vp_o 112 # output
set_io --warn-no-port USB_Vm_o 113 # output
set_io --warn-no-port USB_Vm_i 114 # input
set_io --warn-no-port USB_Vp_i 115 # input
set_io --warn-no-port USB_nOE 116 # output

set_io --warn-no-port ARDU00 138
set_io --warn-no-port ARDU01 141
set_io --warn-no-port ARDU02 143
set_io --warn-no-port ARDU03 1
set_io --warn-no-port ARDU04 4
set_io --warn-no-port ARDU05 8
set_io --warn-no-port ARDU06 10
set_io --warn-no-port ARDU07 12
set_io --warn-no-port ARDU08 19
set_io --warn-no-port ARDU09 21
set_io --warn-no-port ARDU10 23
set_io --warn-no-port ARDU11 25
set_io --warn-no-port ARDU12 28
set_io --warn-no-port ARDU13 31
set_io --warn-no-port ARDU26 139
set_io --warn-no-port ARDU27 142
set_io --warn-no-port ARDU28 144
set_io --warn-no-port ARDU29 2
set_io --warn-no-port ARDU30 3
set_io --warn-no-port ARDU31 7
set_io --warn-no-port ARDU32 9
set_io --warn-no-port ARDU33 11
set_io --warn-no-port ARDU34 20
set_io --warn-no-port ARDU35 22
set_io --warn-no-port ARDU36 24
set_io --warn-no-port ARDU37 26
set_io --warn-no-port ARDU38 29
set_io --warn-no-port ARDU39 32
set_io --warn-no-port ARDU40 33
set_io --warn-no-port ARDU41 34

# Arduino Power (P2)
# Active low RESET
Expand All @@ -45,3 +77,30 @@ set_io --warn-no-port RESET_P2 73
# Milk channel A
set_io --warn-no-port Milk_TXD 37
set_io --warn-no-port Milk_RXD 38
set_io --warn-no-port Milk_RTS 39
set_io --warn-no-port Milk_CTS 41
set_io --warn-no-port Milk_DTR 42
set_io --warn-no-port Milk_DSR 43
set_io --warn-no-port Milk_DCD 44
set_io --warn-no-port Milk_RI 45

# PMOD A
set_io --warn-no-port PMA0 74
set_io --warn-no-port PMA1 75
set_io --warn-no-port PMA2 76
set_io --warn-no-port PMA3 78
set_io --warn-no-port PMA4 79
set_io --warn-no-port PMA5 80
set_io --warn-no-port PMA6 81
set_io --warn-no-port PMA7 87

# PMOD B
set_io --warn-no-port PMB0 88
set_io --warn-no-port PMB1 90
set_io --warn-no-port PMB2 91
set_io --warn-no-port PMB3 95
set_io --warn-no-port PMB4 96
set_io --warn-no-port PMB5 97
set_io --warn-no-port PMB6 98
set_io --warn-no-port PMB7 99