Pārlūkot izejas kodu

Add comment with link to PORT_PCR_ISF polling example

main
PaulStoffregen pirms 5 gadiem
vecāks
revīzija
73ea157600
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      teensy3/kinetis.h

+ 1
- 0
teensy3/kinetis.h Parādīt failu



#define PORTA_PCR0 (*(volatile uint32_t *)0x40049000) // Pin Control Register n #define PORTA_PCR0 (*(volatile uint32_t *)0x40049000) // Pin Control Register n
#define PORT_PCR_ISF ((uint32_t)0x01000000) // Interrupt Status Flag #define PORT_PCR_ISF ((uint32_t)0x01000000) // Interrupt Status Flag
// how to use PORT_PCR_ISF with polling: https://forum.pjrc.com/threads/58193
#define PORT_PCR_IRQC(n) ((uint32_t)(((n) & 15) << 16)) // Interrupt Configuration #define PORT_PCR_IRQC(n) ((uint32_t)(((n) & 15) << 16)) // Interrupt Configuration
#define PORT_PCR_IRQC_MASK ((uint32_t)0x000F0000) #define PORT_PCR_IRQC_MASK ((uint32_t)0x000F0000)
#define PORT_PCR_LK ((uint32_t)0x00008000) // Lock Register #define PORT_PCR_LK ((uint32_t)0x00008000) // Lock Register

Notiek ielāde…
Atcelt
Saglabāt