-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into revk_troubleshooting
Merge revL master.
- Loading branch information
Showing
12 changed files
with
17,037 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,4 @@ $*.sch | |
*.SMT | ||
*.TSK | ||
*.TSP | ||
unzipped/ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#ifndef __PINOUT_HEADER_H__ | ||
#define __PINOUT_HEADER_H__ | ||
|
||
// Hardware Revision ID | ||
#include "revisions.h" | ||
#define REVISION_ID REVISION_L | ||
|
||
// Battery | ||
#define PIN_BATTERY_VOLTAGE 18 | ||
#define PIN_BATTERY_VOLTAGE_FUNCTION AM_HAL_PIN_18_ADCSE1 | ||
#define PIN_BATTERY_VOLTAGE_ADC_CHANNEL AM_HAL_ADC_SLOT_CHSEL_SE1 | ||
#define PIN_BATTERY_CHARGING_STATUS 58 | ||
#define PIN_BATTERY_INPUT_POWER_GOOD 60 | ||
#define PIN_BATTERY_CHARGE_COMPLETE_SIGNAL 66 | ||
#define VOLTAGE_DIVIDER_LOWER 187 | ||
#define VOLTAGE_DIVIDER_UPPER 510 | ||
|
||
// Buzzer | ||
#define PIN_BUZZER_DRIVER 54 | ||
|
||
// DecaWave Radio | ||
#define RADIO_SPI_NUMBER 3 | ||
#define PIN_RADIO_SPI_SCK 31 | ||
#define PIN_RADIO_SPI_MISO 33 | ||
#define PIN_RADIO_SPI_MOSI 32 | ||
#define PIN_RADIO_SPI_CS 29 | ||
#define PIN_RADIO_INTERRUPT 27 | ||
#define PIN_RADIO_RESET 50 | ||
#define PIN_RADIO_WAKEUP 26 | ||
#define PIN_RADIO_ANTENNA_SELECT1 24 | ||
#define PIN_RADIO_ANTENNA_SELECT2 25 | ||
#define PIN_RADIO_SPI_SCK_FUNCTION AM_HAL_PIN_31_M3SCK | ||
#define PIN_RADIO_SPI_MISO_FUNCTION AM_HAL_PIN_33_M3MISO | ||
#define PIN_RADIO_SPI_MOSI_FUNCTION AM_HAL_PIN_32_M3MOSI | ||
#define PIN_RADIO_SPI_CS_FUNCTION AM_HAL_PIN_29_NCE29 | ||
|
||
// IMU | ||
#define IMU_I2C_NUMBER 1 | ||
#define IMU_I2C_ADDRESS 0x29 | ||
#define PIN_IMU_I2C_SCL 8 | ||
#define PIN_IMU_I2C_SDA 9 | ||
#define PIN_IMU_I2C_SCL_FUNCTION AM_HAL_PIN_8_M1SCL | ||
#define PIN_IMU_I2C_SDA_FUNCTION AM_HAL_PIN_9_M1SDAWIR3 | ||
#define PIN_IMU_INTERRUPT 17 | ||
#define PIN_IMU_RESET 65 | ||
|
||
// LEDs | ||
#define PIN_LED1_RED 52 | ||
#define PIN_LED1_GREEN 51 | ||
#define PIN_LED2_RED 76 | ||
#define PIN_LED2_YELLOW 88 | ||
|
||
// Logging | ||
#define PIN_SWO 3 | ||
#define PIN_SWO_FUNCTION AM_HAL_PIN_3_SWO | ||
#define PIN_SWTRACE_CLK 38 | ||
#define PIN_SWTRACE_CLK_FUNCTION AM_HAL_PIN_38_SWTRACECLK | ||
#define PIN_SWTRACE_0 80 | ||
#define PIN_SWTRACE_0_FUNCTION AM_HAL_PIN_80_SWTRACE0 | ||
#define PIN_SWTRACE_1 81 | ||
#define PIN_SWTRACE_1_FUNCTION AM_HAL_PIN_81_SWTRACE1 | ||
#define PIN_SWTRACE_2 82 | ||
#define PIN_SWTRACE_2_FUNCTION AM_HAL_PIN_82_SWTRACE2 | ||
#define PIN_SWTRACE_3 83 | ||
#define PIN_SWTRACE_3_FUNCTION AM_HAL_PIN_83_SWTRACE3 | ||
|
||
// Memory Storage (SPI) | ||
#define STORAGE_SPI_NUMBER 5 | ||
#define PIN_STORAGE_SPI_SCK 47 | ||
#define PIN_STORAGE_SPI_MISO 49 | ||
#define PIN_STORAGE_SPI_MOSI 48 | ||
#define PIN_STORAGE_SPI_CS 69 | ||
#define PIN_STORAGE_SPI_SCK_FUNCTION AM_HAL_PIN_47_M5SCK | ||
#define PIN_STORAGE_SPI_MISO_FUNCTION AM_HAL_PIN_49_M5MISO | ||
#define PIN_STORAGE_SPI_MOSI_FUNCTION AM_HAL_PIN_48_M5MOSI | ||
#define PIN_STORAGE_SPI_CS_FUNCTION AM_HAL_PIN_69_NCE69 | ||
#define PIN_STORAGE_WRITE_PROTECT 30 | ||
#define PIN_STORAGE_HOLD 6 | ||
|
||
// Timers | ||
#define BUZZER_TIMER_NUMBER 0 | ||
#define RADIO_WAKEUP_TIMER_NUMBER 2 | ||
#define RADIO_WAKEUP_TIMER_TICK_RATE_HZ (AM_HAL_CLKGEN_FREQ_MAX_HZ / 16) | ||
#define BLE_SCANNING_TIMER_NUMBER 4 | ||
#define BLE_SCANNING_TIMER_TICK_RATE_HZ (AM_HAL_CLKGEN_FREQ_MAX_HZ / 16) | ||
|
||
#endif // #ifndef __PINOUT_HEADER_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters