Converted u8_t to uint8_t and u16_t to uint16_t in the cpu directory.
This commit is contained in:
parent
372de7d08a
commit
1cda3da17e
46 changed files with 208 additions and 206 deletions
|
@ -227,7 +227,7 @@ static int stm32w_radio_init(void)
|
|||
return 0;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int stm32w_radio_set_channel(u8_t channel)
|
||||
int stm32w_radio_set_channel(uint8_t channel)
|
||||
{
|
||||
if (ST_RadioSetChannel(channel) == ST_SUCCESS)
|
||||
return 0;
|
||||
|
@ -300,7 +300,7 @@ static int stm32w_radio_transmit(unsigned short payload_len)
|
|||
PRINTF("stm32w: sending %d bytes\r\n", payload_len);
|
||||
|
||||
#if DEBUG > 1
|
||||
for(u8_t c=1; c <= stm32w_txbuf[0]-2; c++){
|
||||
for(uint8_t c=1; c <= stm32w_txbuf[0]-2; c++){
|
||||
PRINTF("%x:",stm32w_txbuf[c]);
|
||||
}
|
||||
PRINTF("\r\n");
|
||||
|
@ -503,7 +503,7 @@ PROCESS_THREAD(stm32w_radio_process, ev, data)
|
|||
PRINTF("stm32w_radio_process: calling receiver callback\r\n");
|
||||
|
||||
#if DEBUG > 1
|
||||
for(u8_t c=1; c <= RCVD_PACKET_LEN; c++){
|
||||
for(uint8_t c=1; c <= RCVD_PACKET_LEN; c++){
|
||||
PRINTF("%x",stm32w_rxbuf[c]);
|
||||
}
|
||||
PRINTF("\r\n");
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
#include "hal/hal.h"
|
||||
#include "simplemac/include/phy-library.h"
|
||||
|
||||
int stm32w_radio_set_channel(u8_t channel);
|
||||
int stm32w_radio_set_channel(uint8_t channel);
|
||||
short last_packet_rssi();
|
||||
|
||||
#define STM32W_MAX_PACKET_LEN 127
|
||||
|
|
|
@ -138,8 +138,8 @@ uart1_init(unsigned long ubr)
|
|||
GPIO_PBCFGL &= 0xF00F;
|
||||
GPIO_PBCFGL |= 0x0490;
|
||||
|
||||
u16_t uartper = (u32_t)24e6/(2*ubr);
|
||||
u32_t rest = (u32_t)24e6%(2*ubr);
|
||||
uint16_t uartper = (uint32_t)24e6/(2*ubr);
|
||||
uint32_t rest = (uint32_t)24e6%(2*ubr);
|
||||
|
||||
SC1_UARTFRAC = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue