Commit Graph

6964 Commits

Author SHA1 Message Date
Glenn Ruben Bakke
bc22cc9ce8 nrf5/boards: Enabling display drivers/spi/pwm to be compiled in on pca10040 target board. Updating SPI configuration with gpio port. 2017-01-08 21:16:41 +01:00
Glenn Ruben Bakke
0676c9774a nrf5/hal: Correcting SPI psel port position define name to the one defined in nrf52840_bitfields.h 2017-01-08 20:31:30 +01:00
Glenn Ruben Bakke
604ae87192 nrf5/led: Hardcoding GPIO port 0 for Led module for now. 2017-01-08 16:41:48 +01:00
Glenn Ruben Bakke
3e1da27f2b nrf5/hal: Changing import of nrf52 includes in hal_uarte.c to not be explicit. Now only nrf.h is included. 2017-01-08 16:41:11 +01:00
Glenn Ruben Bakke
43a2355665 nrf5: Updating pin, spi and uart to use port configuration for gpio pins. Update pin generation script, macros for PIN generation. Updating macros for setting pin values adding new port parameter to select the correct GPIO peripheral port. 2017-01-08 16:40:18 +01:00
Glenn Ruben Bakke
014e650499 nrf5/boards: Disable SPI hal from pca10001 board. 2017-01-08 16:28:18 +01:00
Glenn Ruben Bakke
ec44f6427b nrf5/boards: Disable SPI/Timer/RTC hal from microbit board. 2017-01-08 16:27:35 +01:00
Glenn Ruben Bakke
8e71bcea07 nrf5: Exclude import of pwm.h in modmachine.c if MICROPY_PY_MACHINE_PWM is not set, as nrf51 does not yet have this module yet. 2017-01-08 16:26:03 +01:00
Glenn Ruben Bakke
b75cefd383 nrf5: Exclude import of pwm.h in main.c if MICROPY_PY_MACHINE_PWM is not set, as nrf51 does not yet have this module yet. 2017-01-08 16:25:10 +01:00
Glenn Ruben Bakke
c389872408 nrf5/drivers: Block nrf51 from compiling epaper_sld00200p for the moment. There is no soft-pwm present yet, and including pwm would just make compilation fail now. 2017-01-08 16:23:00 +01:00
Glenn Ruben Bakke
db9eef64a5 nrf5/hal: Making nrf51/2_hal.h go trough nrf.h to find bitfields and other mcu headers instead of explicit include. 2017-01-08 16:20:01 +01:00
Glenn Ruben Bakke
392e226b2c nrf5/boards: Adding more pins to nrf52840 / pca10056 target board. 2017-01-08 16:16:29 +01:00
Glenn Ruben Bakke
942942780f nrf5/pin: Adding more pins to nrf52_af.csv file for nrf52840. Port '1' will be prefixed 'B'. 2017-01-08 16:10:47 +01:00
Glenn Ruben Bakke
ef8e679d77 nrf5/pin: Adding PORT_B to Pin port enum to reflect gpio port 1 on nrf52840. 2017-01-08 16:08:47 +01:00
Glenn Ruben Bakke
6973c13608 nrf5/boards: Updating all board configs with gpio port configuration for uart/spi pins. Leds still not defined by gpio port. 2017-01-08 16:04:52 +01:00
Glenn Ruben Bakke
307f95bd03 nrf5/devices: Updating header files for nrf51 and nrf52. Adding headers for nrf52840. 2017-01-08 15:32:26 +01:00
Glenn Ruben Bakke
19d354ed05 nrf5: Updating to use new nrfjprog in makefile. Needed for nrf52840 targets. Changed from pinreset to debug reset. 2017-01-08 15:17:03 +01:00
Glenn Ruben Bakke
4f04eed4c5 nrf5/boards: Updating makefiles to use system.c files based on sub-variant of mcu. 2017-01-08 15:15:36 +01:00
Glenn Ruben Bakke
721065b307 nrf5/devices: Renaming system.c files for nrf51 and nrf52 to be more explicit on which version of chip they are referring to. 2017-01-08 13:32:13 +01:00
Glenn Ruben Bakke
9214381671 nrf5/drivers: Backing up working epaper display (sld00200p shield) driver before refactoring. 2017-01-07 00:07:17 +01:00
Glenn Ruben Bakke
a2e2f3c07e nrf5/drivers: Fixing parenthesis in ILI9341 __str__ print function. 2017-01-06 23:41:16 +01:00
Glenn Ruben Bakke
ad4149cc80 nrf5/pwm: Moving out object types to header file so that it can be resused by other modules. 2017-01-06 23:40:23 +01:00
Glenn Ruben Bakke
67683722c8 nrf5/drivers: Updating a working version of ili9341 module and driver. About 10 times faster than python implementation to update a full screen. 2017-01-06 20:18:00 +01:00
Glenn Ruben Bakke
f92e581e13 nrf5: Started to split up lcd_mono_fb such that it can be used as a c-library and python module with the same implementaton. 2017-01-06 20:06:09 +01:00
Glenn Ruben Bakke
795df06283 nrf5/hal: Adding include of stdbool.h in hal_spi.h as it is used by the header. 2017-01-06 19:59:58 +01:00
Glenn Ruben Bakke
62c3f9c1e3 nrf5/drivers: Adding preliminary file for ili9341 lcd driver. 2017-01-05 21:57:59 +01:00
Glenn Ruben Bakke
042e3653cf nrf5/hal: Adding support for NULL pointer to be set if no rx buffer is of interest in SPI rx_tx function. 2017-01-05 21:56:17 +01:00
Glenn Ruben Bakke
a8dc8cb236 nrf5: Adding ili9341 class and driver files in Makefile to be included in build. 2017-01-05 20:16:24 +01:00
Glenn Ruben Bakke
a62573ad41 nrf5/drivers: Adding template files for upcomming ili9341 driver. 2017-01-05 20:15:23 +01:00
Glenn Ruben Bakke
5079cb0a25 nrf5/drivers: Adding lcd ili9341 object implementation to make a new instance. print implemented for debugging pins assigned to the display driver. No interaction yet with the hal driver. 2017-01-05 20:13:51 +01:00
Glenn Ruben Bakke
28539221ce nrf5/drivers: Adding ILI9341 class to the display global dict. 2017-01-05 20:01:23 +01:00
Glenn Ruben Bakke
56d187b942 nrf5/boards: Changing tft lcd display name from SLD10261P to ILI9341 in pca10040 board configuration. 2017-01-05 19:59:25 +01:00
Glenn Ruben Bakke
e7c535b0cb nrf5: Moving out mp_obj_framebuf_t to the header file to get access to it from other modules. Exposing helper function to make new framebuffer object from c-code. 2017-01-05 19:58:12 +01:00
Glenn Ruben Bakke
4c24d39122 nrf5: Trimming down display configurations in mpconfigport.h 2017-01-05 19:56:09 +01:00
Glenn Ruben Bakke
f9ffcfdb7d nrf5/spi: Moving *_spi_obj_t out of implementation file to header. Setting hal init structure in the object structure instead of making a temp struct to configure hal. This would enable lookup of the spi settings later. 2017-01-05 19:50:20 +01:00
Glenn Ruben Bakke
b85b3b4e24 nrf5: Removing epaper, lcd and oled modules from Makefile source list as the display modules has been moved to display root folder. 2017-01-05 10:35:39 +01:00
Glenn Ruben Bakke
aaadec99e0 nrf5/drivers: Removing one level of module hierarchy in display drivers. Removed epaper, lcd and oled modules, making import of classes happen directly from display module. 2017-01-05 00:49:21 +01:00
Glenn Ruben Bakke
6cddad02a8 nrf5/drivers: Creating python object implementation (locals) to be used for epaper sld00200p. 2017-01-04 21:10:06 +01:00
Glenn Ruben Bakke
4c0bb63e2b nrf5: Moving color defines in lcd_mono_fb from .c to .h so that it can be reused by other modules. 2017-01-04 21:06:51 +01:00
Glenn Ruben Bakke
6a077806c6 nrf5: Enable MICROPY_FINALISER and REPL_AUTO_INDENT. 2017-01-04 20:11:41 +01:00
Glenn Ruben Bakke
31a54e063a nrf5/drivers: Adding requirement for nrf52 target on the epaper sld00200p for now. There is no ported PWM module for nrf51 target yet. Hence, soft PWM for nrf51 needs to be added. 2017-01-04 20:05:01 +01:00
Glenn Ruben Bakke
cc3364db7f nrf5: Adding suffix to _obj on epaper_sld00200p module. 2017-01-04 20:00:10 +01:00
Glenn Ruben Bakke
643bf19466 nrf5: Correcting define name for epaper sld00200p, missing 0. 2017-01-04 19:59:12 +01:00
Glenn Ruben Bakke
d2f5f1fe60 nrf5/drivers: Enable EPAPER_SLD00200P in epaper module globals table. 2017-01-04 19:57:58 +01:00
Glenn Ruben Bakke
6300c6045a nrf5/drivers: Adding missing file for epaper module / driver. 2017-01-04 19:56:53 +01:00
Glenn Ruben Bakke
5875013670 nrf5/modules: Moving python scripts to examples folder to free up some flash space on constrained targets as modules folder is used as frozen files folder. 2017-01-04 17:27:02 +01:00
Glenn Ruben Bakke
25947a1b00 nrf5/boards: Enable display module to be built in. Also adding one epaper display and one tft lcd to test display module when porting the corresponding drivers to micropython. 2017-01-04 17:22:58 +01:00
Glenn Ruben Bakke
87f250deec nrf5/drivers: Removing external decleration of display module in header. 2017-01-04 17:20:51 +01:00
Glenn Ruben Bakke
2b92438d94 nrf5/drivers: Renaming display module to mp_module prefix as it is going to be inbuilt. ifdef'ing all submodules based on type of display configured through mpconfigport.h 2017-01-04 17:20:00 +01:00
Glenn Ruben Bakke
6b492cd8c4 nrf5/drivers: Adding ifdef sourrounding the implementation of module. Configurable with mpconfigport.h. 2017-01-04 17:18:47 +01:00