File tree Expand file tree Collapse file tree 4 files changed +616
-1
lines changed Expand file tree Collapse file tree 4 files changed +616
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ OBJCOPY = pru-objcopy
33BUILD_TARGET = pru_ledpwm
44
55ASFLAGS += -g
6- CFLAGS += -g -Wall -Wno-main -Os
6+ CFLAGS += -g -Wall -Wimplicit-fallthrough - Wno-main -Os
77LDFLAGS += -g -nostdlib -mmcu=am1808.pru1.specs
88
99.PHONY : all clean
Original file line number Diff line number Diff line change 6868// Timer0 peripheral (only what we need)
6969static volatile uint32_t * const TIMER0_TIM34 = (volatile uint32_t * )0x01C20014 ;
7070
71+ // Timer2 peripheral (only what we need)
72+ static volatile uint32_t * const TIMER2_TIM12 = (volatile uint32_t * )0x01F0C010 ;
73+ static volatile uint32_t * const TIMER2_INTCTLSTAT = (volatile uint32_t * )0x01F0C044 ;
74+
75+ #define TIMER_INTCTLSTAT_PRDINTSTAT12 (1 << 1)
76+
7177// GPIO peripheral (only what we need)
7278typedef struct {
7379 uint32_t dir ;
You can’t perform that action at this time.
0 commit comments