Graham Sanderson
0fa58ed219
Adding/propage macros/signature typedefs for ROM functions. Make rom_func_lookup non-flash safe for flash functions ( #586 )
...
* add typedef signatures and ROM code defines for bootrom functions. Propogate uses thru SDK code. Add _inline version of rom_func_lookup
2021-10-08 09:02:19 -05:00
Graham Sanderson
b7da70a53b
make all non hardware_ libraries foo add C preprocessor definition LIB_FOO=1, and remove bespoke definitions which were all undocumented anyway ( #374 )
2021-05-04 08:00:17 -05:00
Luke Wren
962da33ea7
Clarify that cache is flushed, but that function is intended for low-level metadata access during startup ( #322 )
2021-04-09 08:05:29 -05:00
Scott Shawcroft
814d2bd855
Make flash_do_cmd public ( #269 )
...
* Make flash_do_cmd public
* Fix typo in comment
2021-04-09 11:47:16 +01:00
Graham Sanderson
04ee63428f
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 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
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
503bc8b385
Fixup another level of compiler warnings, add _U() definition
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
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
d4c9dced40
Add missing extern "C" to header files ( closes #104 )
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
graham sanderson
8a4e21bd8e
fixup bad static_assert
2021-02-01 14:46:45 -06:00
graham sanderson
1243ee175f
flash_cs_force was ending up in flash on debug builds which is very bad!
2021-02-01 14:46:45 -06:00
graham sanderson
9ab5e8d543
fix warning/Werror in NO_FLASH build
2021-02-01 14:46:45 -06:00
Luke Wren
bb3cf10a09
Use correct define for FLASH_RUID_CMD
2021-02-01 14:46:45 -06:00
Luke Wren
620c75b9b8
Add flash_get_unique_id to hardware_flash
2021-02-01 14:46:45 -06:00
graham sanderson
26653ea81e
Initial Release
2021-01-20 10:44:27 -06:00