summaryrefslogtreecommitdiffstats
path: root/bsps/sh/gensh2/console/scitab.c
blob: ca253df573947b17d1399df2b7edaa967c594ab5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Copyright (c) 2018 embedded brains GmbH.  All rights reserved.
 *
 *  embedded brains GmbH
 *  Dornierstr. 4
 *  82178 Puchheim
 *  Germany
 *  <info@embedded-brains.de>
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.org/license/LICENSE.
 */

/*
 * The content of this file was previously generated by the GPL licensed shgen
 * tool during the BSP build for a configured clock frequency
 * (CPU_CLOCK_RATE_HZ). All tools were removed from the RTEMS source repository
 * at some point in time. Tools with a BSD-style license were moved to the
 * RTEMS tools repository.
 */

#include <bsp.h>

int _sci_get_brparms(
  unsigned int   spd,
  unsigned char *smr,
  unsigned char *brr
)
{
  if (spd != 9600) {
    return -1;
  }

  *smr = 0x00;
  *brr = 0x5f;
  return 0;
}