added prescaler for 16 bit pwm in LPC1347 target

Fork of mbed-dev by mbed official

Committer:
JojoS
Date:
Sat Sep 10 15:32:04 2016 +0000
Revision:
147:ba84b7dc41a7
Parent:
119:3921aeca8633
added prescaler for 16 bit timers (solution as in LPC11xx), default prescaler 31 for max 28 ms period time

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 119:3921aeca8633 1 #ifndef __GPIO_ADDRDEFINE__
mbed_official 119:3921aeca8633 2 #define __GPIO_ADDRDEFINE__
mbed_official 119:3921aeca8633 3
mbed_official 119:3921aeca8633 4 #define GPIO_BASE ((long)0xFCFE3000uL) /* GPIO */
mbed_official 119:3921aeca8633 5
mbed_official 119:3921aeca8633 6 #define PORT(n) (volatile unsigned short *)(GPIO_BASE + 0x000 + ((n)*4))
mbed_official 119:3921aeca8633 7 #define PSR(n) (volatile unsigned long *)(GPIO_BASE + 0x100 + ((n)*4))
mbed_official 119:3921aeca8633 8 #define PPR(n) (volatile unsigned short *)(GPIO_BASE + 0x200 + ((n)*4))
mbed_official 119:3921aeca8633 9 #define PM(n) (volatile unsigned short *)(GPIO_BASE + 0x300 + ((n)*4))
mbed_official 119:3921aeca8633 10 #define PMC(n) (volatile unsigned short *)(GPIO_BASE + 0x400 + ((n)*4))
mbed_official 119:3921aeca8633 11 #define PFC(n) (volatile unsigned short *)(GPIO_BASE + 0x500 + ((n)*4))
mbed_official 119:3921aeca8633 12 #define PFCE(n) (volatile unsigned short *)(GPIO_BASE + 0x600 + ((n)*4))
mbed_official 119:3921aeca8633 13 #define PNOT(n) (volatile unsigned short *)(GPIO_BASE + 0x700 + ((n)*4))
mbed_official 119:3921aeca8633 14 #define PMSR(n) (volatile unsigned long *)(GPIO_BASE + 0x800 + ((n)*4))
mbed_official 119:3921aeca8633 15 #define PMCSR(n) (volatile unsigned long *)(GPIO_BASE + 0x900 + ((n)*4))
mbed_official 119:3921aeca8633 16 #define PFCAE(n) (volatile unsigned short *)(GPIO_BASE + 0xa00 + ((n)*4))
mbed_official 119:3921aeca8633 17 #define PIBC(n) (volatile unsigned short *)(GPIO_BASE + 0x4000 +((n)*4))
mbed_official 119:3921aeca8633 18 #define PBDC(n) (volatile unsigned short *)(GPIO_BASE + 0x4100 +((n)*4))
mbed_official 119:3921aeca8633 19 #define PIPC(n) (volatile unsigned short *)(GPIO_BASE + 0x4200 +((n)*4))
mbed_official 119:3921aeca8633 20
mbed_official 119:3921aeca8633 21 #endif/*__GPIO_ADDRDEFINE__*/
mbed_official 119:3921aeca8633 22