Closed cdbennett closed 11 years ago
In my opinion it would be better to add register map definitions and such when necessary (writing drivers). Also I'll change to DMA to no use ->ch[x] and instead use DMA0, DMA1, etc to maintain the style used by other definitions.
Fabio Utzig notifications@github.com wrote:
In my opinion it would be better to add register map definitions and such when necessary (writing drivers). Also I'll change to DMA to no use ->ch[x] and instead use DMA0, DMA1, etc to maintain the style used by other definitions.
Reply to this email directly or view it on GitHub: https://github.com/utzig/ChibiOS-Kinetis/pull/4#issuecomment-23231386
OK, sorry for jumping ahead, it's just that I have been starting to wrote code-- some test programs for now, not a proper driver yet-- using these peripherals so I thought I should contribute the definitions... I am working on alternate kl25 clock init for other modes too, using preprocessor defines like stm32 to select mode -- I especially am interested in FEE with external 32.768 kHz xtal for quick wake/sleep and LPTMR/RTC in sleep mode for time keeping and timed wakeup. As for DMA I thought DMA1 etc. would be good but i stuck w Freescale style, but no reason not to so that's fine. Thanks. Regards, Colin
Added peripheral structures and register constants for KL25Z4 MCU peripherals: DMA, DMAMUX, LLWU, ADC, LPTMR, TSI, and MCG.
Also, PORTx_PCRn_MUX(x) macro made the PIN_MUX_ALTERNATIVE(x) redundant. Fixed PORTx register #define constants PRC -> PCR typo.