stm32: ethernet, flash: tagging some function arguments as const

This commit is contained in:
Gregory Schlomoff
2017-04-10 11:04:38 -07:00
committed by Karl Palsson
parent 9ef5860863
commit 329b611e4f
4 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ uint32_t RxBD;
*
* @param[in] mac uint8_t* Desired MAC
*/
void eth_set_mac(uint8_t *mac)
void eth_set_mac(const uint8_t *mac)
{
ETH_MACAHR(0) = ((uint32_t)mac[5] << 8) | (uint32_t)mac[4] |
ETH_MACA0HR_MACA0H;

View File

@@ -330,7 +330,7 @@ was not properly erased.
@param[in] len Length of data block.
*/
void flash_program(uint32_t address, uint8_t *data, uint32_t len)
void flash_program(uint32_t address, const uint8_t *data, uint32_t len)
{
/* TODO: Use dword and word size program operations where possible for
* turbo speed.