soft/lpc122x/core
2 months agoImprove readability master
Nathael Pajani [Mon, 29 Jan 2024 22:32:56 +0000 (23:32 +0100)]
Improve readability

2 months agoAdd support for GPIO input filtering activation
Nathael Pajani [Mon, 29 Jan 2024 22:31:33 +0000 (23:31 +0100)]
Add support for GPIO input filtering activation

2 months agoAdd support for GPIO filtering clock divider configuration.
Nathael Pajani [Mon, 29 Jan 2024 22:30:11 +0000 (23:30 +0100)]
Add support for GPIO filtering clock divider configuration.

5 months agoFix typo (bad name for apps dir) in README file
Nathael Pajani [Mon, 6 Nov 2023 13:47:51 +0000 (14:47 +0100)]
Fix typo (bad name for apps dir) in README file

7 months agoAdd msb() and lsb() utility functions
Nathael Pajani [Thu, 21 Sep 2023 22:41:36 +0000 (00:41 +0200)]
Add msb() and lsb() utility functions

7 months agoAdd list_exactly_one() and list_more_than_one() utility functions
Nathael Pajani [Thu, 21 Sep 2023 22:27:48 +0000 (00:27 +0200)]
Add list_exactly_one() and list_more_than_one() utility functions

7 months agoChange terminology : "entry" becomes "element".
Nathael Pajani [Thu, 21 Sep 2023 22:27:01 +0000 (00:27 +0200)]
Change terminology : "entry" becomes "element".
No functionnal changes.

7 months agoOnly call sleep function if we want to sleep
Nathael Pajani [Thu, 21 Sep 2023 22:24:38 +0000 (00:24 +0200)]
Only call sleep function if we want to sleep

7 months agoAdding comment for future RTOS/multitasking integration
Nathael Pajani [Thu, 21 Sep 2023 22:23:50 +0000 (00:23 +0200)]
Adding comment for future RTOS/multitasking integration

7 months agoAdding comment for future RTOS/multitasking integration
Nathael Pajani [Thu, 21 Sep 2023 22:18:05 +0000 (00:18 +0200)]
Adding comment for future RTOS/multitasking integration

7 months agoTypo fix and comment update
Nathael Pajani [Thu, 21 Sep 2023 22:03:41 +0000 (00:03 +0200)]
Typo fix and comment update

13 months agoMove ws2812fx library to extlib/ws2812fx directory
Nathael Pajani [Mon, 27 Feb 2023 13:24:49 +0000 (14:24 +0100)]
Move ws2812fx library to extlib/ws2812fx directory
Update header.

14 months agoUpdate comments in timers header file
Nathael Pajani [Wed, 15 Feb 2023 00:08:55 +0000 (01:08 +0100)]
Update comments in timers header file

14 months agoUpdate comments in ADC header file
Nathael Pajani [Wed, 15 Feb 2023 00:08:25 +0000 (01:08 +0100)]
Update comments in ADC header file

14 months agoModify main Makefile to allow easy "per project" libs shared among apps of a single...
Nathael Pajani [Wed, 15 Feb 2023 00:07:51 +0000 (01:07 +0100)]
Modify main Makefile to allow easy "per project" libs shared among apps of a single project.

14 months agoUpdate gitignore files
Nathael Pajani [Wed, 15 Feb 2023 00:06:15 +0000 (01:06 +0100)]
Update gitignore files

14 months agoUpdate app filter to prevent building host binaries with target toolchain when buildi...
Nathael Pajani [Wed, 8 Feb 2023 20:28:16 +0000 (21:28 +0100)]
Update app filter to prevent building host binaries with target toolchain when building all projects
Also remove non ASCII characters from Makefile

15 months agoUpdate README according to new git repository organisation
Nathael Pajani [Tue, 24 Jan 2023 13:35:45 +0000 (14:35 +0100)]
Update README according to new git repository organisation

15 months agoFix : out_buff will never be NULL, remove corresponding tests
Nathael Pajani [Tue, 24 Jan 2023 13:23:27 +0000 (14:23 +0100)]
Fix : out_buff will never be NULL, remove corresponding tests

15 months agoUpdate README file due to git repositories path changes
Nathael Pajani [Tue, 24 Jan 2023 13:22:27 +0000 (14:22 +0100)]
Update README file due to git repositories path changes

17 months agoSimplify the data structure to get SD/MMC to SPI mode, and use SPI
Nathael Pajani [Thu, 10 Nov 2022 11:16:39 +0000 (12:16 +0100)]
Simplify the data structure to get SD/MMC to SPI mode, and use SPI
functions instead of direct GPIO access

17 months agoAdd numbering to packet types for debugging
Nathael Pajani [Fri, 15 Jul 2022 01:48:59 +0000 (03:48 +0200)]
Add numbering to packet types for debugging

17 months agoWhen running make from root directory, only look for apps in directories,
Nathael Pajani [Tue, 8 Nov 2022 18:12:21 +0000 (19:12 +0100)]
When running make from root directory, only look for apps in directories,
not in common files ...

17 months agoImprove README content
Nathael Pajani [Tue, 8 Nov 2022 16:43:45 +0000 (17:43 +0100)]
Improve README content

17 months agoUpdate main README file according to changes introduced by the modules
Nathael Pajani [Tue, 8 Nov 2022 16:41:54 +0000 (17:41 +0100)]
Update main README file according to changes introduced by the modules
splitting to new repositories.

17 months agoAdd .gitignore so that modules code is not handled by base lpc122x support
Nathael Pajani [Tue, 8 Nov 2022 16:05:36 +0000 (17:05 +0100)]
Add .gitignore so that modules code is not handled by base lpc122x support
git anymore

17 months agoAdd new README in apps directory, to prepare for extraction of examples and all modul...
Nathael Pajani [Tue, 8 Nov 2022 16:00:22 +0000 (17:00 +0100)]
Add new README in apps directory, to prepare for extraction of examples and all modules apps from the main repository.

17 months agoImprove SD/MMC Card support, add comments
Nathael Pajani [Mon, 7 Nov 2022 16:50:04 +0000 (17:50 +0100)]
Improve SD/MMC Card support, add comments

17 months agoAdd comments with names matching literature.
Nathael Pajani [Mon, 7 Nov 2022 16:48:45 +0000 (17:48 +0100)]
Add comments with names matching literature.

17 months agoUpdated main README
Nathael Pajani [Sat, 5 Nov 2022 02:01:07 +0000 (03:01 +0100)]
Updated main README

17 months agoUpdating README file
Nathael Pajani [Thu, 3 Nov 2022 00:07:00 +0000 (01:07 +0100)]
Updating README file

17 months agoAdd BCD to decimal conversion of values read from RTC, and decimal to BCD when storin...
Nathael Pajani [Sat, 15 Oct 2022 00:37:06 +0000 (02:37 +0200)]
Add BCD to decimal conversion of values read from RTC, and decimal to BCD when storing values.

17 months agoUse fixed version of IRQ priority helpers
Nathael Pajani [Mon, 7 Feb 2022 02:12:21 +0000 (03:12 +0100)]
Use fixed version of IRQ priority helpers

17 months agoFix IRQ priority setting helpers
Nathael Pajani [Mon, 7 Feb 2022 02:11:54 +0000 (03:11 +0100)]
Fix IRQ priority setting helpers

17 months agoSmall timer support fix Adding useful define in timer support.
Nathael Pajani [Sat, 1 May 2021 19:25:40 +0000 (21:25 +0200)]
Small timer support fix Adding useful define in timer support.

17 months agoimprove ws2812B timmings
Nathael Pajani [Sun, 3 Jan 2021 14:19:53 +0000 (15:19 +0100)]
improve ws2812B timmings

17 months agoSupport for MCP3021 I2C ADC from Microchip
Nathael Pajani [Sun, 3 Jan 2021 14:19:26 +0000 (15:19 +0100)]
Support for MCP3021 I2C ADC from Microchip

17 months agoInitial part of BQ769x0 BMS support
Nathael Pajani [Sun, 6 Dec 2020 17:46:17 +0000 (18:46 +0100)]
Initial part of BQ769x0 BMS support

17 months agoImprove SD/MMC support driver, allowing use of newer uSD cards Tested on 8Gb SDHC...
Nathael Pajani [Thu, 19 Nov 2020 18:54:29 +0000 (19:54 +0100)]
Improve SD/MMC support driver, allowing use of newer uSD cards Tested on 8Gb SDHC uSD card

17 months agoImprove comment
Nathael Pajani [Thu, 19 Nov 2020 18:49:00 +0000 (19:49 +0100)]
Improve comment

17 months agoAdd reverse_byte()
Nathael Pajani [Thu, 19 Nov 2020 18:48:38 +0000 (19:48 +0100)]
Add reverse_byte()

17 months agoFix bits_set
Nathael Pajani [Thu, 19 Nov 2020 18:48:20 +0000 (19:48 +0100)]
Fix bits_set

17 months agoUpdate config part of CC1101 driver
Nathael Pajani [Thu, 19 Nov 2020 18:45:18 +0000 (19:45 +0100)]
Update config part of CC1101 driver

17 months agoimprove driver, remove duplicated code by using toggle gpio driver capability.
Nathael Pajani [Thu, 19 Nov 2020 18:42:11 +0000 (19:42 +0100)]
improve driver, remove duplicated code by using toggle gpio driver capability.

17 months agoAdd Todo comment
Nathael Pajani [Thu, 24 Sep 2020 11:17:19 +0000 (13:17 +0200)]
Add Todo comment

17 months agoFix WS2812 timmings
Nathael Pajani [Thu, 24 Sep 2020 11:10:37 +0000 (13:10 +0200)]
Fix WS2812 timmings

17 months agoAdd macro for RGB conversion
Nathael Pajani [Thu, 24 Sep 2020 11:09:40 +0000 (13:09 +0200)]
Add macro for RGB conversion

17 months agoAdd first version ST7735 TFT driver support
Nathael Pajani [Thu, 24 Sep 2020 04:16:11 +0000 (06:16 +0200)]
Add first version ST7735 TFT driver support

17 months agoUse SPI Macro for word length specification (improves readability)
Nathael Pajani [Thu, 24 Sep 2020 04:14:42 +0000 (06:14 +0200)]
Use SPI Macro for word length specification (improves readability)

17 months agoFix coments and add macro for SPI
Nathael Pajani [Thu, 24 Sep 2020 04:13:22 +0000 (06:13 +0200)]
Fix coments and add macro for SPI

17 months agoUpdated font to get up and down arrow and "°"
Nathael Pajani [Fri, 12 Jun 2020 23:31:14 +0000 (01:31 +0200)]
Updated font to get up and down arrow and "°"

17 months agoUpdate WS2812FX lib
Nathael Pajani [Fri, 12 Jun 2020 14:38:37 +0000 (16:38 +0200)]
Update WS2812FX lib

17 months agoAdd include guards
Nathael Pajani [Fri, 12 Jun 2020 14:37:51 +0000 (16:37 +0200)]
Add include guards

17 months agoUpdate of lib/utils : make min and max inline, and add abs and constrain
Nathael Pajani [Fri, 12 Jun 2020 14:37:30 +0000 (16:37 +0200)]
Update of lib/utils : make min and max inline, and add abs and constrain

17 months agoFixes to dtplug protocol
Nathael Pajani [Fri, 12 Jun 2020 10:31:07 +0000 (12:31 +0200)]
Fixes to dtplug protocol

17 months agoModify the ws2812 driver to support multiple led strips.
Nathael Pajani [Fri, 12 Jun 2020 10:28:58 +0000 (12:28 +0200)]
Modify the ws2812 driver to support multiple led strips.

17 months agoRemove old version of WS2812 effects
Nathael Pajani [Fri, 12 Jun 2020 10:28:01 +0000 (12:28 +0200)]
Remove old version of WS2812 effects

17 months agoAdding script to update (increment) firmware version number used for scialys app...
Nathael Pajani [Thu, 11 Jun 2020 19:13:12 +0000 (21:13 +0200)]
Adding script to update (increment) firmware version number used for scialys app, may be used by any app.

17 months agoFix for un-initialised buffer content when sending empty packets. Updated comments
Nathael Pajani [Thu, 11 Jun 2020 19:10:45 +0000 (21:10 +0200)]
Fix for un-initialised buffer content when sending empty packets. Updated comments

17 months agoFix in CC1101 support
Nathael Pajani [Thu, 11 Jun 2020 19:09:37 +0000 (21:09 +0200)]
Fix in CC1101 support

17 months agoTypo (copy paste) fix in comments
Nathael Pajani [Thu, 11 Jun 2020 19:09:00 +0000 (21:09 +0200)]
Typo (copy paste) fix in comments

17 months agoadd LPC_TIMER_INT_RESET_ON_MATCH define
Nathael Pajani [Thu, 11 Apr 2019 13:58:40 +0000 (15:58 +0200)]
add LPC_TIMER_INT_RESET_ON_MATCH define

17 months agoAdd rtc_pcf85363_daytime_to_seconds and rtc_pcf85363_seconds_to_daytime
Nathael Pajani [Thu, 11 Apr 2019 13:51:18 +0000 (15:51 +0200)]
Add rtc_pcf85363_daytime_to_seconds and rtc_pcf85363_seconds_to_daytime

17 months agoChange the lenght value, not the address of the pointer to the length value
Nathael Pajani [Sat, 16 Mar 2019 16:30:52 +0000 (17:30 +0100)]
Change the lenght value, not the address of the pointer to the length value

17 months agoUse return value in order to return the topic string size as the topic string is...
Nathael Pajani [Sat, 16 Mar 2019 16:30:08 +0000 (17:30 +0100)]
Use return value in order to return the topic string size as the topic string is not null terminated.

17 months agothere is no packet ID in mqtt publish packets for QoS 0 publish
Nathael Pajani [Sat, 16 Mar 2019 16:28:02 +0000 (17:28 +0100)]
there is no packet ID in mqtt publish packets for QoS 0 publish

17 months agoUse memcpy as data may not be word aligned
Nathael Pajani [Sat, 16 Mar 2019 16:26:49 +0000 (17:26 +0100)]
Use memcpy as data may not be word aligned

17 months agoreplace "response" by "reply" and add support for subscribe (under test) and ping...
Nathael Pajani [Sat, 16 Mar 2019 16:25:30 +0000 (17:25 +0100)]
replace "response" by "reply" and add support for subscribe (under test) and ping (not tested)

17 months agoUse struct mqtt_topic for topic names
Nathael Pajani [Sat, 16 Mar 2019 16:20:52 +0000 (17:20 +0100)]
Use struct mqtt_topic for topic names

17 months agoFinally, support multiple topics at once using an array and array_size field
Nathael Pajani [Sat, 16 Mar 2019 16:15:26 +0000 (17:15 +0100)]
Finally, support multiple topics at once using an array and array_size field

17 months agoAdding ws2812fx lib and its single-led version ws2812sfx
Cyprien Laplace [Mon, 11 Mar 2019 01:32:50 +0000 (21:32 -0400)]
Adding ws2812fx lib and its single-led version ws2812sfx

17 months agoFix byte_swap_16, ntohs and htons types
Cyprien Laplace [Mon, 11 Mar 2019 02:15:59 +0000 (22:15 -0400)]
Fix byte_swap_16, ntohs and htons types

All these functions are using 16-bits arguments and results.

17 months agoFix copy of uint16_t to buff, destination may not be aligned on word boundary.
Nathael Pajani [Sun, 10 Mar 2019 02:00:37 +0000 (03:00 +0100)]
Fix copy of uint16_t to buff, destination may not be aligned on word boundary.

17 months agoSome more parts of MQTT protocol support Compiles, untested.
Nathael Pajani [Fri, 8 Mar 2019 16:32:10 +0000 (17:32 +0100)]
Some more parts of MQTT protocol support Compiles, untested.

17 months agoChange how MQTT strings are stored
Nathael Pajani [Fri, 8 Mar 2019 16:30:26 +0000 (17:30 +0100)]
Change how MQTT strings are stored

17 months agoMQTT protocol support going on, adding connack packet check. Compiles but still untested.
Nathael Pajani [Wed, 6 Mar 2019 00:31:26 +0000 (01:31 +0100)]
MQTT protocol support going on, adding connack packet check. Compiles but still untested.

17 months agoMQTT protocol support going on, compiles but still untested.
Nathael Pajani [Tue, 5 Mar 2019 23:38:06 +0000 (00:38 +0100)]
MQTT protocol support going on, compiles but still untested.

17 months agoConform to libc headers for htons and ntohs functions returning uint16_t
Nathael Pajani [Tue, 5 Mar 2019 23:36:38 +0000 (00:36 +0100)]
Conform to libc headers for htons and ntohs functions returning uint16_t

17 months agoFirst parts of MQTT protocol support
Nathael Pajani [Tue, 5 Mar 2019 14:28:42 +0000 (15:28 +0100)]
First parts of MQTT protocol support

17 months agoRemove extra space in comment and add define for user info pages size in user flash
Nathael Pajani [Tue, 5 Mar 2019 14:24:37 +0000 (15:24 +0100)]
Remove extra space in comment and add define for user info pages size in user flash

17 months agoUpdate all files to mention version 3 of the GPL.
Nathael Pajani [Thu, 21 Feb 2019 15:34:16 +0000 (16:34 +0100)]
Update all files to mention version 3 of the GPL.

17 months agoAdd support for deep sleep Wake-up not fully implemented, use NVIC_SystemReset()...
Nathael Pajani [Mon, 7 Jan 2019 22:21:37 +0000 (23:21 +0100)]
Add support for deep sleep Wake-up not fully implemented, use NVIC_SystemReset() to reset the micro-controller if you do not want to fix the wake-up part.

17 months agoAdd cc1101_enter_wake_on_radio() To Be Tested
Nathael Pajani [Mon, 7 Jan 2019 22:18:56 +0000 (23:18 +0100)]
Add cc1101_enter_wake_on_radio() To Be Tested

17 months agoalso keep an untracked dev directory for host code
Nathael Pajani [Thu, 3 Jan 2019 21:26:51 +0000 (22:26 +0100)]
also keep an untracked dev directory for host code

17 months agoThis is DEEP power down bit, not "power down".
Nathael Pajani [Thu, 3 Jan 2019 16:56:06 +0000 (17:56 +0100)]
This is DEEP power down bit, not "power down".

17 months agoAdd function to get back to normal state upon Rx error.
Nathael Pajani [Thu, 3 Jan 2019 16:54:16 +0000 (17:54 +0100)]
Add function to get back to normal state upon Rx error.

17 months agoRemove unnecessary intermediate var
Nathael Pajani [Thu, 3 Jan 2019 16:53:15 +0000 (17:53 +0100)]
Remove unnecessary intermediate var

17 months agoTemperature can be negative, use signed integer.
Nathael Pajani [Thu, 3 Jan 2019 16:52:05 +0000 (17:52 +0100)]
Temperature can be negative, use signed integer.

17 months agoFix interverted parameter names
Nathael Pajani [Thu, 3 Jan 2019 16:50:50 +0000 (17:50 +0100)]
Fix interverted parameter names

17 months agoAdd condition to allow inclusion in host code
Nathael Pajani [Thu, 3 Jan 2019 16:49:37 +0000 (17:49 +0100)]
Add condition to allow inclusion in host code

17 months agoSo true. Hope we are not too far from good ones :)
Nathael Pajani [Sat, 1 Dec 2018 13:24:32 +0000 (14:24 +0100)]
So true. Hope we are not too far from good ones :)

17 months agoA little bit more readable
Nathael Pajani [Sat, 1 Dec 2018 13:20:26 +0000 (14:20 +0100)]
A little bit more readable

17 months agoAdd support for continuous conversion mode
Nathael Pajani [Sat, 1 Dec 2018 13:19:47 +0000 (14:19 +0100)]
Add support for continuous conversion mode

17 months agoUse appropriate defined value
Nathael Pajani [Sat, 1 Dec 2018 13:19:17 +0000 (14:19 +0100)]
Use appropriate defined value

17 months agooled: add support for SPI ssd130x displays
Cyprien Laplace [Sat, 24 Jun 2017 20:47:22 +0000 (16:47 -0400)]
oled: add support for SPI ssd130x displays

For I2C displays, the bus_type needs to be added:

+   .bus_type = SSD130x_BUS_I2C,
    .address = DISPLAY_ADDR,
    .bus_num = I2C0,

To use a SPI display:

1/ add the SSP include:

    #include "drivers/ssp.h"

2/ add the SPI pins to the init table:

    /* SPI : Display */
    { LPC_SSP0_SCLK_PIO_0_14, LPC_IO_DIGITAL },
    { LPC_SSP0_MISO_PIO_0_16, LPC_IO_DIGITAL },
    { LPC_SSP0_MOSI_PIO_0_17, LPC_IO_DIGITAL },

3/ update the oled_display conf:

    .bus_type = SSD130x_BUS_SPI,
    .bus_num = SSP_BUS_0,
    .gpio_dc = LPC_GPIO_0_0,
    .gpio_cs = LPC_GPIO_1_0,
    .gpio_rst = LPC_GPIO_0_31,

4/ initialize the SPI bus:

    ssp_master_on(SSP_BUS_0, LPC_SSP_FRAME_SPI, 8, 8*1000*1000);

17 months agooled: make async/sync mode configurable
Cyprien Laplace [Wed, 21 Jun 2017 00:11:45 +0000 (20:11 -0400)]
oled: make async/sync mode configurable

A new "async" parameter in the display structure let the user choose
between asynchronous or synchronous screen updates. This affects both
fullscreen and tiled updates.

Also only re-send the full window when needed. WARNING: this only
tracks driver updates of it...

17 months agoFix comments
Nathael Pajani [Sun, 1 Oct 2017 00:55:55 +0000 (02:55 +0200)]
Fix comments

17 months agoChirp I2C Soil moisture sensors support
Nathael Pajani [Sun, 1 Oct 2017 00:55:27 +0000 (02:55 +0200)]
Chirp I2C Soil moisture sensors support

17 months agocleaner asm
David Odin [Tue, 20 Jun 2017 23:13:16 +0000 (01:13 +0200)]
cleaner asm

17 months agoAllow asm source files
David Odin [Mon, 19 Jun 2017 17:47:44 +0000 (19:47 +0200)]
Allow asm source files