4 Commits

Author SHA1 Message Date
NIIBE Yutaka
aa63ac79bc Version 1.8. 2018-01-19 10:12:16 +09:00
NIIBE Yutaka
74cff25b78 Clean up example-usb-serial. 2018-01-18 15:15:42 +09:00
NIIBE Yutaka
5cd4871a94 Fix mcu/stm32f103.h. 2018-01-18 15:12:52 +09:00
Anthony Romano
c0a84627b6 Support IN8 config for ADC. 2018-01-09 09:26:44 +09:00
10 changed files with 43 additions and 16 deletions

11
AUTHORS
View File

@@ -19,7 +19,7 @@ Kenji Rikitake:
Kiwamu Okabe:
Wrote an OpenOCD scirpt:
example-fsm-55/stlink-v2.cfg
example-fsm-55/stlink-v2.cfg
Mateusz Zalega:
Added Nitrokey-Start support.
@@ -28,7 +28,7 @@ Mateusz Zalega:
NIIBE Yutaka:
Wrote the library:
chopstx.c, entry.c, eventflag.c,
chopstx.h, eventflag.h
chopstx.h, eventflag.h
Wrote the drivers mcu/*:
clk_gpio_init-mkl27z.c, clk_gpio_init-stm32.c,
sys-stm32f103.c, sys-stm32f030.c, sys-mkl27z.c,
@@ -36,9 +36,10 @@ NIIBE Yutaka:
Drew the logo:
chopstx.svg, chopstx.png
Wrote examples:
example-led, example-cdc, example-fsm-55, example-fs-bb48
example-led, example-cdc, example-fsm-55, example-fs-bb48,
example-usb-serial
Wrote board/*:
board-fst-01.h, board-fst-01-00.h,
board-fst-01.h, board-fst-01-00.h,
board-olimex-stm32-h103.h, board-stm8s-discovery.h
board-cq-starm.h, board-stbee-mini.h, board-stbee.h,
@@ -47,7 +48,7 @@ NIIBE Yutaka:
board-fs-bb48.h
Under contract of g10 Code GmbH, wrote:
mcu/usb-usbip.c
mcu/usb-usbip.c
contrib/usart-stm32f103.c
Paul Fertser:

View File

@@ -1,3 +1,16 @@
2018-01-19 NIIBE Yutaka <gniibe@fsij.org>
* VERSION: 1.8.
* doc/chopstx.texi (VERSION): 1.8.
2018-01-18 NIIBE Yutaka <gniibe@fsij.org>
* mcu/stm32f103.h: Include stm32.h and cortex-m.h.
2018-01-09 Anthony Romano <romanoanthony061@gmail.com>
* contrib/adc-stm32f103.c: Support IN8 config.
2017-12-19 NIIBE Yutaka <gniibe@fsij.org>
* VERSION: 1.7.

11
NEWS
View File

@@ -1,6 +1,17 @@
NEWS - Noteworthy changes
* Major changes in Chopstx 1.8
Released 2018-01-19
** Minor driver API fix
In version 1.6, part of mcu/stm32f103.h was moved into mcu/cortex-m.h
and mcu/stm32.h. Now, mcu/stm32f103.h automatically includes
mcu/cortex-m.h and mcu/stm32.h, so that it doesn't break existing
applications.
* Major changes in Chopstx 1.7
Released 2017-12-19

6
README
View File

@@ -1,6 +1,6 @@
Chopstx - Threads and only Threads
Version 1.7
2017-12-19
Version 1.8
2018-01-19
Niibe Yutaka
Flying Stone Technology
@@ -27,7 +27,7 @@ Note that this library is _not_ related to the hand game:
https://en.wikipedia.org/wiki/Chopsticks_(hand_game)
Thanks to Yao Wei and Enrico Zini for giving me an opportunity
visiting the wiki page above.
visiting the wiki page above, when my children were playing the game.
License

View File

@@ -1 +1 @@
release/1.7
release/1.8

View File

@@ -3,7 +3,7 @@
* In this ADC driver, there are NeuG specific parts.
* You need to modify to use this as generic ADC driver.
*
* Copyright (C) 2011, 2012, 2013, 2015, 2016
* Copyright (C) 2011, 2012, 2013, 2015, 2016, 2017, 2018
* Free Software Initiative of Japan
* Author: NIIBE Yutaka <gniibe@fsij.org>
*
@@ -32,7 +32,6 @@
#include <stdint.h>
#include <stdlib.h>
#include <chopstx.h>
#include <mcu/stm32.h>
#include <mcu/stm32f103.h>
#include "adc.h"
@@ -47,6 +46,7 @@
#define ADC_SMPR2_SMP_AN0(n) ((n) << 0)
#define ADC_SMPR2_SMP_AN1(n) ((n) << 3)
#define ADC_SMPR2_SMP_AN2(n) ((n) << 6)
#define ADC_SMPR2_SMP_AN8(n) ((n) << 24)
#define ADC_SMPR2_SMP_AN9(n) ((n) << 27)
#define ADC_SQR1_NUM_CH(n) (((n) - 1) << 20)
@@ -61,6 +61,7 @@
#define ADC_CHANNEL_IN0 0
#define ADC_CHANNEL_IN1 1
#define ADC_CHANNEL_IN2 2
#define ADC_CHANNEL_IN8 8
#define ADC_CHANNEL_IN9 9
#define ADC_CHANNEL_IN10 10
#define ADC_CHANNEL_IN11 11

View File

@@ -1,7 +1,7 @@
\input texinfo @c -*-texinfo-*-
@c %**start of header
@setfilename chopstx.info
@set VERSION 1.7
@set VERSION 1.8
@settitle Chopstx Reference Manual
@c Unify some of the indices.
@syncodeindex tp fn

View File

@@ -586,8 +586,7 @@ usb_set_interface (struct usb_dev *dev)
else
{
vcom_setup_endpoints_for_interface (interface, 0);
usb_lld_ctrl_ack (dev);
return 0;
return usb_lld_ctrl_ack (dev);
}
}
@@ -852,7 +851,7 @@ cdc_main (void *arg)
continue;
}
}
}
}
return NULL;
}

View File

@@ -1,5 +1,4 @@
#include <stdint.h>
#include <mcu/stm32.h>
#include <mcu/stm32f103.h>
#include "board.h"

View File

@@ -1,3 +1,6 @@
#include <mcu/stm32.h>
#include <mcu/cortex-m.h>
#define CRC_CR_RESET 0x00000001
struct CRC {