31 if (text ==
nullptr) {
46 uint32_t rest = value;
54 for (uint32_t i = 0U; i < count; i++) {
55 out[i] = digits[count - 1U - i];
66 for (uint8_t i = 0U; i < digits; i++) {
70 ? (uint8_t)(
'0' + nibble)
108 wifi_hal_puts(
"wifi_hal: EK-RA8D2 <-> ESP32-C6 Wi-Fi join + DHCP via ra8_wifi\r\n");
Board-support layer for the Renesas EK-RA8D2 v1 evaluation kit.
@ k_ra8_board_pmod1_sci_channel
Pmod1 (J26) Simple-SPI is SCI2.
ra8_err_t ra8_board_uart_console_write(const uint8_t *data, size_t len)
Polled blocking write to the J-Link OB VCOM console.
The single integration boundary between this firmware and the ESP32-C6.
@ k_ra8_c6link_frame_bytes
Bytes in one transaction; ESP_TRANSPORT_SPI_MAX_BUF_SIZE upstream.
A small, uniform Wi-Fi facade: init, connect, get an IP, disconnect.
@ k_ra8_wifi_mac_bytes
Octets in an IEEE 802 address.
struct ra8_wifi_mac ra8_wifi_mac_t
uint8_t octet[k_ra8_wifi_mac_bytes]
Address octets, first on the wire first.
void wifi_hal_put_ip(uint32_t ip)
Implementation of wifi_hal_put_ip() – four octets, dot-separated.
void wifi_hal_puts(const char *text)
Write a NUL-terminated string to the console, bounded.
void wifi_hal_print_banner(uint32_t cpuclk_hz, uint32_t pclka_hz)
Print the start-up banner naming the clocks and the link geometry.
void wifi_hal_put_mac(const ra8_wifi_mac_t *mac)
Write a station MAC as colon-separated hex octets.
void wifi_hal_put_u32(uint32_t value)
Implementation of wifi_hal_put_u32() – reversed division loop.
void wifi_hal_put_hex(uint32_t value, uint8_t digits)
Write the low digits nibbles of a value in hexadecimal.
Constants, console formatters and the DHCP provider for the HAL join.
@ k_wifi_hal_ip_shift_1
Shift for the second octet.
@ k_wifi_hal_ip_shift_0
Shift for the first (highest) octet.
@ k_wifi_hal_ip_shift_3
Shift for the fourth (lowest) octet.
@ k_wifi_hal_ip_shift_2
Shift for the third octet.
@ k_wifi_hal_hex_byte
Hex digits printed for a byte-wide field.
@ k_wifi_hal_dec_digits
Digits in the widest 32-bit decimal value.
@ k_wifi_hal_ip_mask
Single-octet mask for IPv4 formatting.
@ k_wifi_hal_hex_bits
Bits per hexadecimal digit.
@ k_wifi_hal_hex_digits
Digits in the widest 32-bit hex value.
@ k_wifi_hal_hex_alpha
First nibble value spelled with a letter.
@ k_wifi_hal_dec_radix
Decimal radix.
@ k_wifi_hal_hex_mask
Nibble mask.
@ k_wifi_hal_ip_octets
Octets in an IPv4 address.
@ k_wifi_hal_str_max
Longest string the console helper emits.
@ k_wifi_hal_sck_hz
SPI bit rate; the rate silicon ran at.