Commit Graph

47 Commits

Author SHA1 Message Date
graham sanderson
8ebe036665 Change _U to _u as _U exists in ctype.h 2021-02-25 08:26:16 -06:00
graham sanderson
41c0e9f3b9 Fixup another level of compiler warnings, add _U() definition 2021-02-25 08:26:16 -06:00
graham sanderson
45b39d067b b0 sincos shim was incorrect, causing crash 2021-02-24 17:15:40 -06:00
Graham Sanderson
1478c6b89f
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-02-19 14:15:29 +00:00
Graham Sanderson
3f0529a25c
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-02-19 13:11:56 +00:00
graham sanderson
e349dbbf4f add boot2 info to binary info 2021-02-19 12:32:38 +00:00
Luke Wren
4c1fac58d3
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-02-18 16:12:22 +00:00
graham sanderson
01c8e2a8dc remove always true assertions (fix #83) 2021-02-18 15:47:07 +00:00
graham sanderson
ffc7f19f46 move two hardware_timer methods to the right doxygen group (fix #131) 2021-02-18 15:47:07 +00:00
graham sanderson
a28217be4b missing pico/malloc.h fixes #136 2021-02-18 15:47:07 +00:00
Graham Sanderson
8b9907e7f2
Add -Wuninitialized -Wunused -Wcast-align to warnings checked by kitchen_sink (and fixup warnings) (#125) 2021-02-15 16:06:12 +00:00
Luke Wren
81c3d3fae6 Reword some confusing terms in pio.h doxygen 2021-02-12 13:57:54 +00:00
Luke Wren
a2d82431e6 oops 2021-02-11 12:16:07 -06:00
Luke Wren
f22adc5081 Fix bad range check on sideset count in pio.h 2021-02-11 12:16:07 -06:00
Luke Wren
b34995a549 Add missing extern "C" to header files (closes #104) 2021-02-11 11:25:55 -06:00
Luke Wren
32ada8a2de Document PWM double buffering behaviour in pwm.h doxygen 2021-02-11 11:23:08 -06:00
Luke Wren
2dc030ba70 pwm.h typo: int16_t -> uint16_t (closes #109) 2021-02-11 11:22:27 -06:00
Luke Wren
0fbaaabe6f pio.h doxygen fixes and clarifications (closes #114) 2021-02-11 11:20:20 -06:00
Luke Wren
a33a7c0b2c Fix -Wsign-compare warnings 2021-02-11 11:17:15 -06:00
Brian Swetland
ebb228bfea 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-02-08 12:46:05 -06:00
Liam Fraser
55346c9530
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-02-05 15:22:23 +00:00
Luke Wren
b63e54c14d Add PICO_NO_FPGA_CHECK define to remove FPGA check and save some bytes 2021-02-04 11:16:55 +00:00
graham sanderson
cfefc1775b fixup bad static_assert 2021-02-01 08:46:42 -06:00
Luke Wren
5e9c42a998 Doxygen for uart_set_baudrate return 2021-01-31 22:57:06 +00:00
graham sanderson
16df9f8a95 uart_set_baudrate should return actual rate set even in case of out of range parameters 2021-01-31 22:57:06 +00:00
Luke Wren
095091208a Set thumb and executable attributes on padded boot2 2021-01-31 16:44:38 -06:00
Olivier
3073cdd802 Improve spi write16/read16 documentation.
The write16/read16 only work as described after changing the amount of
data_bits using spi_set_format.
2021-01-31 22:35:39 +00:00
Luke Wren
8a45435cb8 Remove copy/pasted return from doxygen 2021-01-31 22:34:37 +00:00
graham sanderson
294f0d2e4a fix formatting 2021-01-31 22:34:37 +00:00
Joe Komlodi
c5f8527145 rp2_common/hardware_pio/pio: Add 'pio_add_program_at_offset' implementation
pio_add_program_at_offset() had a prototype in the header, but was
missing an implementation in the C file.
2021-01-31 22:34:37 +00:00
graham sanderson
4a0586225c Fix dependency on boot_stage2 so that changes actually cause update of .S and relink of main application elf 2021-01-31 22:12:31 +00:00
graham sanderson
da63ddd6ef flash_cs_force was ending up in flash on debug builds which is very bad! 2021-01-31 15:34:19 -06:00
graham sanderson
a2bcca264f fix warning/Werror in NO_FLASH build 2021-01-31 15:34:19 -06:00
Luke Wren
9f207485da Clarify static_assert message 2021-01-31 15:34:19 -06:00
Luke Wren
a49fab6138 Fix doxygen group name and add to index 2021-01-31 15:34:19 -06:00
Luke Wren
a49aba023b Add message to static_assert, fix formatting 2021-01-31 15:34:19 -06:00
Luke Wren
21d447fa28 Add pico_unique_board_id_t struct and rename some functions/defines 2021-01-31 15:34:19 -06:00
Luke Wren
6cef7931f5 Correct copyright header date 2021-01-31 15:34:19 -06:00
Luke Wren
05abfcdbe2 Add pico_unique_id to inject ID access before main and provide accessor 2021-01-31 15:34:19 -06:00
Luke Wren
03345f1703 Use correct define for FLASH_RUID_CMD 2021-01-31 15:34:19 -06:00
Luke Wren
a43cf2846c Add flash_get_unique_id to hardware_flash 2021-01-31 15:34:19 -06:00
graham sanderson
143657b875 Standardise references to the Raspberry Pi Pico SDK 2021-01-30 10:32:31 -06:00
Luke Wren
732b53271f
Move vector table to beginning of flash image (#10)
* Move vector table to beginning of flash image. Modify a boot2 to use the table.

* Move binary info header up between ELF entry and reset handler

* Extract common routines from boot2_w25q080 into helper files

* Non-default boot2s: use common routines, make callable as void(*)(void)

* BSD3 headers on boot2 files (people might want to use them elsewhere)

* Promote binary info header to its own section, + comment/readability changes

* Fix scope of asminclude path (fixes user custom boot2 definitions)

* Rename symbol, clarify comment
2021-01-28 07:50:45 -06:00
Graham Sanderson
5e5776b9c0
N_GPIOS duplicates NUM_BANK0_GPIOS (#7) 2021-01-28 07:48:11 -06:00
majbthrd
78190a5e27
fix #if in hardware/structs/dma.h (#9)
* fix #if in hardware/structs/dma.h

* move dma driver code from register definitions to dma drivers

Co-authored-by: Peter Lawrence <12226419+majbthrd@users.noreply.github.com>
2021-01-27 12:22:26 -06:00
Adam Boardman
40d2b5fdd4 Add header needed for USB flashing mode on exit when needed to avoid user having to include the header themselves. 2021-01-25 11:04:27 -06:00
graham sanderson
26653ea81e Initial Release 2021-01-20 10:44:27 -06:00