remove all uart pin from nrf52840 board, since it is not used.

This commit is contained in:
hathach 2020-03-25 18:18:27 +07:00
parent 09fdd7dee2
commit 6b3f70db47
20 changed files with 80 additions and 185 deletions

View File

@ -46,16 +46,9 @@
#define BUTTON_2 _PINNUM(0, 29) // middle button #define BUTTON_2 _PINNUM(0, 29) // middle button
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER _PINNUM(0, 28) // SDA
#define TX_PIN_NUMBER _PINNUM(0, 3) // SCL
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "ARAMCON Badge Team" #define BLEDIS_MANUFACTURER "ARAMCON Badge Team"
#define BLEDIS_MODEL "ARAMCON Badge 2019" #define BLEDIS_MODEL "ARAMCON Badge 2019"

View File

@ -47,15 +47,6 @@
#define BUTTON_2 _PINNUM(0, 10) #define BUTTON_2 _PINNUM(0, 10)
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/
/* UART (only used by nRF52832)
*------------------------------------------------------------------*/
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+
// BLE OTA // BLE OTA
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+

View File

@ -42,16 +42,9 @@
#define BUTTON_2 _PINNUM(1, 12) // D3 switch #define BUTTON_2 _PINNUM(1, 12) // D3 switch
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER _PINNUM(1, 10)
#define TX_PIN_NUMBER _PINNUM(1, 3)
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Arduino" #define BLEDIS_MANUFACTURER "Arduino"
#define BLEDIS_MODEL "Nano 33 BLE" #define BLEDIS_MODEL "Nano 33 BLE"

View File

@ -46,16 +46,9 @@
#define BUTTON_2 _PINNUM(1, 15) // right button #define BUTTON_2 _PINNUM(1, 15) // right button
#define BUTTON_PULL NRF_GPIO_PIN_PULLDOWN #define BUTTON_PULL NRF_GPIO_PIN_PULLDOWN
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER _PINNUM(0, 30)
#define TX_PIN_NUMBER _PINNUM(0, 14)
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Adafruit Industries" #define BLEDIS_MANUFACTURER "Adafruit Industries"
#define BLEDIS_MODEL "Circuit Playground nRF52840" #define BLEDIS_MODEL "Circuit Playground nRF52840"

View File

@ -46,16 +46,9 @@
#define BUTTON_2 _PINNUM(1, 10) // right button #define BUTTON_2 _PINNUM(1, 10) // right button
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER _PINNUM(0, 09)
#define TX_PIN_NUMBER _PINNUM(0, 10)
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Adafruit Industries" #define BLEDIS_MANUFACTURER "Adafruit Industries"
#define BLEDIS_MODEL "CLUE nRF52840" #define BLEDIS_MODEL "CLUE nRF52840"

View File

@ -47,19 +47,15 @@
#define BUTTON_2 1 // P0.1 not exposed anywhere, FRST n/a #define BUTTON_2 1 // P0.1 not exposed anywhere, FRST n/a
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER 7
#define TX_PIN_NUMBER 8
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Electronut Labs" #define BLEDIS_MANUFACTURER "Electronut Labs"
#define BLEDIS_MODEL "Papyr" #define BLEDIS_MODEL "Papyr"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define UF2_PRODUCT_NAME "Electronut Labs Papyr" #define UF2_PRODUCT_NAME "Electronut Labs Papyr"
#define UF2_BOARD_ID "nRF52840-Papyr-v1" #define UF2_BOARD_ID "nRF52840-Papyr-v1"
#define UF2_INDEX_URL "https://docs.electronut.in/papyr" #define UF2_INDEX_URL "https://docs.electronut.in/papyr"

View File

@ -50,7 +50,9 @@
#define RTS_PIN_NUMBER 0 #define RTS_PIN_NUMBER 0
#define HWFC false #define HWFC false
// Used as model string in OTA mode //--------------------------------------------------------------------+
// BLE OTA
//--------------------------------------------------------------------+
#define BLEDIS_MANUFACTURER "Adafruit Industries" #define BLEDIS_MANUFACTURER "Adafruit Industries"
#define BLEDIS_MODEL "Feather nRF52832" #define BLEDIS_MODEL "Feather nRF52832"

View File

@ -47,15 +47,6 @@
#define BUTTON_2 _PINNUM(0, 10) #define BUTTON_2 _PINNUM(0, 10)
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/
/* UART (only used by nRF52832)
*------------------------------------------------------------------*/
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+
// BLE OTA // BLE OTA
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+

View File

@ -46,16 +46,9 @@
#define BUTTON_2 _PINNUM(1, 02) // D2 breakout #define BUTTON_2 _PINNUM(1, 02) // D2 breakout
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER _PINNUM(0, 25)
#define TX_PIN_NUMBER _PINNUM(0, 24)
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Adafruit Industries" #define BLEDIS_MANUFACTURER "Adafruit Industries"
#define BLEDIS_MODEL "ItsyBitsy nRF52840 Express" #define BLEDIS_MODEL "ItsyBitsy nRF52840 Express"

View File

@ -39,6 +39,7 @@
//#define LED_RGB_GREEN_PIN _PINNUM(0, 22) //#define LED_RGB_GREEN_PIN _PINNUM(0, 22)
//#define LED_RGB_BLUE_PIN _PINNUM(0, 24) //#define LED_RGB_BLUE_PIN _PINNUM(0, 24)
#define BOARD_RGB_BRIGHTNESS 0x404040 #define BOARD_RGB_BRIGHTNESS 0x404040
/*------------------------------------------------------------------*/ /*------------------------------------------------------------------*/
/* BUTTON /* BUTTON
*------------------------------------------------------------------*/ *------------------------------------------------------------------*/
@ -48,10 +49,15 @@
#define BUTTON_2 _PINNUM(0, 19) // no connection #define BUTTON_2 _PINNUM(0, 19) // no connection
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
// Used as model string in OTA mode //--------------------------------------------------------------------+
// BLE OTA
//--------------------------------------------------------------------+
#define BLEDIS_MANUFACTURER "MakerDiary" #define BLEDIS_MANUFACTURER "MakerDiary"
#define BLEDIS_MODEL "nRF52840 Micro Dev Kit USB Dongle" #define BLEDIS_MODEL "nRF52840 Micro Dev Kit USB Dongle"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define UF2_PRODUCT_NAME "MDK nRF52840 USB Dongle" #define UF2_PRODUCT_NAME "MDK nRF52840 USB Dongle"
#define UF2_VOLUME_LABEL "MDK840DONGL" #define UF2_VOLUME_LABEL "MDK840DONGL"
#define UF2_BOARD_ID "nRF52840-Dongle-v1" #define UF2_BOARD_ID "nRF52840-Dongle-v1"

View File

@ -47,16 +47,9 @@
#define BUTTON_2 _PINNUM(2, 2) #define BUTTON_2 _PINNUM(2, 2)
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Adafruit Industries" #define BLEDIS_MANUFACTURER "Adafruit Industries"
#define BLEDIS_MODEL "Metro nRF52840 Express" #define BLEDIS_MODEL "Metro nRF52840 Express"

View File

@ -43,16 +43,9 @@
#define BUTTON_2 _PINNUM(0, 03) // SW1 #define BUTTON_2 _PINNUM(0, 03) // SW1
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER _PINNUM(0, 09)
#define TX_PIN_NUMBER _PINNUM(0, 10)
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "OSHWA" #define BLEDIS_MANUFACTURER "OSHWA"
#define BLEDIS_MODEL "OHS2020 Badge" #define BLEDIS_MODEL "OHS2020 Badge"

View File

@ -47,19 +47,15 @@
#define BUTTON_FRESET _PINNUM(0, 03) // A0 #define BUTTON_FRESET _PINNUM(0, 03) // A0
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Particle Industries" #define BLEDIS_MANUFACTURER "Particle Industries"
#define BLEDIS_MODEL "Argon" #define BLEDIS_MODEL "Argon"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define UF2_PRODUCT_NAME "Particle Argon" #define UF2_PRODUCT_NAME "Particle Argon"
#define UF2_VOLUME_LABEL "ARGONBOOT " #define UF2_VOLUME_LABEL "ARGONBOOT "
#define UF2_BOARD_ID "nRF52840-Argon-v1" #define UF2_BOARD_ID "nRF52840-Argon-v1"

View File

@ -47,19 +47,15 @@
#define BUTTON_FRESET _PINNUM(0, 03) // A0 #define BUTTON_FRESET _PINNUM(0, 03) // A0
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Particle Industries" #define BLEDIS_MANUFACTURER "Particle Industries"
#define BLEDIS_MODEL "Boron" #define BLEDIS_MODEL "Boron"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define UF2_PRODUCT_NAME "Particle Boron" #define UF2_PRODUCT_NAME "Particle Boron"
#define UF2_VOLUME_LABEL "BORONBOOT " #define UF2_VOLUME_LABEL "BORONBOOT "
#define UF2_BOARD_ID "nRF52840-Boron-v1" #define UF2_BOARD_ID "nRF52840-Boron-v1"

View File

@ -30,14 +30,14 @@
/*------------------------------------------------------------------*/ /*------------------------------------------------------------------*/
/* LED /* LED
*------------------------------------------------------------------*/ *------------------------------------------------------------------*/
#define LEDS_NUMBER 1 #define LEDS_NUMBER 1
#define LED_PRIMARY_PIN _PINNUM(1, 12) #define LED_PRIMARY_PIN _PINNUM(1, 12)
#define LED_STATE_ON 1 #define LED_STATE_ON 1
#define LED_RGB_RED_PIN _PINNUM(0, 13) #define LED_RGB_RED_PIN _PINNUM(0, 13)
#define LED_RGB_GREEN_PIN _PINNUM(0, 14) #define LED_RGB_GREEN_PIN _PINNUM(0, 14)
#define LED_RGB_BLUE_PIN _PINNUM(0, 15) #define LED_RGB_BLUE_PIN _PINNUM(0, 15)
#define BOARD_RGB_BRIGHTNESS 0x202020 #define BOARD_RGB_BRIGHTNESS 0x202020
/*------------------------------------------------------------------*/ /*------------------------------------------------------------------*/
/* BUTTON /* BUTTON
@ -47,19 +47,15 @@
#define BUTTON_FRESET _PINNUM(0, 03) // A0 #define BUTTON_FRESET _PINNUM(0, 03) // A0
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Particle Industries" #define BLEDIS_MANUFACTURER "Particle Industries"
#define BLEDIS_MODEL "Xenon" #define BLEDIS_MODEL "Xenon"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define UF2_PRODUCT_NAME "Particle Xenon" #define UF2_PRODUCT_NAME "Particle Xenon"
#define UF2_VOLUME_LABEL "XENONBOOT " #define UF2_VOLUME_LABEL "XENONBOOT "
#define UF2_BOARD_ID "nRF52840-Xenon-v1" #define UF2_BOARD_ID "nRF52840-Xenon-v1"

View File

@ -41,19 +41,15 @@
#define BUTTON_2 12 #define BUTTON_2 12
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Nordic" #define BLEDIS_MANUFACTURER "Nordic"
#define BLEDIS_MODEL "PCA10056" #define BLEDIS_MODEL "PCA10056"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define UF2_PRODUCT_NAME "Nordic nRF52840 DK" #define UF2_PRODUCT_NAME "Nordic nRF52840 DK"
#define UF2_BOARD_ID "nRF52840-pca10056-v1" #define UF2_BOARD_ID "nRF52840-pca10056-v1"
#define UF2_INDEX_URL "https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK" #define UF2_INDEX_URL "https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK"

View File

@ -44,19 +44,15 @@
#define BUTTON_2 _PINNUM(1, 10) #define BUTTON_2 _PINNUM(1, 10)
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER 20
#define TX_PIN_NUMBER 17
#define CTS_PIN_NUMBER 15
#define RTS_PIN_NUMBER 13
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Nordic" #define BLEDIS_MANUFACTURER "Nordic"
#define BLEDIS_MODEL "PCA10059" #define BLEDIS_MODEL "PCA10059"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define UF2_PRODUCT_NAME "Nordic nRF52840 Dongle" #define UF2_PRODUCT_NAME "Nordic nRF52840 Dongle"
#define UF2_BOARD_ID "nRF52840-pca10059-v1" #define UF2_BOARD_ID "nRF52840-pca10059-v1"
#define UF2_INDEX_URL "https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-Dongle" #define UF2_INDEX_URL "https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-Dongle"

View File

@ -41,19 +41,15 @@
#define BUTTON_2 12 #define BUTTON_2 12
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
/* UART (only used by nRF52832) // BLE OTA
*------------------------------------------------------------------*/ //--------------------------------------------------------------------+
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "Nordic" #define BLEDIS_MANUFACTURER "Nordic"
#define BLEDIS_MODEL "PCA10100" #define BLEDIS_MODEL "PCA10100"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define UF2_PRODUCT_NAME "Nordic nRF52833 DK" #define UF2_PRODUCT_NAME "Nordic nRF52833 DK"
#define UF2_BOARD_ID "nRF52833-pca10100-v1" #define UF2_BOARD_ID "nRF52833-pca10100-v1"
#define UF2_INDEX_URL "https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52833-DK" #define UF2_INDEX_URL "https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52833-DK"

View File

@ -43,15 +43,6 @@
#define BUTTON_2 _PINNUM(0, 10) #define BUTTON_2 _PINNUM(0, 10)
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/
/* UART (only used by nRF52832) (only used by nRF52832)
*------------------------------------------------------------------*/
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+
// BLE OTA // BLE OTA
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+

View File

@ -50,15 +50,6 @@
#define BUTTON_2 _PINNUM(0, 29) #define BUTTON_2 _PINNUM(0, 29)
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP #define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/
/* UART (only used by nRF52832)
*------------------------------------------------------------------*/
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 0
#define RTS_PIN_NUMBER 0
#define HWFC false
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+
// BLE OTA // BLE OTA
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+