Skip to content

Commit

Permalink
Adjust the pin definitions for the hardware section of the Datalogger…
Browse files Browse the repository at this point in the history
… board. (#237)

* Remove the non-existent LED definition.

* The definition for AMB_D4 is not connected.

* Update variant.h

---------

Co-authored-by: Michael Zhang <[email protected]>
  • Loading branch information
cold63 and M-ichae-l authored Jun 18, 2024
1 parent f34fc6a commit 38af8c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ PinDescription g_APinDescription[TOTAL_GPIO_PIN_NUM]=
{PA_14, TYPE_DIGITAL, PIO_GPIO | PIO_GPIO_IRQ | PIO_SPI, MODE_NOT_INITIAL}, // AMB_D1
{PA_13, TYPE_DIGITAL, PIO_GPIO | PIO_GPIO_IRQ | PIO_PWM | PIO_UART | PIO_SPI, MODE_NOT_INITIAL}, // AMB_D2
{PA_12, TYPE_DIGITAL, PIO_GPIO | PIO_GPIO_IRQ | PIO_PWM | PIO_UART | PIO_SPI, MODE_NOT_INITIAL}, // AMB_D3
#ifdef BOARD_AMB26
{NC, NOT_INITIAL, NOT_INITIAL , MODE_NOT_INITIAL}, // AMB_D4
#else
{PA_30, TYPE_DIGITAL, PIO_GPIO | PIO_GPIO_IRQ | PIO_PWM , MODE_NOT_INITIAL}, // AMB_D4
#endif
{PA_28, TYPE_DIGITAL, PIO_GPIO | PIO_GPIO_IRQ | PIO_PWM , MODE_NOT_INITIAL}, // AMB_D5
{PA_26, TYPE_DIGITAL, PIO_GPIO | PIO_GPIO_IRQ | PIO_PWM | PIO_IR | PIO_I2C , MODE_NOT_INITIAL}, // AMB_D6
{PA_25, TYPE_DIGITAL, PIO_GPIO | PIO_GPIO_IRQ | PIO_PWM | PIO_IR | PIO_I2C , MODE_NOT_INITIAL}, // AMB_D7
Expand Down
5 changes: 1 addition & 4 deletions Arduino_package/hardware/variants/datalogger_amb26/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ extern void wait_for_debug(void);
#define A6 AMB_D9 // PB_3 3.3V CH6

/* LED pin mapping */
#define LED_G AMB_D3 // Green
#define LED_R AMB_D2 // Red
#define LED_B AMB_D1 // Blue
#define LED_BUILTIN LED_G // Green
#define LED_BUILTIN NC

/* ADC/DAC pin mapping */
#define FEATURE_ADC
Expand Down

0 comments on commit 38af8c9

Please sign in to comment.