diff options
Diffstat (limited to 'bsp-howto')
-rw-r--r-- | bsp-howto/console.rst | 2 | ||||
-rw-r--r-- | bsp-howto/miscellanous_support.rst | 2 | ||||
-rw-r--r-- | bsp-howto/real_time_clock.rst | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/bsp-howto/console.rst b/bsp-howto/console.rst index 83b10b4..aef13a8 100644 --- a/bsp-howto/console.rst +++ b/bsp-howto/console.rst @@ -168,7 +168,7 @@ The handler table for the polled mode should look like the following. .set_attributes = my_driver_set_attributes, .ioctl = my_driver_ioctl, /* optional, may be NULL */ .mode = TERMIOS_POLLED - } + }; The :c:func:`my_driver_poll_write()` routine is responsible for writing ``n`` characters from ``buf`` to the serial device specified by ``base``. diff --git a/bsp-howto/miscellanous_support.rst b/bsp-howto/miscellanous_support.rst index cea744d..77b7194 100644 --- a/bsp-howto/miscellanous_support.rst +++ b/bsp-howto/miscellanous_support.rst @@ -138,7 +138,7 @@ prototype for this routine: .. code-block:: c - void * sbrk(size_t increment) + void * sbrk(ptrdiff_t increment) The ``increment`` amount is based upon the ``sbrk_amount`` parameter passed to the ``bsp_libc_init`` during system initialization. diff --git a/bsp-howto/real_time_clock.rst b/bsp-howto/real_time_clock.rst index ee40a6c..62ec09e 100644 --- a/bsp-howto/real_time_clock.rst +++ b/bsp-howto/real_time_clock.rst @@ -67,8 +67,8 @@ table is below: bool dmv177_icm7170_probe(int minor) { - volatile unsigned16 *card_resource_reg; - card_resource_reg = (volatile unsigned16 *) DMV170_CARD_RESORCE_REG; + volatile uint16_t *card_resource_reg; + card_resource_reg = (volatile uint16_t *) DMV170_CARD_RESORCE_REG; if ( (*card_resource_reg & DMV170_RTC_INST_MASK) == DMV170_RTC_INSTALLED ) return TRUE; return FALSE; |