Skip to content

Support both UART configurations #1

@kasparsd

Description

@kasparsd

Z-Stack firmware for CC2530 can have UART configured to two different sets of pins:

3731.Z-Stack ZNP Interface Specification.pdf

Main configuration:

  • TX: P1.6 (pin 38)
  • RX: P1.7 (pin 37)

Alternative configuration:

  • TX: P0.3 (pin 16)
  • RX: P0.2 (pin 17)

The ZNP Kit uses the "alternative" configuration. This is also used by the firmware provided by the https://github.com/Koenkk/Z-Stack-firmware which defines the ZTOOL_P1 macro to use HAL_UART_PORT_0.

ping-config

Z-Stack Configuration

Macros ZTOOL_P1 and ZTOOL_P2 are used to enable either HAL_UART_PORT_0 or HAL_UART_PORT_1 per this research.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions