Commit Graph

680 Commits

Author SHA1 Message Date
Luke Wren
c7cf7cd728 Fix incorrect type in systick struct header vs machine-generated register header 2021-03-04 21:22:47 -06:00
Liam Fraser
5514401bf4 Restore GPIO15 state after modifying it for USB enumeration fix (#80)
Restore GPIO15 state after usb enumeration fix
Co-authored-by: Luke Wren <wren6991@gmail.com>
2021-03-04 21:22:47 -06:00
Luke Wren
c44d5026db Add PICO_NO_FPGA_CHECK define to remove FPGA check and save some bytes 2021-03-04 21:22:47 -06:00
Luke Wren
4bad452517 Document clock SELECTED registers in headers and SVD 2021-03-04 21:22:47 -06:00
Andrew Scheller
5e5a1e1b26 Fix typo ;-) 2021-03-04 21:22:47 -06:00
Graham Sanderson
3c9a4168fe
tinyusb: restore correct version (#233) 2021-03-04 21:20:48 -06:00
Graham Sanderson
9c5d2963f6
change revision to 1.1.0 (#231) 2021-03-04 20:30:57 -06:00
Graham Sanderson
7f17a45f0b
Remove PICO_FLASH_SIZE_BYTES warning from header as it breaks any build with -Werror; actual uses that care should warn instead (#229) 2021-03-04 20:20:56 -06:00
Andrew Scheller
0a940b8915
Add some extra defines to customise behaviour of STDIO_USB_RESET modes (#226)
* Add some extra defines to customise behaviour of STDIO_USB_RESET modes

* Tweaks to STDIO_USB_RESET defines
2021-03-04 19:01:30 -06:00
Andrew Scheller
0f119727c1
Add some extra defines to platform_defs.h (#227) 2021-03-04 12:52:42 -06:00
Andrew Scheller
c6a09bd495
Add PICO_DEFAULT_SPI pins to pico.h (#225)
(and define min and max values for some of the PICO_DEFAULT_* configs)
2021-03-04 08:46:14 -06:00
Andrew Scheller
a1856a91e4
Fix SDK to build cleanly if PICO_DEFAULT_UART isn't defined (#223) 2021-03-04 08:45:30 -06:00
James Hughes
ae2f040e86
Doxygen Updates (#117)
Fixed font for examples
Removed extraneous tag in DoxygenLayout.xml
More spacing on Doxygen version number, associated position change for seach boxes.
2021-03-04 08:43:26 -06:00
Andrew Scheller
1a471f13bd
Modify extract_configs.py to deal with _u(X) macros (#222) 2021-03-04 08:42:03 -06:00
graham sanderson
6390fe56ae use _u(0x800) insteand of 0x800u in platform_defs which is included by assembler 2021-03-03 15:43:46 +00:00
Andrew Scheller
14b5ea39cd Previous change didn't allow CI checks to run when an external fork PRs to raspberrypi 2021-03-03 14:58:38 +00:00
Andrew Scheller
2592c59e74
Add SPI enums to Doxygen output, fixes #213 (#216)
Also fix a few typos
2021-03-03 08:51:17 -06:00
Andrew Scheller
50acbb499d Attempt to prevent workflows being triggered on forks 2021-03-03 14:43:11 +00:00
Andrew Scheller
967cbc5c3d
Fixup PICO_CONFIG entries (#208)
* remove default=undefined
 * fix a couple of typos / syntax "errors"
 * perform even better default-value-checking in extract_configs.py
2021-03-02 15:37:46 -06:00
Andrew Scheller
6a8167b5bb
Lots of Doxygen tweaks and fixes (#212)
* Add documentation for gpio_irq_callback_t and rtc_callback_t (fixes #175)
 * Hook up pico_binary_info and pico_bootsel_via_double_reset to the Doxygen index
 * Add link to new Raspberry Pi Pico FAQ
 * Consistently add parentheses for \sa or \see links to function-names
 * Use consistent capitalisation for 'GitHub'
 * Small typos and markup errors
2021-03-02 15:37:27 -06:00
Andrew Scheller
1fb924a5ec
Remove PICO_SMPS_MODE_PIN from boards/vgaboard.h (#209)
...as it's already present in boards/pico.h
2021-03-02 11:20:21 -06:00
Graham Sanderson
61978dc707
Rationalize board header pin defines, and add partner board headers (#192)
* Board definition header files for the iniital set of SparkFun rp2040 boards

* Add default PICO_DEFAULT_I2C*, allow no PICO_DEFAULT_LED_PIN, no PICO_DEFAULT_UART* (instead of -1)
Fixup SparkFun headers

* Pimoroni board headers

* Add LED related board defines PICO_CONFIGs (to pico_stdlib for now)

* more board config changes

* add Adafruit feather, itsybitsy, qtpy board headers

* add PICO_DEFAULT_WS2812_POWER_PIN define

* MOSI/MISO -> TX/RX, some UART cleanup.. make vgaboard.h defines take preference over pico.h ones

* local change to tinyusb to cope with no default LED or UART

* fix review issues

Co-authored-by: Kirk Benell <github-stuff@accvec.com>
Co-authored-by: ZodiusInfuser <christopher.parrott2@gmail.com>
Co-authored-by: hathach <thach@tinyusb.org>
2021-03-01 09:59:05 -06:00
Liam Fraser
429cca23ac Add cmake build github action 2021-03-01 09:25:44 -06:00
Andrew Scheller
d55d3a79bc Typo
Set correct name in PICO_CONFIG line for PICO_STDIO_USB_ENABLE_RESET_VIA_VENDOR_INTERFACE
2021-03-01 09:25:09 -06:00
graham sanderson
73751b89d1 Add support for resetting RP2040 via the USB connection when using pico_stdio_usb
- setting baud rate to magic value (default=1200) will cause a reset to BOOTSEL mode
	- a VENDOR interface along side the CDC interface can be used to reset via refular flash boot, or into
	  BOOTSEL mode with control for the reset_usb_boot parameters for the latter
either method can be configured/enabled/disabled via #define
2021-03-01 08:36:29 -06:00
graham sanderson
642b312fec Add binary info 'feature' for pico_bootsel_via_double_reset 2021-03-01 08:36:09 -06:00
graham sanderson
0b1de0a62e hardware_rtc: make rtc_enable_alarm public 2021-03-01 08:36:09 -06:00
Graham Sanderson
fa34820fb9
remove broken and fairly pointless deep sleep API (#198)
* remove broken and fairly pointless deep sleep API, use multicore_reset_core1 instead

* strict-prototype for multicore_fifo_drain() in host header

* Also for multicore_lockout_victim_init()

Co-authored-by: Luke Wren <wren6991@gmail.com>
2021-03-01 14:10:45 +00:00
Andrew Scheller
265485c773 Fixup PICO_FLASH_SIZE_BYTES PICO_CONFIG entry (no default) 2021-02-27 12:09:02 -06:00
Andrew Scheller
37dbe8862e extract_configs: Do better matching-up of default values (regex was too strict)
also error if PICO_CONFIG says there's a default but no matching #define is found
2021-02-27 12:09:02 -06:00
foopub
a0481b2e02 Added ".syntax unified"
Otherwise gcc complains. I've tested this to work with the normal CMakeLists.txt provided in a few examples.
2021-02-27 12:07:57 -06:00
foopub
be7a655824 Replace unavailable flag-preserving instruction
It seems sub requires thumb2 instructions which are unavailable. This is in line with the rest of the sdk code base which uses subs.
2021-02-27 12:07:57 -06:00
graham sanderson
f8015f266a remove useless PICO_ALLOW_SLEED_IN_EXCEPTION 2021-02-26 08:52:14 -06:00
graham sanderson
9fdf87f729 panic in debug mode if sleep methods are called in an exception handler (unless PICO_ALLOW_SLEEP_IN_EXCEPTION is set) 2021-02-26 08:52:14 -06:00
Andrew Scheller
fb5a847026 Also check enum params and doxygenise pio_mov_status_type 2021-02-25 16:21:06 -06:00
Andrew Scheller
3fb6a489f6 Extra param-checking for hardware_pio library (switch asserts to valid_params_if, and add additional checks) 2021-02-25 16:21:06 -06:00
Andrew Scheller
5a245d549a Add some "\ingroup timestamp" doxy-comments so that they actually appear in the output! 2021-02-25 16:20:20 -06:00
Andrew Scheller
1281fbe9fa Remove duplicate PARAM_ASSERTIONS_ENABLED_SYNC PICO_CONFIG entry 2021-02-25 16:19:38 -06:00
Graham Sanderson
3110843159
Pico flash size bytes (#159)
* Move PICO_FLASH_SIZE_BYTES out of platform_defs.h since it precedes board config; also default to -1 for unknown

* make default for PICO_FLASH_SIZE_BYTES undefined - i.e. no value
2021-02-25 11:01:01 -06:00
graham sanderson
693311a74d fix compiler warning 2021-02-25 10:43:28 -06:00
graham sanderson
75422bbd68 host mode fixups 2021-02-25 10:16:40 -06:00
graham sanderson
72307e99dc pio: improve (slightly) error message for claim failure on PIO 1 2021-02-25 10:16:40 -06:00
graham sanderson
24e6668b35 move test cases after PICO_SDK_POST_LIDR_DIRS inclusion, so pico-host-sdl can be used 2021-02-25 10:16:40 -06:00
graham sanderson
760cb59c97 cmake: change warning message for unititialized TinyUSB 2021-02-25 10:16:40 -06:00
Graham Sanderson
cf3182021a
%g should not print 0 as infe-308 (#185) 2021-02-25 10:00:05 -06:00
Andrew Scheller
036d90d8cf
Default PARAM_ASSERTIONS_ENABLED_LOCK_CORE to 0 (#184)
so that it matches all the other PARAM_ASSERTIONS_* default values
2021-02-25 09:52:21 -06:00
Zachary Kohnen
cf383d484f
Add 'hardware/structs/sio.h' header to the 'pico/multicore.h' header\n\nThe pico/multicore.h header uses the sio_hw struct, but does not include the header that defines it. This normally is not a problem since other headers include the structure as well, but since this structure is used in the header, we should not rely on other headers bringing it in and instead include it directly (#176) 2021-02-25 08:41:51 -06:00
Graham Sanderson
d3aa6f7f98
No malloc for default alarm pool an pheap docs/cleanup (#143)
* Statically allocate the default timer pool (to avoid pulling in malloc); doxygen for pheap (and some function name changes)

* fix comments
2021-02-25 08:40:03 -06:00
graham sanderson
d7ed2aeaa3 re-arrange pico/types.h to avoid duplicate doxygen 2021-02-25 08:28:17 -06:00
graham sanderson
096b65d8db fix comment 2021-02-25 08:28:17 -06:00