Changeset 25eec4e in mainline for boot/arch/arm32/src/putchar.c


Ignore:
Timestamp:
2013-04-19T18:38:18Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6d717a4
Parents:
a1e2df13 (diff), 289cb7dd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline chages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/src/putchar.c

    ra1e2df13 r25eec4e  
    4141#include <str.h>
    4242
     43#ifdef MACHINE_beaglebone
     44
     45/** Send a byte to the am335x serial console.
     46 *
     47 * @param byte          Byte to send.
     48 */
     49static void scons_sendb_bbone(uint8_t byte)
     50{
     51        volatile uint32_t *thr =
     52                (volatile uint32_t *) BBONE_SCONS_THR;
     53        volatile uint32_t *ssr =
     54                (volatile uint32_t *) BBONE_SCONS_SSR;
     55
     56        /* Wait until transmitter is empty */
     57        while (*ssr & BBONE_TXFIFO_FULL);
     58
     59        /* Transmit byte */
     60        *thr = (uint32_t) byte;
     61}
     62
     63#endif
     64
     65#ifdef MACHINE_beagleboardxm
     66
     67/** Send a byte to the amdm37x serial console.
     68 *
     69 * @param byte          Byte to send.
     70 */
     71static void scons_sendb_bbxm(uint8_t byte)
     72{
     73        volatile uint32_t *thr =
     74            (volatile uint32_t *)BBXM_SCONS_THR;
     75        volatile uint32_t *ssr =
     76            (volatile uint32_t *)BBXM_SCONS_SSR;
     77
     78        /* Wait until transmitter is empty. */
     79        while ((*ssr & BBXM_THR_FULL) == 1) ;
     80
     81        /* Transmit byte. */
     82        *thr = (uint32_t) byte;
     83}
     84
     85#endif
     86
    4387#ifdef MACHINE_gta02
    4488
     
    65109#endif
    66110
    67 #ifdef MACHINE_testarm
    68 
    69 /** Send a byte to the GXemul testarm serial console.
    70  *
    71  * @param byte          Byte to send.
    72  */
    73 static void scons_sendb_testarm(uint8_t byte)
    74 {
    75         *((volatile uint8_t *) TESTARM_SCONS_ADDR) = byte;
    76 }
    77 
    78 #endif
    79 
    80111#ifdef MACHINE_integratorcp
    81112
     
    97128static void scons_sendb(uint8_t byte)
    98129{
     130#ifdef MACHINE_beaglebone
     131        scons_sendb_bbone(byte);
     132#endif
     133#ifdef MACHINE_beagleboardxm
     134        scons_sendb_bbxm(byte);
     135#endif
    99136#ifdef MACHINE_gta02
    100137        scons_sendb_gta02(byte);
    101 #endif
    102 #ifdef MACHINE_testarm
    103         scons_sendb_testarm(byte);
    104138#endif
    105139#ifdef MACHINE_integratorcp
Note: See TracChangeset for help on using the changeset viewer.