Bladeren bron

Add pin toggle defines for Teensy LC, 3.0, 3.1, 3.2

teensy4-core
PaulStoffregen 4 jaren geleden
bovenliggende
commit
2edf137d51
1 gewijzigde bestanden met toevoegingen van 63 en 0 verwijderingen
  1. +63
    -0
      teensy3/core_pins.h

+ 63
- 0
teensy3/core_pins.h Bestand weergeven

@@ -292,6 +292,41 @@
#define CORE_PIN32_PORTSET GPIOB_PSOR
#define CORE_PIN33_PORTSET GPIOA_PSOR

#define CORE_PIN0_PORTTOGGLE GPIOB_PTOR
#define CORE_PIN1_PORTTOGGLE GPIOB_PTOR
#define CORE_PIN2_PORTTOGGLE GPIOD_PTOR
#define CORE_PIN3_PORTTOGGLE GPIOA_PTOR
#define CORE_PIN4_PORTTOGGLE GPIOA_PTOR
#define CORE_PIN5_PORTTOGGLE GPIOD_PTOR
#define CORE_PIN6_PORTTOGGLE GPIOD_PTOR
#define CORE_PIN7_PORTTOGGLE GPIOD_PTOR
#define CORE_PIN8_PORTTOGGLE GPIOD_PTOR
#define CORE_PIN9_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN10_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN11_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN12_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN13_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN14_PORTTOGGLE GPIOD_PTOR
#define CORE_PIN15_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN16_PORTTOGGLE GPIOB_PTOR
#define CORE_PIN17_PORTTOGGLE GPIOB_PTOR
#define CORE_PIN18_PORTTOGGLE GPIOB_PTOR
#define CORE_PIN19_PORTTOGGLE GPIOB_PTOR
#define CORE_PIN20_PORTTOGGLE GPIOD_PTOR
#define CORE_PIN21_PORTTOGGLE GPIOD_PTOR
#define CORE_PIN22_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN23_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN24_PORTTOGGLE GPIOA_PTOR
#define CORE_PIN25_PORTTOGGLE GPIOB_PTOR
#define CORE_PIN26_PORTTOGGLE GPIOE_PTOR
#define CORE_PIN27_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN28_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN29_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN30_PORTTOGGLE GPIOC_PTOR
#define CORE_PIN31_PORTTOGGLE GPIOE_PTOR
#define CORE_PIN32_PORTTOGGLE GPIOB_PTOR
#define CORE_PIN33_PORTTOGGLE GPIOA_PTOR

#define CORE_PIN0_PORTCLEAR GPIOB_PCOR
#define CORE_PIN1_PORTCLEAR GPIOB_PCOR
#define CORE_PIN2_PORTCLEAR GPIOD_PCOR
@@ -605,6 +640,34 @@
#define CORE_PIN25_PORTSET FGPIOE_PSOR
#define CORE_PIN26_PORTSET FGPIOE_PSOR

#define CORE_PIN0_PORTTOGGLE FGPIOB_PTOR
#define CORE_PIN1_PORTTOGGLE FGPIOB_PTOR
#define CORE_PIN2_PORTTOGGLE FGPIOD_PTOR
#define CORE_PIN3_PORTTOGGLE FGPIOA_PTOR
#define CORE_PIN4_PORTTOGGLE FGPIOA_PTOR
#define CORE_PIN5_PORTTOGGLE FGPIOD_PTOR
#define CORE_PIN6_PORTTOGGLE FGPIOD_PTOR
#define CORE_PIN7_PORTTOGGLE FGPIOD_PTOR
#define CORE_PIN8_PORTTOGGLE FGPIOD_PTOR
#define CORE_PIN9_PORTTOGGLE FGPIOC_PTOR
#define CORE_PIN10_PORTTOGGLE FGPIOC_PTOR
#define CORE_PIN11_PORTTOGGLE FGPIOC_PTOR
#define CORE_PIN12_PORTTOGGLE FGPIOC_PTOR
#define CORE_PIN13_PORTTOGGLE FGPIOC_PTOR
#define CORE_PIN14_PORTTOGGLE FGPIOD_PTOR
#define CORE_PIN15_PORTTOGGLE FGPIOC_PTOR
#define CORE_PIN16_PORTTOGGLE FGPIOB_PTOR
#define CORE_PIN17_PORTTOGGLE FGPIOB_PTOR
#define CORE_PIN18_PORTTOGGLE FGPIOB_PTOR
#define CORE_PIN19_PORTTOGGLE FGPIOB_PTOR
#define CORE_PIN20_PORTTOGGLE FGPIOD_PTOR
#define CORE_PIN21_PORTTOGGLE FGPIOD_PTOR
#define CORE_PIN22_PORTTOGGLE FGPIOC_PTOR
#define CORE_PIN23_PORTTOGGLE FGPIOC_PTOR
#define CORE_PIN24_PORTTOGGLE FGPIOE_PTOR
#define CORE_PIN25_PORTTOGGLE FGPIOE_PTOR
#define CORE_PIN26_PORTTOGGLE FGPIOE_PTOR

#define CORE_PIN0_PORTCLEAR FGPIOB_PCOR
#define CORE_PIN1_PORTCLEAR FGPIOB_PCOR
#define CORE_PIN2_PORTCLEAR FGPIOD_PCOR

Laden…
Annuleren
Opslaan