stm: Update to compile with latest changes to core py.

pull/512/head
Damien George 2014-04-20 00:15:35 +01:00
rodzic a3f94e0030
commit c7c4a84397
4 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -127,8 +127,8 @@ mp_obj_t pyb_audio_dma(uint n_args, const mp_obj_t *args, mp_map_t *kw_args) {
if (type->buffer_p.get_buffer == NULL) {
nlr_raise(mp_obj_new_exception_msg(&mp_type_TypeError, "buffer argument must support buffer protocol"));
}
buffer_info_t bufinfo;
type->buffer_p.get_buffer(args[1], &bufinfo, BUFFER_READ);
mp_buffer_info_t bufinfo;
type->buffer_p.get_buffer(args[1], &bufinfo, MP_BUFFER_READ);
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_DMA1, ENABLE);

Wyświetl plik

@ -283,7 +283,7 @@ static void exti_load_attr(mp_obj_t self_in, qstr attr_qstr, mp_obj_t *dest) {
static mp_obj_t exti_call(mp_obj_t type_in, uint n_args, uint n_kw, const mp_obj_t *args) {
// type_in == exti_obj_type
mp_check_nargs(n_args, 4, 4, n_kw, 0);
mp_arg_check_num(n_args, n_kw, 4, 4, 0);
exti_obj_t *self = m_new_obj(exti_obj_t);
self->base.type = type_in;

Wyświetl plik

@ -18,6 +18,10 @@ typedef union {
};
} double_s_t;
double __attribute__((pcs("aapcs"))) __aeabi_i2d(int32_t x) {
return (float)x;
}
double __attribute__((pcs("aapcs"))) __aeabi_f2d(float x) {
float_s_t fx={0};
double_s_t dx={0};

Wyświetl plik

@ -68,7 +68,7 @@ static void pin_map_obj_print(void (*print)(void *env, const char *fmt, ...), vo
static mp_obj_t pin_map_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_t *args) {
pin_map_obj_t *self = self_in;
mp_check_nargs(n_args, 1, 2, n_kw, false);
mp_arg_check_num(n_args, n_kw, 1, 2, false);
if (n_args > 1) {
if (!self->map_dict) {