Nathael Pajani [Tue, 27 Sep 2016 21:06:54 +0000 (23:06 +0200)]
Small additions to core/system.[ch] Small addition to gpio driver header
Nathael Pajani [Tue, 27 Sep 2016 21:05:00 +0000 (23:05 +0200)]
Move IAP status definitions to IAP header file
Nathael Pajani [Tue, 27 Sep 2016 21:03:58 +0000 (23:03 +0200)]
Move PIO config related code to pio.c and pio.h
Nathael Pajani [Tue, 27 Sep 2016 21:02:37 +0000 (23:02 +0200)]
Updated I2C driver to follow API documented here : wiki.techno-innov.fr/index.php/Technique/Logiciel/API/Use/Drivers/I2C Updated TMP101 sensor driver for API compliance Updated EEPROM driver for API compliance
Nathael Pajani [Tue, 27 Sep 2016 20:59:08 +0000 (22:59 +0200)]
ADC driver update for API compliance API documentation available here : wiki.techno-innov.fr/index.php/Technique/Logiciel/API/Use/Drivers/ADC
Nathael Pajani [Tue, 27 Sep 2016 20:56:35 +0000 (22:56 +0200)]
Serial driver update : return -EINVAL or -EBUSY instead of -1 on errors
Nathael Pajani [Tue, 27 Sep 2016 20:54:07 +0000 (22:54 +0200)]
Comments update
Nathael Pajani [Tue, 27 Sep 2016 20:48:39 +0000 (22:48 +0200)]
Updated stdlib et utils libs
Nathael Pajani [Tue, 27 Sep 2016 20:47:52 +0000 (22:47 +0200)]
Oops, forgot this upon linker script modifications commit
Nathael Pajani [Tue, 27 Sep 2016 20:47:14 +0000 (22:47 +0200)]
Rename lpc_core_cm0.h to lpc_core.h Rename lpc_regs_12xx.h to lpc_regs.h Split lpc_regs.h among all driver header files. Include lpc_core.h and lpc_regs.h from system.h Replace LPC1224 by LPC122x
Nathael Pajani [Tue, 27 Sep 2016 20:35:32 +0000 (22:35 +0200)]
Add errno.h (code moved from system.h) Add stdint.h Add NULL and size_t to stddef.h
Nathael Pajani [Tue, 27 Sep 2016 20:11:15 +0000 (22:11 +0200)]
Improve Makefile - Add comments - Use LDFLAGS instead of LINKOPTS - Use $(DEBUG) var Fixes on Linker script - Removed info page size and offset as they are accessible only "in app" - Remove duplicate hardcoded values - Fix for recent GCC versions - Fix system_init Update Readme
Nathael Pajani [Tue, 17 May 2016 14:58:56 +0000 (16:58 +0200)]
Typo fix in register name and comments update
Nathael Pajani [Tue, 17 May 2016 14:16:37 +0000 (16:16 +0200)]
Rename config register block as config instead of control
Nathael Pajani [Tue, 26 Apr 2016 23:01:55 +0000 (01:01 +0200)]
dtplug protocol fixes (on comments) and new values
Nathael Pajani [Tue, 26 Apr 2016 23:00:38 +0000 (01:00 +0200)]
Add defines for UART numbers
Nathael Pajani [Tue, 26 Apr 2016 23:00:19 +0000 (01:00 +0200)]
Add gpio_read() helper
Nathael Pajani [Tue, 26 Apr 2016 23:00:00 +0000 (01:00 +0200)]
Improvements to watchdog support
Nathael Pajani [Tue, 26 Apr 2016 22:59:17 +0000 (00:59 +0200)]
Adding define for register value combination for timers
Nathael Pajani [Tue, 26 Apr 2016 22:57:53 +0000 (00:57 +0200)]
Additions and improvements to WS2812 chainable leds support
Nathael Pajani [Tue, 26 Apr 2016 22:56:47 +0000 (00:56 +0200)]
Fix setup on interupts on GPIO
Nathael Pajani [Fri, 5 Feb 2016 16:56:46 +0000 (17:56 +0100)]
Make sequence number shorter to add a byte count for quick data packets.
Nathael Pajani [Fri, 5 Feb 2016 16:54:13 +0000 (17:54 +0100)]
Fix comment typo and remove obsolete code.
Nathael Pajani [Mon, 23 Nov 2015 12:17:35 +0000 (13:17 +0100)]
Improve the name of watchdog config fields
Nathael Pajani [Mon, 23 Nov 2015 12:04:23 +0000 (13:04 +0100)]
Basic Watchdog implementation, not fully tested
Nathael Pajani [Mon, 23 Nov 2015 12:01:42 +0000 (13:01 +0100)]
Use defines instead of hard-coded values Fix field name in lpc_sys_control structure
Nathael Pajani [Wed, 18 Nov 2015 21:59:09 +0000 (22:59 +0100)]
Remove header of previously removed function
Nathael Pajani [Wed, 18 Nov 2015 20:28:00 +0000 (21:28 +0100)]
Rename and move dtplug protocol files under approriate directory in lib/protocols Associated changes in source files
Nathael Pajani [Wed, 11 Nov 2015 18:34:41 +0000 (19:34 +0100)]
prevent namespace pollution
Nathael Pajani [Tue, 10 Nov 2015 20:35:08 +0000 (21:35 +0100)]
Comment fix
Nathael Pajani [Tue, 10 Nov 2015 20:34:56 +0000 (21:34 +0100)]
Remove debug.
Nathael Pajani [Tue, 10 Nov 2015 20:34:18 +0000 (21:34 +0100)]
Move static variables to a protocol handle struct Enables multiple use of the protocol in the same application on different interfaces.
Nathael Pajani [Tue, 10 Nov 2015 20:28:36 +0000 (21:28 +0100)]
Add some helper functions for serial (UART) driver.
Nathael Pajani [Thu, 1 Oct 2015 19:56:28 +0000 (21:56 +0200)]
Some timer fixes for PWM mode.
Nathael Pajani [Thu, 24 Sep 2015 10:32:37 +0000 (12:32 +0200)]
remote debug
Nathael Pajani [Wed, 23 Sep 2015 12:46:31 +0000 (14:46 +0200)]
Remove unused header and fix comment.
Nathael Pajani [Wed, 23 Sep 2015 12:45:54 +0000 (14:45 +0200)]
Fix hidden segfault, this should never have been working. It should have trigggered a BusFault exception instead.
Nathael Pajani [Tue, 22 Sep 2015 08:19:46 +0000 (10:19 +0200)]
Much more efficient, thank you cyprien :)
Nathael Pajani [Fri, 18 Sep 2015 12:30:25 +0000 (14:30 +0200)]
Simpler, though not necessary better.
Nathael Pajani [Thu, 17 Sep 2015 19:43:14 +0000 (21:43 +0200)]
Change some defaults for RF settings
Nathael Pajani [Thu, 17 Sep 2015 19:15:45 +0000 (21:15 +0200)]
Do not change state if already in the required one Place config registers in address order for readability and update comments
Nathael Pajani [Thu, 17 Sep 2015 19:00:11 +0000 (21:00 +0200)]
Add cc1101_send_calibration_request() and cc1101_enter_fstxon_state() functions
Nathael Pajani [Thu, 17 Sep 2015 18:56:49 +0000 (20:56 +0200)]
Simple CC1101 driver modifications - Add comments - Add cc1101_set_channel() function - Place the CC1101 chip in idle state when changing configuration registers - Add cc1101_read_pkt_status() function - Remove niternal functions from header file
Nathael Pajani [Thu, 17 Sep 2015 18:46:41 +0000 (20:46 +0200)]
Add stdlib with strtoul()
Nathael Pajani [Thu, 17 Sep 2015 18:45:36 +0000 (20:45 +0200)]
Allow sub-folders in lib directory
Nathael Pajani [Wed, 16 Sep 2015 10:10:47 +0000 (12:10 +0200)]
Add comments to the head of each file to introduce the code and help readers to figure out what's done in each file.
Nathael Pajani [Tue, 15 Sep 2015 23:57:44 +0000 (01:57 +0200)]
Forgot to modify the comment in the header file too. Done.
Nathael Pajani [Tue, 15 Sep 2015 23:57:20 +0000 (01:57 +0200)]
Some more coding style
Nathael Pajani [Tue, 15 Sep 2015 23:42:05 +0000 (01:42 +0200)]
Coding style consistency
Nathael Pajani [Tue, 15 Sep 2015 07:26:29 +0000 (09:26 +0200)]
Updated comments according to new apps directory structure.
Nathael Pajani [Sat, 12 Sep 2015 10:41:44 +0000 (12:41 +0200)]
Add some Namespace indicators for these in order to ease development of other protocols
Nathael Pajani [Sat, 12 Sep 2015 10:40:02 +0000 (12:40 +0200)]
The NCN5120 is made by On Semiconductor, not NXP
Gabriel Huau [Thu, 27 Aug 2015 04:48:59 +0000 (21:48 -0700)]
move code to use uprintf instead of snprintf+serial_write
This simplify a lot the code to output anything on any UART.
Nathael Pajani [Thu, 10 Sep 2015 08:42:14 +0000 (10:42 +0200)]
Updated README file
Nathael Pajani [Thu, 10 Sep 2015 06:57:44 +0000 (08:57 +0200)]
Add support for the NCN5120 KNX bus driver from NXP. To be tested. Part of manually merging the KNX branch
Nathael Pajani [Wed, 9 Sep 2015 20:10:52 +0000 (22:10 +0200)]
Modify base makefile according to the new subdirectory scheme.
Nathael Pajani [Wed, 9 Sep 2015 19:15:01 +0000 (21:15 +0200)]
Add LCD Character Displays support.
Nathael Pajani [Wed, 9 Sep 2015 19:14:24 +0000 (21:14 +0200)]
Add Max31855 thermocouple to digital converter support.
Nathael Pajani [Wed, 9 Sep 2015 19:13:42 +0000 (21:13 +0200)]
Improve usleep function and add a "usleep_short()" function, to be used only for usleep under 1000us and which does not check that systick is running.
Nathael Pajani [Wed, 9 Sep 2015 19:11:04 +0000 (21:11 +0200)]
Add include guards
Nathael Pajani [Wed, 9 Sep 2015 19:10:46 +0000 (21:10 +0200)]
Add a few comments
Nathael Pajani [Wed, 9 Sep 2015 19:10:14 +0000 (21:10 +0200)]
Display some size information about the image (used data) at the end of the compilation.
Nathael Pajani [Sun, 6 Sep 2015 19:39:21 +0000 (21:39 +0200)]
Time handling helpers improvements, still to be tested.
Nathael Pajani [Sun, 6 Sep 2015 19:36:29 +0000 (21:36 +0200)]
Split system.h, moving systick related parts to systick.h Add a function to systick driver to get the current reload value for systick timer. Stop exporting internal sleep implementation functions.
Nathael Pajani [Wed, 2 Sep 2015 12:04:31 +0000 (14:04 +0200)]
Well ... not really at ease with git yet
Nathael Pajani [Wed, 2 Sep 2015 09:19:18 +0000 (11:19 +0200)]
DTPlug protocol implementation To be fully tested
Nathael Pajani [Wed, 2 Sep 2015 09:13:42 +0000 (11:13 +0200)]
First bits of time handling Must be modified for use of the RTC interrupt for seconds counting when there is a RTC external oscilator as stated in the comments. Not fully tested yet.
Nathael Pajani [Wed, 2 Sep 2015 09:10:41 +0000 (11:10 +0200)]
Move all static information to a structure to allow the use of multiple sensors.
Nathael Pajani [Wed, 2 Sep 2015 09:08:54 +0000 (11:08 +0200)]
Linked list implementation from the Linux kernel
Nathael Pajani [Wed, 2 Sep 2015 09:08:07 +0000 (11:08 +0200)]
Provide offsetof when there is no builtin Add container_of
Nathael Pajani [Wed, 2 Sep 2015 09:05:30 +0000 (11:05 +0200)]
Add some more room for user information and provide the required addresses
Nathael Pajani [Mon, 31 Aug 2015 15:41:04 +0000 (17:41 +0200)]
Add a uprintf (UART printf) that outputs data on selected UART
Nathael Pajani [Wed, 26 Aug 2015 21:13:17 +0000 (23:13 +0200)]
Oups ! That's better with the parenthesis ... There's still so much to be tested ...
Nathael Pajani [Wed, 26 Aug 2015 21:12:05 +0000 (23:12 +0200)]
Callback takes two 'l'
Nathael Pajani [Tue, 25 Aug 2015 22:55:43 +0000 (00:55 +0200)]
Sensor address is now a parameter to all functions so that many sensors may be used. I2C bus should be a parameter too, but there's only one I2C bus on LPC1224.
Nathael Pajani [Tue, 25 Aug 2015 22:52:25 +0000 (00:52 +0200)]
Fix some bit definitions for serial registers. Set callback to NULL when uart is turned OFF.
Nathael Pajani [Tue, 25 Aug 2015 22:50:59 +0000 (00:50 +0200)]
Comments typo fixes
Cyprien LAPLACE [Sun, 5 Apr 2015 12:23:50 +0000 (14:23 +0200)]
serial: add serial_flush()
Only return once all the in-buffer characters are sent.
Also call uart handler while waiting interrupt off!
Now hard fault are visible :)
Nathael Pajani [Fri, 14 Aug 2015 15:12:34 +0000 (17:12 +0200)]
Add a lock function which keeps IRQ off while the lock is held.
Nathael Pajani [Fri, 14 Aug 2015 15:11:00 +0000 (17:11 +0200)]
Add const to function header for const config data
Nathael Pajani [Fri, 14 Aug 2015 15:09:51 +0000 (17:09 +0200)]
Updated comments
Nathael Pajani [Thu, 13 Aug 2015 23:03:15 +0000 (01:03 +0200)]
Add WS2812 chainable leds support
Nathael Pajani [Thu, 13 Aug 2015 23:01:25 +0000 (01:01 +0200)]
Some timers fixes.
Nathael Pajani [Tue, 11 Aug 2015 18:49:55 +0000 (20:49 +0200)]
user information block cannot be programmed using ISP mode. It must be done using IAP.
Nathael Pajani [Tue, 11 Aug 2015 16:58:19 +0000 (18:58 +0200)]
Updated README
Nathael Pajani [Tue, 11 Aug 2015 16:58:00 +0000 (18:58 +0200)]
typo fix in comments
Nathael Pajani [Tue, 11 Aug 2015 16:55:46 +0000 (18:55 +0200)]
better this way to ignore all .img and .bak files
Nathael Pajani [Wed, 22 Jul 2015 09:24:29 +0000 (11:24 +0200)]
ignore also these extentions, they usually mark generated binaries or development files.
Nathael Pajani [Wed, 22 Jul 2015 01:04:23 +0000 (03:04 +0200)]
Add an 8x8 font with ascii characters only.
Nathael Pajani [Wed, 22 Jul 2015 01:03:34 +0000 (03:03 +0200)]
Add epaper driver for pervasive display epaper screens on embedded artists adapter.
Nathael Pajani [Wed, 22 Jul 2015 00:46:37 +0000 (02:46 +0200)]
Introduce new UART baud-rate generator configuration mechanism to achieve higher data rates. Keep the old one for data rates below or equal to 115200. Only 1152000 supported above (yet)
Nathael Pajani [Wed, 22 Jul 2015 00:45:05 +0000 (02:45 +0200)]
Use the saved flags for intr reset. Do not erase possible other interrupt sources.
Nathael Pajani [Wed, 22 Jul 2015 00:44:16 +0000 (02:44 +0200)]
Add and fix comments
Nathael Pajani [Fri, 27 Mar 2015 12:59:09 +0000 (13:59 +0100)]
Fix some comments
Nathael Pajani [Thu, 19 Mar 2015 22:02:23 +0000 (23:02 +0100)]
Minor comment fixe
Nathael Pajani [Thu, 19 Mar 2015 22:02:10 +0000 (23:02 +0100)]
Add gpio_toggle define
Nathael Pajani [Thu, 19 Mar 2015 22:01:31 +0000 (23:01 +0100)]
Update licence version for this file
Nathael Pajani [Fri, 27 Feb 2015 09:19:31 +0000 (10:19 +0100)]
Use arm-none-eabi- compilation toolchain for embeded micro-controllers. No need of a GNU C library for Linux targets, these are not linux targets. arm-none-eabi- compilation toolchain is now in Debian GNU/Linux SID arm-none-eabi- is also the most common toolchain name for embedded ARM targets
Nathael Pajani [Sun, 22 Feb 2015 02:03:21 +0000 (03:03 +0100)]
Fix this copy-paste error ... oups :(
Nathael Pajani [Sun, 22 Feb 2015 01:50:14 +0000 (02:50 +0100)]
Add some gpio helper functions. Note that these are not very effective unless the compiler does some optimisations when called multiple times from the same function.