Hi,
Zip file contain LPC17xx drivers:
hal_lld
gpt
pal
rtc - not supported counter increment interrupt
serial - only uart0, not supported dma
Testhall for rtc and irq_storm.
I've made some changes in chrtclib.c for LPC17xx RTC.
Tested on LPC1766.
LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers
LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers
- Attachments
-
- LPC17xx_drivers_ChibiOS_2.5.2.zip
- (61.98 KiB) Downloaded 731 times
Re: LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers
Update
Available drivers:
adc -> dma only support 1 adc channel
dac
dma
serial -> not supported dma
spi -> not supported dma
i2c
pal
rtc -> not supported counter increment interrupt
mac
gpt
Demos:
EA LPCXpresso LPC1769
EA LPCXpresso LPC1769 LWIP
Code is now available on my git repository:
https://github.com/marcinj/ChibiOS-RT/tree/lpc_dev
Available drivers:
adc -> dma only support 1 adc channel
dac
dma
serial -> not supported dma
spi -> not supported dma
i2c
pal
rtc -> not supported counter increment interrupt
mac
gpt
Demos:
EA LPCXpresso LPC1769
EA LPCXpresso LPC1769 LWIP
Code is now available on my git repository:
https://github.com/marcinj/ChibiOS-RT/tree/lpc_dev
Re: LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers
Thanks Marcin,
I'll try and get that in the main branch soon.
--
mike
I'll try and get that in the main branch soon.
--
mike
Re: LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers
Finally got around to merging these drivers into the main tree.
Also includes a LPC17xx CAN driver...
Thanks to Marcin for his work on these.
--
mike
Also includes a LPC17xx CAN driver...
Thanks to Marcin for his work on these.
--
mike
- Giovanni
- Site Admin
- Posts: 14563
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1111 times
- Been thanked: 937 times
- Contact:
Re: LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers
Excellent work, there is some impressive support for LPC17xx now.
Have you considered porting the code to version 3.0? I am going to switch the trunk to the 3.0 branch in a couple weeks, the new code could be officially released in 3.0.
One interesting thing in 3.0 is that the HAL is able to work with both RT and Nil kernels but potentially also without an RTOS (bare metal mode) or potentially with other RTOSes complete enough to implement the OSAL layer. This feature alone makes an HAL implementation even more valuable.
Giovanni
Have you considered porting the code to version 3.0? I am going to switch the trunk to the 3.0 branch in a couple weeks, the new code could be officially released in 3.0.
One interesting thing in 3.0 is that the HAL is able to work with both RT and Nil kernels but potentially also without an RTOS (bare metal mode) or potentially with other RTOSes complete enough to implement the OSAL layer. This feature alone makes an HAL implementation even more valuable.
Giovanni
Re: LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers
I was hoping to use the move to 3.0 to re-structure the LPC tree, something like the way the STM32 tree is arranged.
Do you have any notes on the changes required to port to V3.0?
--
mike
Do you have any notes on the changes required to port to V3.0?
--
mike
- Giovanni
- Site Admin
- Posts: 14563
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1111 times
- Been thanked: 937 times
- Contact:
Re: LPC17xx HAL_LLD, GPT, PAL, RTC, SERIAL drivers
Good point, I will write a small 3.0 porting guide before switching the repository.
Giovanni
Giovanni
Who is online
Users browsing this forum: No registered users and 1 guest