soft/lpc82x/core
14 months agoUpdate Makefile to prevent build of host apps with target compiler master
Nathael Pajani [Sat, 11 Feb 2023 12:03:30 +0000 (13:03 +0100)]
Update Makefile to prevent build of host apps with target compiler

14 months agoAdd and update gitignore files
Nathael Pajani [Sat, 11 Feb 2023 04:29:05 +0000 (05:29 +0100)]
Add and update gitignore files

14 months agoUpdate priority request in systick_timer_on()
Nathael Pajani [Tue, 1 Feb 2022 03:42:06 +0000 (04:42 +0100)]
Update priority request in systick_timer_on()

14 months agoFix NVIC_SetPriority function !
Nathael Pajani [Tue, 1 Feb 2022 03:41:36 +0000 (04:41 +0100)]
Fix NVIC_SetPriority function !

14 months agoAdd support for both LPC822 and LPC824 with different memory sizes
Nathael Pajani [Tue, 1 Feb 2022 03:41:05 +0000 (04:41 +0100)]
Add support for both LPC822 and LPC824 with different memory sizes

14 months agoAdding deep sleep support Improving sleep state support
Nathael Pajani [Sun, 30 Jan 2022 03:26:59 +0000 (04:26 +0100)]
Adding deep sleep support Improving sleep state support

14 months agoAdding self-wakeup timer support
Nathael Pajani [Sun, 30 Jan 2022 03:25:51 +0000 (04:25 +0100)]
Adding self-wakeup timer support

14 months agoComments updates
Nathael Pajani [Sun, 30 Jan 2022 03:20:38 +0000 (04:20 +0100)]
Comments updates

14 months agoRemove unused function definition from bootstrap
Nathael Pajani [Sun, 30 Jan 2022 03:19:10 +0000 (04:19 +0100)]
Remove unused function definition from bootstrap

14 months agoFix registers definition for LPC82x system registers
Nathael Pajani [Sun, 30 Jan 2022 03:18:01 +0000 (04:18 +0100)]
Fix registers definition for LPC82x system registers

14 months agoUpdate watchdog code to allow use of watchdog as wake-up source
Nathael Pajani [Sun, 30 Jan 2022 03:16:01 +0000 (04:16 +0100)]
Update watchdog code to allow use of watchdog as wake-up source

14 months agoAdd function to stop continuous CC to BQ769x0 BMS support
Nathael Pajani [Sun, 30 Jan 2022 03:14:56 +0000 (04:14 +0100)]
Add function to stop continuous CC to BQ769x0 BMS support

14 months agoAdd Cell ballancing helpers to BQ769x0 BMS support
Nathael Pajani [Sun, 30 Jan 2022 03:14:13 +0000 (04:14 +0100)]
Add Cell ballancing helpers to BQ769x0 BMS support

14 months agoImprove WS2812 leds support and add WS2811 leds support
Nathael Pajani [Wed, 18 Aug 2021 08:18:25 +0000 (10:18 +0200)]
Improve WS2812 leds support and add WS2811 leds support

14 months agoRemove comment related to another uC
Nathael Pajani [Wed, 18 Aug 2021 08:17:15 +0000 (10:17 +0200)]
Remove comment related to another uC

14 months agoRemove typedef
Nathael Pajani [Wed, 18 Aug 2021 08:16:40 +0000 (10:16 +0200)]
Remove typedef

14 months agoStarting ROM uart support, not tested yet.
Nathael Pajani [Wed, 18 Aug 2021 08:15:09 +0000 (10:15 +0200)]
Starting ROM uart support, not tested yet.

14 months agoAdd PCF85363A RTC support
Nathael Pajani [Wed, 18 Aug 2021 08:12:05 +0000 (10:12 +0200)]
Add PCF85363A RTC support

14 months agobq769x0 BMS support (tested, but to be completed) Working: Alerts, config, and readin...
Nathael Pajani [Sat, 1 May 2021 19:35:46 +0000 (21:35 +0200)]
bq769x0 BMS support (tested, but to be completed) Working: Alerts, config, and reading of voltages and coulomb counter. Todo : Cell balancing

14 months agoWatchdog support fixed and tested. To be completed though.
Nathael Pajani [Sat, 1 May 2021 19:34:03 +0000 (21:34 +0200)]
Watchdog support fixed and tested. To be completed though.

14 months agoUpdate for power management (sleep and power down) support.
Nathael Pajani [Sat, 1 May 2021 19:32:59 +0000 (21:32 +0200)]
Update for power management (sleep and power down) support.

14 months agoAdd script to update version number for a given project, possibly at each compilation
Nathael Pajani [Sat, 1 May 2021 19:30:45 +0000 (21:30 +0200)]
Add script to update version number for a given project, possibly at each compilation

14 months agoUtils additions and fixes
Nathael Pajani [Mon, 19 Apr 2021 22:40:21 +0000 (00:40 +0200)]
Utils additions and fixes

14 months agoAdd define for PWM_OUT_INIT_SET
Nathael Pajani [Mon, 19 Apr 2021 22:33:53 +0000 (00:33 +0200)]
Add define for PWM_OUT_INIT_SET

14 months agoFix serial driver
Nathael Pajani [Mon, 19 Apr 2021 22:32:44 +0000 (00:32 +0200)]
Fix serial driver

14 months agoTypo fix in defines names for AHB (and not ABH)
Nathael Pajani [Mon, 19 Apr 2021 22:31:29 +0000 (00:31 +0200)]
Typo fix in defines names for AHB (and not ABH)

14 months agoControl of PWM duty cycle requires change of match value.
Nathael Pajani [Fri, 28 Dec 2018 11:03:03 +0000 (12:03 +0100)]
Control of PWM duty cycle requires change of match value.

14 months agosctimer_on is only for LPC_SCT
Nathael Pajani [Fri, 28 Dec 2018 11:01:36 +0000 (12:01 +0100)]
sctimer_on is only for LPC_SCT

14 months agoAdd 16bits versions of defines for Autolimit and autoreload register fields
Nathael Pajani [Fri, 28 Dec 2018 11:00:15 +0000 (12:00 +0100)]
Add 16bits versions of defines for Autolimit and autoreload register fields

14 months agouart->out_buff cannot be NULL, remove this tests.
Nathael Pajani [Thu, 15 Jun 2017 07:01:06 +0000 (09:01 +0200)]
uart->out_buff cannot be NULL, remove this tests.

14 months agoEcho on serial must be only a "best effort" and not mangle with ongoing transmissions
Nathael Pajani [Thu, 15 Jun 2017 07:00:40 +0000 (09:00 +0200)]
Echo on serial must be only a "best effort" and not mangle with ongoing transmissions

14 months agoAdd the ntoh* and hton* functions to the utils lib.
Nathael Pajani [Wed, 24 May 2017 12:37:55 +0000 (14:37 +0200)]
Add the ntoh* and hton* functions to the utils lib.

14 months agoFix types in serial driver
Nathael Pajani [Sat, 13 May 2017 01:46:04 +0000 (03:46 +0200)]
Fix types in serial driver

14 months agoUse available info from register rather than shift and mask in gpio_read() Comments...
Nathael Pajani [Sat, 13 May 2017 01:45:35 +0000 (03:45 +0200)]
Use available info from register rather than shift and mask in gpio_read() Comments updates in gpio/pio code

14 months agoAPI compatibility fixes for watchdog configuration structure
Nathael Pajani [Sat, 13 May 2017 01:42:14 +0000 (03:42 +0200)]
API compatibility fixes for watchdog configuration structure

14 months agoUpdated Makefile: Use LDFLAGS instead of LINKOPTS Use $(DEBUG) var
Nathael Pajani [Tue, 27 Sep 2016 22:14:44 +0000 (00:14 +0200)]
Updated Makefile: Use LDFLAGS instead of LINKOPTS Use $(DEBUG) var

14 months agoFix compilation warning
Nathael Pajani [Tue, 27 Sep 2016 22:13:47 +0000 (00:13 +0200)]
Fix compilation warning

14 months agoChanges to timers API
Nathael Pajani [Tue, 27 Sep 2016 22:11:56 +0000 (00:11 +0200)]
Changes to timers API

14 months agoChanges to ADC API
Nathael Pajani [Tue, 27 Sep 2016 22:10:53 +0000 (00:10 +0200)]
Changes to ADC API

14 months agoReturn a more explicit error value
Nathael Pajani [Mon, 26 Sep 2016 16:11:51 +0000 (18:11 +0200)]
Return a more explicit error value

14 months agoUpdate/Use enums for ports definitions
Nathael Pajani [Mon, 26 Sep 2016 16:11:21 +0000 (18:11 +0200)]
Update/Use enums for ports definitions

14 months agoRe-organise code
Nathael Pajani [Mon, 26 Sep 2016 16:10:35 +0000 (18:10 +0200)]
Re-organise code

14 months agoupdated comments
Nathael Pajani [Mon, 26 Sep 2016 16:10:11 +0000 (18:10 +0200)]
updated comments

14 months agoRemove duplicated comments
Nathael Pajani [Mon, 26 Sep 2016 16:08:28 +0000 (18:08 +0200)]
Remove duplicated comments

14 months agoUse "" instead of <> for includes, for consistency. Also remove unuseful includes...
Nathael Pajani [Mon, 26 Sep 2016 16:05:09 +0000 (18:05 +0200)]
Use "" instead of <> for includes, for consistency. Also remove unuseful includes (already in "core/system.h")

14 months agoAdding bits_set() to header file
Nathael Pajani [Mon, 26 Sep 2016 16:01:56 +0000 (18:01 +0200)]
Adding bits_set() to header file

14 months agoADC driver fixes and (small) improvements
Nathael Pajani [Mon, 26 Sep 2016 15:59:17 +0000 (17:59 +0200)]
ADC driver fixes and (small) improvements

14 months agoAdd VCNL4040 I2C Light / Distance sensor support
Nathael Pajani [Thu, 15 Sep 2016 13:47:00 +0000 (15:47 +0200)]
Add VCNL4040 I2C Light / Distance sensor support

14 months agoUpdate comments and add include guards
Nathael Pajani [Thu, 15 Sep 2016 13:46:26 +0000 (15:46 +0200)]
Update comments and add include guards

14 months agosmall cosmetic fixes
Nathael Pajani [Thu, 15 Sep 2016 03:14:32 +0000 (05:14 +0200)]
small cosmetic fixes

14 months agoAdd support for BME280 I2C Barometric, humidity and temperature sensor
Nathael Pajani [Thu, 15 Sep 2016 03:13:50 +0000 (05:13 +0200)]
Add support for BME280 I2C Barometric, humidity and temperature sensor

14 months agoAdd some delay between consecutive access to the sensors to prevent I2C busy conditions.
Nathael Pajani [Tue, 13 Sep 2016 23:24:05 +0000 (01:24 +0200)]
Add some delay between consecutive access to the sensors to prevent I2C busy conditions.

14 months agoFix enable / disable values for UV sensor
Nathael Pajani [Tue, 13 Sep 2016 23:22:25 +0000 (01:22 +0200)]
Fix enable / disable values for UV sensor

14 months agoSet sensor as not present upon I2C communication errors
Nathael Pajani [Tue, 13 Sep 2016 23:22:00 +0000 (01:22 +0200)]
Set sensor as not present upon I2C communication errors

14 months agoVEML6070 I2C UV sensor driver
Nathael Pajani [Tue, 13 Sep 2016 16:31:31 +0000 (18:31 +0200)]
VEML6070 I2C UV sensor driver

14 months agoTSL256x I2C luminosity and IR sensor driver
Nathael Pajani [Tue, 13 Sep 2016 16:30:57 +0000 (18:30 +0200)]
TSL256x I2C luminosity and IR sensor driver

14 months agoAdd a small delay between two consecutive access to the same sensor.
Nathael Pajani [Tue, 13 Sep 2016 16:24:44 +0000 (18:24 +0200)]
Add a small delay between two consecutive access to the same sensor.

14 months agoI2C driver fixes Move the release_bus part to a specific function as it blocks some...
Nathael Pajani [Tue, 13 Sep 2016 16:23:54 +0000 (18:23 +0200)]
I2C driver fixes Move the release_bus part to a specific function as it blocks some devices and most will work without it.

14 months agoAdd gpio_read() helper
Nathael Pajani [Mon, 5 Sep 2016 10:03:49 +0000 (12:03 +0200)]
Add gpio_read() helper

14 months agoMove enum to header file.
Nathael Pajani [Mon, 5 Sep 2016 10:03:10 +0000 (12:03 +0200)]
Move enum to header file.

14 months agoFix comments and use uprintf instead of serial_write
Nathael Pajani [Mon, 8 Aug 2016 20:20:18 +0000 (22:20 +0200)]
Fix comments and use uprintf instead of serial_write

14 months agoAdding comments to the pwm config structure and function Fixes to timer_on() function...
Nathael Pajani [Sat, 18 Jun 2016 11:59:15 +0000 (13:59 +0200)]
Adding comments to the pwm config structure and function Fixes to timer_on() function comments

14 months agoAdding partial support for State Configurable Timers (SCT) Use as one 32 bits counter...
Nathael Pajani [Sat, 18 Jun 2016 11:13:02 +0000 (13:13 +0200)]
Adding partial support for State Configurable Timers (SCT) Use as one 32 bits counter for PWM implemented and tested

14 months agoInitial commit Most of the code received basic testing. Most of the code comes from...
Nathael Pajani [Wed, 15 Jun 2016 16:41:56 +0000 (18:41 +0200)]
Initial commit Most of the code received basic testing. Most of the code comes from the LPC1224 support code.