Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pinutils;
- info = {
- 'name' : "Espruino",
- 'default_console' : "EV_BLUETOOTH",
- 'variables' : 2500, # How many variables are allocated for Espruino to use. RAM will be overflowed if this number is too high and code won't compile.
- #'bootloader' : 1,
- 'binary_name' : 'Espruino_module.hex',
- 'build' : {
- 'optimizeflags' : '-Os',
- 'libraries' : [
- 'BLUETOOTH',
- 'FILESYSTEM'
- ],
- 'makefile' : [
- 'DEFINES+=-DBLUETOOTH_NAME_PREFIX=\'"Espruino nrf52832"\'',
- ]
- }
- };
- chip = {
- 'part' : "NRF52832",
- 'family' : "NRF52",
- 'package' : "QFN48",
- 'ram' : 64,
- 'flash' : 512,
- 'speed' : 64,
- 'usart' : 1,
- 'spi' : 1,
- 'i2c' : 1,
- 'adc' : 1,
- 'dac' : 0,
- 'saved_code' : {
- 'address' : ((118 - 10) * 4096), # Bootloader takes pages 120-127, FS takes 118-119
- 'page_size' : 4096,
- 'pages' : 10,
- 'flash_available' : 512 - ((31 + 8 + 2 + 10)*4) # Softdevice uses 31 pages of flash, bootloader 8, FS 2, code 10. Each page is 4 kb.
- },
- };
- devices = {};
- def get_pins():
- pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins.
- # everything is non-5v tolerant
- for pin in pins:
- pin["functions"]["3.3"]=0;
- #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work.
- return pins
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement