diff options
| author | Daniel Campora <daniel@wipy.io> | 2015-09-27 13:45:48 +0200 |
|---|---|---|
| committer | Daniel Campora <daniel@wipy.io> | 2015-09-27 16:50:27 +0200 |
| commit | c92e6a45ebba4d41c2d0d891e07f94a81d2f601f (patch) | |
| tree | e861f7bfb70147d7a648cefc4c47c4b8e682f52d /cc3200/util | |
| parent | 0a7e4fa5cee7dcb6ce060bef37d4eae5e6f06503 (diff) | |
cc3200: Rename pyb module to machine.
Diffstat (limited to 'cc3200/util')
| -rw-r--r-- | cc3200/util/random.c | 4 | ||||
| -rw-r--r-- | cc3200/util/random.h | 2 | ||||
| -rw-r--r-- | cc3200/util/sleeprestore.s | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/cc3200/util/random.c b/cc3200/util/random.c index baa2db62e..54aaa829c 100644 --- a/cc3200/util/random.c +++ b/cc3200/util/random.c @@ -69,10 +69,10 @@ STATIC uint32_t lfsr (uint32_t input) { /******************************************************************************/ // Micro Python bindings; -STATIC mp_obj_t pyb_rng_get(void) { +STATIC mp_obj_t machine_rng_get(void) { return mp_obj_new_int(rng_get()); } -MP_DEFINE_CONST_FUN_OBJ_0(pyb_rng_get_obj, pyb_rng_get); +MP_DEFINE_CONST_FUN_OBJ_0(machine_rng_get_obj, machine_rng_get); /****************************************************************************** * PUBLIC FUNCTIONS diff --git a/cc3200/util/random.h b/cc3200/util/random.h index eae15f2d2..860b46173 100644 --- a/cc3200/util/random.h +++ b/cc3200/util/random.h @@ -30,6 +30,6 @@ void rng_init0 (void); uint32_t rng_get (void); -MP_DECLARE_CONST_FUN_OBJ(pyb_rng_get_obj); +MP_DECLARE_CONST_FUN_OBJ(machine_rng_get_obj); #endif // __RANDOM_H diff --git a/cc3200/util/sleeprestore.s b/cc3200/util/sleeprestore.s index decc6994e..c7b0c7da2 100644 --- a/cc3200/util/sleeprestore.s +++ b/cc3200/util/sleeprestore.s @@ -7,7 +7,7 @@ @ global variable with the backup registers .extern vault_arm_registers @ global function that performs the wake up actions - .extern pybsleep_suspend_exit + .extern pyb_sleep_suspend_exit @ uint sleep_store(void) .global sleep_store @@ -58,4 +58,4 @@ sleep_restore: msr basepri, r0 dsb isb - bl pybsleep_suspend_exit + bl pyb_sleep_suspend_exit |
