1.1 --- a/pkg/devices/spi/src/jz4740/spi-jz4740.cc Tue Nov 07 19:20:32 2023 +0100
1.2 +++ b/pkg/devices/spi/src/jz4740/spi-jz4740.cc Thu Nov 09 18:40:31 2023 +0100
1.3 @@ -69,7 +69,7 @@
1.4
1.5 long send(int bits, int data)
1.6 {
1.7 - int bytes = (bits + 7) / 8;
1.8 + uint32_t bytes = (bits + 7) / 8;
1.9 uint8_t buffer[bytes];
1.10
1.11 /* Convert the data into a sequence of bytes. */
1.12 @@ -160,7 +160,7 @@
1.13
1.14 gpio_port_enable.setup(enable_pin, Hw::Gpio_chip::Output, 0);
1.15
1.16 - /* Create an object for SPI communication. */
1.17 + /* Create an object for SPI communication omitting any specific frequency. */
1.18
1.19 Spi_gpio spi(&gpio_port_clock, clock_pin, &gpio_port_data, data_pin,
1.20 &gpio_port_enable, enable_pin);