Graham Sanderson
4904fe2e32
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-04 21:22:48 -06:00
Andrew Scheller
f239bd3de5
Fixup PICO_FLASH_SIZE_BYTES PICO_CONFIG entry (no default)
2021-03-04 21:22:48 -06:00
foopub
a989f4f6ee
Added ".syntax unified"
...
Otherwise gcc complains. I've tested this to work with the normal CMakeLists.txt provided in a few examples.
2021-03-04 21:22:48 -06:00
foopub
542b86e5db
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-03-04 21:22:48 -06:00
graham sanderson
e371f6af60
remove useless PICO_ALLOW_SLEED_IN_EXCEPTION
2021-03-04 21:22:48 -06:00
graham sanderson
aca685ceae
panic in debug mode if sleep methods are called in an exception handler (unless PICO_ALLOW_SLEEP_IN_EXCEPTION is set)
2021-03-04 21:22:48 -06:00
Andrew Scheller
6b2c249961
Also check enum params and doxygenise pio_mov_status_type
2021-03-04 21:22:48 -06:00
Andrew Scheller
786be7524a
Extra param-checking for hardware_pio library (switch asserts to valid_params_if, and add additional checks)
2021-03-04 21:22:48 -06:00
Andrew Scheller
e5d61f1ad3
Add some "\ingroup timestamp" doxy-comments so that they actually appear in the output!
2021-03-04 21:22:48 -06:00
Andrew Scheller
c1c7197757
Remove duplicate PARAM_ASSERTIONS_ENABLED_SYNC PICO_CONFIG entry
2021-03-04 21:22:48 -06:00
Graham Sanderson
743dbabdec
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-03-04 21:22:48 -06:00
graham sanderson
0d789c9b54
fix compiler warning
2021-03-04 21:22:48 -06:00
graham sanderson
7ed5d87fb1
host mode fixups
2021-03-04 21:22:48 -06:00
graham sanderson
3f5f5a1fd7
pio: improve (slightly) error message for claim failure on PIO 1
2021-03-04 21:22:48 -06:00
graham sanderson
d3fa64afc8
cmake: change warning message for unititialized TinyUSB
2021-03-04 21:22:48 -06:00
Graham Sanderson
e526e4f850
%g should not print 0 as infe-308 ( #185 )
2021-03-04 21:22:48 -06:00
Andrew Scheller
4335268a93
Default PARAM_ASSERTIONS_ENABLED_LOCK_CORE to 0 ( #184 )
...
so that it matches all the other PARAM_ASSERTIONS_* default values
2021-03-04 21:22:48 -06:00
Zachary Kohnen
132d6df695
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-03-04 21:22:48 -06:00
Graham Sanderson
e730e03e7f
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-03-04 21:22:48 -06:00
graham sanderson
0a22f704a6
re-arrange pico/types.h to avoid duplicate doxygen
2021-03-04 21:22:48 -06:00
graham sanderson
228de60da0
fix comment
2021-03-04 21:22:48 -06:00
graham sanderson
684986aae6
fix the represntation of at_the_end_of_time to be 63 one bits rather than 32
2021-03-04 21:22:48 -06:00
graham sanderson
debef7471e
Change _U to _u as _U exists in ctype.h
2021-03-04 21:22:48 -06:00
graham sanderson
503bc8b385
Fixup another level of compiler warnings, add _U() definition
2021-03-04 21:22:48 -06:00
Andrew Scheller
7ded9df488
Explicitly mark constants in autogenerated headers as unsigned values
2021-03-04 21:22:48 -06:00
graham sanderson
f16af45f9e
b0 sincos shim was incorrect, causing crash
2021-03-04 21:22:48 -06:00
Graham Sanderson
b53b0bac70
Bunch of small fixes ( #154 )
...
* use valid_params_if macro for lock assertion
* fixup param checking in pwm.h
* Fix range of fractional divider parameter check in pwm.h
Co-authored-by: Luke Wren <wren6991@gmail.com>
2021-03-04 21:22:48 -06:00
Graham Sanderson
0732d0c2a3
Add more memory barriers to avoid code re-ordering issues with DMA ( #155 )
...
* Add more memory barriers to avoid code re-ordering issues with DMA
* Comment typos
* Fix Wstrict-prototype on __compiler_memory_barrier
* Remove now-redundant __compiler_barrier macro from hardware_flash
Co-authored-by: Luke Wren <wren6991@gmail.com>
2021-03-04 21:22:48 -06:00
graham sanderson
4b7ffd71f0
add boot2 info to binary info
2021-03-04 21:22:48 -06:00
Luke Wren
d492b72c29
Add pico_bootsel_via_double_reset library, fix #87 ( #137 )
...
* Add pico_bootsel_via_double_reset library, fix #87
* pico_bootsel_via_double_reset: remove unnecessary library guard, fix subdirectory ordering
* Fix C type used as PICO_CONFIG type
2021-03-04 21:22:48 -06:00
graham sanderson
dee8bd992c
remove always true assertions ( fix #83 )
2021-03-04 21:22:48 -06:00
graham sanderson
18dbb5985c
move two hardware_timer methods to the right doxygen group ( fix #131 )
2021-03-04 21:22:48 -06:00
graham sanderson
8b6d27d0e5
missing pico/malloc.h fixes #136
2021-03-04 21:22:48 -06:00
Graham Sanderson
6f94f6a3d7
Add -Wuninitialized -Wunused -Wcast-align to warnings checked by kitchen_sink (and fixup warnings) ( #125 )
2021-03-04 21:22:48 -06:00
Luke Wren
a59fd524d5
Reword some confusing terms in pio.h doxygen
2021-03-04 21:22:48 -06:00
Luke Wren
2844e7ac2d
Update info strings in PIO register header for clarity (matching changes in datasheet)
2021-03-04 21:22:48 -06:00
Luke Wren
6f7c539062
oops
2021-03-04 21:22:47 -06:00
Luke Wren
24e036bde0
Fix bad range check on sideset count in pio.h
2021-03-04 21:22:47 -06:00
Luke Wren
d4c9dced40
Add missing extern "C" to header files ( closes #104 )
2021-03-04 21:22:47 -06:00
Luke Wren
0f4a5f8e60
Document PWM double buffering behaviour in pwm.h doxygen
2021-03-04 21:22:47 -06:00
Luke Wren
eb4023e263
pwm.h typo: int16_t -> uint16_t ( closes #109 )
2021-03-04 21:22:47 -06:00
Luke Wren
539270feca
pio.h doxygen fixes and clarifications ( closes #114 )
2021-03-04 21:22:47 -06:00
Luke Wren
2a243a33e2
Fix -Wsign-compare warnings
2021-03-04 21:22:47 -06:00
Liam Fraser
6d272c056a
Mark usb buffer status registers as write clear instead of read only.
2021-03-04 21:22:47 -06:00
Brian Swetland
a362925eda
Clean up various C source and headers to appease -Wstrict-prototypes
...
In C, func() is a function taking an unspecified number of arguments,
vs func(void) a function taking no arguments. In C++ both forms indicate
"no arguments."
Update these headers to use the (void) form, which is correct in both
languages and avoids complaints when -Wstrict-prototypes is specified.
2021-03-04 21:22:47 -06:00
Luke Wren
93c600736e
Add enumvals to busctrl PERFSEL registers
2021-03-04 21:22:47 -06:00
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