Dan Halbert
a1b5d800f3
Update copyrights; get ready for Central
2019-06-19 10:42:36 -04:00
Dan Halbert
35b9191857
Don't operate directly on bleio objects in shared-bindings: use common_hal
...
routines instead. Changes made but not yet tested.
2019-06-18 23:46:20 -04:00
Dan Halbert
1356819de1
Handle None for BLE name; fix ScanEntry bug; compile issue
2019-06-17 23:16:40 -04:00
Dan Halbert
bed6d43a76
merge from upstream; WIP redo Address; no more AddressType
2019-06-13 21:55:07 -04:00
Dan Halbert
62de2506e4
Include display objects in gc.
2019-06-06 17:49:32 -04:00
Dan Halbert
1905d90eaa
Make advertising data buffers long-lived
2019-06-05 20:08:53 -04:00
Tavish Naruka
4a7122d354
boards: add support for Electronut labs Blip
...
Signed-off-by: Tavish Naruka <tavishnaruka@gmail.com>
2019-06-05 00:49:29 +05:30
Dan Halbert
613e12f99f
Replace Broadcaster with enhanced Peripheral
2019-06-03 20:40:05 -04:00
Dan Halbert
63ac37946d
1. Remove advertising data construction in C: it's all done in Python now
...
2. Add scan response capability to advertising.
2019-06-02 23:21:30 -04:00
Dan Halbert
12f1d9d30c
fix advertisement length check; add Service.secondary attribute
2019-05-31 18:03:05 -04:00
Dan Halbert
6cec81bcb5
Need to enable ble before scanning
2019-05-23 22:05:16 -04:00
Dan Halbert
1639354e5f
Scanner working, but not very first time
2019-05-23 16:07:54 -04:00
Scott Shawcroft
9feb844b7e
Fix crash in internal filesystem on nrf
...
Fixes #1842
2019-05-08 15:43:18 -07:00
Dan Halbert
15b7946fc4
Off-by-one error for usage of MAX_TX_IN_PROGRESS
2019-04-22 22:07:48 -04:00
Scott Shawcroft
713a38d1a2
Merge pull request #1754 from dmazzella/dmazzella-patch-1
...
add support for USER_C_MODULES
2019-04-17 09:41:20 -07:00
Dan Halbert
c0ce820974
Merge pull request #1803 from nickzoic/circuitpython-nickzoic-1042-nrf-nvm-bytearray-3
...
Circuitpython nickzoic 1042 nrf nvm bytearray 3
2019-04-16 15:05:18 -04:00
Tavish Naruka
32a0855d18
Add support for Electronut Labs Papyr.
...
Signed-off-by: Tavish Naruka <tavishnaruka@gmail.com>
2019-04-16 12:59:42 +05:30
Nick Moore
9c42a72275
Fix up single-byte access to nvm.ByteArray
2019-04-16 14:53:44 +10:00
Nick Moore
83dad37562
Fixups for adafruit/circuitpython#1042
2019-04-16 14:53:44 +10:00
Nick Moore
02dd32da60
Make some space for NVM adafruit/circuitpython#1042
2019-04-16 14:53:44 +10:00
Nick Moore
f22c01a05e
Switch supervisor/internal_flash to use new nrf_nvm_safe_flash_page_write
...
adafruit/circuitpython#1610
2019-04-16 14:53:44 +10:00
Nick Moore
66e8ceafad
switch nvm.ByteArray to use new nrf_nvm_safe_flash_page_write
...
adafruit/circuitpython#1610
2019-04-16 14:53:44 +10:00
Nick Moore
fd83cf2048
Add a peripherals/nrf/nvm.c to wrap flash page writes safely
2019-04-16 14:53:44 +10:00
Nick Moore
d0e5af3b09
Working flash pages for nvm.ByteArray adafruit/circuitpython#1042
...
import microcontroller
def dump(n = microcontroller.nvm):
for i in range(0,len(n)):
print ("%02X " % n[i], end="")
if i % 16 == 15: print('')
microcontroller.nvm[0:4096] = bytes([1,2,3,4,5,6,7,8]) * 512
microcontroller.nvm[4096:8192] = bytes([16,17,18,19]) * 1024
microcontroller.nvm[4090:4101] = b'thisisatest'
microcontroller.nvm[100:105] = b'hello'
microcontroller.nvm[8000:8007] = b'goodbye'
dump()
2019-04-16 14:53:44 +10:00
Nick Moore
531cf7eb4c
switch CIRCUITPY_NVM on!
2019-04-16 14:53:44 +10:00
Nick Moore
933500c448
nvm.ByteArray reads & writes but no sensible erase yet adafruit/circuitpython#1042
2019-04-16 14:53:44 +10:00
Nick Moore
df89156f2f
Start on nRF nvm.ByteArray adafruit/circuitpython#1042 (doesn't do anything yet)
2019-04-16 14:53:44 +10:00
Scott Shawcroft
254d0a53ac
Revert "nrf nvm: touchups to nickzoic PR #1768 "
2019-04-15 18:50:33 -07:00
Dan Halbert
864910559b
fix subscripting
2019-04-10 21:41:55 -04:00
Dan Halbert
3618461f9b
Merge remote-tracking branch 'adafruit/master' into circuitpython-nickzoic-1042-nrf-nvm-bytearray-2
2019-04-10 14:09:26 -04:00
Scott Shawcroft
ac2fd2fa80
Merge pull request #1773 from dhalbert/no-recursive-background-tasks
...
Don't let a background task call run_background_tasks()
2019-04-09 18:39:28 -07:00
Dan Halbert
d633928a16
Don't let a background task call run_background_tasks()
2019-04-09 20:23:01 -04:00
Nick Moore
18908c21f7
Fixups for adafruit/circuitpython#1042
2019-04-09 12:53:11 +10:00
Nick Moore
fdaff00c78
Make some space for NVM adafruit/circuitpython#1042
2019-04-09 10:56:53 +10:00
Nick Moore
bcb87ffd6c
Switch supervisor/internal_flash to use new nrf_nvm_safe_flash_page_write
...
adafruit/circuitpython#1610
2019-04-09 10:56:53 +10:00
Nick Moore
bc92441803
switch nvm.ByteArray to use new nrf_nvm_safe_flash_page_write
...
adafruit/circuitpython#1610
2019-04-09 10:55:39 +10:00
Nick Moore
cd69db7770
Add a peripherals/nrf/nvm.c to wrap flash page writes safely
2019-04-09 10:55:39 +10:00
Nick Moore
8e7fee2246
Working flash pages for nvm.ByteArray adafruit/circuitpython#1042
...
import microcontroller
def dump(n = microcontroller.nvm):
for i in range(0,len(n)):
print ("%02X " % n[i], end="")
if i % 16 == 15: print('')
microcontroller.nvm[0:4096] = bytes([1,2,3,4,5,6,7,8]) * 512
microcontroller.nvm[4096:8192] = bytes([16,17,18,19]) * 1024
microcontroller.nvm[4090:4101] = b'thisisatest'
microcontroller.nvm[100:105] = b'hello'
microcontroller.nvm[8000:8007] = b'goodbye'
dump()
2019-04-09 10:55:39 +10:00
Nick Moore
592bd0140a
switch CIRCUITPY_NVM on!
2019-04-09 10:55:15 +10:00
Nick Moore
492431a694
nvm.ByteArray reads & writes but no sensible erase yet adafruit/circuitpython#1042
2019-04-09 10:54:11 +10:00
Nick Moore
f8e5e2da64
Start on nRF nvm.ByteArray adafruit/circuitpython#1042 (doesn't do anything yet)
2019-04-09 10:54:11 +10:00
Scott Shawcroft
de48e4b262
Merge remote-tracking branch 'adafruit/master' into fix_cpx_display
2019-04-08 17:15:08 -07:00
Scott Shawcroft
0f003ac5b8
Reorganize board busses into shared-bindings and shared-module.
2019-04-08 16:58:50 -07:00
Scott Shawcroft
049b9ca094
Remove terse TODOs
2019-04-08 14:46:45 -07:00
Radomir Dopieralski
8323721232
Stop hard-coding SPI frequency in FourWire
...
Instead remember and use the frequency, polarity and phase that was
set when the bus was first created.
2019-04-06 15:15:29 +02:00
Damiano Mazzella
8428fa0f64
Update Makefile
2019-04-05 21:42:29 +02:00
Scott Shawcroft
ceb6f2e4fc
Rework flash flush so it preserves the cache
...
This should make filesystem writes quicker and cause less heap
churn.
2019-04-03 18:28:27 -07:00
Nick Moore
781d301bb6
Remove unnecessary MP_WEAK declarations
2019-04-02 13:33:22 +11:00
Scott Shawcroft
92095eb666
Update comment
2019-04-02 13:28:35 +11:00
Nick Moore
94bda3bde1
Change nRF RTC implementation to use RTC2 #1046
...
(to avoid interference with Bluetooth Softdevice. See
https://github.com/adafruit/circuitpython/pull/1534#issuecomment-478776240
with thanks to @bboser for pointing it out)
2019-04-02 13:28:22 +11:00
Nick Moore
6afe23d0b0
There isn't really a good way to calibrate this RTC adafruit/circuitpython#1046
2019-04-02 13:28:03 +11:00
Nick Moore
6206fa9a82
adafruit/circuitpython#1046 handle overflows in the RTC counter
2019-04-02 13:27:45 +11:00
Nick Moore
f846fa109e
enable NRFX RTC adafruit/circuitpython#1046
2019-04-02 13:27:28 +11:00
Nick Moore
f88f9fd748
more fake RTC code ... adafruit/circuitpython#1046
...
(works if MP_WEAK common_hal_rtc_get_time is removed)
2019-04-02 13:27:13 +11:00
Nick Moore
4a5c52fbd6
starting on #1046 rtc for nRF
2019-04-02 13:27:00 +11:00
Dan Halbert
0653bca323
Revert "Circuitpython nickzoic 1046 nrf rtc"
2019-03-29 16:41:29 -04:00
Scott Shawcroft
98811a9675
Update comment
2019-03-28 09:29:18 -07:00
Nick Moore
71622a4515
There isn't really a good way to calibrate this RTC adafruit/circuitpython#1046
2019-03-28 09:50:09 +11:00
Nick Moore
28254def0b
adafruit/circuitpython#1046 handle overflows in the RTC counter
2019-03-28 09:50:09 +11:00
Nick Moore
b09d2c3c62
enable NRFX RTC adafruit/circuitpython#1046
2019-03-28 09:50:09 +11:00
Nick Moore
69cf33e6a1
more fake RTC code ... adafruit/circuitpython#1046
...
(works if MP_WEAK common_hal_rtc_get_time is removed)
2019-03-28 09:50:09 +11:00
Nick Moore
77f307c642
starting on #1046 rtc for nRF
2019-03-28 09:50:09 +11:00
Scott Shawcroft
2c93ce5a28
Merge pull request #1672 from dhalbert/regular-fs-flush
...
flush flash filesystem once a second
2019-03-26 13:47:43 -07:00
Radomir Dopieralski
f440e41819
Really fix the error messages in bleio, this time
2019-03-25 14:04:50 +01:00
Radomir Dopieralski
bb10a8aaa1
Fix error messages in bleio
2019-03-25 09:19:48 +01:00
Dan Halbert
fe555a4098
Allow NFC pins to be used for other purposes.
2019-03-21 11:22:58 -04:00
Dan Halbert
fbf166af1a
enable MICROPY_CPYTHON_COMPAT for most builds except CIRCUITPY_SMALL_BUILD; remove a few other things to make fit
2019-03-20 14:36:24 -04:00
Dan Halbert
2459eabd66
flush flash filesystem once a second
2019-03-20 12:21:36 -04:00
Dan Halbert
9cceea0d68
nrf: fix internal flash writes
2019-03-18 09:11:40 -04:00
Dan Halbert
c4586c0531
nrf: Disable SPIM3; add SPIM1; remove TWIM1
2019-03-12 08:31:03 -04:00
sommersoft
2cd6a79016
better handle frequencyio inclusion
2019-03-01 22:46:57 -06:00
Jerry Needell
bd13834a74
implement default busses for particle boards
2019-02-24 09:34:33 -05:00
Kattni
f3e50b9df2
Merge pull request #1581 from dhalbert/ble-drv-root-pointer
...
Use critical section, not lock, in CharacteristicBuffer; use a root pointer for ble_drv list
2019-02-21 12:28:41 -05:00
Dan Halbert
99da3b9646
Use critical section, not lock, in CharacteristicBuffer; use a root pointer for ble_drv list
2019-02-21 00:19:31 -05:00
Dan Halbert
9c24c804fb
Fix #ifdefs in port.c to call xxx_reset() rroutines properly. Remove most uses of EXPRESS_BOARD.
2019-02-18 22:44:31 -05:00
Dan Halbert
5ec92415b0
fix module weak links; add missing nrf features
2019-02-17 17:29:28 -05:00
Dan Halbert
7b3f7605b8
address @tannewt changes: move and rename common files; remove PORT_HEAP_SIZE
2019-02-15 20:32:32 -05:00
Dan Halbert
a345ef28f2
finish Makefile refactoring; nrf builds work
2019-02-15 18:55:10 -05:00
Dan Halbert
5154e0581e
WIP: atmel-samd trinket build works
2019-02-15 00:28:20 -05:00
Dan Halbert
ab4194f752
don't allocate DMA buffer as long-lived
2019-02-13 19:49:57 -05:00
Dan Halbert
e92d90ce9c
Add second UARTE to busio.UART. Init uarts on startup.
2019-02-12 22:34:05 -05:00
Scott Shawcroft
9f7d19a937
Change EMERGENCY_EXCEPTION_BUF settings to match samd.
2019-02-11 20:55:06 -08:00
Scott Shawcroft
c17f147be9
A variety of displayio improvements
...
This changes a number of things in displayio:
* Introduces BuiltinFont and Glyph so the built in font can be used by libraries. For boards with
a font it is available as board.TERMINAL_FONT. Fixes #1172
* Remove _load_row from Bitmap in favor of bitmap[] access. Index can be x/y tuple or overall index. Fixes #1191
* Add width and height properties to Bitmap.
* Add insert and [] access to Group. Fixes #1518
* Add index param to pop on Group.
* Terminal no longer takes unicode character info. It takes a BuiltinFont instead.
* Fix Terminal's handling of [###D vt100 commands used when up arrowing into repl history.
* Add x and y positions to Group plus scale as well.
* Add bitmap accessor for BuiltinFont
2019-02-11 20:55:05 -08:00
Scott Shawcroft
37b9cd5974
Merge pull request #1521 from nickzoic/circuitpython-nickzoic-1045-nrf-rotaryio
...
Circuitpython nickzoic 1045 nrf rotaryio
2019-02-07 10:38:20 -08:00
Nick Moore
b9db977a2d
Change pin mode to pullup for adafruit/circuitpython#1045
2019-02-07 09:47:56 +11:00
Nick Moore
a7c349bc6e
Add quarter-click logic to adafruit/circuitpython#1045
2019-02-05 16:41:33 +11:00
Nick Moore
95454ecde0
useful output from rotaryio adafruit/circuitpython#1045
2019-02-05 16:41:33 +11:00
Nick Moore
21eb7e8e64
GPIOTE handlers for rotaryio.IncrementalEncoder adafruit/circuitpython#1045
2019-02-05 14:15:13 +11:00
Nick Moore
ee21cc163f
Start on rotaryio.IncrementalEncoder adafruit/circuitpython#1045 (does nothing yet!)
2019-02-05 14:15:03 +11:00
Scott Shawcroft
ec03887040
Fix hallowing and nrf builds
2019-01-31 11:42:15 -08:00
hathach
a51f2b0716
refactor nrfx from supervisor/usb.c
2019-01-30 22:30:23 +07:00
hathach
164e1e2341
re-init usb hardware when enable/disable SD
2019-01-30 14:13:07 +07:00
hathach
d1fb384a4a
update tinyusb, work better with sd
2019-01-29 21:03:18 +07:00
Scott Shawcroft
765d877dfa
Merge pull request #1499 from nickzoic/nickzoic/circuitpython-nrf-touchin-1048
...
Nickzoic/circuitpython nrf touchin 1048
2019-01-28 00:22:34 -08:00
Nick Moore
294b026aca
Automatically set a default threshold for touchio.TouchIn channels
2019-01-28 18:22:57 +11:00
Nick Moore
539aaf08b5
speed up measurement loop
2019-01-27 21:54:59 +11:00
Nick Moore
4a093294ac
hugely simplified version of the touchio.TouchIn.get_raw_reading code ( adafruit/circuitpython#1048 )
2019-01-27 15:08:03 +11:00
Dan Halbert
7998a7696d
also handle BLE_GATTS_EVT_SYS_ATTR_MISSING: fixes Android:
2019-01-23 22:12:38 -05:00
Dan Halbert
b1f1bb1389
support BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST, sent by newer devices
2019-01-23 21:07:23 -05:00
Scott Shawcroft
a380865655
Merge remote-tracking branch 'adafruit/master' into HEAD
2019-01-22 14:02:07 -08:00
Dan Halbert
e170e03f8c
Merge remote-tracking branch 'adafruit/master' into bleio2
2019-01-21 20:38:26 -05:00
Dan Halbert
28cfd8a513
CharacteristicBuffer: make it be a stream class; add locking
2019-01-19 19:45:35 -05:00
Roy Hooper
50af08a6f3
Merge branch 'master' into pixelbuf
2019-01-19 16:33:59 -05:00
Scott Shawcroft
edc8383e22
Improvements thanks to danh's review
2019-01-18 16:37:06 -08:00
Scott Shawcroft
fddc98858a
fix nonetype handling and nrf never reset
2019-01-17 18:51:40 -08:00
Scott Shawcroft
6404aaf411
Fix up nrf and using board.SPI in FourWire
2019-01-17 18:19:07 -08:00
Scott Shawcroft
760bd8d8a4
share fourwire and make nrf compile
2019-01-17 15:15:59 -08:00
Scott Shawcroft
c1e6624f8f
Merge pull request #1470 from gpshead/mdk_usb_dongle
...
Add Makerdiary nRF52840 MDK USB dongle support.
2019-01-15 23:05:15 -08:00
Gregory P. Smith
91452ec9cb
Mention the MDK USB Dongle.
2019-01-15 21:24:36 -08:00
dsiee
af0f1a7542
Update pins.c
...
whitespace
2019-01-16 15:02:48 +11:00
dsiee
c2d39a7ab7
Update pins.c
2019-01-16 14:58:16 +11:00
dsiee
ac238838f2
Update pins.c
...
add declaration for RED_LED as D3 to match silkscreen.
2019-01-16 14:48:41 +11:00
Gregory P. Smith
7296b647ef
Add MDK nRF52840 MDK USB Dongle support.
...
Adds support for https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/ .
A cheap nRF52840 USB stick with optional headers, very Trinket and Itsy like.
2019-01-15 01:37:22 -08:00
Roy Hooper
ffe734edf7
Fresh combined checkin of _pixelbuf library.
2019-01-13 23:51:13 -05:00
Scott Shawcroft
62a8cc2825
Merge pull request #1453 from tannewt/text_on_pyportal
...
Enable the display on pyportal
2019-01-11 10:33:16 -08:00
Dan Halbert
50ee5ef24c
merge translations; add bleio comments; fix minor sphinx issues in midi
2019-01-10 21:12:17 -05:00
Scott Shawcroft
19db886645
Support the display on the pyportal.
...
Also fix #1390 , reload during sleep broken.
2019-01-10 17:29:34 -08:00
Dan Halbert
516d7da641
Merge pull request #1449 from tannewt/midi
...
Add USB MIDI support for SAMD and nRF.
2019-01-10 19:49:33 -05:00
hathach
ee410b2cf1
Merge branch 'master' into nrf52_pulsein
2019-01-10 10:54:40 +07:00
Dan Halbert
d3b8581ce0
fix merge conflicts; address some comments
2019-01-09 19:59:48 -05:00
Scott Shawcroft
b5e40f52c2
Add USB MIDI support for SAMD and nRF.
...
The API should be identical to using a UART for MIDI.
Fixes #672
2019-01-09 14:02:11 -08:00
Dan Halbert
d41ed768dc
Fix sphinx build issues; add better travis fold reporting; update author info
2019-01-09 16:22:19 -05:00
Dan Halbert
89af666093
fix sphinx complaint; more travis fold status reporting
2019-01-09 10:36:38 -05:00
hathach
f366e3feea
Merge branch 'master' into nrf52_pulsein
2019-01-09 20:39:35 +07:00
hathach
cfc4c8cbfa
minor clean up
2019-01-09 15:43:54 +07:00
hathach
db82160eef
fix pulsein incorrect compute
2019-01-09 15:15:30 +07:00
Dan Halbert
13d607698e
m_tx_in_progress might underflow (check on this)
2019-01-08 16:37:14 -05:00
Dan Halbert
50641c4152
remove debugging printf's
2019-01-08 15:52:21 -05:00
Dan Halbert
f66f55b4ed
add CharacteristicBuffer; UART seems to work!
2019-01-07 22:46:20 -05:00
hathach
215008f78c
clean up neopixel write !!
2019-01-08 00:21:31 +07:00
Dan Halbert
a77b2363ef
evt handler list bugs; unique evt handler names; remove uuid128_reference
2019-01-03 21:42:42 -05:00
Dan Halbert
8dea6f53bb
forgot to store data when reading a gatts value
2019-01-03 14:16:41 -05:00
Dan Halbert
87c6f33bcc
Broadcaster now takes whole packet. Also should be scannable
2019-01-01 14:11:59 -05:00
Dan Halbert
941ccf87c8
don't free event handler list manually; let gc do it
2018-12-31 09:02:43 -05:00
Dan Halbert
b6b5ed9c89
Remove nRF52832 support
2018-12-30 22:49:20 -05:00
Dan Halbert
1dc3957e72
LocalPeripheral is now Peripheral; more work on basic GATTS support; UART not working yet
2018-12-30 22:33:49 -05:00
Dan Halbert
ef39e72c7c
free event handlers on reset; fix typo in Broadcaster
2018-12-29 13:55:10 -05:00
Dan Halbert
de7cadb9b2
fix typos in internal_flash.c
2018-12-29 00:08:04 -05:00
Dan Halbert
145e110915
Merge remote-tracking branch 'adafruit/master' into bleio-rev
2018-12-29 00:00:39 -05:00
Dan Halbert
4d1f0ec07b
Add Broadcaster. Reset correctly on reload.
2018-12-28 23:34:23 -05:00
hathach
6b0d93cea3
correct i2c max len
2018-12-28 21:14:27 +07:00
hathach
a4ee80832a
fix #1422 correct i2c max xfer len (size in bits)
2018-12-28 16:30:11 +07:00
hathach
3ee766bc01
put received bytes to fifo when error
2018-12-28 01:05:30 +07:00
hathach
d092722ae8
fix #1407 keep receiving in case of error
2018-12-28 00:40:29 +07:00
Jerry Needell
55084b30ef
remome FRAMEBUF from nrf builds - use QSPI for particle ARGON
2018-12-27 09:38:35 -05:00
Dan Halbert
4167bf5b24
wip: advertising works, but not connection
2018-12-27 00:04:04 -05:00
Dan Halbert
f5b15c9b4d
Merge remote-tracking branch 'origin/feather52840-rgb-qspi-fixes' into bleio-rev
2018-12-21 21:28:24 -05:00
Dan Halbert
0dfe2dbff0
return error status on more routines; minor simplification of freq setting
2018-12-21 12:30:54 -05:00
Dan Halbert
bce6d124af
Don't check for corrupt heap too early; Fix QSPI timing
2018-12-20 21:28:36 -05:00
hathach
6752266673
added pulsein using gpiote (gpio interrupt)
2018-12-18 22:05:17 +07:00
Dan Halbert
bfa66861ef
Merge remote-tracking branch 'adafruit/master' into bleio-rev
2018-12-13 16:33:15 -05:00
hathach
b37b2fa7e7
overwrite old data if fifo is full
2018-12-13 23:56:06 +07:00
hathach
e136222ae2
use rbuf for busio uart
2018-12-13 23:48:53 +07:00
Scott Shawcroft
70939ad517
Merge pull request #1395 from jerryneedell/jerryn_cpython
...
enable MICROPY_CPYTHON_COMPAT
2018-12-11 10:54:17 -08:00
Scott Shawcroft
8fc72e8978
Add SPI and I2C to SparkFun nRF52840 mini definition and add it to Travis.
2018-12-10 20:32:19 -08:00
Scott Shawcroft
8a981dc8e8
Merge remote-tracking branch 'adafruit/master' into sfe840
2018-12-10 20:13:36 -08:00
Nick Moore
1dc4c4757e
touchio.TouchIn sensing working on a single pin! adafruit/circuitpython#1048
2018-12-11 14:33:35 +11:00
Jerry Needell
a90343022a
enble MICROPYTHON_CPYTHON_COMPAT - fix mpconfigport.h to allow and enable a few more items for compatiblilty with other builds
2018-12-10 16:35:40 -05:00
Nick Moore
901db4797e
progress on NRF touchio.TouchIn #1048
2018-12-09 16:48:33 +11:00
Scott Shawcroft
801d9a5abc
Fix running the USB task on nRF.
...
It wasn't being run due to a rework done only on the atmel-samd port.
The rework itself isn't needed now that the heap check triggers safe
mode instead of throwing a Python exception. So, I've removed the
rework.
2018-12-07 16:11:21 -08:00
Dan Halbert
a7a24096f4
bleio WIP: redo for more immutability; use sd_* routines for internal flash write
2018-12-07 16:52:47 -05:00
Scott Shawcroft
332ea8853f
Macro guard VDDH inclusion.
2018-12-06 16:38:14 -08:00
Scott Shawcroft
6ef8639971
Rework safe mode and have heap overwrite trigger it.
...
This creates a common safe mode mechanic that ports can share.
As a result, the nRF52 now has safe mode support as well.
The common safe mode adds a 700ms delay at startup where a reset
during that window will cause a reset into safe mode. This window
is designated by a yellow status pixel and flashing the single led
three times.
A couple NeoPixel fixes are included for the nRF52 as well.
Fixes #1034 . Fixes #990 . Fixes #615 .
2018-12-06 14:24:20 -08:00
Dan Halbert
125901e4e2
Merge remote-tracking branch 'adafruit/master' into bleio-rev
2018-12-06 12:41:38 -05:00
Scott Shawcroft
b25bf062fb
Add correct flash chip for Particle Mesh boards
2018-12-04 18:20:51 -08:00
Scott Shawcroft
15c1fc873c
Add particle boards, fix cp32 and try to speed up atmel build
2018-12-04 18:20:48 -08:00
Dan Halbert
63cd9209f1
allow KeyboardInterrupt on UART read; fix nrf UART pin claiming; rename feather 52840 UART pins
2018-12-04 15:05:39 -05:00
Nick Moore
452a622459
Set up structure for touchio adafruit/circuitpython#1048 (does nothing yet)
2018-12-04 17:12:02 +11:00
Dan Halbert
80db2cec99
UART changes: timeout in secs, write bytes, etc.
2018-12-03 12:04:32 -05:00
jimblom
09316b35d7
remove non-broken-out nrf pins. re-organize pins.c list.
2018-11-30 14:58:36 -07:00
Scott Shawcroft
6e15ab6385
Stop ignoring SD hex files and improve the error when its missing.
2018-11-30 13:26:12 -08:00
Scott Shawcroft
df18d22a93
Capture stderr as well and work on nRF build
2018-11-30 12:59:05 -08:00
jimblom
f67814fc97
Adding SparkFun nRF52840 Mini board support.
2018-11-30 13:57:22 -07:00
Scott Shawcroft
cf70dc4f1c
Fix BLE build
2018-11-30 11:53:33 -08:00
Scott Shawcroft
9d07e95351
Add support for adding release info into adafruit/circuitpython-org
...
This also changes the build script to python with better output.
2018-11-30 00:30:57 -08:00
Scott Shawcroft
60480ff4ed
Merge pull request #1351 from jepler/issue1307-ujson
...
json: enable on nrf boards and "large flash" M4 samd boards
2018-11-27 11:29:29 -08:00
Scott Shawcroft
d446d328d8
Fix QSPI on Feather nRF52840
...
We were writing with quad page program including the address (0x38)
which is unsupported by the GD25Q16C but it is supported by the
flash on the DK. So, we use the single address, quad data command
(0x32).
2018-11-27 00:13:24 -08:00
Dan Halbert
3164b16196
WIP: debug; add hash and __eq__ to UUID
2018-11-26 21:09:17 -05:00
Dan Halbert
6fb7590280
Merge remote-tracking branch 'adafruit/master' into bleio-rev
2018-11-26 10:16:29 -05:00
Scott Shawcroft
15eeac5d4b
A few fixes for nRF52840 feather QSPI and neopixel
2018-11-23 14:22:07 -08:00
Scott Shawcroft
324301e3bc
Update tinyusb to include control fixes.
2018-11-23 13:28:10 -08:00
Jeff Epler
52fd151c9c
ports/nrf: enable json module on nrf boards generally
2018-11-22 10:35:57 -06:00
Dan Halbert
5fe746f643
Latest Feather nRF52840 pin revisions
2018-11-21 19:46:49 -05:00
Dan Halbert
1763ffe245
More UUID work; use mp_raise for exceptions
2018-11-20 23:04:58 -05:00
Dan Halbert
31cc71f7fb
WIP: bleio revisions
2018-11-20 09:36:45 -05:00
Scott Shawcroft
b67c53edfa
Factor out of external flash as well.
...
Plus some cleanup.
Fixes #1324
2018-11-14 18:30:47 -08:00
Scott Shawcroft
87ddd64481
Factor out fake partition
2018-11-14 17:59:11 -08:00
Scott Shawcroft
47212ee31e
start debug
2018-11-14 17:21:48 -08:00
Scott Shawcroft
355abc835e
Fix output overflow and make help translatable
2018-11-09 16:41:08 -08:00
Scott Shawcroft
9d91111b1b
Move atmel-samd to tinyusb and support nRF flash.
...
This started while adding USB MIDI support (and descriptor support is
in this change.) When seeing that I'd have to implement the MIDI class
logic twice, once for atmel-samd and once for nrf, I decided to refactor
the USB stack so its shared across ports. This has led to a number of
changes that remove items from the ports folder and move them into
supervisor.
Furthermore, we had external SPI flash support for nrf pending so I
factored out the connection between the usb stack and the flash API as
well. This PR also includes the QSPI support for nRF.
2018-11-08 17:25:30 -08:00
Dan Halbert
64d457dad9
bring bleio PR up to date
2018-11-07 14:12:22 -05:00
Dan Halbert
e203ce9ce5
Use adafruit/nrfx fork of NordicSemiconductor/nrfx
2018-10-31 23:18:59 -04:00
arturo182
4bc24c4f60
bleio: Fix errors after rebase
2018-10-21 17:15:27 +02:00
arturo182
eceb21a017
bleio: Don't register the services until needed
...
Because of the very specific way nRF requires service registration
(characteristics can be added only to last added service), we would
have to write the Python code in a specific way. With this patch the
user has more freedom.
2018-10-21 16:00:04 +02:00
arturo182
19fab4af5a
bleio: Remove deep copy constructor for UUID
2018-10-21 15:59:50 +02:00
arturo182
b5e5805bb4
bleio: Remove redundant struct field
2018-10-21 15:59:46 +02:00
arturo182
c7b42d80b3
bleio: A bit of cleanup
2018-10-21 15:59:42 +02:00
arturo182
cf79316002
nrf: Fix ble uart using the new API
2018-10-21 15:59:36 +02:00
arturo182
d5a71a4b8a
nrf: Move bluetooth driver to the 'bluetooth' folder
2018-10-21 15:55:25 +02:00
arturo182
17f13ecc2c
nrf: Cleanup of the ble driver
...
Moved the functions to classes that they belong to.
2018-10-21 15:54:13 +02:00
arturo182
77eeecbfd9
nrf: BLE driver cleanup
2018-10-21 15:52:36 +02:00
arturo182
6545aa99a9
nrf: Remove the ble drv specific characteristic struct
2018-10-21 15:51:04 +02:00
arturo182
98aa8c5923
nrf: Remove the ble drv specific service struct
2018-10-21 15:51:01 +02:00
arturo182
3df7dea2cc
nrf: Remove the ble drv specific advertisement data struct
2018-10-21 15:50:59 +02:00
arturo182
4b344812bf
nrf: Remove the ble drv specific address struct
2018-10-21 15:50:56 +02:00
arturo182
3bd65fbae5
nrf: Move the Peripheral class to bleio as Device
...
This was the last class from ubluepy and so that module is now gone.
The Device class offers both Peripheral and Central functionality.
See the inline docs for more info.
2018-10-21 15:50:45 +02:00
arturo182
bda734223e
nrf: Move the Service class from ubluepy to the shared bleio module
2018-10-21 15:43:51 +02:00
arturo182
cc78249226
nrf: Move the Characteristic class from ubluepy to the shared bleio module
2018-10-21 15:43:48 +02:00
arturo182
61bf4a16a7
nrf: Remove unused ubluepy classes
2018-10-21 15:43:39 +02:00
arturo182
1c6bf9a150
bleio: Move the Scanner class to a shared module
2018-10-21 15:43:29 +02:00
arturo182
7390dc7dab
bleio: Move ScanEntry to shared module and add a new AdvertisementData class
2018-10-21 15:43:24 +02:00
arturo182
345334aaf1
bleio: Add a new Address class
...
Use the new in the Adapter singleton.
2018-10-21 15:43:21 +02:00
arturo182
d5f942a971
bleio: Add a AddressType enum-like class
2018-10-21 15:43:17 +02:00
arturo182
20b8d5169d
nrf: Move the Descriptor class from ubluepy to the shared bleio module
2018-10-21 15:43:13 +02:00
arturo182
f4940c9aec
nrf: Move the UUID class from ubluepy to the shared bleio module
...
Also added a UUIDType enum-like class for determining UUID type.
2018-10-21 15:43:08 +02:00
Josh Klar
aefabc5353
Update docs to reflect proper size of device
2018-10-20 03:29:20 -07:00
Josh Klar
4c75a60bd3
Declobber a DEFINE
2018-10-20 02:57:17 -07:00
Josh Klar
16ca9c8c7c
Makefile fixes and some docs
2018-10-20 02:43:13 -07:00
Josh Klar
3d7b96aeb1
Add board and pin defs for MakerDiary NRF52840 MDK
2018-10-20 02:43:12 -07:00
Dan Halbert
b3c7746a7f
fix copyright notice
2018-10-16 11:09:37 -04:00
Dan Halbert
2262efc311
PulseOut working
2018-10-16 11:05:02 -04:00
Dan Halbert
8d58093328
Merge pull request #1259 from dhalbert/nrf-pwmout
...
Allow variable freq PWMOut; use multiple channels if same freq
2018-10-10 12:27:27 -04:00
Scott Shawcroft
df80ad8e6e
Merge pull request #1193 from ATMakersBill/master
...
Add supervisor.runtime.serial_bytes_available so that input() can be used without blocking.
2018-10-09 23:58:43 -07:00
Dan Halbert
ca737e6f7c
Don't disable tempoarily in deinit().
2018-10-09 21:23:47 -04:00
Dan Halbert
91a88cf568
Allow variable freq PWMOut; use multiple channels if same freq
2018-10-09 20:52:55 -04:00
ATMakersBill
9f94712ad1
replacing change to input() with separate method to check for USB Serial input
2018-10-09 18:37:52 -04:00
Jerry Needell
fd0ea85549
add force_create to nrf filesystem_init()
2018-10-06 08:03:27 -04:00
hathach
21ddb6b9b9
fix tinyusb cdc issue
2018-10-05 21:37:16 +07:00
Dan Halbert
6049776b26
Merge branch 'master' into nrf52_uart_io
2018-10-03 13:31:48 -04:00
Scott Shawcroft
86ae707b08
Merge pull request #1223 from dhalbert/spi-baudrate
...
nrf: remove error check for SPI baudrate too high; round to nearest baudrate
2018-10-03 10:11:44 -07:00
hathach
b8884ccc8b
Merge branch 'master' into nrf52_uart_io
2018-10-03 23:13:56 +07:00
Enrico Paganin
4b9099358f
Fix 'advertisement' typo
2018-10-03 09:56:30 +02:00
hathach
08cbb03bdd
implement common_hal_busio_uart_clear_rx_buffer
2018-10-03 11:39:01 +07:00
hathach
f543c8415d
"busio.UART not yet implemented -> not available
2018-10-03 11:30:31 +07:00
Dan Halbert
21d331c8cc
round SPI freq down; check max freq
2018-10-02 21:06:40 -04:00
Dan Halbert
aa95526428
nrf: remove error check for SPI baudrate too high; round to nearest baudrate
2018-10-01 18:54:13 -04:00
Dan Halbert
48a3aafdd2
reset I2C and SPI on ctrl-D
2018-09-25 15:12:10 -04:00
hathach
76d6fb03f0
more clean up
2018-09-26 02:12:06 +07:00
hathach
eba80f7a99
update translate string
2018-09-26 02:10:44 +07:00
hathach
52328c88cd
remove space
2018-09-26 02:06:32 +07:00
hathach
74cc55b107
change error type to runtime
2018-09-25 17:31:53 +07:00
hathach
f724647a45
fix feather nrf52840 build error
2018-09-25 17:09:54 +07:00
hathach
dec5c50c45
clean up
2018-09-25 16:22:14 +07:00
hathach
2f0e0bdcaf
migrate serial from uart to uarte
2018-09-25 16:14:44 +07:00
hathach
9017c9d29a
clean up
2018-09-25 14:29:45 +07:00
hathach
d3e5ba83eb
update nrfx to 1.3.0
2018-09-25 13:00:57 +07:00
hathach
d714479924
clean up
2018-09-25 12:48:48 +07:00
hathach
01c1296197
nrf52 uart io rx work reliably
2018-09-25 12:37:31 +07:00
hathach
1782ceab35
uarte malloc if buffer is not in SRAM
2018-09-24 16:18:49 +07:00
hathach
4015023e01
clean up uart io
2018-09-24 16:12:05 +07:00
hathach
7bbd449f06
uarte rx work fine
2018-09-24 15:54:32 +07:00
hathach
fdd3e91753
changing to nrf uarte, tx works fine
2018-09-24 14:56:52 +07:00
hathach
7a1b4ccc9b
Merge branch 'master' into nrf52_uart_io
2018-09-24 12:50:48 +07:00
Scott Shawcroft
f2c960e89b
Merge pull request #1205 from hathach/nrf52_autoreload
...
add autoreload for nrf52
2018-09-21 16:48:21 -04:00
hathach
e1fe7e71a1
add autoreload
2018-09-22 02:08:00 +07:00
Dan Halbert
2c15d12f2f
allow multiple I2C and SPI; improve nrfx_config.h
2018-09-20 20:45:30 -04:00
hathach
816ff05253
clean up
2018-09-21 03:53:35 +07:00
hathach
dddc437ea7
got rx working finally
2018-09-21 03:48:13 +07:00
hathach
fe1a297889
still have issue with initial uart rx
2018-09-21 01:27:52 +07:00
Dan Halbert
2309e60c0d
WIP; problem with staticly allocated IRQ handlers
2018-09-19 21:59:04 -04:00
hathach
9c25306877
uart rx got some issue with irq
2018-09-20 02:12:21 +07:00
Scott Shawcroft
3f380ded6b
Merge pull request #1197 from dhalbert/3.x-master
...
3.x master
2018-09-19 09:58:52 -07:00
hathach
c5593ec074
got uart tx work
2018-09-19 17:59:15 +07:00
hathach
1df3bcf392
add board.UART() function
2018-09-19 14:40:37 +07:00
Dan Halbert
56b7f3ba64
fix translate omission; pca10059 fix in .travis.yml
2018-09-18 16:28:27 -04:00
Dan Halbert
bc510e714f
merge 3.0.2 to master
2018-09-18 15:38:12 -04:00
hathach
d8c8c5f005
remove CFG_HWUART_FOR_SERIAL
2018-09-18 20:26:50 +07:00
Pierrick C
7e8816ad6f
Add VOLTAGE_MONITOR alias to pin D31/A7
2018-09-13 23:46:47 +02:00
Dan Halbert
6a72084198
fix nrf builds; sphinx 1.8.0 crashing: use lower version
2018-09-12 18:37:03 -04:00
Dan Halbert
e335c74ac6
use open-drain capabilities on GPIO; clean up board init; set correct GPIO voltage
2018-09-09 15:01:28 -04:00
Dan Halbert
100603a60b
neopixel_write merge; alphabetize stuff in Makefile
2018-09-05 17:38:59 -04:00
Dan Halbert
4c3b4cacfa
Merge remote-tracking branch 'adafruit/master' into nrf-pin-claiming
2018-09-05 13:15:22 -04:00
hathach
ccd87a33b6
use nrf_pwm instead of direct registers
2018-09-05 13:18:36 +07:00
Dan Halbert
b5c03a7085
generalize # of ports; remove atmel neopixel code; remove pin name in mc_pin_obj_t
2018-09-04 16:43:21 -04:00
hathach
f4a98e909c
fix nrf52832 build 2
2018-09-04 23:25:08 +07:00
hathach
b9e8e3cd1f
fix nrf52832 build
2018-09-04 20:54:36 +07:00
hathach
1fe3ed87eb
run background job while waiting for neopixel write seqend
2018-09-04 19:24:45 +07:00
hathach
0d92c65829
correct disconnection check to only dtr
2018-09-04 18:36:08 +07:00
hathach
3ae24d9f9a
add neopixel_write implementation, work ok
2018-09-04 18:33:08 +07:00
hathach
e17253071e
adding neopixel write
2018-09-04 15:51:49 +07:00
Dan Halbert
4382389e6f
fix typos, remove incorrect pca10059 example; add default buses for pca10056; improve board names for pca boards
2018-09-01 00:29:36 -04:00
Dan Halbert
9ea809bef7
add pin claiming to devices
2018-08-31 18:38:05 -04:00
Dan Halbert
585597a252
pin files rework; implement pin claiming; add more boards
2018-08-31 18:05:55 -04:00
Dan Halbert
0e8d146184
wip
2018-08-31 18:05:55 -04:00
hathach
87811ec3a0
update readme board name feather_nrf52832
2018-08-28 16:15:20 +07:00
ladyada
ded38d30b6
rename pin.h to nrf_pin.h to avoid conflict with Pin.h
2018-08-26 20:37:12 -04:00
Dan Halbert
4cc33f8de6
Merge remote-tracking branch 'adafruit/master' into nrf_board_rename
2018-08-23 16:25:57 -04:00
Dan Halbert
728622f09d
Merge pull request #1139 from hathach/nrf52_usb_serial
...
use unique DevicID for usb serial
2018-08-23 09:30:31 -04:00
hathach
4a8cd03de1
use unique DevicID for usb serial
2018-08-23 14:00:54 +07:00
hathach
fed1960424
remove s140 6.0.0 and s132 6.1.0 (not supported yet)
2018-08-23 00:27:39 +07:00
hathach
0c0ac06fc7
add SD 6.1.0 to download all
2018-08-22 23:09:09 +07:00
hathach
7961103ee6
update SD to v6.1.0
2018-08-22 21:51:30 +07:00
Dan Halbert
05ea9fd296
remove stray underscore
2018-08-22 10:26:52 -04:00
Dan Halbert
eaf4d19dbb
Merge remote-tracking branch 'adafruit/master' into nrf_board_rename
...
Merge #1137
2018-08-22 10:24:10 -04:00
hathach
a516d1123f
fix typos
2018-08-22 19:42:41 +07:00
hathach
02b1b53153
Merge branch 'master' into nrf52_dfu_touch1200
2018-08-22 15:24:12 +07:00
hathach
fc955b1591
remove bootloader binaries, update readme for using adafruit-nrufitl and flashing bootloader
2018-08-22 15:22:17 +07:00
Dan Halbert
c503cf990b
forgot to change .travis.yml
2018-08-21 20:35:58 -04:00
Dan Halbert
85df32907f
rename nrf boards to feather_nrf52832 and feather_nrf52840_express
2018-08-21 18:45:37 -04:00
hathach
df4184e478
rename linker file to SD major version only
2018-08-21 16:02:57 +07:00
hathach
1c4accfa39
Merge branch 'nrf52_remove_boot_target' into nrf52_dfu_touch1200
2018-08-21 15:17:03 +07:00
hathach
b7dd33b76e
add touch 1200 for dfu-flash
2018-08-21 15:15:44 +07:00
Egor Leonenko
18e9f74738
Fix PWM Support on NRF52840
...
Replace usage of pin number alone with port+pin combination in NRF port of PWMOut
2018-08-17 19:34:03 +12:00
Scott Shawcroft
76e0373576
Fix nrf and unix
2018-08-16 17:41:38 -07:00
Scott Shawcroft
2cd166b573
Fix esp and samd
2018-08-16 17:41:35 -07:00
hathach
e1ccc07841
remove bootloader & dfu-bootloader target
...
user should go to bootloader repo to upgrade bootloader
2018-08-14 20:19:28 +07:00
Dan Halbert
498fec64e2
increase new dynamic stack size to a comfortable value for now
2018-08-03 22:35:20 -04:00
Dan Halbert
dfa2581ffd
Merge pull request #1057 from tannewt/flexible_heap
...
Add basic memory allocation outside Python runtime
2018-08-02 18:43:06 -04:00
Scott Shawcroft
5704bc8c93
Share memory.c and a bit of polish.
2018-08-02 14:35:46 -07:00
hathach
0bc3432106
Merge branch 'master' into nrf52_sys_module
2018-08-01 11:53:12 +07:00
hathach
592c190069
PR review clean up
2018-08-01 11:31:32 +07:00
hathach
8640d37149
try to address sys module, compile ok
2018-08-01 10:19:20 +07:00
hathach
200669216e
more clean up
2018-08-01 08:52:07 +07:00
hathach
bac233e99b
clean up
2018-08-01 08:47:41 +07:00
hathach
6ddd8583da
clean up
2018-08-01 08:20:20 +07:00
Scott Shawcroft
a88cdaca6a
Remove rogue execute bit. Must a common incorrect shortcut for me. :-)
2018-07-31 12:42:21 -07:00
hathach
1e524f1b98
Merge branch 'master' into nrf52840_usb_hid
2018-08-01 00:58:23 +07:00
hathach
85bd46a4e1
enable MICROPY_PY_ARRAY_SLICE_ASSIGN, MICROPY_PY_BUILTINS_SLICE_ATTRS
2018-07-31 23:09:39 +07:00
hathach
4bece22c92
add hid keyboard LED indicator stub
2018-07-31 23:02:15 +07:00
hathach
05139e2aee
all hid devices seems to be ok
2018-07-31 22:54:26 +07:00
hathach
2c85f42330
add usb hid syscontrol
2018-07-31 21:57:00 +07:00
hathach
ef58adacd3
usb hid consumer control works
2018-07-31 21:19:02 +07:00
hathach
fd661c1d57
improve usb hid
2018-07-31 21:06:24 +07:00
Scott Shawcroft
12cf5e51c2
Allow for resizing the stack area.
2018-07-31 05:18:23 -07:00
hathach
27b2a9fe59
add usb_desc, disable tinyusb stack CFG_TUD_DESC_AUTO
2018-07-31 17:50:32 +07:00
hathach
d15caf0dbd
hid keyboard and mouse work well
2018-07-31 16:42:04 +07:00
hathach
221d54a595
workaround to use lib/utils/interrupt_char.c
2018-07-31 14:28:34 +07:00
hathach
ae783b0b1a
update tinyusb, set scsi sense key for unsupported commands
2018-07-31 13:54:58 +07:00
Dan Halbert
2e260a0eab
Merge remote-tracking branch 'adafruit/master' into micropython-25ae98f-merge
2018-07-28 14:13:54 -04:00
Dan Halbert
f48b70050e
merge finished
2018-07-28 13:29:47 -04:00
hathach
368d59796f
adding usb_hid
...
compiled with undefined ref
2018-07-27 17:36:41 +07:00
hathach
21339c4155
house keeping
2018-07-27 17:22:21 +07:00
hathach
e86f7d0b88
add usb msc callback description
2018-07-27 00:17:14 +07:00
hathach
5bdf40901f
update tusb lib
2018-07-26 17:16:41 +07:00
Dan Halbert
bc760dd341
WIP: complete manual inspection of all significant changes
2018-07-23 21:34:25 -04:00
hathach
bb28faf39c
arturo182 review
2018-07-17 23:57:49 +07:00
hathach
a0b9871ba9
use seperate interrupt_char.c for nrf
...
move usb descriptors into usb.c
2018-07-17 21:52:20 +07:00
hathach
d4e84a9bd4
Merge branch 'master' into fix_nrf52840_serial
2018-07-17 21:27:16 +07:00
hathach
3525d65af3
should fix #1021
...
- update tinyusb for wanted char
- move usb code into usb.c
2018-07-17 21:24:49 +07:00
Dan Halbert
a20ab40ed2
Merge 3.0.0 final bugfixes and changes to master
2018-07-16 09:01:46 -04:00
Dan Halbert
bfe14ff824
Merge pull request #1014 from arturo182/nrf_shared_ble
...
nrf: Split the ble module into a shared part and the port implementation
2018-07-13 10:23:37 -04:00
Dan Halbert
414267388d
Merge pull request #1023 from arturo182/nrf_pyocd
...
nrf: Fix flashing with pyocd
2018-07-13 10:02:20 -04:00
arturo182
05c1384b67
nrf: Split the ble module into a shared part and the port implementation
...
This allows other ports to implement these shared bindings.
2018-07-13 16:01:15 +02:00
arturo182
883ca21321
nrf: Fix flashing with pyocd
2018-07-13 15:22:46 +02:00
arturo182
9729fc3d31
nrf: Fix BLE on nRF52840 after adding the USB functionality
2018-07-13 14:55:02 +02:00
hathach
f98c7f708e
merge review
2018-07-12 01:37:23 +07:00
hathach
10846d316b
Merge branch 'master' into nrf52840_usbboot
2018-07-11 21:35:44 +07:00
Dan Halbert
4962468fff
Merge pull request #1011 from arturo182/nrf_cleanup
...
nrf: More cleanup and porting
2018-07-10 15:44:30 -04:00
hathach
a53b1c7cf1
code format
2018-07-10 22:49:51 +07:00
arturo182
eab00ff140
nrf: Remove even more unused files
2018-07-10 14:59:22 +02:00
arturo182
2c63fb2a94
nrf: Remove the random hal and module
...
Thus getting rid of the whole old hal!
The module is not needed because the common-hal
nRF implementation uses HW RNG anyway.
2018-07-10 14:59:22 +02:00
arturo182
1163462635
nrf: Remove the old time hal and replace with nRFx
2018-07-10 14:59:10 +02:00
Scott Shawcroft
e875f4e52e
Merge pull request #1002 from arturo182/nrfx_gpio
...
nrf: Rewrite the DigitalInOut hal using nRFx
2018-07-09 17:54:38 -07:00
hathach
0e819599e7
Merge branch 'master' into nrf52840_usbboot
2018-07-10 02:02:52 +07:00
hathach
7715d19efe
update bootloader hex
2018-07-10 01:20:37 +07:00
hathach
97a1ae911e
add family option for uf2
2018-07-10 01:18:14 +07:00
hathach
f199e87085
add ARRAY_SIZE
...
which is missing when building with debug mode
2018-07-10 01:06:57 +07:00
hathach
c5089d7274
generate uf2 by default
...
update tusb
2018-07-10 01:02:33 +07:00
Dan Halbert
64b9ee9c74
Merge pull request #985 from tannewt/heap_tweaks3
...
A few heap related tweaks
2018-07-08 23:21:38 -04:00
Scott Shawcroft
a45659c59a
Merge pull request #1000 from arturo182/nrfx_uart
...
nrf: Rewrite the UART HAL using nRFx
2018-07-08 20:17:47 -07:00
Scott Shawcroft
133b99b6f2
Merge pull request #999 from arturo182/nrf_mphalport
...
nrf: mphalport cleanup
2018-07-08 20:13:21 -07:00
Scott Shawcroft
fd5634e4aa
Merge pull request #992 from arturo182/nrf_i2c_fix
...
nrf: Fix I2C transfers with data larger than HW allows
2018-07-08 20:12:09 -07:00
arturo182
388f554ff6
nrf: Rewrite the DigitalInOut hal using nRFx
2018-07-08 17:48:32 +02:00
arturo182
25ece8fb3d
nrf: Rewrite the UART HAL using nrfx
2018-07-08 16:42:04 +02:00
arturo182
c6a2a55bc9
nrf: Cleanup mpconfigboard files
...
All the removed defines were used by legacy modules that are now
removed.
2018-07-08 15:18:11 +02:00
arturo182
887486582e
nrf: Remove port-specific help
...
It contains mentions to the pyb module which was removed.
The ble-specific help will be re-added later when the API
is stabilized.
2018-07-08 15:18:11 +02:00
arturo182
1ea633c484
nrf: mphalport cleanup
2018-07-08 14:39:30 +02:00
arturo182
da27253693
nrf: Fix I2C transfers with data larger than HW allows
2018-07-06 21:12:24 +02:00
arturo182
ac74edb4e4
nrf: Fix SPI transfers with data larger than HW allows
2018-07-06 21:10:25 +02:00
hathach
baf68a936e
remove hal_time files
2018-07-06 15:59:20 +07:00
hathach
3e319694aa
mp_hal_delay_ms() to call background task
...
remove hal_time.c
2018-07-06 15:48:01 +07:00
hathach
948ddf8463
make SD default to s140 and s132 for nrf52840 and nrf52832
...
add CFG_HWUART_FOR_SERIAL for using jlink as REPL
2018-07-06 14:39:49 +07:00
hathach
6ef3a0b181
implement filesystem_writable_by_python()
2018-07-06 13:01:07 +07:00
hathach
0806c0a38b
update fatfs cached sector when running write10
2018-07-05 17:43:38 +07:00
hathach
4e5d9a029d
clean up
2018-07-05 17:26:07 +07:00
hathach
0365912e28
implement msc with internal_flash api
...
Note: only work with SD is disabled.
2018-07-05 16:19:04 +07:00
hathach
3564e98181
implement msc flash, seems to work
2018-07-05 15:22:23 +07:00
hathach
1745e20391
replace jlink with native usb cdc for serial REPL
2018-07-05 11:30:12 +07:00
hathach
be2ff20e42
enable usb cdc interface
...
not handle anything yet.
2018-07-04 17:15:49 +07:00
hathach
7fff7f5e70
add usb msc support for nrf52840
2018-07-04 16:40:53 +07:00
Scott Shawcroft
8fb976f0bd
Split out assembly source files.
2018-07-03 07:25:54 -07:00
Scott Shawcroft
dbc977485c
Support gathering register values on nrf.
2018-07-03 06:31:07 -07:00
hathach
46c453cf0a
add tinyusb as submodule
2018-07-03 17:46:08 +07:00
hathach
b14b28067e
Merge branch 'master' into nrf52840_usbboot
2018-07-03 17:29:28 +07:00
Scott Shawcroft
b91202969a
Merge pull request #982 from arturo182/nrf_makefile
...
nrf: Save some flash bytes by using extra compile flags
2018-07-02 14:33:47 -07:00
Scott Shawcroft
05a088b369
Merge pull request #972 from arturo182/nrf_i2c
...
nrf: Rewrite the I2C common-hal using nrfx
2018-07-02 14:33:06 -07:00
arturo182
da491ec961
nrf: Save some flash bytes by using extra compile flags
...
Both of these are used in the atsamd port as well.
2018-07-02 22:00:04 +02:00
Dan Halbert
7c9a0e2996
remove unnecessary extern in nrf/mphalport.c
2018-06-29 16:06:51 -04:00
Dan Halbert
2a0b857643
implement mp_hal_delay_us() to not need interrupts, and use it
2018-06-29 16:01:46 -04:00
Dan Halbert
b4fd77bb7c
fix nrf and esp8266 builds for OneWire fix
2018-06-29 00:00:05 -04:00
Dan Halbert
52a11547cb
fix OneWire timing and DigitalInOut.switch_to_input()
2018-06-28 23:32:20 -04:00
Scott Shawcroft
429168d4ac
Merge pull request #970 from arturo182/nrf_softdev
...
nrf: Remove unsupported softdevice defines
2018-06-28 14:01:19 -07:00
Scott Shawcroft
007155276a
Merge pull request #969 from arturo182/nrf_more_commonhal
...
nrf: Rewrite more common-hal with nrfx and sync with atsamd port
2018-06-28 14:00:45 -07:00
Scott Shawcroft
039b4dc00a
Merge pull request #968 from arturo182/nrf_qstr
...
nrf: Remove old qstr defines
2018-06-28 13:57:46 -07:00
Scott Shawcroft
ae82a93b56
Merge pull request #967 from arturo182/nrf_os
...
nrf: Rewrite the os common-hal using nrfx
2018-06-28 13:55:34 -07:00
arturo182
178c089045
nrf: Rewrite the I2C common-hal using nrfx
2018-06-28 22:45:02 +02:00
arturo182
6e6a500801
nrf: Rewrite the os common-hal using nrfx
2018-06-27 21:01:07 +02:00
arturo182
af5cb9c492
nrf: Remove unneeded hal files
2018-06-27 21:00:34 +02:00
arturo182
b87bba8a28
nrf: Rewrite more common-hal with nrfx and sync with atsamd port
2018-06-27 20:55:29 +02:00
arturo182
1fa8fac5d7
nrf: Remove old qstr defines
...
These were used by the microbit music module, which was removed.
2018-06-27 20:52:13 +02:00
arturo182
b9f02ca3c5
nrf: Remove unsupported softdevice defines
2018-06-27 20:48:57 +02:00
arturo182
2a12fcd18b
nrf: Rewrite the AnalogIn common-hal using nrfx
2018-06-27 20:41:30 +02:00
hathach
c4f11dfd32
flash target update bootloader setting to skip crc checksum
2018-06-27 15:22:44 +07:00
hathach
8fbe1d73e9
clean up makefile
2018-06-27 15:13:20 +07:00
hathach
4920cc47ca
move dfu-gen dfu-flash dfu-bootloader bootloader uf2 target to common Makefile since several board use it
2018-06-27 14:31:08 +07:00
hathach
bed7310fd7
update bin files
2018-06-27 14:13:18 +07:00
hathach
ecd3993d43
update pin map for feather52840
2018-06-27 14:06:15 +07:00
Scott Shawcroft
91427b0b23
Merge pull request #959 from arturo182/nrf_spim
...
nrf: Rewrite the SPI common-hal using nrfx
2018-06-26 11:00:12 -07:00
Scott Shawcroft
d7d132d5a3
Merge pull request #960 from arturo182/nrf_stm_cleanup
...
nrf: Remove leftovers from stm32 code copy
2018-06-26 10:52:04 -07:00
arturo182
16973d0559
nrf: Remove unused hal files
...
Makes it easier to keep track of what's left to rewrite.
2018-06-26 00:13:41 +02:00
arturo182
2f1e678d60
nrf: Rewrite the SPI common-hal using nrfx
...
Use SPIM2 on nRF52832 and SPIM3 on nRF52840. SPIM3 is able to go
up to 32MHz!
2018-06-25 23:46:34 +02:00
arturo182
b14d13e318
nrf: Remove leftovers from stm32 code copy
2018-06-25 23:38:10 +02:00
hathach
8d065fe0e6
update reamde
2018-06-26 00:16:58 +07:00
hathach
54547683f9
add uf2, bootloader target
2018-06-25 23:31:14 +07:00
hathach
4722371be9
update bootloader hex with uf2
2018-06-25 23:27:00 +07:00
hathach
f5be5ed6ee
Merge branch 'master' into nrf52840_usbboot
2018-06-25 17:12:24 +07:00
arturo182
596a1d8843
nrf: Rename feather52 to feather52832 in readme files
2018-06-22 10:04:39 +02:00
arturo182
25e71a56d4
nrf: Update the PCA10056 example to use new pin naming
2018-06-20 23:39:36 +02:00
arturo182
deec17e4fe
nrf: Remove really old examples
...
These examples rely on machine and pyb modules, so they have to get.
Leaving 3 BLE examples that also rely on those modules, but can be
fixed to use CP's modules.
2018-06-20 23:38:18 +02:00
arturo182
9c08db55ff
nrf: Cleanup machine and microbit leftovers
...
The music module was useful when this port had support for the
microbit, now that it was removed, it's not so useful.
2018-06-20 23:30:34 +02:00
arturo182
c2d4d0a10b
nrf: Simplify pin generation and definition
...
This commit cleans up the pin generation code, all the pins and their
AF (only ADC, for now) are specified in nrf52_af.csv and board use their
own csv file to specify which pins are available on that board and if
they have any special names.
2018-06-20 23:26:32 +02:00
arturo182
ff918556cd
nrf: Simplify the board makefiles
...
With the only difference between a SD and non-SD build is the linker
file, there's no need to have two separate .mk per board files,
just use a conditional.
2018-06-20 21:21:45 +02:00
arturo182
5509f394dc
nrf: Add a nrfx submodule and prepare for using the new drivers
2018-06-20 20:43:59 +02:00
arturo182
7cd34f2a94
nrf: Cleanup Makefile after nrf51 removal
2018-06-20 18:21:18 +02:00
arturo182
97f10241f9
nrf: Fix default board after feather52 rename
2018-06-20 18:21:18 +02:00
arturo182
b47a67d566
nrf: Remove machine, pyb and utime modules
...
Micropython legacy, keeping it consistent with atsam port.
2018-06-20 18:21:18 +02:00
hathach
61437106e7
update bootloader for feather nrf52840
2018-06-19 15:27:07 +07:00
hathach
6d2702ed98
Merge branch 'master' into nrf52840_usbboot
2018-06-19 14:50:17 +07:00
Scott Shawcroft
4e7eee3553
Merge pull request #946 from arturo182/nrf_sd6
...
nrf: Use the production version of s140 6.0.0
2018-06-18 16:29:41 -07:00
arturo182
feee808955
nrf: Use the production version of s140 6.0.0
2018-06-18 23:12:28 +02:00
Scott Shawcroft
05547b72ac
Switch to Feather52s full name to avoid confusion with the nrf52840 later.
...
Fixes #940
2018-06-18 10:51:04 -07:00
Limor "Ladyada" Fried
9fc0ec6af8
Merge pull request #934 from microbuilder/usbboot
...
[WIP] nRF52840 USB Bootloader
2018-06-15 09:35:30 -07:00
hathach
35d38dbfed
update nrf52840 bootloader hex
2018-06-13 17:27:55 +07:00
jerryneedell
8150150a24
return "false" for stub call
...
See #918 for discussion
2018-06-10 07:11:44 -04:00
Scott Shawcroft
8195df1b55
Stub out get_paused in nrf builds.
2018-06-08 14:01:54 -07:00
hathach
418e28c7dc
update nrf52840 bootloader hex and target
2018-06-08 16:10:49 +07:00
hathach
2b3436e87c
add feather nrf52 uart rts, cts support
2018-06-08 15:59:38 +07:00
hathach
c10899d13f
allow to flash feather52 and feather52840 with jlink
...
add crc bypass magic to bootloader settting
2018-06-08 15:11:17 +07:00
hathach
c854e2dc17
Merge branch 'master' into usbboot
2018-06-07 13:51:21 +07:00
hathach
9bb4ded5fa
Merge remote-tracking branch 'upstream/master'
2018-06-07 13:50:04 +07:00
Matt Wozniski
d0e6bb269f
Use the system errno's on nrf
2018-06-02 12:55:07 -04:00
Radomir Dopieralski
d02899f822
Add gamepad_singleto to root pointers for the nrf port
2018-05-30 23:11:23 +02:00
hathach
6d4a2f5524
Merge branch 'master' into usbboot
2018-05-17 15:23:45 +07:00
hathach
52ebfd07a5
update nrfutil to 0.5.2d with singlebank option
2018-05-17 15:20:07 +07:00
Kevin Townsend
78f806c891
Added board specific READMEs
2018-05-15 22:42:27 +02:00
hathach
53593d1315
fix #809
...
define CIRCUITPY_BOOT_OUTPUT_FILE will cause mp_hal_stdout_tx_strn() to
invoke before serial_init() is called. Solution is skipped output to
serial if it is not inited.
2018-05-15 18:40:49 +07:00
hathach
05f36ebeb1
update the bootloader hex for feather52840
2018-05-15 16:06:03 +07:00
hathach
dadf831fe9
Merge branch 'usbboot' of github.com:microbuilder/circuitpython into usbboot
2018-05-15 13:33:53 +07:00
hathach
5365e51e39
Merge branch 'master' into usbboot
2018-05-15 13:29:25 +07:00
Jerry Needell
d6c26942a5
add timeout keyword to I2C - for bitbangio - ignored for busio
2018-05-13 21:54:44 -04:00