Home
last modified time | relevance | path

Searched refs:soft_spi_send (Results 1 – 25 of 70) sorted by relevance

123

/dports/emulators/qemu-utils/qemu-4.2.1/roms/u-boot-sam460ex/drivers/rtc/
H A Dds1306.c68 static void soft_spi_send (unsigned char n);
96 soft_spi_send (0); in rtc_get()
153 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
168 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
169 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
170 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
172 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
173 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
174 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
186 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/emulators/qemu42/qemu-4.2.1/roms/u-boot/drivers/rtc/
H A Dds1306.c49 static void soft_spi_send (unsigned char n);
77 soft_spi_send (0); in rtc_get()
134 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
149 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
153 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
167 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/emulators/qemu5/qemu-5.2.0/roms/u-boot-sam460ex/drivers/rtc/
H A Dds1306.c68 static void soft_spi_send (unsigned char n);
96 soft_spi_send (0); in rtc_get()
153 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
168 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
169 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
170 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
172 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
173 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
174 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
186 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/emulators/qemu5/qemu-5.2.0/roms/u-boot/drivers/rtc/
H A Dds1306.c49 static void soft_spi_send (unsigned char n);
77 soft_spi_send (0); in rtc_get()
134 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
149 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
153 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
167 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-olinuxino-lime/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-olinuxino-lime2/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/u-boot-sam460ex/drivers/rtc/
H A Dds1306.c68 static void soft_spi_send (unsigned char n);
96 soft_spi_send (0); in rtc_get()
153 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
168 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
169 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
170 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
172 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
173 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
174 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
186 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/roms/u-boot-sam460ex/drivers/rtc/
H A Dds1306.c68 static void soft_spi_send (unsigned char n);
96 soft_spi_send (0); in rtc_get()
153 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
168 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
169 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
170 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
172 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
173 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
174 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
186 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-cubox-hummingboard/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-cubieboard2/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-cubieboard/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-firefly-rk3399/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-a13-olinuxino/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-sinovoip-bpi-m3/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-sopine/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-a64-olinuxino/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-rpi/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-qemu-arm64/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-pinebookpro/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/emulators/qemu42/qemu-4.2.1/roms/u-boot-sam460ex/drivers/rtc/
H A Dds1306.c68 static void soft_spi_send (unsigned char n);
96 soft_spi_send (0); in rtc_get()
153 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
168 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
169 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
170 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
172 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
173 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
174 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
186 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-nanopi-neo2/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-olimex-a20-som-evb/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-nanopi-m1plus/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-nanopi-r4s/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]
/dports/sysutils/u-boot-chip/u-boot-2021.07/drivers/rtc/
H A Dds1306.c50 static void soft_spi_send (unsigned char n);
78 soft_spi_send (0); in rtc_get()
135 soft_spi_send (0x00); /* send control register contents */ in rtc_set()
150 soft_spi_send (bin2bcd (tmp->tm_sec)); /* Send Seconds */ in rtc_set()
151 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set()
152 soft_spi_send (bin2bcd (tmp->tm_hour)); /* Send Hour */ in rtc_set()
154 soft_spi_send (bin2bcd (tmp->tm_mday)); /* Send Day of Month */ in rtc_set()
155 soft_spi_send (bin2bcd (tmp->tm_mon)); /* Send Month */ in rtc_set()
156 soft_spi_send (bin2bcd (tmp->tm_year - 2000)); /* Send Year */ in rtc_set()
168 soft_spi_send (0x40); /* send out Control Register contents */ in rtc_set()
[all …]

123